coxhelper: add olm cripple chat msg for timer to work (#770)

This commit is contained in:
OnlyHereToPlayOsrs
2019-06-27 21:16:42 +02:00
committed by Ganom
parent 996774955b
commit e2af78279d
2 changed files with 9 additions and 6 deletions

View File

@@ -206,7 +206,7 @@ public class CoxOverlay extends Overlay
if (plugin.isHandCripple())
{
int tick = plugin.getTimer();
int tick = plugin.getCrippleTimer();
NPC olmHand = plugin.getHand();
final String tickStr = String.valueOf(tick);
Point canvasPoint = olmHand.getCanvasTextLocation(graphics, tickStr, 50);

View File

@@ -132,7 +132,7 @@ public class CoxPlugin extends Plugin
@Getter(AccessLevel.PACKAGE)
private Actor acidTarget;
@Getter(AccessLevel.PACKAGE)
private int timer = 45;
private int crippleTimer = 45;
@Getter(AccessLevel.PACKAGE)
private int burnTicks = 41;
@Getter(AccessLevel.PACKAGE)
@@ -172,7 +172,7 @@ public class CoxPlugin extends Plugin
Olm_TP.clear();
prayAgainstOlm = null;
burnTarget.clear();
timer = 45;
crippleTimer = 45;
burnTicks = 40;
acidTicks = 25;
teleportTicks = 10;
@@ -225,6 +225,7 @@ public class CoxPlugin extends Plugin
OlmPhase = 0;
runOlm = true;
needOlm = true;
crippleTimer = 45;
Olm_NextSpec = -1;
break;
case "the great olm fires a sphere of aggression your way. your prayers have been sapped.":
@@ -251,6 +252,8 @@ public class CoxPlugin extends Plugin
prayAgainstOlm = PrayAgainst.RANGED;
lastPrayTime = System.currentTimeMillis();
break;
case "the great olm's left claw clenches to protect itself temporarily.":
HandCripple = true;
}
}
@@ -450,11 +453,11 @@ public class CoxPlugin extends Plugin
if (HandCripple)
{
timer--;
if (timer <= 0)
crippleTimer--;
if (crippleTimer <= 0)
{
HandCripple = false;
timer = 45;
crippleTimer = 45;
}
}