5 public override bool IsTool =>
true;
25 owner.c_idRefName = text;
57 if ((thing.
id.ToLower().Contains(
term.ToLower()) || thing.
Name.ToLower().Contains(
term.ToLower())) && num2 < num)
70 EClass.
pc.
PlaySound(
"detect_" + ((num <= 1) ?
"detected" : ((num < 5) ?
"near" : ((num < 15) ?
"medium" : ((num < 30) ?
"far" : ((num < 50) ?
"veryFar" :
"superFar"))))));
71 interval = ((num <= 1) ? 1 : ((num < 5) ? 2 : ((num < 15) ? 4 : ((num < 30) ? 7 : 10))));
74 WidgetMainText.ignoreStack =
true;
76 WidgetMainText.ignoreStack =
false;
82 public override void SetName(ref
string s)
86 s =
"_detect".lang(s,
term);
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void PlayAnime(AnimeID id, bool force=false)
static Dialog InputName(string langDetail, string text, Action< bool, string > onClose, InputType inputType=InputType.Default)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
override void OnTickHeld()
override bool OnUse(Chara c)
override void TrySetHeldAct(ActPlan p)
override void SetName(ref string s)