change remaintime to leveltime
parent
8b01d62c24
commit
c87291d6ca
|
@ -39,6 +39,7 @@ import util.StringUtil;
|
|||
import util.TimeUtils;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class CombatLogic {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CombatLogic.class);
|
||||
|
@ -471,7 +472,7 @@ public class CombatLogic {
|
|||
FightInfoProto.AdventureCallBossResponse build = FightInfoProto.AdventureCallBossResponse.newBuilder().setAdventureBossInfo(CommonProto.AdventureBossSimpleInfo.newBuilder()
|
||||
.setArenaId(fightId)
|
||||
.setBossGroupId(adventureBoss.getBossGroupId())
|
||||
.setRemainTime(remainTime)
|
||||
.setLevelTime(remainTime+now)
|
||||
.setBossId(bossId)
|
||||
.build()).build();
|
||||
MessageUtil.sendMessage(iSession,1,msgId,build,true);
|
||||
|
@ -484,7 +485,7 @@ public class CombatLogic {
|
|||
.setArenaId(arenaId)
|
||||
.setBossId(adventureBoss.getBossId())
|
||||
.setBossGroupId(adventureBoss.getBossGroupId())
|
||||
.setRemainTime(sMainLevelConfig.getInvasionBossHolding())
|
||||
.setLevelTime(sMainLevelConfig.getInvasionBossHolding() + (int)(TimeUtils.now()/1000))
|
||||
.setFindUserName(findUserName)
|
||||
.build();
|
||||
FightInfoProto.AdventureBossFindIndication adventureBossFindIndication = FightInfoProto.AdventureBossFindIndication.newBuilder().setAdventureBossSimpleInfo(build).build();
|
||||
|
|
|
@ -481,7 +481,7 @@ public class CBean2Proto {
|
|||
CommonProto.AdventureBossSimpleInfo.newBuilder()
|
||||
.setArenaId(fightId)
|
||||
.setBossGroupId(adventureBoss.getBossGroupId())
|
||||
.setRemainTime(remainTime)
|
||||
.setLevelTime(remainTime+now)
|
||||
.setBossId(adventureBoss.getBossId())
|
||||
.build()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue