Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitChestPractice.cs
Go to the documentation of this file.
2{
3 public override int ChanceLock => 100;
4
5 public override void Prespawn(int lv)
6 {
7 }
8
9 public override void OnCreate(int lv)
10 {
11 base.OnCreate(lv);
12 owner.refVal = 0;
13 owner.LV = 1;
14 owner.c_lockLv = owner.LV;
15 }
16
17 public override void OnSimulateHour(VirtualDate date)
18 {
19 owner.turn++;
20 if (owner.turn < 2)
21 {
22 return;
23 }
24 owner.turn = 0;
25 if (owner.c_lockLv == 0)
26 {
27 owner.LV++;
28 }
29 else
30 {
31 owner.LV--;
32 if (owner.LV < 1)
33 {
34 owner.LV = 1;
35 }
36 }
37 owner.c_lockLv = owner.LV;
38 }
39}
int c_lockLv
Definition: Card.cs:924
int turn
Definition: Card.cs:61
int LV
Definition: Card.cs:370
override void OnCreate(int lv)
override int ChanceLock
override void Prespawn(int lv)
override void OnSimulateHour(VirtualDate date)
Card owner
Definition: Trait.cs:26