fix: adventure player id incorrect using

This commit is contained in:
letheriver2007
2025-04-22 22:42:20 +08:00
parent 181ae68f94
commit 05d0cdd1f5
2 changed files with 6 additions and 5 deletions

View File

@@ -1,18 +1,19 @@
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("AdventurePlayer.json")]
[ResourceEntity("AdventurePlayer.json,ActivityAdventurePlayer.json", true)]
public class AdventurePlayerExcel : ExcelResource
{
public int AvatarID { get; set; } = 0;
public int ID { get; set; }
public int AvatarID { get; set; }
public string PlayerJsonPath { get; set; } = "";
public override int GetId()
{
return AvatarID;
return ID;
}
public override void Loaded()
{
GameData.AdventurePlayerData[AvatarID] = this;
GameData.AdventurePlayerData[ID] = this;
}
}

View File

@@ -423,7 +423,7 @@ public class ResourceManager
var info = AdventureAbilityConfigListInfo.LoadFromJsonObject(obj);
GameData.AdventureAbilityConfigListData.TryAdd(avatar.AvatarID, info);
GameData.AdventureAbilityConfigListData.TryAdd(adventure.ID, info);
count++;
}
catch (Exception ex)