2013-04-23 17:01:43 +02:00
|
|
|
package com.massivecraft.factions.mixin;
|
|
|
|
|
2017-02-10 18:34:42 +01:00
|
|
|
import com.massivecraft.factions.entity.MConf;
|
2014-09-17 13:17:33 +02:00
|
|
|
import com.massivecraft.factions.entity.MPlayer;
|
2017-02-10 18:34:42 +01:00
|
|
|
import com.massivecraft.massivecore.mixin.Mixin;
|
2013-04-23 17:01:43 +02:00
|
|
|
|
2017-02-10 18:34:42 +01:00
|
|
|
public class PowerMixin extends Mixin
|
2013-04-23 17:01:43 +02:00
|
|
|
{
|
2017-02-10 18:34:42 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// INSTANCE & CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private static PowerMixin d = new PowerMixin();
|
|
|
|
private static PowerMixin i = d;
|
|
|
|
public static PowerMixin get() { return i; }
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// METHODS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public double getMaxUniversal(MPlayer mplayer)
|
|
|
|
{
|
|
|
|
return this.getMax(mplayer);
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getMax(MPlayer mplayer)
|
|
|
|
{
|
|
|
|
return MConf.get().powerMax + mplayer.getPowerBoost();
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getMin(MPlayer mplayer)
|
|
|
|
{
|
|
|
|
return MConf.get().powerMin;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getPerHour(MPlayer mplayer)
|
|
|
|
{
|
|
|
|
return MConf.get().powerPerHour;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double getPerDeath(MPlayer mplayer)
|
|
|
|
{
|
|
|
|
return MConf.get().powerPerDeath;
|
|
|
|
}
|
|
|
|
|
2013-04-23 17:01:43 +02:00
|
|
|
}
|