9 public override bool CanExtendBuild
19 public bool Defertilize
28 public override void OnSimulateHour(
VirtualDate date)
30 if (!this.owner.IsInstalled)
37 if (plantData ==
null)
39 plantData =
EClass._map.AddPlant(this.owner.pos,
null);
45 foreach (
Card card
in this.owner.pos.ListCards(
false))
47 if (card.trait is
TraitSeed && !card.isSale)
49 (card.trait as
TraitSeed).TrySprout(
true,
true,
null);
53 if (!this.owner.pos.HasObj)
55 EClass._map.SetObj(this.owner.pos.x,
this.owner.pos.z, 5, 1, 0);
57 else if (plantData ==
null)
59 if (this.owner.pos.growth ==
null)
63 this.owner.pos.growth.TryGrow(date);
65 else if (plantData.fert == 0 &&
this.owner.pos.growth !=
null)
67 this.owner.pos.growth.TryGrow(date);
69 plantData =
EClass._map.TryGetPlant(this.owner.Cell);
70 if (plantData !=
null)
77 this.owner.PlaySound(
"mutation", 1f,
true);
78 this.owner.PlayEffect(
"mutation",
true, 0f,
default(Vector3));