Log inGet started
Package

Wrestler.component

Newest version

README.md

Wrestler

One monk in the ring: health, stamina, hype, state and every move. Sits on the Bicep/Flex roots; driven by PlayerControls or FriarAI through the same methods. Numbers come from game.rules. Owned by the wrestling slice.

  • Verbs: moveInput(x, z), punch(), kick(), grapple(), finisher(), setBlock(on), taunt(), pin(), mash(), breakPin(), celebrate(), defeat(), resetForMatch(), kickoutNeeded(), canAct().
  • Strikes resolve once at the end of startup against reach + 0.3 m (centre to centre). A blocked strike does BLOCK_DAMAGE_SCALE damage and earns the attacker 35% hype. A landed one stuns the victim (hit) for the move's stun.
  • Grapple connects on a standing target in reach, giving attacker slamming and victim thrown. The victim's root rises onto the attacker's shoulders (+1.95 m), holds, and is slammed down 1.15 m in front, landing at 78% of slam. Impact emits slam and knockdown; the victim is then down for KNOCKDOWN_TIME, getup for 0.7 s, then idle.
  • THE HOLY ROLLER (full hype, grab range) does the same with a two-turn spin and a head-first drop, followed by FINISHER_DOWN_TIME down. It empties hype.
  • Stamina drains with each attack and while blocking, then regenerates after STAMINA_REGEN_DELAY. At 0 the wrestler is tired until he recovers to 25: slow, unable to attack or block, and grapples on him deal the tired bonus.
  • Pin: pin() beside a downed opponent sets pinning/pinned and emits pinStart. mash() adds KICKOUT_PER_MASH, and the bar decays 0.12/s. While the MatchDirector counts (phase pin), it sees kickout >= kickoutNeeded(), emits kickout and calls breakPin(). With nobody counting, the wrestler kicks out himself.
  • Root transform: owned here, including the throw arc. The pose under Body belongs to the monks slice.