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

Public Member Functions

override void Execute ()
 
virtual void Execute ()
 

Public Attributes

Chara target
 

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
 
- 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]
 

Detailed Description

Definition at line 3 of file ZonePreEnterBoutWin.cs.

Member Function Documentation

◆ Execute()

override void ZonePreEnterBoutWin.Execute ( )
inlinevirtual

Reimplemented from ZonePreEnterEvent.

Definition at line 7 of file ZonePreEnterBoutWin.cs.

8 {
9 if (target == null)
10 {
11 Debug.LogError("exception: target not found:" + target);
12 return;
13 }
14 Thing thing = null;
15 int num = 0;
16 foreach (Thing thing2 in target.things)
17 {
18 if (thing2.isEquipped && !thing2.isGifted && (thing2.GetPrice() > num || thing2.rarity >= Rarity.Artifact))
19 {
20 thing = thing2;
21 num = thing2.GetPrice();
22 }
23 }
24 if (thing == null)
25 {
26 thing = ThingGen.Create("plat").SetNum(EClass.rndHalf(target.LV / 10 + 2));
27 }
28 else
29 {
30 target.RemoveCard(thing);
31 target.EQ_CAT(thing.category.id);
32 }
33 target.SetInt(111, target.GetInt(111) + 1);
34 SE.Play("questComplete");
36 EClass.player.ModFame(EClass.rndHalf(Mathf.Max(10, 10 + (target.LV - EClass.pc.LV) * 3)));
37 }
Rarity
Definition: Rarity.cs:2
int GetInt(int id, int? defaultInt=null)
Definition: BaseCard.cs:25
void SetInt(int id, int value=0)
Definition: BaseCard.cs:39
virtual int GetPrice(CurrencyType currency=CurrencyType.Money, bool sell=false, PriceType priceType=PriceType.Default, Chara c=null)
Definition: Card.cs:6449
Rarity rarity
Definition: Card.cs:298
Thing SetNum(int a)
Definition: Card.cs:3242
Point pos
Definition: Card.cs:55
ThingContainer things
Definition: Card.cs:34
bool isGifted
Definition: Card.cs:754
SourceCategory.Row category
Definition: Card.cs:1925
void RemoveCard(Card c)
Definition: Card.cs:2892
int LV
Definition: Card.cs:370
void EQ_CAT(string s)
Definition: Chara.cs:4589
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
static int rndHalf(int a)
Definition: EClass.cs:74
static Player player
Definition: EClass.cs:12
static Chara pc
Definition: EClass.cs:14
void TrySmoothPick(Cell cell, Thing t, Chara c)
Definition: Map.cs:1791
void ModFame(int a)
Definition: Player.cs:1879
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
bool isEquipped
Definition: Thing.cs:17

References EClass._map, ThingGen.Create(), Debug, Chara.EQ_CAT(), BaseCard.GetInt(), Card.GetPrice(), Thing.isEquipped, Card.isGifted, Card.LV, Player.ModFame(), EClass.pc, EClass.player, Card.pos, Card.rarity, Card.RemoveCard(), EClass.rndHalf(), BaseCard.SetInt(), Card.SetNum(), target, Card.things, and Map.TrySmoothPick().

Member Data Documentation

◆ target

Chara ZonePreEnterBoutWin.target

Definition at line 5 of file ZonePreEnterBoutWin.cs.

Referenced by Execute().


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