发送处理
This commit is contained in:
parent
2e9ec14176
commit
66e27e0429
@ -153,8 +153,7 @@ public class RocketStatus {
|
|||||||
|
|
||||||
// 从最高等级开始查找,找到能量满足发射条件的最高等级
|
// 从最高等级开始查找,找到能量满足发射条件的最高等级
|
||||||
for (RocketConfig config : configs) {
|
for (RocketConfig config : configs) {
|
||||||
if (config.getLevel() > this.level.getLevel()
|
if (currentEnergy >= config.getMaxEnergy()) {
|
||||||
&& currentEnergy >= config.getMaxEnergy()) {
|
|
||||||
return RocketLevel.of(config.getLevel());
|
return RocketLevel.of(config.getLevel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user