mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Update 4.1 resources(Avatar/Dungeon/Item/Weapon )
This commit is contained in:
1 parent
1993d3d295
commit
1c49c41b71
20 files changed
+1960
-729
No files matched your search
@@ -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