mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-22 20:09:46 +08:00
Update All Resources to 4.5.0
This commit is contained in:
@@ -198,12 +198,28 @@ namespace GrasscutterTools.Game.Data
|
||||
#endregion Avatar
|
||||
|
||||
#region Dungeon
|
||||
|
||||
|
||||
// Dungeon
|
||||
File.WriteAllLines(
|
||||
sb.Clear();
|
||||
foreach (var it in DungeonData.Values)
|
||||
{
|
||||
if (!TextMapData.TryGetText(it.NameTextMapHash.ToString(), out var name))
|
||||
{
|
||||
var temp = GameData.Dungeons[it.Id];
|
||||
if (temp != ItemMap.EmptyName)
|
||||
name = temp;
|
||||
}
|
||||
|
||||
sb.AppendFormat("{0}:{1}", it.Id, name).AppendLine();
|
||||
}
|
||||
File.WriteAllText(
|
||||
Path.Combine(dir, "Dungeon.txt"),
|
||||
DungeonData.Values.Select(it => $"{it.Id}:{TextMapData.GetText(it.NameTextMapHash.ToString())}"),
|
||||
sb.ToString(),
|
||||
Encoding.UTF8);
|
||||
//File.WriteAllLines(
|
||||
// Path.Combine(dir, "Dungeon.txt"),
|
||||
// DungeonData.Values.Select(it => $"{it.Id}:{TextMapData.GetText(it.NameTextMapHash.ToString())}"),
|
||||
// Encoding.UTF8);
|
||||
|
||||
#endregion Dungeon
|
||||
|
||||
|
Reference in New Issue
Block a user