Elin Decompiled Documentation EA 23.185 Nightly Patch 1
Loading...
Searching...
No Matches
Player.Stats Class Reference
Inheritance diagram for Player.Stats:
EClass

Public Member Functions

int GetShippingBonus (long _a)
 

Public Attributes

long[] _longs = new long[50]
 
double timeElapsed
 
int kumi
 
int mins
 
int days
 
int months
 
int sieges
 
int turns
 
int kills
 
int taxBills
 
int taxBillsPaid
 
int digs
 
int shipNum
 
int slept
 
int death
 
int allyDeath
 
int deepest
 
int gambleChest
 
int gambleChestOpen
 
long shipMoney
 
int lastShippingExp
 
int lastShippingExpMax
 

Properties

long nefiaBeaten [get, set]
 
long kimo [get, set]
 
long shear [get, set]
 
long brush [get, set]
 
long eggHatched [get, set]
 
long plow [get, set]
 
long clean [get, set]
 
- 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

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
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 60 of file Player.cs.

Member Function Documentation

◆ GetShippingBonus()

int Player.Stats.GetShippingBonus ( long  _a)
inline

Definition at line 210 of file Player.cs.

211 {
212 long p = 0L;
213 bool first = true;
214 SetBonus(1000000000, 50000);
215 SetBonus(100000000, 20000);
216 SetBonus(10000000, 10000);
217 SetBonus(500000, 5000);
218 SetBonus(250000, 3000);
219 SetBonus(100000, 2000);
220 SetBonus(20000, 1000);
221 SetBonus(6000, 500);
222 SetBonus(2000, 200);
223 SetBonus(0, 100);
224 return (int)p;
225 void SetBonus(int threshold, int div)
226 {
227 if (_a >= threshold)
228 {
229 p += (_a - threshold) / div;
230 if (first)
231 {
232 lastShippingExp = (int)((_a - threshold) % div);
233 lastShippingExpMax = div;
234 first = false;
235 }
236 _a = threshold;
237 }
238 }
239 }
int lastShippingExp
Definition: Player.cs:122
int lastShippingExpMax
Definition: Player.cs:124

References Player.Stats.lastShippingExp, and Player.Stats.lastShippingExpMax.

Referenced by LayerShippingResult.Refresh(), and GameDate.ShipGoods().

Member Data Documentation

◆ _longs

long [] Player.Stats._longs = new long[50]

Definition at line 63 of file Player.cs.

◆ allyDeath

int Player.Stats.allyDeath

Definition at line 108 of file Player.cs.

Referenced by Chara.Die().

◆ days

◆ death

int Player.Stats.death

Definition at line 105 of file Player.cs.

◆ deepest

int Player.Stats.deepest

Definition at line 111 of file Player.cs.

Referenced by GameIndex.Create(), Zone.OnVisit(), and WindowChara.RefreshProfile().

◆ digs

int Player.Stats.digs

Definition at line 96 of file Player.cs.

Referenced by TaskMine.OnProgressComplete(), and ContentHallOfFame.OnSwitchContent().

◆ gambleChest

int Player.Stats.gambleChest

Definition at line 114 of file Player.cs.

Referenced by AI_OpenGambleChest.Run().

◆ gambleChestOpen

int Player.Stats.gambleChestOpen

Definition at line 117 of file Player.cs.

Referenced by AI_OpenGambleChest.Run().

◆ kills

int Player.Stats.kills

Definition at line 87 of file Player.cs.

Referenced by ContentHallOfFame.OnSwitchContent().

◆ kumi

int Player.Stats.kumi

Definition at line 69 of file Player.cs.

Referenced by TraitBookSecret.OnRead().

◆ lastShippingExp

int Player.Stats.lastShippingExp

Definition at line 122 of file Player.cs.

Referenced by Player.Stats.GetShippingBonus(), and LayerShippingResult.Refresh().

◆ lastShippingExpMax

int Player.Stats.lastShippingExpMax

Definition at line 124 of file Player.cs.

Referenced by Player.Stats.GetShippingBonus(), and LayerShippingResult.Refresh().

◆ mins

int Player.Stats.mins

Definition at line 72 of file Player.cs.

◆ months

int Player.Stats.months

Definition at line 78 of file Player.cs.

Referenced by GameDate.AdvanceMonth().

◆ shipMoney

long Player.Stats.shipMoney

Definition at line 120 of file Player.cs.

Referenced by GameDate.ShipGoods().

◆ shipNum

int Player.Stats.shipNum

Definition at line 99 of file Player.cs.

◆ sieges

int Player.Stats.sieges

Definition at line 81 of file Player.cs.

Referenced by ZoneEventSiege.OnFirstTick(), and LayerGlobalMap.RefreshSummary().

◆ slept

int Player.Stats.slept

Definition at line 102 of file Player.cs.

Referenced by RecipeManager.OnSleep(), and LayerSleep.Sleep().

◆ taxBills

int Player.Stats.taxBills

Definition at line 90 of file Player.cs.

◆ taxBillsPaid

int Player.Stats.taxBillsPaid

Definition at line 93 of file Player.cs.

Referenced by ContentHallOfFame.OnSwitchContent().

◆ timeElapsed

double Player.Stats.timeElapsed

Definition at line 66 of file Player.cs.

Referenced by Game.OnUpdate(), and CoreConfig.TryUpdatePlayedHour().

◆ turns

int Player.Stats.turns

Property Documentation

◆ brush

long Player.Stats.brush
getset

Definition at line 162 of file Player.cs.

163 {
164 get
165 {
166 return _longs[13];
167 }
168 set
169 {
170 _longs[13] = value;
171 }
172 }
long[] _longs
Definition: Player.cs:63

Referenced by AI_Fuck.Finish().

◆ clean

long Player.Stats.clean
getset

Definition at line 198 of file Player.cs.

199 {
200 get
201 {
202 return _longs[16];
203 }
204 set
205 {
206 _longs[16] = value;
207 }
208 }

Referenced by TaskClean.Run().

◆ eggHatched

long Player.Stats.eggHatched
getset

Definition at line 174 of file Player.cs.

175 {
176 get
177 {
178 return _longs[14];
179 }
180 set
181 {
182 _longs[14] = value;
183 }
184 }

Referenced by TraitFoodEggFertilized.Incubate().

◆ kimo

long Player.Stats.kimo
getset

Definition at line 138 of file Player.cs.

139 {
140 get
141 {
142 return _longs[11];
143 }
144 set
145 {
146 _longs[11] = value;
147 }
148 }

Referenced by AI_Fuck.Finish().

◆ nefiaBeaten

long Player.Stats.nefiaBeaten
getset

Definition at line 126 of file Player.cs.

127 {
128 get
129 {
130 return _longs[10];
131 }
132 set
133 {
134 _longs[10] = value;
135 }
136 }

Referenced by Chara.TryDropBossLoot().

◆ plow

long Player.Stats.plow
getset

Definition at line 186 of file Player.cs.

187 {
188 get
189 {
190 return _longs[15];
191 }
192 set
193 {
194 _longs[15] = value;
195 }
196 }

Referenced by TaskPlow.OnCreateProgress().

◆ shear

long Player.Stats.shear
getset

Definition at line 150 of file Player.cs.

151 {
152 get
153 {
154 return _longs[12];
155 }
156 set
157 {
158 _longs[12] = value;
159 }
160 }

Referenced by AI_Shear.Run().


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