mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
More Effect
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using EggLink.DanhengServer.Data.Config.Task;
|
||||
using NetTaste;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace EggLink.DanhengServer.Data.Config.AdventureAbility;
|
||||
|
||||
public class AdventureModifierLookupTableConfig
|
||||
{
|
||||
public Dictionary<string, AdventureModifierConfig> ModifierMap { get; set; } = [];
|
||||
|
||||
public static AdventureModifierLookupTableConfig LoadFromJObject(JObject obj)
|
||||
{
|
||||
var info = new AdventureModifierLookupTableConfig();
|
||||
|
||||
if (!obj.ContainsKey(nameof(ModifierMap))) return info;
|
||||
foreach (var jObject in obj[nameof(ModifierMap)]!.ToObject<Dictionary<string, JObject>>()!)
|
||||
{
|
||||
info.ModifierMap.Add(jObject.Key, AdventureModifierConfig.LoadFromJObject(jObject.Value));
|
||||
}
|
||||
return info;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user