7 public override bool CanPerform()
9 return this._act !=
null;
13 public int BuildAct(
Chara c)
16 int p = 110 - 110 * c.hp / c.MaxHP;
17 if (c.hp < c.MaxHP * 2 / 3)
19 foreach (
Thing thing
in c.things)
21 if (thing.IsIdentified)
23 Action healAction = thing.trait.GetHealAction(c);
24 if (healAction !=
null)
26 return this.ReturnAct(healAction, p);
36 public int ReturnAct(Action a,
int p)
38 this._act =
new DynamicAct(
"ActItem", delegate()
47 public override bool Perform()
49 return this._act.Perform(
Act.CC,
null,
null);