Elin Decompiled Documentation EA 23.239 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 death2
 
int allyDeath
 
int deepest
 
int deepestVoid
 
int gambleChest
 
int gambleChestOpen
 
int sistersDepart
 
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 219 of file Player.cs.

220 {
221 long p = 0L;
222 bool first = true;
223 SetBonus(1000000000, 50000);
224 SetBonus(100000000, 20000);
225 SetBonus(10000000, 10000);
226 SetBonus(500000, 5000);
227 SetBonus(250000, 3000);
228 SetBonus(100000, 2000);
229 SetBonus(20000, 1000);
230 SetBonus(6000, 500);
231 SetBonus(2000, 200);
232 SetBonus(0, 100);
233 return (int)p;
234 void SetBonus(int threshold, int div)
235 {
236 if (_a >= threshold)
237 {
238 p += (_a - threshold) / div;
239 if (first)
240 {
241 lastShippingExp = (int)((_a - threshold) % div);
242 lastShippingExpMax = div;
243 first = false;
244 }
245 _a = threshold;
246 }
247 }
248 }
int lastShippingExp
Definition: Player.cs:131
int lastShippingExpMax
Definition: Player.cs:133

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 111 of file Player.cs.

Referenced by Chara.Die().

◆ days

◆ death

int Player.Stats.death

Definition at line 105 of file Player.cs.

◆ death2

int Player.Stats.death2

Definition at line 108 of file Player.cs.

◆ deepest

int Player.Stats.deepest

◆ deepestVoid

int Player.Stats.deepestVoid

Definition at line 117 of file Player.cs.

Referenced by ActEffect.Proc(), WindowChara.RefreshProfile(), and Chara.TryDropBossLoot().

◆ 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 120 of file Player.cs.

Referenced by AI_OpenGambleChest.Run().

◆ gambleChestOpen

int Player.Stats.gambleChestOpen

Definition at line 123 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 131 of file Player.cs.

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

◆ lastShippingExpMax

int Player.Stats.lastShippingExpMax

Definition at line 133 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 129 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.OnInit(), and LayerGlobalMap.RefreshSummary().

◆ sistersDepart

int Player.Stats.sistersDepart

Definition at line 126 of file Player.cs.

◆ 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 171 of file Player.cs.

172 {
173 get
174 {
175 return _longs[13];
176 }
177 set
178 {
179 _longs[13] = value;
180 }
181 }
long[] _longs
Definition: Player.cs:63

Referenced by AI_Fuck.Finish().

◆ clean

long Player.Stats.clean
getset

Definition at line 207 of file Player.cs.

208 {
209 get
210 {
211 return _longs[16];
212 }
213 set
214 {
215 _longs[16] = value;
216 }
217 }

Referenced by TaskClean.Run().

◆ eggHatched

long Player.Stats.eggHatched
getset

Definition at line 183 of file Player.cs.

184 {
185 get
186 {
187 return _longs[14];
188 }
189 set
190 {
191 _longs[14] = value;
192 }
193 }

Referenced by TraitFoodEggFertilized.Incubate().

◆ kimo

long Player.Stats.kimo
getset

Definition at line 147 of file Player.cs.

148 {
149 get
150 {
151 return _longs[11];
152 }
153 set
154 {
155 _longs[11] = value;
156 }
157 }

Referenced by AI_Fuck.Finish().

◆ nefiaBeaten

long Player.Stats.nefiaBeaten
getset

Definition at line 135 of file Player.cs.

136 {
137 get
138 {
139 return _longs[10];
140 }
141 set
142 {
143 _longs[10] = value;
144 }
145 }

Referenced by Chara.TryDropBossLoot().

◆ plow

long Player.Stats.plow
getset

Definition at line 195 of file Player.cs.

196 {
197 get
198 {
199 return _longs[15];
200 }
201 set
202 {
203 _longs[15] = value;
204 }
205 }

Referenced by TaskPlow.OnCreateProgress().

◆ shear

long Player.Stats.shear
getset

Definition at line 159 of file Player.cs.

160 {
161 get
162 {
163 return _longs[12];
164 }
165 set
166 {
167 _longs[12] = value;
168 }
169 }

Referenced by AI_Shear.Run().


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