Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
AttbMain.cs
Go to the documentation of this file.
1public class AttbMain : Element
2{
3 public override bool CanGainExp => true;
4
5 public override int DisplayValue
6 {
7 get
8 {
9 if (id != 79 || owner.Chara == null)
10 {
11 return base.DisplayValue;
12 }
13 return owner.Chara.Speed;
14 }
15 }
16
17 public override int MinPotential => 80;
18
19 public override bool CanLink(ElementContainer owner)
20 {
21 return !base.IsGlobalElement;
22 }
23
24 public override void OnChangeValue()
25 {
26 Chara chara = owner.Chara;
27 switch (id)
28 {
29 case 70:
30 case 71:
31 chara?.SetDirtyWeight();
32 break;
33 case 79:
34 chara?.SetDirtySpeed();
35 break;
36 }
37 }
38}
override bool CanLink(ElementContainer owner)
Definition: AttbMain.cs:19
override void OnChangeValue()
Definition: AttbMain.cs:24
override int DisplayValue
Definition: AttbMain.cs:6
override int MinPotential
Definition: AttbMain.cs:17
override bool CanGainExp
Definition: AttbMain.cs:3
void SetDirtyWeight()
Definition: Card.cs:2414
Definition: Chara.cs:10
void SetDirtySpeed()
Definition: Chara.cs:1605
int Speed
Definition: Chara.cs:906
virtual Chara Chara
ElementContainer owner
Definition: ELEMENT.cs:256