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()) if (plugin.isHandCripple())
{ {
int tick = plugin.getTimer(); int tick = plugin.getCrippleTimer();
NPC olmHand = plugin.getHand(); NPC olmHand = plugin.getHand();
final String tickStr = String.valueOf(tick); final String tickStr = String.valueOf(tick);
Point canvasPoint = olmHand.getCanvasTextLocation(graphics, tickStr, 50); Point canvasPoint = olmHand.getCanvasTextLocation(graphics, tickStr, 50);

View File

@@ -132,7 +132,7 @@ public class CoxPlugin extends Plugin
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
private Actor acidTarget; private Actor acidTarget;
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
private int timer = 45; private int crippleTimer = 45;
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
private int burnTicks = 41; private int burnTicks = 41;
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
@@ -172,7 +172,7 @@ public class CoxPlugin extends Plugin
Olm_TP.clear(); Olm_TP.clear();
prayAgainstOlm = null; prayAgainstOlm = null;
burnTarget.clear(); burnTarget.clear();
timer = 45; crippleTimer = 45;
burnTicks = 40; burnTicks = 40;
acidTicks = 25; acidTicks = 25;
teleportTicks = 10; teleportTicks = 10;
@@ -225,6 +225,7 @@ public class CoxPlugin extends Plugin
OlmPhase = 0; OlmPhase = 0;
runOlm = true; runOlm = true;
needOlm = true; needOlm = true;
crippleTimer = 45;
Olm_NextSpec = -1; Olm_NextSpec = -1;
break; break;
case "the great olm fires a sphere of aggression your way. your prayers have been sapped.": 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; prayAgainstOlm = PrayAgainst.RANGED;
lastPrayTime = System.currentTimeMillis(); lastPrayTime = System.currentTimeMillis();
break; 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) if (HandCripple)
{ {
timer--; crippleTimer--;
if (timer <= 0) if (crippleTimer <= 0)
{ {
HandCripple = false; HandCripple = false;
timer = 45; crippleTimer = 45;
} }
} }