poison venom

Guide for poison venom

Poison/Venom System

Overview

Poison is a damage-over-time effect applied by certain weapons or monsters. It deals decreasing damage until cured or it expires.

Mechanics

  • Damage: Starts at a set value (e.g., 6 for strong poison).
  • Tick Rate: Damage applied every 30 ticks (18 seconds).
  • Decay: Damage decreases by 1 each application until it reaches 0.
  • Example: Poison starting at 6 deals: 6 → 5 → 4 → 3 → 2 → 1 → 0 (cured).

Venom (Future)

  • More potent poison variant.
  • Damage increases each tick instead of decreasing.
  • Requires Antivenom+ to cure.

Implementation Details

  • State: poison_damage, poison_tick_counter in Player struct.
  • Logic: GameState::run_tick_logic processes poison every tick.
  • Curing: Set poison_damage = 0 (antipoison effect).