Elin Modding Docs Doc
Loading...
Searching...
No Matches
ConChampagne.cs
1using System;
2using Newtonsoft.Json;
3using UnityEngine;
4
5// Token: 0x020002CE RID: 718
6public class ConChampagne : BaseBuff
7{
8 // Token: 0x06001712 RID: 5906 RVA: 0x00097F44 File Offset: 0x00096144
9 public override void Tick()
10 {
11 this.count--;
12 if (this.count <= 0)
13 {
14 this.count += 15;
15 this.owner.Talk("champagne", null, null, false);
16 int p = Mathf.Max(EClass.curve(this.owner.CHA * 10, 400, 100, 75), 100);
17 foreach (Chara chara in EClass._map.charas)
18 {
19 if (chara != this.owner && chara.IsNeutralOrAbove() && this.owner.Dist(chara) <= 10)
20 {
21 chara.AddCondition<ConHero>(p, false);
22 chara.AddCondition<ConEuphoric>(p, false);
23 chara.AddCondition<ConSeeInvisible>(p, false);
24 }
25 }
26 }
27 base.Mod(-1, false);
28 }
29
30 // Token: 0x04001074 RID: 4212
31 [JsonProperty]
32 public int count;
33}
Definition Chara.cs:12