Elin Modding Docs Doc
Loading...
Searching...
No Matches
AI_GotoHearth.cs
1
using
System;
2
using
System.Collections.Generic;
3
4
// Token: 0x020001E7 RID: 487
5
public
class
AI_GotoHearth
:
AIAct
6
{
7
// Token: 0x06000E04 RID: 3588 RVA: 0x0006A933 File Offset: 0x00068B33
8
public
override
IEnumerable<
AIAct
.Status> Run()
9
{
10
Trait
random =
EClass
._map.Installed.traits.GetTraitSet<
TraitHearth
>().GetRandom();
11
Thing
card = (random !=
null
) ? random.owner.Thing :
null
;
12
yield
return
base.DoGoto(card,
null
);
13
this.owner.Talk(
"visitor_greet"
,
null
,
null
,
false
);
14
this.owner.visitorState = VisitorState.Idle;
15
yield
break
;
16
}
17
}
AI_GotoHearth
Definition
AI_GotoHearth.cs:6
AIAct
Definition
AIAct.cs:7
EClass
Definition
EClass.cs:7
Thing
Definition
Thing.cs:10
TraitHearth
Definition
TraitHearth.cs:5
Trait
Definition
Trait.cs:9
Elin
AI_GotoHearth.cs
Generated by
1.12.0