Elin Decompiled Documentation EA 23.200 Stable
Loading...
Searching...
No Matches
ConBoost.cs
Go to the documentation of this file.
1public class ConBoost : BaseBuff
2{
3 public override void OnStart()
4 {
5 EClass.core.actionsNextFrame.Add(delegate
6 {
7 if (owner != null)
8 {
9 owner.Talk("awaken");
10 }
11 });
12 if (!owner.IsPCC)
13 {
15 }
16 owner.PlaySound("boost2");
17 }
18
19 public override void OnRemoved()
20 {
21 if (!owner.IsPCC)
22 {
24 }
25 }
26
28 {
29 return owner.id switch
30 {
31 "black_angel" => RendererReplacer.CreateFrom("black_angel", -1),
32 "adv_verna" => RendererReplacer.CreateFrom("adv_verna", 2),
33 "griffin" => RendererReplacer.CreateFrom("griffin", 1),
34 "isca" => RendererReplacer.CreateFrom("isca", 1),
35 _ => null,
36 };
37 }
38}
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5939
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
Definition: Card.cs:6489
override CardRenderer _CreateRenderer()
Definition: Chara.cs:6407
override bool IsPCC
Definition: Chara.cs:680
override void OnStart()
Definition: ConBoost.cs:3
override void OnRemoved()
Definition: ConBoost.cs:19
override RendererReplacer GetRendererReplacer()
Definition: ConBoost.cs:27
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
static RendererReplacer CreateFrom(string id, int shift=0)