Elin Modding Docs Doc
Loading...
Searching...
No Matches
GoalNeeds.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x0200023A RID: 570
5public class GoalNeeds : Goal
6{
7 // Token: 0x06000FE8 RID: 4072 RVA: 0x00072295 File Offset: 0x00070495
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 int num;
11 for (int i = 0; i < 5; i = num + 1)
12 {
13 switch (EClass.rnd(5))
14 {
15 case 0:
16 if (this.owner.hunger.value > 70)
17 {
18 yield return base.Do(new AI_Eat(), null);
19 }
20 break;
21 case 3:
22 if (this.owner.bladder.value < 40)
23 {
24 yield return base.Do(new AI_Bladder(), null);
25 }
26 break;
27 }
28 yield return AIAct.Status.Running;
29 num = i;
30 }
31 yield break;
32 }
33}
Definition AIAct.cs:7
Definition Goal.cs:5