Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Player.Stats Class Reference

Public Member Functions

int GetShippingBonus (long _a)
 

Public Attributes

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
 

Detailed Description

Definition at line 60 of file Player.cs.

Member Function Documentation

◆ GetShippingBonus()

int Player.Stats.GetShippingBonus ( long  _a)
inline

Definition at line 106 of file Player.cs.

107 {
108 long p = 0L;
109 bool first = true;
110 SetBonus(1000000000, 50000);
111 SetBonus(100000000, 20000);
112 SetBonus(10000000, 10000);
113 SetBonus(500000, 5000);
114 SetBonus(250000, 3000);
115 SetBonus(100000, 2000);
116 SetBonus(20000, 1000);
117 SetBonus(6000, 500);
118 SetBonus(2000, 200);
119 SetBonus(0, 100);
120 return (int)p;
121 void SetBonus(int threshold, int div)
122 {
123 if (_a >= threshold)
124 {
125 p += (_a - threshold) / div;
126 if (first)
127 {
128 lastShippingExp = (int)((_a - threshold) % div);
129 lastShippingExpMax = div;
130 first = false;
131 }
132 _a = threshold;
133 }
134 }
135 }
int lastShippingExp
Definition: Player.cs:101
int lastShippingExpMax
Definition: Player.cs:104

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

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

Member Data Documentation

◆ allyDeath

int Player.Stats.allyDeath

Definition at line 90 of file Player.cs.

Referenced by Chara.Die().

◆ days

◆ death

int Player.Stats.death

Definition at line 88 of file Player.cs.

◆ deepest

int Player.Stats.deepest

Definition at line 92 of file Player.cs.

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

◆ digs

int Player.Stats.digs

Definition at line 82 of file Player.cs.

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

◆ gambleChest

int Player.Stats.gambleChest

Definition at line 94 of file Player.cs.

Referenced by AI_OpenGambleChest.Run().

◆ gambleChestOpen

int Player.Stats.gambleChestOpen

Definition at line 96 of file Player.cs.

Referenced by AI_OpenGambleChest.Run().

◆ kills

int Player.Stats.kills

Definition at line 76 of file Player.cs.

Referenced by Card.DamageHP(), and ContentHallOfFame.OnSwitchContent().

◆ kumi

int Player.Stats.kumi

Definition at line 64 of file Player.cs.

Referenced by TraitBookSecret.OnRead().

◆ lastShippingExp

int Player.Stats.lastShippingExp

Definition at line 101 of file Player.cs.

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

◆ lastShippingExpMax

int Player.Stats.lastShippingExpMax

Definition at line 104 of file Player.cs.

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

◆ mins

int Player.Stats.mins

Definition at line 66 of file Player.cs.

◆ months

int Player.Stats.months

Definition at line 70 of file Player.cs.

Referenced by GameDate.AdvanceMonth().

◆ shipMoney

long Player.Stats.shipMoney

Definition at line 98 of file Player.cs.

Referenced by GameDate.ShipGoods().

◆ shipNum

int Player.Stats.shipNum

Definition at line 84 of file Player.cs.

◆ sieges

int Player.Stats.sieges

Definition at line 72 of file Player.cs.

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

◆ slept

int Player.Stats.slept

Definition at line 86 of file Player.cs.

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

◆ taxBills

int Player.Stats.taxBills

Definition at line 78 of file Player.cs.

◆ taxBillsPaid

int Player.Stats.taxBillsPaid

Definition at line 80 of file Player.cs.

Referenced by ContentHallOfFame.OnSwitchContent().

◆ timeElapsed

double Player.Stats.timeElapsed

Definition at line 62 of file Player.cs.

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

◆ turns

int Player.Stats.turns

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