Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitToolWaterCan.cs
Go to the documentation of this file.
2{
3 public int MaxCharge => owner.material.hardness / 5 + 4;
4
5 public override bool HasCharges => true;
6
7 public override void TrySetHeldAct(ActPlan p)
8 {
9 if (!p.TrySetAct(new TaskWater
10 {
11 dest = p.pos
12 }, owner) && !p.TrySetAct(new ActDrawWater
13 {
14 waterCan = this
15 }, owner))
16 {
18 {
19 waterCan = this
20 }, owner);
21 }
22 }
23}
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:344
override bool HasCharges
override void TrySetHeldAct(ActPlan p)
Card owner
Definition: Trait.cs:26