Elin Decompiled Documentation EA 23.295 Stable
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
 
int catDepart
 
int married
 
int divorced
 
int angryCats
 
int escapeSilverBell
 
long shipMoney
 
int lastShippingExp
 
int lastShippingExpMax
 
int lastChuryu
 

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]
 
long mama [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 (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
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 248 of file Player.cs.

249 {
250 long p = 0L;
251 bool first = true;
252 SetBonus(1000000000, 50000);
253 SetBonus(100000000, 20000);
254 SetBonus(10000000, 10000);
255 SetBonus(500000, 5000);
256 SetBonus(250000, 3000);
257 SetBonus(100000, 2000);
258 SetBonus(20000, 1000);
259 SetBonus(6000, 500);
260 SetBonus(2000, 200);
261 SetBonus(0, 100);
262 return (int)p;
263 void SetBonus(int threshold, int div)
264 {
265 if (_a >= threshold)
266 {
267 p += (_a - threshold) / div;
268 if (first)
269 {
270 lastShippingExp = (int)((_a - threshold) % div);
271 lastShippingExpMax = div;
272 first = false;
273 }
274 _a = threshold;
275 }
276 }
277 }
int lastShippingExp
Definition: Player.cs:146
int lastShippingExpMax
Definition: Player.cs:148

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().

◆ angryCats

int Player.Stats.angryCats

Definition at line 138 of file Player.cs.

Referenced by FoodEffect.Proc(), and CoreDebug.Stats().

◆ catDepart

int Player.Stats.catDepart

Definition at line 129 of file Player.cs.

Referenced by CoreDebug.Stats().

◆ 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().

◆ divorced

int Player.Stats.divorced

Definition at line 135 of file Player.cs.

Referenced by Chara.Divorce().

◆ escapeSilverBell

int Player.Stats.escapeSilverBell

Definition at line 141 of file Player.cs.

Referenced by ActEffect.Proc().

◆ 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().

◆ lastChuryu

int Player.Stats.lastChuryu

Definition at line 150 of file Player.cs.

Referenced by AM_Adv.OnEnterChat().

◆ lastShippingExp

int Player.Stats.lastShippingExp

Definition at line 146 of file Player.cs.

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

◆ lastShippingExpMax

int Player.Stats.lastShippingExpMax

Definition at line 148 of file Player.cs.

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

◆ married

int Player.Stats.married

Definition at line 132 of file Player.cs.

Referenced by Chara.Marry(), and Trait.OnBarter().

◆ 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 144 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.

Referenced by CoreDebug.Stats().

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

189 {
190 get
191 {
192 return _longs[13];
193 }
194 set
195 {
196 _longs[13] = value;
197 }
198 }
long[] _longs
Definition: Player.cs:63

Referenced by AI_Fuck.Finish(), and CoreDebug.Stats().

◆ clean

long Player.Stats.clean
getset

Definition at line 224 of file Player.cs.

225 {
226 get
227 {
228 return _longs[16];
229 }
230 set
231 {
232 _longs[16] = value;
233 }
234 }

Referenced by TaskClean.Run(), and CoreDebug.Stats().

◆ eggHatched

long Player.Stats.eggHatched
getset

Definition at line 200 of file Player.cs.

201 {
202 get
203 {
204 return _longs[14];
205 }
206 set
207 {
208 _longs[14] = value;
209 }
210 }

Referenced by TraitFoodEggFertilized.Incubate(), and CoreDebug.Stats().

◆ kimo

long Player.Stats.kimo
getset

Definition at line 164 of file Player.cs.

165 {
166 get
167 {
168 return _longs[11];
169 }
170 set
171 {
172 _longs[11] = value;
173 }
174 }

Referenced by AI_Fuck.Finish(), and CoreDebug.Stats().

◆ mama

long Player.Stats.mama
getset

Definition at line 236 of file Player.cs.

237 {
238 get
239 {
240 return _longs[17];
241 }
242 set
243 {
244 _longs[17] = value;
245 }
246 }

Referenced by AI_Fuck.Finish().

◆ nefiaBeaten

long Player.Stats.nefiaBeaten
getset

Definition at line 152 of file Player.cs.

153 {
154 get
155 {
156 return _longs[10];
157 }
158 set
159 {
160 _longs[10] = value;
161 }
162 }

Referenced by CoreDebug.Stats(), and Chara.TryDropBossLoot().

◆ plow

long Player.Stats.plow
getset

Definition at line 212 of file Player.cs.

213 {
214 get
215 {
216 return _longs[15];
217 }
218 set
219 {
220 _longs[15] = value;
221 }
222 }

Referenced by TaskPlow.OnCreateProgress(), and CoreDebug.Stats().

◆ shear

long Player.Stats.shear
getset

Definition at line 176 of file Player.cs.

177 {
178 get
179 {
180 return _longs[12];
181 }
182 set
183 {
184 _longs[12] = value;
185 }
186 }

Referenced by AI_Shear.Run(), and CoreDebug.Stats().


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