cyberpunk mmo roguelike built on atproto protokill.sh

feat(combat): draw, holster and disarm weapons #520

targeting main from hermitian/draw-holster
Merged opened by hermitian-takouba.test.pds.did.bot
targeting main from hermitian/draw-holster

Adds draw and holster: weapons start stowed, Draw and Holster are plain PlayerActions with their turns in weapon data, and a free-draw weapon (the new hidden blade) costs nothing. Fire and melee with nothing drawn are refused at no turn cost except a free draw, which comes out with the attack. A drawn weapon feeds notice through every observer who sees it, guards draw when they go hostile, and a body with nothing drawn cannot be disarmed.

Bound to [ (draw), ' (holster) and , (disarm); the frontend handles them before the controls-overlay and window-mode keys, and tests drive the real key path. Switching weapons pays the holster plus the ready cost as extra turns. Draw and Holster are self verbs on the runner's own cell, so they need no target. The Fire menu gives the real reason for a missing ranged weapon, a free draw, or a stowed weapon. The Lift/Dupe guard gate reads the kind's core:is-guard tag.

The armoury weapons (shotgun, rifle, taser, stun baton, sword) follow the same rules: the new handling default puts them away in one turn, a switch pays both costs, and guards draw their less-lethal pools before striking.

Rebased over the armoury and net-rename changes: CI, the wasm tests and the release mouse smoke (which presses the real draw keys) all pass.

Holstered: holstered Drawn: drawn

Commits 2

Merge main into hermitian/draw-holster (merge queue)
feat(combat): draw, holster and disarm weapons
Sign up or Sign in to add to the discussion.