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) {
|
if (targetPlayer == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
targetPower += targetPlayer.getPowerBoost();
|
||||||
targetPlayer.setPowerBoost(targetPower);
|
targetPlayer.setPowerBoost(targetPower);
|
||||||
target = TL.COMMAND_POWERBOOST_PLAYER.format(targetPlayer.getName());
|
target = TL.COMMAND_POWERBOOST_PLAYER.format(targetPlayer.getName());
|
||||||
} else {
|
} else {
|
||||||
@ -57,6 +59,8 @@ public class CmdPowerBoost extends FCommand {
|
|||||||
if (targetFaction == null) {
|
if (targetFaction == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
targetPower += targetFaction.getPowerBoost();
|
||||||
targetFaction.setPowerBoost(targetPower);
|
targetFaction.setPowerBoost(targetPower);
|
||||||
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
|
target = TL.COMMAND_POWERBOOST_FACTION.format(targetFaction.getTag());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user