Elin Modding Docs Doc
Loading...
Searching...
No Matches
ActSummonGuard.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4
5// Token: 0x020001D4 RID: 468
6public class ActSummonGuard : Act
7{
8 // Token: 0x1700035D RID: 861
9 // (get) Token: 0x06000D4D RID: 3405 RVA: 0x00067B5D File Offset: 0x00065D5D
10 public override TargetType TargetType
11 {
12 get
13 {
14 return TargetType.Chara;
15 }
16 }
17
18 // Token: 0x06000D4E RID: 3406 RVA: 0x00067B64 File Offset: 0x00065D64
19 public override bool Perform()
20 {
21 List<Chara> list = (from c in EClass._map.charas
22 where c.trait is TraitGuard
23 select c).ToList<Chara>();
24 if (list.Count > 0)
25 {
26 Chara chara = list.RandomItem<Chara>();
27 Act.CC.Say("calledGuard", Act.CC, null, null);
28 chara.Teleport(Act.TC.pos.GetNearestPoint(false, false, true, false), false, false);
29 chara.PlaySound("teleport_guard", 1f, true);
30 chara.DoHostileAction(Act.TC, false);
31 Effect.Get("smoke").Play(chara.pos, 0f, null, null);
32 Effect.Get("smoke").Play(chara.pos, 0f, null, null);
33 }
34 return true;
35 }
36}
Definition Act.2.cs:7
Definition Chara.cs:12