change remaintime to leveltime

back_recharge
wangyuan 2019-10-17 16:38:38 +08:00
parent 8b01d62c24
commit c87291d6ca
2 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -481,7 +481,7 @@ public class CBean2Proto {
CommonProto.AdventureBossSimpleInfo.newBuilder()
.setArenaId(fightId)
.setBossGroupId(adventureBoss.getBossGroupId())
.setRemainTime(remainTime)
.setLevelTime(remainTime+now)
.setBossId(adventureBoss.getBossId())
.build()
);