Skip to content

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

Function: coolDown() ​

coolDown(w, tick, sitting?): void

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

One tick of the Heat once the police have looked (w.seen is up to date): cooling toward the floor of its stars when nobody has seen the player nor heard of a crime for a while, and a star lost when that has lasted long enough for the stars held; faster while the player sits on a bench (sitting).

Parameters ​

w ​

Wanted

tick ​

number

sitting? ​

boolean = false

Returns ​

void