Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CharaUpgrade Class Reference
Inheritance diagram for CharaUpgrade:
EClass

Classes

class  Item
 

Public Member Functions

void Reset (Chara c)
 

Public Attributes

List< Itemitems = new List<Item>()
 
int count
 
int spent
 
int reset
 
bool halt
 

Additional Inherited Members

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

Detailed Description

Definition at line 4 of file CharaUpgrade.cs.

Member Function Documentation

◆ Reset()

void CharaUpgrade.Reset ( Chara  c)
inline

Definition at line 75 of file CharaUpgrade.cs.

76 {
77 foreach (Item item in items)
78 {
79 Element element = c.elements.GetElement(item.idEle);
80 if (element != null)
81 {
82 if (element is Feat)
83 {
84 c.SetFeat(item.idEle, 0);
85 }
86 else
87 {
88 c.elements.ModBase(item.idEle, -item.value);
89 }
90 }
91 }
92 items.Clear();
93 c.feat += spent;
94 spent = 0;
95 count = 0;
96 c.Refresh();
97 reset++;
98 }
ElementContainerCard elements
Definition: Card.cs:37
List< Item > items
Definition: CharaUpgrade.cs:61
void Refresh(bool calledRecursive=false)
Definition: Chara.cs:1504
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:8964
Element ModBase(int ele, int v)
Element GetElement(string alias)
Definition: FEAT.cs:249

References count, item, items, reset, and spent.

Member Data Documentation

◆ count

int CharaUpgrade.count

Definition at line 64 of file CharaUpgrade.cs.

Referenced by Reset().

◆ halt

bool CharaUpgrade.halt

Definition at line 73 of file CharaUpgrade.cs.

◆ items

List<Item> CharaUpgrade.items = new List<Item>()

Definition at line 61 of file CharaUpgrade.cs.

Referenced by WindowCharaMini.Refresh(), and Reset().

◆ reset

int CharaUpgrade.reset

Definition at line 70 of file CharaUpgrade.cs.

Referenced by Reset().

◆ spent

int CharaUpgrade.spent

Definition at line 67 of file CharaUpgrade.cs.

Referenced by WindowCharaMini.Refresh(), and Reset().


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