Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
HomeResourceSkill Class Reference
Inheritance diagram for HomeResourceSkill:
BaseHomeResource EClass HomeResourceKarma HomeResourceReknown

Public Member Functions

override void Refresh ()
 
int ApplyModifier (int a)
 
override void WriteNote (UINote n)
 
- Public Member Functions inherited from BaseHomeResource
virtual T Create< T > (HomeResourceType _type, int _value)
 
virtual void Mod (int a, bool popText=true)
 
virtual void Refresh ()
 
void OnRefreshEffect ()
 
virtual void OnAdvanceHour ()
 
virtual void OnAdvanceDay ()
 
virtual void WriteNote (UINote n)
 

Public Attributes

int exp
 
int next
 
new int lastValue
 
- Public Attributes inherited from BaseHomeResource
HomeResourceType type
 
int value
 
int lastValue
 
FactionBranch branch
 

Properties

override ResourceGroup Group [get]
 
override float ExpRatio [get]
 
- Properties inherited from BaseHomeResource
SourceHomeResource.Row source [get]
 
virtual int Min [get]
 
virtual int Max [get]
 
bool IsCurrency [get]
 
bool IsRate [get]
 
bool IsSkill [get]
 
virtual bool IsAvailable [get]
 
virtual float ExpRatio [get]
 
virtual ResourceGroup Group [get]
 
string Name [get]
 
Sprite Sprite [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Types inherited from BaseHomeResource
enum  ResourceGroup { Currency , Skill , Rate , None }
 
- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file HomeResourceSkill.cs.

Member Function Documentation

◆ ApplyModifier()

int HomeResourceSkill.ApplyModifier ( int  a)
inline

Definition at line 28 of file HomeResourceSkill.cs.

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 }

References BaseHomeResource.value.

◆ Refresh()

override void HomeResourceSkill.Refresh ( )
inlinevirtual

Reimplemented from BaseHomeResource.

Definition at line 13 of file HomeResourceSkill.cs.

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 }

References exp, lastValue, next, and BaseHomeResource.value.

◆ WriteNote()

override void HomeResourceSkill.WriteNote ( UINote  n)
inlinevirtual

Reimplemented from BaseHomeResource.

Definition at line 39 of file HomeResourceSkill.cs.

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 }
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

References UINote.AddHeader(), UINote.AddText(), UINote.Build(), UINote.Clear(), exp, next, and BaseHomeResource.value.

Member Data Documentation

◆ exp

int HomeResourceSkill.exp

Definition at line 3 of file HomeResourceSkill.cs.

Referenced by Refresh(), and WriteNote().

◆ lastValue

new int HomeResourceSkill.lastValue

Definition at line 7 of file HomeResourceSkill.cs.

Referenced by Refresh().

◆ next

int HomeResourceSkill.next

Definition at line 5 of file HomeResourceSkill.cs.

Referenced by Refresh(), and WriteNote().

Property Documentation

◆ ExpRatio

override float HomeResourceSkill.ExpRatio
get

Definition at line 11 of file HomeResourceSkill.cs.

◆ Group

override ResourceGroup HomeResourceSkill.Group
get

Definition at line 9 of file HomeResourceSkill.cs.


The documentation for this class was generated from the following file: