Skip to content

five-on-it / packages/ai/src/police-extraction / safehouseSystem

Function: safehouseSystem() ​

safehouseSystem(ai, players): void

Defined in: packages/ai/src/police-extraction.ts:201

One tick of the safe houses (see the module documentation): rentals run out, a player on foot at a door with the rent rents it, a player inside is noted, and from six stars a raid is called on one inside long enough: the police are told the door.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

Returns ​

void