five-on-it / packages/sim/src/hold-kinds
packages/sim/src/hold-kinds
The interactions done by holding the interaction key (GAME_DESIGN §7.2): picking a car's lock and working a device (devices.ts): planting a bomb, defusing one, hacking a laptop, cutting a fuse box's power or putting it back, repairing a generator or a car, working at a bench, cracking a safe; and the people's (captives.ts, drag.ts): restraining somebody held up, freeing somebody restrained, taking hold of a body to drag it (a tap of the key at a body searches it instead), hiding the body dragged in a dumpster. The character stands still at what it works while the key is held, the prompt fills a bar, and the work is done once the key has been held for its time (holds.ts); letting go, or anything nearer, starts it over. Kept apart from the system so the act byte (acts.ts) reads the table without importing it.