fix: fix train world id bug

This commit is contained in:
letheriver2007
2025-01-28 08:19:10 +08:00
committed by EggLink
parent f4f3fa42b9
commit d995e0f87c
2 changed files with 6 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;