Elin Modding Docs Doc
Loading...
Searching...
No Matches
GoalIdle.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000230 RID: 560
5public class GoalIdle : Goal
6{
7 // Token: 0x06000FBD RID: 4029 RVA: 0x00071B4C File Offset: 0x0006FD4C
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 if (EClass.rnd(EClass.debug.enable ? 1 : 12) == 0 && !this.owner.c_isPrayed)
11 {
12 TraitAltar altar = AI_Pray.GetAltar(this.owner);
13 this.owner.c_isPrayed = true;
14 if (altar != null)
15 {
16 yield return base.Do(new AI_Pray
17 {
18 altar = altar
19 }, null);
20 }
21 }
22 yield return base.DoIdle(3);
23 yield break;
24 }
25}
Definition AIAct.cs:7
Definition Goal.cs:5