Elin Decompiled Documentation EA 23.222 Stable nyan
Loading...
Searching...
No Matches
GamePrincipal Class Reference
Inheritance diagram for GamePrincipal:
EClass

Classes

class  Item
 
class  ItemSlider
 

Public Types

enum  Type { Oath , Workaround , Legacy , Flavor }
 

Public Member Functions

List< ItemListItems ()
 

Public Attributes

int id
 
int socre
 
int dropRateMtp
 
int petFeatExpMtp
 
bool ignoreEvaluate
 
bool disableDeathPenaltyProtection
 
bool tax
 
bool opMilk
 
bool disableManualSave
 
bool permadeath
 
bool infiniteMarketFund
 
bool disableUsermapBenefit
 
bool scaleQuest
 
bool realAdv
 
bool noAging
 
bool dropRate
 
bool petFeatExp
 
bool disableVoidBlessing
 
bool enableDamageReduction
 
bool enableGeneDupe
 
HashSet< string > modified = new HashSet<string>()
 

Properties

bool IsCustom [get]
 
- 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 6 of file GamePrincipal.cs.

Member Enumeration Documentation

◆ Type

Enumerator
Oath 
Workaround 
Legacy 
Flavor 

Definition at line 8 of file GamePrincipal.cs.

Member Function Documentation

◆ ListItems()

List< Item > GamePrincipal.ListItems ( )
inline

Definition at line 177 of file GamePrincipal.cs.

178 {
179 List<Item> list = new List<Item>();
180 Add(1, Type.Oath, "disableManualSave", () => disableManualSave, delegate(bool a)
181 {
183 });
184 Add(1, Type.Oath, "disableDeathPenaltyProtection", () => disableDeathPenaltyProtection, delegate(bool a)
185 {
187 });
188 Add(1, Type.Oath, "disableUsermapBenefit", () => disableUsermapBenefit, delegate(bool a)
189 {
191 });
192 Add(1, Type.Oath, "scaleQuest", () => scaleQuest, delegate(bool a)
193 {
194 scaleQuest = a;
195 });
196 Add(3, Type.Oath, "permadeath", () => permadeath, delegate(bool a)
197 {
198 permadeath = a;
199 });
200 Add(2, Type.Workaround, "disableVoidBlessing", () => disableVoidBlessing, delegate(bool a)
201 {
203 });
204 AddSlider(2, Type.Workaround, "dropRate", () => dropRate, delegate(bool a)
205 {
206 dropRate = a;
207 }, () => dropRateMtp, delegate(int a)
208 {
209 dropRateMtp = a;
210 }, (int a) => 0.5f + 0.5f * (float)a + "x", 5);
211 AddSlider(2, Type.Workaround, "petFeatExp", () => petFeatExp, delegate(bool a)
212 {
213 petFeatExp = a;
214 }, () => petFeatExpMtp, delegate(int a)
215 {
216 petFeatExpMtp = a;
217 }, (int a) => 0.5f + 0.5f * (float)a + "x", 3);
218 Add(-1, Type.Legacy, "enableDamageReduction", () => enableDamageReduction, delegate(bool a)
219 {
221 });
222 Add(-1, Type.Legacy, "enableGeneDupe", () => enableGeneDupe, delegate(bool a)
223 {
224 enableGeneDupe = a;
225 });
226 Add(-1, Type.Flavor, "noAging", () => noAging, delegate(bool a)
227 {
228 noAging = a;
229 });
230 return list;
231 void Add(int grade, Type type, string id, Func<bool> _get, Action<bool> _set)
232 {
233 list.Add(new Item
234 {
235 type = type,
236 grade = grade,
237 id = id,
238 _get = _get,
239 _set = _set
240 });
241 }
242 void AddSlider(int grade, Type type, string id, Func<bool> _get, Action<bool> _set, Func<int> _getInt, Action<int> _setInt, Func<int, string> funcText, int max)
243 {
244 list.Add(new ItemSlider
245 {
246 type = type,
247 grade = grade,
248 id = id,
249 _get = _get,
250 _set = _set,
251 _getInt = _getInt,
252 _setInt = _setInt,
253 funcText = funcText,
254 max = max
255 });
256 }
257 }
list. Add(item3)
bool enableDamageReduction
bool disableManualSave
bool disableVoidBlessing
bool disableUsermapBenefit
bool disableDeathPenaltyProtection

