fix adventure reward
parent
6f4f669923
commit
c536c8c6a5
|
@ -141,6 +141,7 @@ public class GMRequestHandler extends BaseHandler{
|
|||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case GlobalGm.ADOPT_FIGHT_BY_VALUE:
|
||||
int fightId = cUser.getMainLevelManager().getFightId();
|
||||
if(SMainLevelConfig.biggerThanFight(fightId,prarm1)){
|
||||
|
|
|
@ -251,14 +251,6 @@ public class CombatLogic {
|
|||
}
|
||||
int fightId = mainLevelManager.getFightId();
|
||||
SMainLevelConfig targetMainLevelConfig = SMainLevelConfig.config.get(fightId);
|
||||
if(mainLevelManager.getState()==-1){
|
||||
for( SMainLevelConfig sMainLevelConfig : SMainLevelConfig.config.values() ){
|
||||
if(sMainLevelConfig.getNextLevel() == mainLevelManager.getFightId()){
|
||||
targetMainLevelConfig = sMainLevelConfig;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
int lastTime = mainLevelManager.getLastTime();
|
||||
int now = (int) (System.currentTimeMillis() / 1000);
|
||||
int times = (now - lastTime)/STableManager.getFigureConfig(CommonStaticConfig.class).getGameSetting().getAdventureRefresh();
|
||||
|
|
Loading…
Reference in New Issue