Elin Modding Docs Doc
Loading...
Searching...
No Matches
ZonePreEnterBout.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5// Token: 0x0200074F RID: 1871
7{
8 // Token: 0x06003641 RID: 13889 RVA: 0x00126A30 File Offset: 0x00124C30
9 public override void Execute()
10 {
11 Debug.Log(EClass._zone);
12 Debug.Log(EClass._map);
13 Debug.Log(EClass._map.GetCenterPos());
14 Point point = EClass._map.GetCenterPos().GetNearestPoint(false, false, true, false) ?? EClass._map.GetCenterPos();
15 Point point2 = point;
16 string str = (point2 != null) ? point2.ToString() : null;
17 string str2 = "/";
18 Chara chara = this.target;
19 Debug.Log(str + str2 + ((chara != null) ? chara.ToString() : null));
20 if (this.target == null)
21 {
22 Debug.LogError("exception: Target is Null");
23 return;
24 }
25 this.target.MoveZone(EClass._zone, new ZoneTransition
26 {
27 state = ZoneTransition.EnterState.Exact,
28 x = point.x,
29 z = point.z
30 });
31 EClass._zone.SetBGM(102, true);
32 Debug.Log(this.target.pos);
33 List<Chara> list = new List<Chara>
34 {
35 this.target
36 };
37 for (int i = 0; i < EClass.pc.party.members.Count - 1; i++)
38 {
39 Chara chara2 = CharaGen.CreateFromFilter("c_neutral", this.target.LV + 10, -1);
40 Debug.Log(chara2);
41 chara2.ChangeRarity(Rarity.Superior);
42 if (chara2.LV < this.target.LV)
43 {
44 chara2.SetLv(this.target.LV);
45 }
46 EClass._zone.AddCard(chara2, this.target.pos.GetNearestPoint(false, false, true, false) ?? this.target.pos);
47 list.Add(chara2);
48 }
49 Debug.Log(list.Count);
50 foreach (Chara chara3 in list)
51 {
52 chara3.c_originalHostility = (chara3.hostility = Hostility.Enemy);
53 chara3.SetEnemy(EClass.pc);
54 chara3.HealAll();
55 }
56 }
57
58 // Token: 0x04001CA6 RID: 7334
59 public Chara target;
60}
Definition Chara.cs:12
Definition Point.cs:11