Elin Decompiled Documentation EA 23.130 Nightly
Loading...
Searching...
No Matches
ZonePreEnterBout Class Reference
Inheritance diagram for ZonePreEnterBout:
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 rndSeed (int a, int seed)
 
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 4 of file ZonePreEnterBout.cs.

Member Function Documentation

◆ Execute()

override void ZonePreEnterBout.Execute ( )
inlinevirtual

Reimplemented from ZonePreEnterEvent.

Definition at line 8 of file ZonePreEnterBout.cs.

9 {
10 Debug.Log(EClass._zone);
11 Debug.Log(EClass._map);
13 Point point = EClass._map.GetCenterPos().GetNearestPoint(allowBlock: false, allowChara: false) ?? EClass._map.GetCenterPos();
14 Debug.Log(point?.ToString() + "/" + target);
15 if (target == null)
16 {
17 Debug.LogError("exception: Target is Null");
18 return;
19 }
21 {
22 state = ZoneTransition.EnterState.Exact,
23 x = point.x,
24 z = point.z
25 });
26 EClass._zone.SetBGM(102);
27 Debug.Log(target.pos);
28 List<Chara> list = new List<Chara> { target };
29 for (int i = 0; i < EClass.pc.party.members.Count - 1; i++)
30 {
31 Chara chara = CharaGen.CreateFromFilter("c_neutral", target.LV + 10);
32 Debug.Log(chara);
33 chara.ChangeRarity(Rarity.Superior);
34 if (chara.LV < target.LV)
35 {
36 chara.SetLv(target.LV);
37 }
38 EClass._zone.AddCard(chara, target.pos.GetNearestPoint(allowBlock: false, allowChara: false) ?? target.pos);
39 list.Add(chara);
40 }
41 Debug.Log(list.Count);
42 foreach (Chara item in list)
43 {
44 Hostility c_originalHostility = (item.hostility = Hostility.Enemy);
45 item.c_originalHostility = c_originalHostility;
46 item.SetEnemy(EClass.pc);
47 item.HealAll();
48 }
49 }
Hostility
Definition: Hostility.cs:2
Rarity
Definition: Rarity.cs:2
Card SetLv(int a)
Definition: Card.cs:2784
Point pos
Definition: Card.cs:55
Thing Add(string id, int num=1, int lv=1)
Definition: Card.cs:2927
int LV
Definition: Card.cs:370
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
Definition: CharaGen.cs:22
Definition: Chara.cs:10
override void ChangeRarity(Rarity r)
Definition: Chara.cs:1219
void MoveZone(string alias)
Definition: Chara.cs:3029
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static Map _map
Definition: EClass.cs:18
static Chara pc
Definition: EClass.cs:14
Point GetCenterPos()
Definition: MapBounds.cs:52
Definition: Point.cs:9
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Definition: Point.cs:607
void SetBGM(List< int > ids, bool refresh=true)
Definition: Zone.cs:2726
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893

References EClass._map, EClass._zone, Card.Add(), Zone.AddCard(), Chara.ChangeRarity(), CharaGen.CreateFromFilter(), Debug, MapBounds.GetCenterPos(), Point.GetNearestPoint(), item, Card.LV, Chara.MoveZone(), EClass.pc, Card.pos, Zone.SetBGM(), Card.SetLv(), and target.

Member Data Documentation

◆ target

Chara ZonePreEnterBout.target

Definition at line 6 of file ZonePreEnterBout.cs.

Referenced by Execute().


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