1using System.Collections.Generic;
10 public override string GetText(
string str =
"")
14 return base.GetText(str);
16 return "TaskWaterFire".lang();
33 public override IEnumerable<Status>
Run()
37 while (list.Count != 0)
39 Debug.Log(list.Count);
62 yield
return Status.Running;
73 p.cell.isWatered =
true;
80 p.
ModFire(-50, extinguish:
true);
116 return p.growth !=
null;
121 bool num =
waterCan !=
null && waterCan.owner.c_charges > 0;
131 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()