Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
HomeResourceSkill.cs
Go to the documentation of this file.
2{
3 public int exp;
4
5 public int next;
6
7 public new int lastValue;
8
9 public override ResourceGroup Group => ResourceGroup.Skill;
10
11 public override float ExpRatio => (float)exp / (float)next;
12
13 public override void Refresh()
14 {
16 value = 1;
17 next = 100;
18 while (exp >= next)
19 {
20 exp -= next;
21 next *= 2;
22 value++;
23 }
24 _ = value;
25 _ = lastValue;
26 }
27
28 public int ApplyModifier(int a)
29 {
30 if (a == 0)
31 {
32 return a;
33 }
34 int num = 100 + value * 50;
35 a = a * num / 100;
36 return a;
37 }
38
39 public override void WriteNote(UINote n)
40 {
41 n.Clear();
42 n.AddHeader(base.Name);
43 n.AddText("vCurrent".lang() + value);
44 n.AddText("vExp".lang() + exp + "/" + next);
45 n.Build();
46 }
47}
int ApplyModifier(int a)
override void WriteNote(UINote n)
override void Refresh()
override ResourceGroup Group
override float ExpRatio
Definition: UINote.cs:6
void Clear()
Definition: UINote.cs:35
UIItem AddHeader(string text, Sprite sprite=null)
Definition: UINote.cs:79
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Build()
Definition: UINote.cs:49