1using System.Collections.Generic;
9 public override string GetText(
string str =
"")
13 return base.GetText(str);
15 return "TaskWaterFire".lang();
32 public override IEnumerable<Status>
Run()
36 while (list.Count != 0)
51 yield
return DoGoto(p, 1, ignoreConnection:
false, delegate
70 p.cell.isWatered =
true;
77 p.
ModFire(-50, extinguish:
true);
113 return p.growth !=
null;
118 bool num =
waterCan !=
null && waterCan.owner.c_charges > 0;
128 List<Point> list =
new List<Point>();
Status DoGoto(Point pos, int dist=0, bool ignoreConnection=false, Func< Status > _onChildFail=null)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void ModCharge(int a, bool destroy=false)
void ModExp(string alias, int a)
void Say(string lang, string ref1=null, string ref2=null)
void ForeachPoint(Action< Point > action)
void SetLiquid(int x, int z, CellEffect effect=null)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Point Set(int _x, int _z)
void ModFire(int value, bool extinguish=false)
static bool ShouldWater(Point p)
TraitToolWaterCan waterCan
override IEnumerable< Status > Run()
override string GetText(string str="")
bool IsWaterCanValid(bool msg=true)
override bool CanManualCancel()
override bool CanPerform()
List< Point > ListPoints()