back_recharge
parent
bb7abbe506
commit
536a5e02f2
|
@ -387,7 +387,7 @@ public class CombatLogic {
|
|||
int now = (int)(System.currentTimeMillis()/1000);
|
||||
SGameSetting gameSetting = SGameSetting.getGameSetting();
|
||||
int adventureRefresh = gameSetting.getAdventureRefresh();
|
||||
int times = (now - timeDuration) / adventureRefresh;
|
||||
int times = timeDuration / adventureRefresh;
|
||||
Map<Integer, Integer> baseItemMap = new HashMap<>();
|
||||
Map<Integer, Integer> baseCardMap = new HashMap<>();
|
||||
Map<Integer, Integer> baseEquipMap = new HashMap<>();
|
||||
|
@ -508,6 +508,7 @@ public class CombatLogic {
|
|||
AdventureBoss adventureBoss = new AdventureBoss(bossId,bossGroupID,arenaID,levle,uid,now,totalHp,hps);
|
||||
RedisUtil.getInstence().putMapEntry(RedisKey.ADVENTRUEN_BOSS_INFO,"",bossId,adventureBoss);
|
||||
RedisUtil.getInstence().putMapEntry(RedisKey.ADVENTRUEN_BOSS_OWN,"",bossId,0);
|
||||
broadAdventureBoss(adventureBoss,user.getPlayerInfoManager().getNickName());
|
||||
}
|
||||
adventureStateInfo.setBossId(bossId);
|
||||
adventureStateInfo.setBossGroupId(bossGroupID);
|
||||
|
@ -516,7 +517,6 @@ public class CombatLogic {
|
|||
}
|
||||
|
||||
public void broadAdventureBoss(AdventureBoss adventureBoss,String findUserName){
|
||||
int now = (int)(TimeUtils.now()/1000);
|
||||
int arenaId = adventureBoss.getArenaId();
|
||||
SAdventureConfig sAdventureConfig = SAdventureConfig.getConfig().get(arenaId);
|
||||
CommonProto.AdventureBossSimpleInfo build = CommonProto.AdventureBossSimpleInfo.newBuilder()
|
||||
|
|
Loading…
Reference in New Issue