Powerboost now adds to the current powerboost instead of sets it. Adds #501
This will break existing functionality but that existing functionality is stupid.
This commit is contained in:
parent
518eba9e18
commit
05cbf4cf5d
@ -50,6 +50,8 @@ public class CmdPowerBoost extends FCommand {
|
||||
if (targetPlayer == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
targetPower += targetPlayer.getPowerBoost();
|
||||
targetPlayer.setPowerBoost(targetPower);
|
||||
target = TL.COMMAND_POWERBOOST_PLAYER.format(targetPlayer.getName());
|
||||
} else {
|
||||
@ -57,6 +59,8 @@ public class CmdPowerBoost extends FCommand {
|
||||
if (targetFaction == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
targetPower += targetFaction.getPowerBoost();
|
||||
targetFaction.setPowerBoost(targetPower);
|
||||
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user