Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
FortuneRollData.Prize Class Reference
Inheritance diagram for FortuneRollData.Prize:
EClass

Public Member Functions

int GetNum ()
 
void AddNote (UINote n)
 

Public Attributes

int grade
 
string id
 
string idRef
 
bool claimed
 

Properties

Card model [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 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 8 of file FortuneRollData.cs.

Member Function Documentation

◆ AddNote()

void FortuneRollData.Prize.AddNote ( UINote  n)
inline

Definition at line 65 of file FortuneRollData.cs.

66 {
67 string text = "_circle".lang().TagColor(EClass.sources.materials.alias[mats[grade]].GetColor()) + " " + Lang.GetList("fortuneroll")[grade];
68 string text2 = (model.IsUnique ? "★" : "") + EClass.sources.cards.map[id].GetName();
69 string text3 = id;
70 if (!(text3 == "panty"))
71 {
72 if (text3 == "mathammer")
73 {
74 if (idRef.IsEmpty())
75 {
76 idRef = "iron";
77 }
78 text2 = "_of".lang(EClass.sources.materials.alias[idRef].GetName(), text2);
79 }
80 }
81 else
82 {
83 string name = EClass.sources.cards.map[idRef].GetName();
84 text2 = "_of".lang(name, text2);
85 }
86 int num = GetNum();
87 if (num > 1)
88 {
89 text2 = text2 + " x " + num;
90 }
91 if (claimed)
92 {
93 text2 = "fortuneroll_claimed".lang();
94 }
95 n.AddTopic("TopicDomain", text, text2.ToTitleCase().TagColor(model.IsUnique ? FontColor.Great : FontColor.Good));
96 }
FontColor
Definition: FontColor.cs:2
bool IsUnique
Definition: Card.cs:1967
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
static string[] mats
Definition: Lang.cs:6
static string[] GetList(string id)
Definition: Lang.cs:114
Dictionary< string, CardRow > map
Definition: SourceCard.cs:8
SourceMaterial materials
SourceCard cards
UIItem AddTopic(string id, string text, string value=null)
Definition: UINote.cs:144

References UINote.AddTopic(), SourceManager.cards, FortuneRollData.Prize.claimed, Lang.GetList(), FortuneRollData.Prize.GetNum(), FortuneRollData.Prize.grade, FortuneRollData.Prize.id, FortuneRollData.Prize.idRef, Card.IsUnique, SourceCard.map, SourceManager.materials, FortuneRollData.mats, FortuneRollData.Prize.model, and EClass.sources.

Referenced by FortuneRollData.WriteNote().

◆ GetNum()

int FortuneRollData.Prize.GetNum ( )
inline

Definition at line 24 of file FortuneRollData.cs.

25 {
26 if (id == "ration")
27 {
28 return 10;
29 }
30 if (id == "medal")
31 {
32 if (grade != 2)
33 {
34 if (grade != 3)
35 {
36 return 1;
37 }
38 return 10;
39 }
40 return 3;
41 }
42 if (id == "plat")
43 {
44 if (grade != 1)
45 {
46 if (grade != 2)
47 {
48 if (grade != 3)
49 {
50 return 1;
51 }
52 return 50;
53 }
54 return 20;
55 }
56 return 10;
57 }
58 if (id == "1165" && grade == 3)
59 {
60 return 3;
61 }
62 return 1;
63 }

References FortuneRollData.Prize.grade.

Referenced by FortuneRollData.Prize.AddNote(), and FortuneRollData.GetPrize().

Member Data Documentation

◆ claimed

bool FortuneRollData.Prize.claimed

Definition at line 20 of file FortuneRollData.cs.

Referenced by FortuneRollData.Prize.AddNote(), and FortuneRollData.GetPrize().

◆ grade

int FortuneRollData.Prize.grade

◆ id

string FortuneRollData.Prize.id

◆ idRef

string FortuneRollData.Prize.idRef

Definition at line 17 of file FortuneRollData.cs.

Referenced by FortuneRollData.Prize.AddNote(), and FortuneRollData.GetPrize().

Property Documentation

◆ model

Card FortuneRollData.Prize.model
get

Definition at line 22 of file FortuneRollData.cs.

Referenced by FortuneRollData.Prize.AddNote().


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