Skip to content

five-on-it / packages/ai/src/stealth / stealthView

Function: stealthView() ​

stealthView(ai, client): object

Defined in: packages/ai/src/stealth.ts:257

A player's stealth as the HUD shows it: seen or hidden, and the room's alert.

Parameters ​

ai ​

AiWorld

client ​

number

Returns ​

object

alert ​

alert: "search" | "normal" | "alert" | "caution" | "suspicious"

visibility ​

visibility: "seen" | "hidden"