Skip to content

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

Variable: WANTED ​

const WANTED: object

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

The numbers of the Wanted level.

Type Declaration ​

decayDelaySeconds ​

readonly decayDelaySeconds: 3 = 3

It cools once no officer has seen the player and no crime was reported for this long (s).

decayPerSecond ​

readonly decayPerSecond: 1 = 1

Heat lost per second while it cools.

gunfireRange ​

readonly gunfireRange: 15 = 15

Gunfire this near a person is shooting near people (m).

heat ​

readonly heat: object

Heat per crime.

heat.assault ​

readonly assault: 10 = 10

heat.carjack ​

readonly carjack: 12 = 12

heat.copAssault ​

readonly copAssault: 15 = 15

heat.copCar ​

readonly copCar: 6 = 6

heat.copKill ​

readonly copKill: 15 = 15

heat.explosion ​

readonly explosion: 15 = 15

heat.gunfire ​

readonly gunfire: 6 = 6

heat.kill ​

readonly kill: 10 = 10

heat.pick ​

readonly pick: 8 = 8

heat.property ​

readonly property: 2 = 2

heat.speeding ​

readonly speeding: 3 = 3

heat.trespass ​

readonly trespass: 10 = 10

heat.wreck ​

readonly wreck: 8 = 8

loseSeconds ​

readonly loseSeconds: readonly [0, 10, 15, 20]

Out of police sight this long at so many stars loses one (s), by stars.

maxHeat ​

readonly maxHeat: 60 = 60

The most Heat there is (four and five stars come later).

pullOutTicks ​

readonly pullOutTicks: 180 = 180

…and once they have sat this many ticks (3 s), an officer pulls them out of it; one who gets in and drives off gets away.

rateTicks ​

readonly rateTicks: 60 = 60

Gunfire, and shots at a police car, count once per player this often (ticks): a burst is one crime.

respraySeenSeconds ​

readonly respraySeenSeconds: 5 = 5

A respray clears nothing when an officer saw the player this recently (s): they saw the car go in.

sitCooling ​

readonly sitCooling: 3 = 3

Sitting on a bench unseen: the Heat cools this many times as fast, after a second's quiet, and a star goes in half the time.

sitDelaySeconds ​

readonly sitDelaySeconds: 1 = 1

sitStill ​

readonly sitStill: 1 = 1

A car slower than this (m/s), or a wreck, stands still: its driver sits in it…

speedingMin ​

readonly speedingMin: 15 = 15

…and never under this speed (m/s; 15 is 54 km/h).

speedingShare ​

readonly speedingShare: 1.5 = 1.5

Well over the road's limit: this many times it…

speedingTicks ​

readonly speedingTicks: 300 = 300

Speeding counts once per player this often (ticks): a stretch of road is one crime.

thresholds ​

readonly thresholds: readonly [10, 25, 45]

The Heat each star is reached at: one, two, three (GAME_DESIGN §12).

witnessRange ​

readonly witnessRange: 30 = 30

A witness this near a crime saw or heard it (m).