Maximum momentum stat set to 1 by default.
This commit is contained in:
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
@@ -50,7 +50,7 @@ public class FocusMaxMomentum extends AbstractEffect
|
|||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int count = (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
|
|
||||||
player.setCharges(count);
|
player.setCharges(count);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ public class FocusMomentum extends AbstractEffect
|
|||||||
|
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int currentCharges = player.getCharges();
|
final int currentCharges = player.getCharges();
|
||||||
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 0));
|
final int maxCharges = Math.min(_maxCharges, (int) effected.getStat().getValue(Stat.MAX_MOMENTUM, 1));
|
||||||
|
|
||||||
if (currentCharges >= maxCharges)
|
if (currentCharges >= maxCharges)
|
||||||
{
|
{
|
||||||
|
@@ -51,7 +51,7 @@ public class GetMomentum extends AbstractEffect
|
|||||||
if (effected.isPlayer())
|
if (effected.isPlayer())
|
||||||
{
|
{
|
||||||
final PlayerInstance player = effected.getActingPlayer();
|
final PlayerInstance player = effected.getActingPlayer();
|
||||||
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 0);
|
final int maxCharge = (int) player.getStat().getValue(Stat.MAX_MOMENTUM, 1);
|
||||||
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
final int newCharge = Math.min(player.getCharges() + 1, maxCharge);
|
||||||
|
|
||||||
player.setCharges(newCharge);
|
player.setCharges(newCharge);
|
||||||
|
Reference in New Issue
Block a user