2013-04-23 17:01:43 +02:00
|
|
|
package com.massivecraft.factions.mixin;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.entity.UConf;
|
|
|
|
import com.massivecraft.factions.entity.UPlayer;
|
|
|
|
|
|
|
|
public class PowerMixinDefault implements PowerMixin
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// INSTANCE & CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private static PowerMixinDefault i = new PowerMixinDefault();
|
|
|
|
public static PowerMixinDefault get() { return i; }
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE: PowerMixin
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getMaxUniversal(UPlayer uplayer)
|
|
|
|
{
|
|
|
|
return this.getMax(uplayer);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getMax(UPlayer uplayer)
|
|
|
|
{
|
2013-04-25 07:53:21 +02:00
|
|
|
return UConf.get(uplayer).powerMax + uplayer.getPowerBoost();
|
2013-04-23 17:01:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getMin(UPlayer uplayer)
|
|
|
|
{
|
2013-04-26 17:54:06 +02:00
|
|
|
return UConf.get(uplayer).powerMin;
|
2013-04-23 17:01:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getPerHour(UPlayer uplayer)
|
|
|
|
{
|
|
|
|
return UConf.get(uplayer).powerPerHour;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public double getPerDeath(UPlayer uplayer)
|
|
|
|
{
|
|
|
|
return UConf.get(uplayer).powerPerDeath;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|