Elin Decompiled Documentation EA 23.306 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 }, t);
19 }
20 });
21 }
22}
Point pos
Definition: ActPlan.cs:152
bool isMasked
Definition: Card.cs:593
int encLV
Definition: Card.cs:329
bool isHidden
Definition: Card.cs:533
SourceCategory.Row category
Definition: Card.cs:2089
List< Thing > Things
Definition: Point.cs:338
Definition: Thing.cs:8
override void TrySetHeldAct(ActPlan p)