chore: update resources structure

This commit is contained in:
StopWuyu
2025-01-16 13:12:29 +08:00
parent e80110d5cb
commit 1fc63e507c
15 changed files with 86 additions and 44 deletions

View File

@@ -78,6 +78,11 @@ public static class HandbookGenerator
builder.AppendLine();
GenerateItem(builder, textMap, fallbackTextMap, lang == config.ServerOption.Language);
builder.AppendLine();
builder.AppendLine("#StageId");
builder.AppendLine();
GenerateStageId(builder, textMap, fallbackTextMap);
builder.AppendLine();
builder.AppendLine("#MainMission");
builder.AppendLine();
@@ -167,6 +172,17 @@ public static class HandbookGenerator
}
}
public static void GenerateStageId(StringBuilder builder, Dictionary<long, string> map,
Dictionary<long, string> fallback)
{
foreach (var stage in GameData.StageConfigData.Values)
{
var name = map.TryGetValue(stage.StageName.Hash, out var value) ? value :
fallback.TryGetValue(stage.StageName.Hash, out value) ? value : $"[{stage.StageName.Hash}]";
builder.AppendLine(stage.StageID + ": " + name);
}
}
public static void GenerateRogueBuff(StringBuilder builder, Dictionary<long, string> map,
Dictionary<long, string> fallback, bool setName)
{