Elin Modding Docs Doc
Loading...
Searching...
No Matches
AI_Equip.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x020001FC RID: 508
5public class AI_Equip : AIAct
6{
7 // Token: 0x06000E84 RID: 3716 RVA: 0x0006D47C File Offset: 0x0006B67C
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 if (this.target.ExistsOnMap)
11 {
12 yield return base.DoGoto(this.target, null);
13 }
14 if (this.target.ExistsOnMap)
15 {
16 this.owner.Pick(this.target, true, true);
17 }
18 if (this.target.parent != this.owner)
19 {
20 yield return this.Cancel();
21 }
22 this.owner.body.Equip(this.target, null, true);
23 yield break;
24 }
25
26 // Token: 0x04000D54 RID: 3412
27 public Thing target;
28}
Definition AIAct.cs:7
Definition Thing.cs:10