This commit is contained in:
NewGarbo 2015-11-27 04:23:02 +00:00
parent 5744178286
commit 6119500b68

View File

@ -23,6 +23,7 @@ public class MagneticMaul extends LegendaryItem
public static final double PULL_RANGE = 10d; public static final double PULL_RANGE = 10d;
private double _power; private double _power;
private double _heat;
public MagneticMaul() public MagneticMaul()
{ {
@ -49,10 +50,15 @@ public class MagneticMaul extends LegendaryItem
} }
else else
{ {
addPower(0.65); addPower(Math.min(0, 0.65 - (_heat / 150)));
if (_heat > 0)
{
_heat--;
}
} }
UtilTextBottom.displayProgress(UtilMath.clamp(_power, .0, 80.) / 60., wielder); UtilTextBottom.displayProgress(_power / 80., wielder);
} }
@ -97,8 +103,6 @@ public class MagneticMaul extends LegendaryItem
} }
} }
// Do Particles // Do Particles
for (int i=0 ; i<6 ; i++) for (int i=0 ; i<6 ; i++)
{ {
@ -119,7 +123,8 @@ public class MagneticMaul extends LegendaryItem
1, 0, ViewDist.LONG, UtilServer.getPlayers()); 1, 0, ViewDist.LONG, UtilServer.getPlayers());
} }
removePower(1.5); removePower(1.75);
_heat++;
} }
private void addPower(double power) private void addPower(double power)
@ -134,6 +139,6 @@ public class MagneticMaul extends LegendaryItem
private boolean canPull() private boolean canPull()
{ {
return _power >= 20; return _power >= 10 && _heat < 70;
} }
} }