Elin Decompiled Documentation EA 23.345.1 Nightly
Loading...
Searching...
No Matches
TraitLandingPortal.cs
Go to the documentation of this file.
2{
3 public override bool IsAnimeOn => IsOn;
4
5 public override bool UseAltTiles => IsOn;
6
7 public override bool CanUseFromInventory => false;
8
9 public override bool IsOn
10 {
11 get
12 {
14 {
16 }
17 return false;
18 }
19 }
20
21 public override bool CanUse(Chara c)
22 {
23 return IsOn;
24 }
25
26 public override bool OnUse(Chara c)
27 {
29 {
31 return false;
32 }
33 Zone gateZone = EClass.game.survival.gateZone;
34 if (gateZone == null || gateZone.destryoed || gateZone == EClass.game.activeZone || EClass.game.activeZone.IsRegion)
35 {
37 return false;
38 }
39 Msg.Say("returnComplete");
40 EClass.player.uidLastTravelZone = 0;
41 EClass.pc.MoveZone(gateZone, ZoneTransition.EnterState.Return);
42 EClass.player.lastZonePos = null;
43 EClass.player.returnInfo = null;
44 return false;
45 }
46}
bool IsInstalled
Definition: Card.cs:2451
Definition: Chara.cs:10
void MoveZone(string alias)
Definition: Chara.cs:3577
Definition: EClass.cs:6
static Game game
Definition: EClass.cs:9
static Zone _zone
Definition: EClass.cs:21
static Chara pc
Definition: EClass.cs:15
SurvivalManager survival
Definition: Game.cs:228
Zone activeZone
Definition: Game.cs:252
bool IsSurvival
Definition: Game.cs:276
Definition: Msg.cs:5
static string SayNothingHappen()
Definition: Msg.cs:96
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
virtual bool IsRegion
Definition: Spatial.cs:515
bool destryoed
Definition: Spatial.cs:45
override bool CanUseFromInventory
override bool UseAltTiles
override bool OnUse(Chara c)
override bool CanUse(Chara c)
override bool IsAnimeOn
Card owner
Definition: Trait.cs:28
Definition: Zone.cs:12
bool CanDestroy()
Definition: Zone.cs:1949
bool IsPCFaction
Definition: Zone.cs:480