代码修改提交

back_recharge
lvxinran 2019-07-05 10:15:02 +08:00
parent 2416934b0f
commit cec1a85669
1 changed files with 2 additions and 3 deletions

View File

@ -216,7 +216,7 @@ public class CombatLogic {
if(randomTimes>0){
int bossGroupId = randomInvasionBoss(uid, adventureStateInfo.getPosition(),randomTimes,false);
if(bossGroupId>0){
remainTime =sAdventureConfig.getInvasionBossHolding();
remainTime =sAdventureConfig.getInvasionBossHolding()-(now-adventureStateInfo.getFindBossTime());
nextFlushTime+=remainTime+nextFlushTime;
need=true;
}
@ -555,12 +555,11 @@ public class CombatLogic {
bossGroupID = item[0];
break;
}
totalWeight+=item[1];
}
}
int findBossTime = adventureStateInfo.getFindBossTime();
int now = (int)(System.currentTimeMillis()/1000);
if(isGm || findBossTime == 0){
if(isGm || bossGroupID == 0 || findBossTime == 0){
}else{
int nextFindTime = findBossTime + sAdventureConfig.getInvasionBossRefresh() * (randomTimes - reallyRandomTimes);