8 public override bool CanPressRepeat
18 public override CursorInfo CursorIcon
22 return CursorSystem.Wait;
27 public override bool Perform()
29 if (!
Act.CC.IsPCParty)
41 public static bool SearchMedal(
Chara c,
Point p)
47 if (p.detail ==
null || !c.CanSeeSimple(p))
51 foreach (
Thing thing
in p.detail.things)
53 if (thing.isHidden && thing.id ==
"medal")
55 thing.SetHidden(
false);
56 c.PlaySound(
"medal", 1f,
true);
57 Msg.Say(
"spotMedal", c, thing,
null,
null);
65 public static void Search(
Chara c,
bool manual =
false)
71 int num = 2 + c.Evalue(402);
72 EClass._map.ForeachSphere(c.pos.x, c.pos.z, (
float)num, delegate(
Point p)
74 if (p.detail ==
null || !c.CanSeeSimple(p))
78 foreach (
Thing thing
in p.detail.things)
82 int num2 =
EClass.pc.Dist(p);
83 if (thing.id ==
"medal")
91 Msg.Say(
"spotMedalNear");
97 if (
EClass.rnd(c.Evalue(210) * 15 + 20 + c.PER) * (manual ? 2 : 1) <=
EClass.rnd(
EClass._zone.DangerLv * 8 + 60))
101 c.ModExp(210,
EClass._zone.DangerLv * 3 / 2 + 100);
104 thing.SetHidden(
false);
105 if (thing.id ==
"medal")
107 c.PlaySound(
"medal", 1f,
true);
108 Msg.Say(
"spotMedal", c, thing,
null,
null);
114 c.PlaySound(
"spot_trap", 1f,
true);
115 EClass.player.haltMove =
true;
119 c.PlaySound(
"spot", 1f,
true);
121 Msg.Say(
"spotHidden", c, thing,
null,
null);