8 public override IEnumerable<
AIAct.Status> Run()
10 if (this.dest.ExistsOnMap)
12 yield
return base.DoGoto(this.dest.pos, 1,
false,
null);
14 if (!this.dest.ExistsOnMap)
16 yield
return base.Success(
null);
18 if (
EClass._zone.TryAddThingInSharedContainer(
this.dest,
null,
true,
false,
null,
true))
20 this.owner.Say(
"haul", this.owner, this.dest,
null,
null);
21 if (this.dest.id ==
"731")
23 this.owner.Talk(
"clean",
null,
null,
false);
27 this.owner.Talk(
"haul",
null,
null,
false);
30 yield
return base.Success(
null);
35 public static Thing GetThingToClean(
Chara c =
null)
40 if (thing.placeState == PlaceState.roaming && !thing.isMasked && (thing.id ==
"731" || thing.id ==
"_egg" || thing.id ==
"egg_fertilized" || thing.id ==
"milk"))
55 int num2 = c.pos.Distance(thing2.pos);
56 if (num2 < num &&
EClass._zone.TryAddThingInSharedContainer(thing2,
null,
false,
false,
null,
true))
67 if (
EClass._zone.TryAddThingInSharedContainer(thing3,
null,
false,
false,
null,
true))
79 if (thingToClean !=
null)
93 public static List<Thing> _list =
new List<Thing>();