Class ConsumeTiming
java.lang.Object
privbot.mechanics.ConsumeTiming
Pure consume cooldown rules. The mode is explicitly selected by the caller for the server and strategy;
neither profile is inferred from a client or claimed to apply to another server.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Booleanready(ConsumeTiming.Mode mode, ConsumeTiming.Kind kind, int tick, Integer lastFood, Integer lastCombo, Integer lastPotion) Whether an action is off its cooldown.
-
Method Details
-
ready
public static Boolean ready(ConsumeTiming.Mode mode, ConsumeTiming.Kind kind, int tick, Integer lastFood, Integer lastCombo, Integer lastPotion) Whether an action is off its cooldown. Each last tick is the caller's known most recent accepted consume of that kind; a known absence may be represented by a sufficiently early tick. Null means that timer is unknown. These are dispatch guards, not proof that a previous consume landed. Use consumption observations separately. INDEPENDENT uses the flagship hybrid rules; ELORIN_DHAROK uses the measured Elorin ordering and delays.
-