Elin Decompiled Documentation EA 23.179 Nightly
Loading...
Searching...
No Matches
TraitToolHammerStrip.cs
Go to the documentation of this file.
2{
3 public override bool IsTool => true;
4
5 public override void TrySetHeldAct(ActPlan p)
6 {
7 p.pos.Things.ForEach(delegate(Thing t)
8 {
9 if (!t.isMasked && !t.isHidden && t.category.tag.Contains("enc") && t.encLV > 0)
10 {
11 p.TrySetAct("actHammerFurniture".lang(t.Name), delegate
12 {
13 Msg.Say("upgrade", t, owner.GetName(NameStyle.Full, 1));
14 SE.Play("build_area");
15 t.PlayEffect("buff");
16 t.SetEncLv(0);
17 return false;
18 });
19 }
20 });
21 }
22}
Point pos
Definition: ActPlan.cs:150
bool isMasked
Definition: Card.cs:576
int encLV
Definition: Card.cs:312
bool isHidden
Definition: Card.cs:516
SourceCategory.Row category
Definition: Card.cs:1999
List< Thing > Things
Definition: Point.cs:326
Definition: Thing.cs:8
override void TrySetHeldAct(ActPlan p)