Skip to content

five-on-it / packages/ai/src/wanted / crimesOf

Function: crimesOf() ​

crimesOf(sim, captives?): Crime[]

Defined in: packages/ai/src/wanted.ts:652

The crimes of the last step (see the module documentation), in the order of the events: one assault (and one killing) per victim, one wreck per car, one breakage per piece, car or camera, one per drone shot down. An officer taken down by a non-lethal weapon is a lesser crime than one shot (M7: copTakedown, half a kill's Heat); a captive hurt by the player who holds them while the negotiator talks (captives: each captive's captor's client) is an escalation (captiveHurt).

Parameters ​

sim ​

SimWorld

captives? ​

ReadonlyMap<number, number>

Returns ​

Crime[]