mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-20 19:39:47 +08:00
Update scene dungeon names
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
namespace GrasscutterTools.Game.Data.Excels
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace GrasscutterTools.Game.Data.Excels
|
||||||
{
|
{
|
||||||
[ResourceType("DungeonExcelConfigData.json")]
|
[ResourceType("DungeonExcelConfigData.json")]
|
||||||
internal class DungeonData : GameResource
|
internal class DungeonData : GameResource
|
||||||
{
|
{
|
||||||
|
[JsonProperty("sceneId")]
|
||||||
|
public int SceneId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -249,10 +249,20 @@ namespace GrasscutterTools.Game.Data
|
|||||||
|
|
||||||
|
|
||||||
sb.Clear();
|
sb.Clear();
|
||||||
|
foreach (var it in DungeonData.Values)
|
||||||
|
{
|
||||||
|
var scene = SceneData[it.SceneId];
|
||||||
|
scene.NameTextMapHash = it.NameTextMapHash;
|
||||||
|
}
|
||||||
foreach (var it in SceneData.Values.OrderBy(it => it.Id))
|
foreach (var it in SceneData.Values.OrderBy(it => it.Id))
|
||||||
{
|
{
|
||||||
var name = GameData.Scenes[it.Id];
|
if (it.NameTextMapHash == 0 || !TextMapData.TryGetText(it.NameTextMapHash.ToString(), out var name))
|
||||||
sb.AppendLine($"{it.Id}:{(name == ItemMap.EmptyName ? it.ScriptData : name)}");
|
{
|
||||||
|
name = GameData.Scenes[it.Id];
|
||||||
|
if (name == ItemMap.EmptyName)
|
||||||
|
name = it.ScriptData;
|
||||||
|
}
|
||||||
|
sb.AppendLine($"{it.Id}:{name}");
|
||||||
}
|
}
|
||||||
File.WriteAllText(
|
File.WriteAllText(
|
||||||
Path.Combine(dir, "Scene.txt"),
|
Path.Combine(dir, "Scene.txt"),
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user