修复特训建筑立刻升级消耗bug
parent
1566463f65
commit
ee237b4996
|
|
@ -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}});
|
||||
}
|
||||
// 验证道具数量
|
||||
|
|
|
|||
Loading…
Reference in New Issue