mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Update scene dungeon names
This commit is contained in:
1 parent
f48c9b4d0b
commit
c2ff37facf
6 files changed
+3097
-3083
No files matched your search
@@ -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