mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: fix train world id bug
This commit is contained in:
@@ -7,7 +7,12 @@ public static class GameConstants
|
||||
public const int MAX_STAMINA_RESERVE = 2400;
|
||||
public const int STAMINA_RECOVERY_TIME = 360; // 6 minutes
|
||||
public const int STAMINA_RESERVE_RECOVERY_TIME = 1080; // 18 minutes
|
||||
|
||||
public const int INVENTORY_MAX_EQUIPMENT = 1500;
|
||||
public const int INVENTORY_MAX_RELIC = 1500;
|
||||
public const int INVENTORY_MAX_MATERIAL = 2000;
|
||||
public const int MAX_LINEUP_COUNT = 9;
|
||||
public const int LAST_TRAIN_WORLD_ID = 501;
|
||||
public const int AMBUSH_BUFF_ID = 1000102;
|
||||
public const int CHALLENGE_ENTRANCE = 100000103;
|
||||
public const int CHALLENGE_STORY_ENTRANCE = 102020107;
|
||||
public const int CHALLENGE_BOSS_ENTRANCE = 1030402;
|
||||
|
||||
@@ -123,7 +123,6 @@ public class PlayerInstance(PlayerData data)
|
||||
public bool IsNewPlayer { get; set; }
|
||||
public int NextBattleId { get; set; } = 0;
|
||||
public int ChargerNum { get; set; } = 0;
|
||||
public int LastWorldId { get; set; } = 101;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -667,9 +666,6 @@ public class PlayerInstance(PlayerData data)
|
||||
|
||||
GameData.GetFloorInfo(entrance.PlaneID, entrance.FloorID, out var floorInfo);
|
||||
|
||||
// Record last plane id for train view
|
||||
if (entrance.PlaneID != 10000) LastWorldId = GameData.MazePlaneData[entrance.PlaneID].WorldID;
|
||||
|
||||
var startGroup = entrance.StartGroupID;
|
||||
var startAnchor = entrance.StartAnchorID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user