修复特训建筑立刻升级消耗bug

master_haizei
grimm 2023-12-28 18:23:27 +08:00
parent 1566463f65
commit ee237b4996
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ public class TrainingLogic {
cost.add(buildLevel.getCost());
}
else {
int num = (int) Math.round((nowInt - architecture.getStartTime()) / 60d);
int second = buildLevel.getTime() - (nowInt - architecture.getStartTime());
int num = (int) Math.round(second / 60d);
cost.add(new int[][]{{trainBuildTime[0], trainBuildTime[1] * num}});
}
// 验证道具数量