mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
chore: update resources structure
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user