mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: adventure player id incorrect using
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user