Elin Modding Docs Doc
Loading...
Searching...
No Matches
AI_ArmPillow.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000208 RID: 520
5public class AI_ArmPillow : AI_Massage
6{
7 // Token: 0x06000EDB RID: 3803 RVA: 0x0006E2B6 File Offset: 0x0006C4B6
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 this.target.Say("armpillow_start", this.target, this.owner, null, null);
11 this.isFail = (() => !this.target.IsAliveInCurrentZone || this.owner.Dist(this.target) > 3);
12 int i = 0;
13 while (this.target.HasCondition<ConSleep>())
14 {
15 yield return base.DoGoto(this.target.pos, 1, false, null);
16 this.owner.LookAt(this.target);
17 if (i % 30 == 20)
18 {
19 this.owner.Talk("goodBoy", null, null, false);
20 }
21 int num = i;
22 i = num + 1;
23 }
24 this.target.Say("armpillow_end", this.target, this.owner, null, null);
25 base.Finish(this.owner, this.target, 50);
26 yield break;
27 }
28}
Definition AIAct.cs:7