Elin Decompiled Documentation EA 23.153 Nightly
Loading...
Searching...
No Matches
TraitToolWaterPot.cs
Go to the documentation of this file.
2{
3 public int MaxCharge => 20 + owner.material.hardness * 2;
4
5 public override bool HasCharges => true;
6
7 public override void OnCreate(int lv)
8 {
9 owner.Dye("void");
10 }
11
12 public override void SetName(ref string s)
13 {
14 if (owner.c_dyeMat != 0)
15 {
16 s = "_of".lang(owner.DyeMat.GetName(), s);
17 }
18 }
19
20 public override void TrySetHeldAct(ActPlan p)
21 {
23 {
24 waterPot = this
25 }, owner);
26 }
27}
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:345
SourceMaterial.Row DyeMat
Definition: Card.cs:1876
int c_dyeMat
Definition: Card.cs:1157
void Dye(string idMat)
Definition: Card.cs:5632
override bool HasCharges
override void OnCreate(int lv)
override void SetName(ref string s)
override void TrySetHeldAct(ActPlan p)
Card owner
Definition: Trait.cs:26