Skip to content

five-on-it / packages/ai/src/chaos / chaosSystem

Function: chaosSystem() ​

chaosSystem(ai, players): void

Defined in: packages/ai/src/chaos.ts:624

One tick of the chaos events (see the module documentation), after the police: the hires signed and the hires of the busted let go (crew-hire.ts), the crowd's rush for Cash, the riots, the bridges, the billboards. players maps the clients to their characters.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

Returns ​

void