回复英雄副本时间

back_recharge
wangyuan 2019-06-25 17:06:54 +08:00
parent eb8d6f6038
commit 990e3bada9
1 changed files with 4 additions and 0 deletions

View File

@ -214,6 +214,10 @@ public class MapManager extends MongoBase {
int recoveryTime = SGameSetting.getGameSetting().getRecoveryTime();
int heroTimes = SGameSetting.getGameSetting().getHeroTimes();
int recoveryTimes = (updateTime - lastUpdateEnergyTime)/recoveryTime;
if(itemNum>heroTimes){
item.setEndingTime(updateTime);
return;
}
if( recoveryTimes>0){
if(itemNum<heroTimes ){
int addValue = MathUtils.setBetweenWithMax(itemNum+recoveryTimes,0,heroTimes);