Elin Modding Docs Doc
Loading...
Searching...
No Matches
GlobalGoalAdv.cs
1using System;
2
3// Token: 0x02000228 RID: 552
5{
6 // Token: 0x06000F93 RID: 3987 RVA: 0x0006FE6C File Offset: 0x0006E06C
7 public override void OnAdvanceHour()
8 {
9 if (this.owner.isDead || this.owner.IsPCFaction || this.owner.currentZone == EClass._zone)
10 {
11 return;
12 }
13 if ((EClass.debug.enable && EClass.rnd(24) == 0) || (this.hours > 720 && EClass.rnd(720) == 0))
14 {
15 Zone randomTown = EClass.world.region.GetRandomTown();
16 if (randomTown != this.owner.currentZone)
17 {
18 this.owner.MoveZone(randomTown, ZoneTransition.EnterState.RandomVisit);
19 }
20 }
21 }
22}
Definition Zone.cs:14