14 return RefZone.Get(this.uidZone);
19 public override void OnAdvanceHour()
21 if (this.owner.currentZone ==
EClass.game.activeZone)
25 if (this.uidZone == 0)
27 if (this.GetDestZone() ==
null)
32 this.uidZone = this.GetDestZone().uid;
35 Debug.Log(
string.Concat(
new string[]
41 (
this !=
null) ? this.ToString() :
null
45 if (this.owner.currentZone ==
this.destZone)
48 if (this.hours > 64 &&
EClass.rnd(48) == 0)
57 if (this.hours > 6 &&
EClass.rnd(4) == 0 &&
this.destZone !=
EClass.game.activeZone)
61 Debug.Log(this.owner.Name +
" reached " +
this.destZone.Name);
63 this.owner.MoveZone(this.destZone,
ZoneTransition.EnterState.RandomVisit);
69 public virtual void OnStay()
74 public virtual void OnTravel()
79 public virtual Zone GetDestZone()
81 return this.owner.homeZone;