Update 4.1 resources(Avatar/Dungeon/Item/Weapon )

This commit is contained in:
2023-09-29 14:13:58 +08:00
parent 1993d3d295
commit 1c49c41b71
20 changed files with 1960 additions and 729 deletions

View File

@@ -286,11 +286,16 @@ namespace GrasscutterTools.Game.Data
if (m.Key == MaterialType.MATERIAL_BGM)
{
foreach (var materialData in m)
{
var param = int.Parse(materialData.ItemUse[0].UseParam[0]);
var name = HomeWorldBgmData.ContainsKey(param) ? TextMapData.GetText(
HomeWorldBgmData[param].BgmNameTextMapHash.ToString()) : string.Empty;
sb.AppendFormat("{0}:{1} - {2}",
materialData.Id,
TextMapData.GetText(materialData.NameTextMapHash.ToString()),
TextMapData.GetText(HomeWorldBgmData[int.Parse(materialData.ItemUse[0].UseParam[0])].BgmNameTextMapHash.ToString())
).AppendLine();
name);
sb.AppendLine();
}
}
else
{