mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-21 19:53:29 +08:00
Update All Resources to 4.5.0
This commit is contained in:
@@ -198,12 +198,28 @@ namespace GrasscutterTools.Game.Data
|
||||
#endregion Avatar
|
||||
|
||||
#region Dungeon
|
||||
|
||||
|
||||
// Dungeon
|
||||
File.WriteAllLines(
|
||||
sb.Clear();
|
||||
foreach (var it in DungeonData.Values)
|
||||
{
|
||||
if (!TextMapData.TryGetText(it.NameTextMapHash.ToString(), out var name))
|
||||
{
|
||||
var temp = GameData.Dungeons[it.Id];
|
||||
if (temp != ItemMap.EmptyName)
|
||||
name = temp;
|
||||
}
|
||||
|
||||
sb.AppendFormat("{0}:{1}", it.Id, name).AppendLine();
|
||||
}
|
||||
File.WriteAllText(
|
||||
Path.Combine(dir, "Dungeon.txt"),
|
||||
DungeonData.Values.Select(it => $"{it.Id}:{TextMapData.GetText(it.NameTextMapHash.ToString())}"),
|
||||
sb.ToString(),
|
||||
Encoding.UTF8);
|
||||
//File.WriteAllLines(
|
||||
// Path.Combine(dir, "Dungeon.txt"),
|
||||
// DungeonData.Values.Select(it => $"{it.Id}:{TextMapData.GetText(it.NameTextMapHash.ToString())}"),
|
||||
// Encoding.UTF8);
|
||||
|
||||
#endregion Dungeon
|
||||
|
||||
|
@@ -59,6 +59,9 @@ namespace GrasscutterTools.Game.Inventory
|
||||
MATERIAL_RENAME_ITEM = 47,
|
||||
MATERIAL_GCG_EXCHANGE_ITEM = 48,
|
||||
MATERIAL_QUEST_EVENT_BOOK = 49,
|
||||
MATERIAL_PROFILE_PICTURE = 50,
|
||||
MATERIAL_RAINBOW_PRINCE_HAND_BOOK = 51,
|
||||
MATERIAL_PHOTO_DISPLAY_BOOK = 52,
|
||||
}
|
||||
|
||||
internal static class MaterialTypeExtension
|
||||
@@ -113,6 +116,9 @@ namespace GrasscutterTools.Game.Inventory
|
||||
[MaterialType.MATERIAL_RENAME_ITEM] = "改名卡",
|
||||
[MaterialType.MATERIAL_GCG_EXCHANGE_ITEM] = "七圣召唤-特殊卡",
|
||||
[MaterialType.MATERIAL_QUEST_EVENT_BOOK] = "案件记录册",
|
||||
[MaterialType.MATERIAL_PROFILE_PICTURE] = "头像道具",
|
||||
[MaterialType.MATERIAL_RAINBOW_PRINCE_HAND_BOOK] = "特尔克西的奇幻历险",
|
||||
[MaterialType.MATERIAL_PHOTO_DISPLAY_BOOK] = "纪念册",
|
||||
};
|
||||
private static readonly Dictionary<MaterialType, string> TextMapEN = new Dictionary<MaterialType, string>
|
||||
{
|
||||
@@ -164,6 +170,9 @@ namespace GrasscutterTools.Game.Inventory
|
||||
[MaterialType.MATERIAL_RENAME_ITEM] = "Rename_item",
|
||||
[MaterialType.MATERIAL_GCG_EXCHANGE_ITEM] = "Gcg_exchange_item",
|
||||
[MaterialType.MATERIAL_QUEST_EVENT_BOOK] = "Quest_event_book",
|
||||
[MaterialType.MATERIAL_PROFILE_PICTURE] = "Profile_picture",
|
||||
[MaterialType.MATERIAL_RAINBOW_PRINCE_HAND_BOOK] = "Thelxie's Fantastic Adventures",
|
||||
[MaterialType.MATERIAL_PHOTO_DISPLAY_BOOK] = "Album",
|
||||
};
|
||||
|
||||
public static string ToTranslatedString(this MaterialType materialType, string language)
|
||||
|
Reference in New Issue
Block a user