five-on-it / packages/ai/src/wanted / setStars
Function: setStars()
setStars(
w,stars,tick,at,maxStars?,heat?):void
Defined in: packages/ai/src/wanted.ts:469
Sets a player's stars outright (a mission's setWanted, the debug command), 0 to 10 and the room's maxStars at most: the Heat at their floor (or at heat, held between what holds those stars), the police told where the player is now (at), the clock of losing them started; zero clears the Wanted level.
Parameters
w
stars
number
tick
number
at
{ x: number; z: number; } | undefined
maxStars?
number = MAX_STARS
heat?
number
Returns
void