References Add(), disableDeathPenaltyProtection, disableManualSave, disableUsermapBenefit, disableVoidBlessing, dropRate, dropRateMtp, enableDamageReduction, enableGeneDupe, id, noAging, permadeath, petFeatExp, petFeatExpMtp, and scaleQuest.

Referenced by LayerWorldSetting.Apply(), and LayerWorldSetting.Refresh().

Member Data Documentation

◆ disableDeathPenaltyProtection

bool GamePrincipal.disableDeathPenaltyProtection

Definition at line 128 of file GamePrincipal.cs.

Referenced by ListItems(), and Chara.Revive().

◆ disableManualSave

bool GamePrincipal.disableManualSave

Definition at line 137 of file GamePrincipal.cs.

Referenced by AM_Adv._OnUpdateInput(), ListItems(), and HotItemContext.Show().

◆ disableUsermapBenefit

◆ disableVoidBlessing

bool GamePrincipal.disableVoidBlessing

Definition at line 164 of file GamePrincipal.cs.

Referenced by ListItems(), and Chara.RefreshSpeed().

◆ dropRate

bool GamePrincipal.dropRate

Definition at line 158 of file GamePrincipal.cs.

Referenced by ListItems(), and Card.SpawnLoot().

◆ dropRateMtp

int GamePrincipal.dropRateMtp

Definition at line 119 of file GamePrincipal.cs.

Referenced by ListItems(), and Card.SpawnLoot().

◆ enableDamageReduction

bool GamePrincipal.enableDamageReduction

Definition at line 167 of file GamePrincipal.cs.

Referenced by Card.DamageHP(), and ListItems().

◆ enableGeneDupe

bool GamePrincipal.enableGeneDupe

Definition at line 170 of file GamePrincipal.cs.

Referenced by Chara.CanDuplicate(), and ListItems().

◆ id

int GamePrincipal.id

Definition at line 113 of file GamePrincipal.cs.

Referenced by ListItems(), and LayerWorldSetting.RefreshTemplate().

◆ ignoreEvaluate

bool GamePrincipal.ignoreEvaluate

Definition at line 125 of file GamePrincipal.cs.

◆ infiniteMarketFund

bool GamePrincipal.infiniteMarketFund

Definition at line 143 of file GamePrincipal.cs.

◆ modified

HashSet<string> GamePrincipal.modified = new HashSet<string>()

◆ noAging

bool GamePrincipal.noAging

Definition at line 155 of file GamePrincipal.cs.

Referenced by Biography.GetAge(), and ListItems().

◆ opMilk

bool GamePrincipal.opMilk

Definition at line 134 of file GamePrincipal.cs.

◆ permadeath

bool GamePrincipal.permadeath

◆ petFeatExp

bool GamePrincipal.petFeatExp

Definition at line 161 of file GamePrincipal.cs.

Referenced by Card.GetExpMtp(), and ListItems().

◆ petFeatExpMtp

int GamePrincipal.petFeatExpMtp

Definition at line 122 of file GamePrincipal.cs.

Referenced by ListItems().

◆ realAdv

bool GamePrincipal.realAdv

Definition at line 152 of file GamePrincipal.cs.

◆ scaleQuest

bool GamePrincipal.scaleQuest

Definition at line 149 of file GamePrincipal.cs.

Referenced by ListItems(), and Chara.ScaleByPrincipal().

◆ socre

int GamePrincipal.socre

Definition at line 116 of file GamePrincipal.cs.

◆ tax

bool GamePrincipal.tax

Definition at line 131 of file GamePrincipal.cs.

Referenced by Faction.OnAdvanceMonth().

Property Documentation

◆ IsCustom

bool GamePrincipal.IsCustom
get

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