five-on-it / packages/ai/src/wanted / WANTED
Variable: WANTED
constWANTED:object
Defined in: packages/ai/src/wanted.ts:54
The numbers of the Wanted level.
Type Declaration
decayDelaySeconds
readonlydecayDelaySeconds:3=3
It cools once no officer has seen the player and no crime was reported for this long (s).
decayPerSecond
readonlydecayPerSecond:1=1
Heat lost per second while it cools.
gunfireRange
readonlygunfireRange:15=15
Gunfire this near a person is shooting near people (m).
heat
readonlyheat:object
Heat per crime.
heat.assault
readonlyassault:10=10
heat.carjack
readonlycarjack:12=12
heat.copAssault
readonlycopAssault:15=15
heat.copCar
readonlycopCar:6=6
heat.copKill
readonlycopKill:15=15
heat.explosion
readonlyexplosion:15=15
heat.gunfire
readonlygunfire:6=6
heat.kill
readonlykill:10=10
heat.pick
readonlypick:8=8
heat.property
readonlyproperty:2=2
heat.speeding
readonlyspeeding:3=3
heat.trespass
readonlytrespass:10=10
heat.wreck
readonlywreck:8=8
loseSeconds
readonlyloseSeconds: readonly [0,10,15,20]
Out of police sight this long at so many stars loses one (s), by stars.
maxHeat
readonlymaxHeat:60=60
The most Heat there is (four and five stars come later).
pullOutTicks
readonlypullOutTicks: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
readonlyrateTicks:60=60
Gunfire, and shots at a police car, count once per player this often (ticks): a burst is one crime.
respraySeenSeconds
readonlyrespraySeenSeconds:5=5
A respray clears nothing when an officer saw the player this recently (s): they saw the car go in.
sitCooling
readonlysitCooling: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
readonlysitDelaySeconds:1=1
sitStill
readonlysitStill:1=1
A car slower than this (m/s), or a wreck, stands still: its driver sits in it…
speedingMin
readonlyspeedingMin:15=15
…and never under this speed (m/s; 15 is 54 km/h).
speedingShare
readonlyspeedingShare:1.5=1.5
Well over the road's limit: this many times it…
speedingTicks
readonlyspeedingTicks:300=300
Speeding counts once per player this often (ticks): a stretch of road is one crime.
thresholds
readonlythresholds: readonly [10,25,45]
The Heat each star is reached at: one, two, three (GAME_DESIGN §12).
witnessRange
readonlywitnessRange:30=30
A witness this near a crime saw or heard it (m).