Elin Modding Docs Doc
Loading...
Searching...
No Matches
AI_Massage.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5// Token: 0x02000207 RID: 519
6public class AI_Massage : AIAct
7{
8 // Token: 0x170003CC RID: 972
9 // (get) Token: 0x06000ED3 RID: 3795 RVA: 0x0006E1CF File Offset: 0x0006C3CF
10 public override bool PushChara
11 {
12 get
13 {
14 return false;
15 }
16 }
17
18 // Token: 0x170003CD RID: 973
19 // (get) Token: 0x06000ED4 RID: 3796 RVA: 0x0006E1D2 File Offset: 0x0006C3D2
20 public override bool IsAutoTurn
21 {
22 get
23 {
24 return true;
25 }
26 }
27
28 // Token: 0x170003CE RID: 974
29 // (get) Token: 0x06000ED5 RID: 3797 RVA: 0x0006E1D5 File Offset: 0x0006C3D5
30 public override TargetType TargetType
31 {
32 get
33 {
34 return TargetType.Chara;
35 }
36 }
37
38 // Token: 0x06000ED6 RID: 3798 RVA: 0x0006E1DC File Offset: 0x0006C3DC
39 public override IEnumerable<AIAct.Status> Run()
40 {
41 this.target.Say("massage_start", this.target, this.owner, null, null);
42 this.isFail = (() => !this.target.IsAliveInCurrentZone || this.owner.Dist(this.target) > 3);
43 int num;
44 for (int i = 0; i < 30; i = num + 1)
45 {
46 this.target.AddCondition<ConWait>(30, true);
47 yield return base.DoGoto(this.target.pos, 1, false, null);
48 this.owner.LookAt(this.target);
49 this.target.LookAt(this.owner);
50 if (i % 3 == 0)
51 {
52 this.target.renderer.PlayAnime(AnimeID.Attack, this.owner);
53 this.owner.renderer.PlayAnime(AnimeID.Shiver, default(Vector3), false);
54 if (EClass.rnd(5) == 0)
55 {
56 this.target.Talk("goodBoy", null, null, false);
57 }
58 }
59 num = i;
60 }
61 this.target.Say("massage_end", this.target, null, null);
62 this.Finish(this.target, this.owner, 20);
63 yield break;
64 }
65
66 // Token: 0x06000ED7 RID: 3799 RVA: 0x0006E1EC File Offset: 0x0006C3EC
67 public void Finish(Chara cc, Chara tc, int stamina)
68 {
69 cc.Talk("ticket_finish", null, null, false);
70 cc.ShowEmo(Emo.love, 0f, false);
71 tc.ShowEmo(Emo.love, 0f, false);
72 tc.PlaySound("heal", 1f, true);
73 tc.PlayEffect("heal_stamina", true, 0f, default(Vector3));
74 tc.stamina.Mod(tc.stamina.max * stamina / 100);
75 tc.Say("feelgood", tc, null, null);
76 }
77
78 // Token: 0x06000ED8 RID: 3800 RVA: 0x0006E277 File Offset: 0x0006C477
79 public override AIAct.Status Cancel()
80 {
81 Debug.Log("Canceled massage");
82 return base.Cancel();
83 }
84
85 // Token: 0x04000D64 RID: 3428
86 public Chara target;
87}
Definition AIAct.cs:7
Definition Chara.cs:12