Skip to content

five-on-it / packages/sim/src/devices / deviceWork

Function: deviceWork() ​

deviceWork(sim, eid, device): "needs" | DeviceWork | undefined

Defined in: packages/sim/src/devices.ts:323

What holding the interaction key at a device does for a character (interaction.ts): its work when the character carries what its lock asks for, needs (the prompt names the item) when it does not, nothing when there is no work to do there.

Parameters ​

sim ​

SimWorld

eid ​

number

device ​

number

Returns ​

"needs" | DeviceWork | undefined