8 public override bool AlwaysShowTooltip
18 public override bool ShowNew
27 public override bool AllowDrop(
Thing t)
29 return t.blessedState >= BlessedState.Normal;
33 public InvOwnerEquip(
Card owner,
BodySlot slot,
Card container =
null, CurrencyType _currency = CurrencyType.None) : base(owner, container, _currency, PriceType.Default)
41 list.Add(
"actUnequip", 0, delegate()
43 if (this.IsFailByCurse(t))
47 if (
EClass.pc.things.IsFull(0))
49 Msg.Say(
"backpack_full");
53 EClass.pc.body.Unequip(t,
true);
54 EClass.Sound.Play(
"equip");
59 public override bool IsFailByCurse(
Thing t)
61 if (t !=
null && t.blessedState <= BlessedState.Cursed)
63 Msg.Say(
"unequipCursed", t,
null,
null,
null);
71 public override void OnWriteNote(
ButtonGrid button, UINote n)
73 if (button.card ==
null)
76 n.AddHeader(this.slot.name,
null);
77 n.AddText(
"noEQ".lang(), FontColor.DontChange);
78 if (this.slot.elementId == 35)
80 Thing.AddAttackEvaluation(n, base.Chara,
null);
84 base.OnWriteNote(button, n);