mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-09 08:41:33 +08:00
Update 4.1 resources(Avatar/Dungeon/Item/Weapon )
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// ReSharper disable InconsistentNaming
|
||||
// ReSharper disable IdentifierTypo
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GrasscutterTools.Game.Inventory
|
||||
@@ -169,6 +168,8 @@ namespace GrasscutterTools.Game.Inventory
|
||||
|
||||
public static string ToTranslatedString(this MaterialType materialType, string language)
|
||||
{
|
||||
if (!TextMapCHS.ContainsKey(materialType))
|
||||
return materialType.ToString();
|
||||
return language.StartsWith("zh") ? TextMapCHS[materialType] : TextMapEN[materialType];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user