8 public override bool CanBeDestroyed
18 public override bool IsTool
22 return !this.owner.isOn;
28 public override bool UseAltTiles
32 return this.owner.isOn;
37 public static bool CanTagSale(
Card t,
bool insideContainer =
false)
45 Chara chara = t.Chara;
50 if (!chara.IsPCFaction || chara.IsPCParty)
57 if (!insideContainer && !t.IsInstalled)
61 if (!t.trait.CanBeHeld || !t.trait.CanBeDestroyed || !t.trait.CanBeShipped || t.isMasked || t.trait is
TraitSpot)
66 return t.GetPrice(CurrencyType.Money,
true, PriceType.PlayerShop,
null) != 0;
70 public override void TrySetHeldAct(
ActPlan p)
72 if (!
EClass._zone.IsPCFaction ||
this.owner.isOn)
76 p.pos.ListCards(
false).ForEach(delegate(
Card t)
80 p.TrySetAct(
"actRemove", delegate()
85 }, t,
null, 1,
false,
true,
false);
89 p.TrySetAct(
"actRemoveSalesTag".lang(t.Name,
null,
null,
null,
null), delegate()
101 int price = t.GetPrice(CurrencyType.Money,
true, PriceType.PlayerShop,
null);
102 p.TrySetAct(
"actSalesTag".lang(Lang._currency(price,
"money"), t.Name,
null,
null,
null), delegate()
112 public override bool CanStackTo(
Thing to)