火箭能量不清空
This commit is contained in:
parent
ad98917741
commit
6fe8e4101a
@ -148,10 +148,13 @@ public class RocketStatus {
|
||||
overflowEnergy = 0L;
|
||||
}
|
||||
|
||||
// 保留当前能量值,不清空
|
||||
long preservedEnergy = this.currentEnergy;
|
||||
|
||||
// 升级到下一级
|
||||
this.level = nextLevel;
|
||||
this.maxEnergy = nextConfig.getMaxEnergy();
|
||||
this.currentEnergy = overflowEnergy; // 保留溢出能量
|
||||
this.currentEnergy = preservedEnergy; // 完全保留当前能量
|
||||
this.status = RocketStatusEnum.CHARGING;
|
||||
|
||||
// 清空贡献者(新一轮)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user