Elin Decompiled Documentation EA 23.333 Myaightly Patch 1
Loading...
Searching...
No Matches
TraitLandingPortal.cs
Go to the documentation of this file.
2{
3 public override bool CanBeDestroyed => false;
4
5 public override bool CanOnlyCarry => true;
6
7 public override bool CanPutAway => false;
8
9 public override bool IsAnimeOn => IsOn;
10
11 public override bool UseAltTiles => IsOn;
12
13 public override bool CanUseFromInventory => false;
14
15 public override bool IsOn => EClass.game.survival?.gateZone != null;
16
17 public override bool CanUse(Chara c)
18 {
19 return IsOn;
20 }
21
22 public override bool OnUse(Chara c)
23 {
24 Zone gateZone = EClass.game.survival.gateZone;
25 if (gateZone == null || gateZone.destryoed || gateZone == EClass.game.activeZone || EClass.game.activeZone.IsRegion)
26 {
28 return false;
29 }
30 Msg.Say("returnComplete");
31 EClass.player.uidLastTravelZone = 0;
32 EClass.pc.MoveZone(gateZone, ZoneTransition.EnterState.Return);
33 EClass.player.lastZonePos = null;
34 EClass.player.returnInfo = null;
35 return false;
36 }
37}
Definition: Chara.cs:10
void MoveZone(string alias)
Definition: Chara.cs:3548
Definition: EClass.cs:6
static Game game
Definition: EClass.cs:9
static Chara pc
Definition: EClass.cs:15
SurvivalManager survival
Definition: Game.cs:228
Zone activeZone
Definition: Game.cs:252
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 CanBeDestroyed
override bool CanUse(Chara c)
override bool CanPutAway
override bool CanOnlyCarry
override bool IsAnimeOn
Definition: Zone.cs:12