Readd the powerboost for players and the proper maximum power per faction calculation.

This commit is contained in:
Olof Larsson
2013-04-25 07:53:21 +02:00
parent 8382d39409
commit 8070cc5579
4 changed files with 94 additions and 18 deletions

View File

@ -25,13 +25,13 @@ public class PowerMixinDefault implements PowerMixin
@Override
public double getMax(UPlayer uplayer)
{
return UConf.get(uplayer).powerMax;
return UConf.get(uplayer).powerMax + uplayer.getPowerBoost();
}
@Override
public double getMin(UPlayer uplayer)
{
return UConf.get(uplayer).powerMin;
return UConf.get(uplayer).powerMin + uplayer.getPowerBoost();
}
@Override