Elin Decompiled Documentation EA 23.219 Nightly
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 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 216 of file Player.cs.

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

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

◆ deepestVoid

int Player.Stats.deepestVoid

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

Referenced by AI_OpenGambleChest.Run().

◆ gambleChestOpen

int Player.Stats.gambleChestOpen

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

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

◆ lastShippingExpMax

int Player.Stats.lastShippingExpMax

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

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

Referenced by AI_Fuck.Finish().

◆ clean

long Player.Stats.clean
getset

Definition at line 204 of file Player.cs.

205 {
206 get
207 {
208 return _longs[16];
209 }
210 set
211 {
212 _longs[16] = value;
213 }
214 }

Referenced by TaskClean.Run().

◆ eggHatched

long Player.Stats.eggHatched
getset

Definition at line 180 of file Player.cs.

181 {
182 get
183 {
184 return _longs[14];
185 }
186 set
187 {
188 _longs[14] = value;
189 }
190 }

Referenced by TraitFoodEggFertilized.Incubate().

◆ kimo

long Player.Stats.kimo
getset

Definition at line 144 of file Player.cs.

145 {
146 get
147 {
148 return _longs[11];
149 }
150 set
151 {
152 _longs[11] = value;
153 }
154 }

Referenced by AI_Fuck.Finish().

◆ nefiaBeaten

long Player.Stats.nefiaBeaten
getset

Definition at line 132 of file Player.cs.

133 {
134 get
135 {
136 return _longs[10];
137 }
138 set
139 {
140 _longs[10] = value;
141 }
142 }

Referenced by Chara.TryDropBossLoot().

◆ plow

long Player.Stats.plow
getset

Definition at line 192 of file Player.cs.

193 {
194 get
195 {
196 return _longs[15];
197 }
198 set
199 {
200 _longs[15] = value;
201 }
202 }

Referenced by TaskPlow.OnCreateProgress().

◆ shear

long Player.Stats.shear
getset

Definition at line 156 of file Player.cs.

157 {
158 get
159 {
160 return _longs[12];
161 }
162 set
163 {
164 _longs[12] = value;
165 }
166 }

Referenced by AI_Shear.Run().


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