timers: Check stamina effect using varbits (#15014)

This commit is contained in:
superiorser9
2022-06-02 23:44:54 +01:00
committed by GitHub
parent 8116098792
commit 8aaaa320d3
3 changed files with 62 additions and 79 deletions

View File

@@ -47,6 +47,21 @@ public final class Varbits
*/
public static final int RUN_SLOWED_DEPLETION_ACTIVE = 25;
/**
* Stamina effect timer
* Number of game ticks remaining on stamina effect in intervals of 10; for a value X there are 10 * X game ticks remaining.
* The stamina effect expires once this reaches 0.
*/
public static final int STAMINA_EFFECT = 24;
/**
* Ring of endurance effect timer, stamina duration extended from using the ring of endurance
* Number of game ticks remaining on ring of endurance effect in intervals of 10; for a value X there are 10 * X game ticks remaining.
* Unequipping the ring of endurance will cause this to change to 0.
* When this reaches 0, {@link #STAMINA_EFFECT} will begin counting down.
*/
public static final int RING_OF_ENDURANCE_EFFECT = 10385;
/**
* If scrollbar in resizable mode chat is on the left
*/