Milky Way Idle 统一数据管理:汉化、物品分类等,其他脚本通过 window.tmData 调用
Tento skript by neměl být instalován přímo. Jedná se o knihovnu, kterou by měly jiné skripty využívat pomocí meta příkazu // @require https://update.greasyfork.org/scripts/587836/1880678/MWI%20Data%20Center.js
// ==UserScript==
// @name 【MWI】数据中心
// @version 1.0.2
// @description Milky Way Idle 统一数据管理:汉化、物品分类等,其他脚本通过 window.tmData 调用
// @match https://test.milkywayidle.com/*
// @icon https://www.milkywayidle.com/favicon.svg
// @author DelayNoMore
// @license MIT
// @run-at document-start
// @grant none
// @namespace http://tampermonkey.net/
// ==/UserScript==
(function () {
'use strict';
// ==========================================
// 汉化数据 (Chinese Translation)
// ==========================================
let ITEM_NAME_MAP = {
"coin": "金币",
"task_token": "任务代币",
"labyrinth_token": "迷宫代币",
"chimerical_token": "奇幻代币",
"sinister_token": "阴森代币",
"enchanted_token": "秘法代币",
"pirate_token": "海盗代币",
"cowbell": "牛铃",
"bag_of_10_cowbells": "牛铃袋 (10个)",
"purples_gift": "小紫牛的礼物",
"small_meteorite_cache": "小陨石舱",
"medium_meteorite_cache": "中陨石舱",
"large_meteorite_cache": "大陨石舱",
"small_artisans_crate": "小工匠匣",
"medium_artisans_crate": "中工匠匣",
"large_artisans_crate": "大工匠匣",
"small_treasure_chest": "小宝箱",
"medium_treasure_chest": "中宝箱",
"large_treasure_chest": "大宝箱",
"chimerical_chest": "奇幻宝箱",
"chimerical_refinement_chest": "奇幻精炼宝箱",
"sinister_chest": "阴森宝箱",
"sinister_refinement_chest": "阴森精炼宝箱",
"enchanted_chest": "秘法宝箱",
"enchanted_refinement_chest": "秘法精炼宝箱",
"pirate_chest": "海盗宝箱",
"pirate_refinement_chest": "海盗精炼宝箱",
"blue_key_fragment": "蓝色钥匙碎片",
"green_key_fragment": "绿色钥匙碎片",
"purple_key_fragment": "紫色钥匙碎片",
"white_key_fragment": "白色钥匙碎片",
"orange_key_fragment": "橙色钥匙碎片",
"brown_key_fragment": "棕色钥匙碎片",
"stone_key_fragment": "石头钥匙碎片",
"dark_key_fragment": "黑暗钥匙碎片",
"burning_key_fragment": "燃烧钥匙碎片",
"chimerical_entry_key": "奇幻钥匙",
"chimerical_chest_key": "奇幻宝箱钥匙",
"sinister_entry_key": "阴森钥匙",
"sinister_chest_key": "阴森宝箱钥匙",
"enchanted_entry_key": "秘法钥匙",
"enchanted_chest_key": "秘法宝箱钥匙",
"pirate_entry_key": "海盗钥匙",
"pirate_chest_key": "海盗宝箱钥匙",
"donut": "甜甜圈",
"blueberry_donut": "蓝莓甜甜圈",
"blackberry_donut": "黑莓甜甜圈",
"strawberry_donut": "草莓甜甜圈",
"mooberry_donut": "哞莓甜甜圈",
"marsberry_donut": "火星莓甜甜圈",
"spaceberry_donut": "太空莓甜甜圈",
"cupcake": "纸杯蛋糕",
"blueberry_cake": "蓝莓蛋糕",
"blackberry_cake": "黑莓蛋糕",
"strawberry_cake": "草莓蛋糕",
"mooberry_cake": "哞莓蛋糕",
"marsberry_cake": "火星莓蛋糕",
"spaceberry_cake": "太空莓蛋糕",
"gummy": "软糖",
"apple_gummy": "苹果软糖",
"orange_gummy": "橙子软糖",
"plum_gummy": "李子软糖",
"peach_gummy": "桃子软糖",
"dragon_fruit_gummy": "火龙果软糖",
"star_fruit_gummy": "杨桃软糖",
"yogurt": "酸奶",
"apple_yogurt": "苹果酸奶",
"orange_yogurt": "橙子酸奶",
"plum_yogurt": "李子酸奶",
"peach_yogurt": "桃子酸奶",
"dragon_fruit_yogurt": "火龙果酸奶",
"star_fruit_yogurt": "杨桃酸奶",
"milking_tea": "挤奶茶",
"foraging_tea": "采摘茶",
"woodcutting_tea": "伐木茶",
"cooking_tea": "烹饪茶",
"brewing_tea": "冲泡茶",
"alchemy_tea": "炼金茶",
"enhancing_tea": "强化茶",
"cheesesmithing_tea": "奶酪锻造茶",
"crafting_tea": "制作茶",
"tailoring_tea": "缝纫茶",
"super_milking_tea": "超级挤奶茶",
"super_foraging_tea": "超级采摘茶",
"super_woodcutting_tea": "超级伐木茶",
"super_cooking_tea": "超级烹饪茶",
"super_brewing_tea": "超级冲泡茶",
"super_alchemy_tea": "超级炼金茶",
"super_enhancing_tea": "超级强化茶",
"super_cheesesmithing_tea": "超级奶酪锻造茶",
"super_crafting_tea": "超级制作茶",
"super_tailoring_tea": "超级缝纫茶",
"ultra_milking_tea": "究极挤奶茶",
"ultra_foraging_tea": "究极采摘茶",
"ultra_woodcutting_tea": "究极伐木茶",
"ultra_cooking_tea": "究极烹饪茶",
"ultra_brewing_tea": "究极冲泡茶",
"ultra_alchemy_tea": "究极炼金茶",
"ultra_enhancing_tea": "究极强化茶",
"ultra_cheesesmithing_tea": "究极奶酪锻造茶",
"ultra_crafting_tea": "究极制作茶",
"ultra_tailoring_tea": "究极缝纫茶",
"gathering_tea": "采集茶",
"gourmet_tea": "美食茶",
"wisdom_tea": "经验茶",
"processing_tea": "加工茶",
"efficiency_tea": "效率茶",
"artisan_tea": "工匠茶",
"catalytic_tea": "催化茶",
"blessed_tea": "福气茶",
"stamina_coffee": "耐力咖啡",
"intelligence_coffee": "智力咖啡",
"defense_coffee": "防御咖啡",
"attack_coffee": "攻击咖啡",
"melee_coffee": "近战咖啡",
"ranged_coffee": "远程咖啡",
"magic_coffee": "魔法咖啡",
"super_stamina_coffee": "超级耐力咖啡",
"super_intelligence_coffee": "超级智力咖啡",
"super_defense_coffee": "超级防御咖啡",
"super_attack_coffee": "超级攻击咖啡",
"super_melee_coffee": "超级近战咖啡",
"super_ranged_coffee": "超级远程咖啡",
"super_magic_coffee": "超级魔法咖啡",
"ultra_stamina_coffee": "究极耐力咖啡",
"ultra_intelligence_coffee": "究极智力咖啡",
"ultra_defense_coffee": "究极防御咖啡",
"ultra_attack_coffee": "究极攻击咖啡",
"ultra_melee_coffee": "究极近战咖啡",
"ultra_ranged_coffee": "究极远程咖啡",
"ultra_magic_coffee": "究极魔法咖啡",
"wisdom_coffee": "经验咖啡",
"lucky_coffee": "幸运咖啡",
"swiftness_coffee": "迅捷咖啡",
"channeling_coffee": "吟唱咖啡",
"critical_coffee": "暴击咖啡",
"poke": "破胆之刺",
"impale": "透骨之刺",
"puncture": "破甲之刺",
"penetrating_strike": "贯心之刺",
"scratch": "爪影斩",
"cleave": "分裂斩",
"maim": "血刃斩",
"crippling_slash": "致残斩",
"smack": "重碾",
"sweep": "重扫",
"stunning_blow": "重锤",
"fracturing_impact": "碎裂冲击",
"shield_bash": "盾击",
"quick_shot": "快速射击",
"aqua_arrow": "流水箭",
"flame_arrow": "烈焰箭",
"rain_of_arrows": "箭雨",
"silencing_shot": "沉默之箭",
"steady_shot": "稳定射击",
"pestilent_shot": "疫病射击",
"penetrating_shot": "贯穿射击",
"water_strike": "流水冲击",
"ice_spear": "冰枪术",
"frost_surge": "冰霜爆裂",
"mana_spring": "法力喷泉",
"entangle": "缠绕",
"toxic_pollen": "剧毒粉尘",
"natures_veil": "自然菌幕",
"life_drain": "生命吸取",
"fireball": "火球",
"flame_blast": "熔岩爆裂",
"firestorm": "火焰风暴",
"smoke_burst": "烟爆灭影",
"minor_heal": "初级自愈术",
"heal": "自愈术",
"quick_aid": "快速治疗术",
"rejuvenate": "群体治疗术",
"taunt": "嘲讽",
"provoke": "挑衅",
"toughness": "坚韧",
"elusiveness": "闪避",
"precision": "精确",
"berserk": "狂暴",
"elemental_affinity": "元素增幅",
"frenzy": "狂速",
"spike_shell": "尖刺防护",
"retribution": "惩戒",
"vampirism": "吸血",
"revive": "复活",
"insanity": "疯狂",
"invincible": "无敌",
"speed_aura": "速度光环",
"guardian_aura": "守护光环",
"fierce_aura": "物理光环",
"critical_aura": "暴击光环",
"mystic_aura": "元素光环",
"gobo_stabber": "哥布林长剑",
"gobo_slasher": "哥布林关刀",
"gobo_smasher": "哥布林狼牙棒",
"spiked_bulwark": "尖刺重盾",
"werewolf_slasher": "狼人关刀",
"griffin_bulwark": "狮鹫重盾",
"griffin_bulwark_refined": "狮鹫重盾(精)",
"gobo_shooter": "哥布林弹弓",
"vampiric_bow": "吸血弓",
"cursed_bow": "咒怨之弓",
"cursed_bow_refined": "咒怨之弓(精)",
"gobo_boomstick": "哥布林火棍",
"cheese_bulwark": "奶酪重盾",
"verdant_bulwark": "翠绿重盾",
"azure_bulwark": "蔚蓝重盾",
"burble_bulwark": "深紫重盾",
"crimson_bulwark": "绛红重盾",
"rainbow_bulwark": "彩虹重盾",
"holy_bulwark": "神圣重盾",
"wooden_bow": "木弓",
"birch_bow": "桦木弓",
"cedar_bow": "雪松弓",
"purpleheart_bow": "紫心弓",
"ginkgo_bow": "银杏弓",
"redwood_bow": "红杉弓",
"arcane_bow": "神秘弓",
"stalactite_spear": "石钟长枪",
"granite_bludgeon": "花岗岩大棒",
"furious_spear": "狂怒长枪",
"furious_spear_refined": "狂怒长枪(精)",
"regal_sword": "君王之剑",
"regal_sword_refined": "君王之剑(精)",
"chaotic_flail": "混沌连枷",
"chaotic_flail_refined": "混沌连枷(精)",
"soul_hunter_crossbow": "灵魂猎手弩",
"sundering_crossbow": "裂空之弩",
"sundering_crossbow_refined": "裂空之弩(精)",
"frost_staff": "冰霜法杖",
"infernal_battlestaff": "炼狱法杖",
"jackalope_staff": "鹿角兔之杖",
"rippling_trident": "涟漪三叉戟",
"rippling_trident_refined": "涟漪三叉戟(精)",
"blooming_trident": "绽放三叉戟",
"blooming_trident_refined": "绽放三叉戟(精)",
"blazing_trident": "炽焰三叉戟",
"blazing_trident_refined": "炽焰三叉戟(精)",
"cheese_sword": "奶酪剑",
"verdant_sword": "翠绿剑",
"azure_sword": "蔚蓝剑",
"burble_sword": "深紫剑",
"crimson_sword": "绛红剑",
"rainbow_sword": "彩虹剑",
"holy_sword": "神圣剑",
"cheese_spear": "奶酪长枪",
"verdant_spear": "翠绿长枪",
"azure_spear": "蔚蓝长枪",
"burble_spear": "深紫长枪",
"crimson_spear": "绛红长枪",
"rainbow_spear": "彩虹长枪",
"holy_spear": "神圣长枪",
"cheese_mace": "奶酪钉头锤",
"verdant_mace": "翠绿钉头锤",
"azure_mace": "蔚蓝钉头锤",
"burble_mace": "深紫钉头锤",
"crimson_mace": "绛红钉头锤",
"rainbow_mace": "彩虹钉头锤",
"holy_mace": "神圣钉头锤",
"wooden_crossbow": "木弩",
"birch_crossbow": "桦木弩",
"cedar_crossbow": "雪松弩",
"purpleheart_crossbow": "紫心弩",
"ginkgo_crossbow": "银杏弩",
"redwood_crossbow": "红杉弩",
"arcane_crossbow": "神秘弩",
"wooden_water_staff": "木制水法杖",
"birch_water_staff": "桦木水法杖",
"cedar_water_staff": "雪松水法杖",
"purpleheart_water_staff": "紫心水法杖",
"ginkgo_water_staff": "银杏水法杖",
"redwood_water_staff": "红杉水法杖",
"arcane_water_staff": "神秘水法杖",
"wooden_nature_staff": "木制自然法杖",
"birch_nature_staff": "桦木自然法杖",
"cedar_nature_staff": "雪松自然法杖",
"purpleheart_nature_staff": "紫心自然法杖",
"ginkgo_nature_staff": "银杏自然法杖",
"redwood_nature_staff": "红杉自然法杖",
"arcane_nature_staff": "神秘自然法杖",
"wooden_fire_staff": "木制火法杖",
"birch_fire_staff": "桦木火法杖",
"cedar_fire_staff": "雪松火法杖",
"purpleheart_fire_staff": "紫心火法杖",
"ginkgo_fire_staff": "银杏火法杖",
"redwood_fire_staff": "红杉火法杖",
"arcane_fire_staff": "神秘火法杖",
"eye_watch": "掌上监工",
"snake_fang_dirk": "蛇牙短剑",
"vision_shield": "视觉盾",
"gobo_defender": "哥布林防御者",
"vampire_fang_dirk": "吸血鬼短剑",
"knights_aegis": "骑士盾",
"knights_aegis_refined": "骑士盾(精)",
"treant_shield": "树人盾",
"manticore_shield": "蝎狮盾",
"tome_of_healing": "治疗之书",
"tome_of_the_elements": "元素之书",
"watchful_relic": "警戒遗物",
"bishops_codex": "主教法典",
"bishops_codex_refined": "主教法典(精)",
"cheese_buckler": "奶酪圆盾",
"verdant_buckler": "翠绿圆盾",
"azure_buckler": "蔚蓝圆盾",
"burble_buckler": "深紫圆盾",
"crimson_buckler": "绛红圆盾",
"rainbow_buckler": "彩虹圆盾",
"holy_buckler": "神圣圆盾",
"wooden_shield": "木盾",
"birch_shield": "桦木盾",
"cedar_shield": "雪松盾",
"purpleheart_shield": "紫心盾",
"ginkgo_shield": "银杏盾",
"redwood_shield": "红杉盾",
"arcane_shield": "神秘盾",
"sinister_cape": "阴森斗篷",
"sinister_cape_refined": "阴森斗篷(精)",
"chimerical_quiver": "奇幻箭袋",
"chimerical_quiver_refined": "奇幻箭袋(精)",
"enchanted_cloak": "秘法披风",
"enchanted_cloak_refined": "秘法披风(精)",
"red_culinary_hat": "红色厨师帽",
"snail_shell_helmet": "蜗牛壳头盔",
"vision_helmet": "视觉头盔",
"fluffy_red_hat": "蓬松红帽子",
"corsair_helmet": "掠夺者头盔",
"corsair_helmet_refined": "掠夺者头盔(精)",
"acrobatic_hood": "杂技师兜帽",
"acrobatic_hood_refined": "杂技师兜帽(精)",
"magicians_hat": "魔术师帽",
"magicians_hat_refined": "魔术师帽(精)",
"cheese_helmet": "奶酪头盔",
"verdant_helmet": "翠绿头盔",
"azure_helmet": "蔚蓝头盔",
"burble_helmet": "深紫头盔",
"crimson_helmet": "绛红头盔",
"rainbow_helmet": "彩虹头盔",
"holy_helmet": "神圣头盔",
"rough_hood": "粗糙兜帽",
"reptile_hood": "爬行动物兜帽",
"gobo_hood": "哥布林兜帽",
"beast_hood": "野兽兜帽",
"umbral_hood": "暗影兜帽",
"cotton_hat": "棉帽",
"linen_hat": "亚麻帽",
"bamboo_hat": "竹帽",
"silk_hat": "丝帽",
"radiant_hat": "光辉帽",
"dairyhands_top": "挤奶工上衣",
"foragers_top": "采摘者上衣",
"lumberjacks_top": "伐木工上衣",
"cheesemakers_top": "奶酪师上衣",
"crafters_top": "工匠上衣",
"tailors_top": "裁缝上衣",
"chefs_top": "厨师上衣",
"brewers_top": "饮品师上衣",
"alchemists_top": "炼金师上衣",
"enhancers_top": "强化师上衣",
"gator_vest": "鳄鱼马甲",
"turtle_shell_body": "龟壳胸甲",
"colossus_plate_body": "巨像胸甲",
"demonic_plate_body": "恶魔胸甲",
"anchorbound_plate_body": "锚定胸甲",
"anchorbound_plate_body_refined": "锚定胸甲(精)",
"maelstrom_plate_body": "怒涛胸甲",
"maelstrom_plate_body_refined": "怒涛胸甲(精)",
"marine_tunic": "海洋皮衣",
"revenant_tunic": "亡灵皮衣",
"griffin_tunic": "狮鹫皮衣",
"kraken_tunic": "克拉肯皮衣",
"kraken_tunic_refined": "克拉肯皮衣(精)",
"icy_robe_top": "冰霜袍服",
"flaming_robe_top": "烈焰袍服",
"luna_robe_top": "月神袍服",
"royal_water_robe_top": "皇家水系袍服",
"royal_water_robe_top_refined": "皇家水系袍服(精)",
"royal_nature_robe_top": "皇家自然系袍服",
"royal_nature_robe_top_refined": "皇家自然系袍服(精)",
"royal_fire_robe_top": "皇家火系袍服",
"royal_fire_robe_top_refined": "皇家火系袍服(精)",
"cheese_plate_body": "奶酪胸甲",
"verdant_plate_body": "翠绿胸甲",
"azure_plate_body": "蔚蓝胸甲",
"burble_plate_body": "深紫胸甲",
"crimson_plate_body": "绛红胸甲",
"rainbow_plate_body": "彩虹胸甲",
"holy_plate_body": "神圣胸甲",
"rough_tunic": "粗糙皮衣",
"reptile_tunic": "爬行动物皮衣",
"gobo_tunic": "哥布林皮衣",
"beast_tunic": "野兽皮衣",
"umbral_tunic": "暗影皮衣",
"cotton_robe_top": "棉袍服",
"linen_robe_top": "亚麻袍服",
"bamboo_robe_top": "竹袍服",
"silk_robe_top": "丝绸袍服",
"radiant_robe_top": "光辉袍服",
"dairyhands_bottoms": "挤奶工下装",
"foragers_bottoms": "采摘者下装",
"lumberjacks_bottoms": "伐木工下装",
"cheesemakers_bottoms": "奶酪师下装",
"crafters_bottoms": "工匠下装",
"tailors_bottoms": "裁缝下装",
"chefs_bottoms": "厨师下装",
"brewers_bottoms": "饮品师下装",
"alchemists_bottoms": "炼金师下装",
"enhancers_bottoms": "强化师下装",
"turtle_shell_legs": "龟壳腿甲",
"colossus_plate_legs": "巨像腿甲",
"demonic_plate_legs": "恶魔腿甲",
"anchorbound_plate_legs": "锚定腿甲",
"anchorbound_plate_legs_refined": "锚定腿甲(精)",
"maelstrom_plate_legs": "怒涛腿甲",
"maelstrom_plate_legs_refined": "怒涛腿甲(精)",
"marine_chaps": "航海皮裤",
"revenant_chaps": "亡灵皮裤",
"griffin_chaps": "狮鹫皮裤",
"kraken_chaps": "克拉肯皮裤",
"kraken_chaps_refined": "克拉肯皮裤(精)",
"icy_robe_bottoms": "冰霜袍裙",
"flaming_robe_bottoms": "烈焰袍裙",
"luna_robe_bottoms": "月神袍裙",
"royal_water_robe_bottoms": "皇家水系袍裙",
"royal_water_robe_bottoms_refined": "皇家水系袍裙(精)",
"royal_nature_robe_bottoms": "皇家自然系袍裙",
"royal_nature_robe_bottoms_refined": "皇家自然系袍裙(精)",
"royal_fire_robe_bottoms": "皇家火系袍裙",
"royal_fire_robe_bottoms_refined": "皇家火系袍裙(精)",
"cheese_plate_legs": "奶酪腿甲",
"verdant_plate_legs": "翠绿腿甲",
"azure_plate_legs": "蔚蓝腿甲",
"burble_plate_legs": "深紫腿甲",
"crimson_plate_legs": "绛红腿甲",
"rainbow_plate_legs": "彩虹腿甲",
"holy_plate_legs": "神圣腿甲",
"rough_chaps": "粗糙皮裤",
"reptile_chaps": "爬行动物皮裤",
"gobo_chaps": "哥布林皮裤",
"beast_chaps": "野兽皮裤",
"umbral_chaps": "暗影皮裤",
"cotton_robe_bottoms": "棉袍裙",
"linen_robe_bottoms": "亚麻袍裙",
"bamboo_robe_bottoms": "竹袍裙",
"silk_robe_bottoms": "丝绸袍裙",
"radiant_robe_bottoms": "光辉袍裙",
"enchanted_gloves": "附魔手套",
"pincer_gloves": "蟹钳手套",
"panda_gloves": "熊猫手套",
"magnetic_gloves": "磁力手套",
"dodocamel_gauntlets": "渡渡驼护手",
"dodocamel_gauntlets_refined": "渡渡驼护手(精)",
"sighted_bracers": "瞄准护腕",
"marksman_bracers": "神射护腕",
"marksman_bracers_refined": "神射护腕(精)",
"chrono_gloves": "时空手套",
"cheese_gauntlets": "奶酪护手",
"verdant_gauntlets": "翠绿护手",
"azure_gauntlets": "蔚蓝护手",
"burble_gauntlets": "深紫护手",
"crimson_gauntlets": "绛红护手",
"rainbow_gauntlets": "彩虹护手",
"holy_gauntlets": "神圣护手",
"rough_bracers": "粗糙护腕",
"reptile_bracers": "爬行动物护腕",
"gobo_bracers": "哥布林护腕",
"beast_bracers": "野兽护腕",
"umbral_bracers": "暗影护腕",
"cotton_gloves": "棉手套",
"linen_gloves": "亚麻手套",
"bamboo_gloves": "竹手套",
"silk_gloves": "丝手套",
"radiant_gloves": "光辉手套",
"collectors_boots": "收藏家靴",
"shoebill_shoes": "鲸头鹳鞋",
"black_bear_shoes": "黑熊鞋",
"grizzly_bear_shoes": "棕熊鞋",
"polar_bear_shoes": "北极熊鞋",
"centaur_boots": "半人马靴",
"sorcerer_boots": "巫师靴",
"cheese_boots": "奶酪靴",
"verdant_boots": "翠绿靴",
"azure_boots": "蔚蓝靴",
"burble_boots": "深紫靴",
"crimson_boots": "绛红靴",
"rainbow_boots": "彩虹靴",
"holy_boots": "神圣靴",
"rough_boots": "粗糙靴",
"reptile_boots": "爬行动物靴",
"gobo_boots": "哥布林靴",
"beast_boots": "野兽靴",
"umbral_boots": "暗影靴",
"cotton_boots": "棉靴",
"linen_boots": "亚麻靴",
"bamboo_boots": "竹靴",
"silk_boots": "丝靴",
"radiant_boots": "光辉靴",
"small_pouch": "小袋子",
"medium_pouch": "中袋子",
"large_pouch": "大袋子",
"giant_pouch": "巨大袋子",
"gluttonous_pouch": "贪食之袋",
"guzzling_pouch": "暴饮之囊",
"necklace_of_efficiency": "效率项链",
"fighter_necklace": "战士项链",
"ranger_necklace": "射手项链",
"wizard_necklace": "巫师项链",
"necklace_of_wisdom": "经验项链",
"necklace_of_speed": "速度项链",
"philosophers_necklace": "贤者项链",
"earrings_of_gathering": "采集耳环",
"earrings_of_essence_find": "精华发现耳环",
"earrings_of_armor": "护甲耳环",
"earrings_of_regeneration": "恢复耳环",
"earrings_of_resistance": "抗性耳环",
"earrings_of_rare_find": "稀有发现耳环",
"earrings_of_critical_strike": "暴击耳环",
"philosophers_earrings": "贤者耳环",
"ring_of_gathering": "采集戒指",
"ring_of_essence_find": "精华发现戒指",
"ring_of_armor": "护甲戒指",
"ring_of_regeneration": "恢复戒指",
"ring_of_resistance": "抗性戒指",
"ring_of_rare_find": "稀有发现戒指",
"ring_of_critical_strike": "暴击戒指",
"philosophers_ring": "贤者戒指",
"trainee_milking_charm": "实习挤奶护符",
"basic_milking_charm": "基础挤奶护符",
"advanced_milking_charm": "高级挤奶护符",
"expert_milking_charm": "专家挤奶护符",
"master_milking_charm": "大师挤奶护符",
"grandmaster_milking_charm": "宗师挤奶护符",
"trainee_foraging_charm": "实习采摘护符",
"basic_foraging_charm": "基础采摘护符",
"advanced_foraging_charm": "高级采摘护符",
"expert_foraging_charm": "专家采摘护符",
"master_foraging_charm": "大师采摘护符",
"grandmaster_foraging_charm": "宗师采摘护符",
"trainee_woodcutting_charm": "实习伐木护符",
"basic_woodcutting_charm": "基础伐木护符",
"advanced_woodcutting_charm": "高级伐木护符",
"expert_woodcutting_charm": "专家伐木护符",
"master_woodcutting_charm": "大师伐木护符",
"grandmaster_woodcutting_charm": "宗师伐木护符",
"trainee_cheesesmithing_charm": "实习奶酪锻造护符",
"basic_cheesesmithing_charm": "基础奶酪锻造护符",
"advanced_cheesesmithing_charm": "高级奶酪锻造护符",
"expert_cheesesmithing_charm": "专家奶酪锻造护符",
"master_cheesesmithing_charm": "大师奶酪锻造护符",
"grandmaster_cheesesmithing_charm": "宗师奶酪锻造护符",
"trainee_crafting_charm": "实习制作护符",
"basic_crafting_charm": "基础制作护符",
"advanced_crafting_charm": "高级制作护符",
"expert_crafting_charm": "专家制作护符",
"master_crafting_charm": "大师制作护符",
"grandmaster_crafting_charm": "宗师制作护符",
"trainee_tailoring_charm": "实习缝纫护符",
"basic_tailoring_charm": "基础缝纫护符",
"advanced_tailoring_charm": "高级缝纫护符",
"expert_tailoring_charm": "专家缝纫护符",
"master_tailoring_charm": "大师缝纫护符",
"grandmaster_tailoring_charm": "宗师缝纫护符",
"trainee_cooking_charm": "实习烹饪护符",
"basic_cooking_charm": "基础烹饪护符",
"advanced_cooking_charm": "高级烹饪护符",
"expert_cooking_charm": "专家烹饪护符",
"master_cooking_charm": "大师烹饪护符",
"grandmaster_cooking_charm": "宗师烹饪护符",
"trainee_brewing_charm": "实习冲泡护符",
"basic_brewing_charm": "基础冲泡护符",
"advanced_brewing_charm": "高级冲泡护符",
"expert_brewing_charm": "专家冲泡护符",
"master_brewing_charm": "大师冲泡护符",
"grandmaster_brewing_charm": "宗师冲泡护符",
"trainee_alchemy_charm": "实习炼金护符",
"basic_alchemy_charm": "基础炼金护符",
"advanced_alchemy_charm": "高级炼金护符",
"expert_alchemy_charm": "专家炼金护符",
"master_alchemy_charm": "大师炼金护符",
"grandmaster_alchemy_charm": "宗师炼金护符",
"trainee_enhancing_charm": "实习强化护符",
"basic_enhancing_charm": "基础强化护符",
"advanced_enhancing_charm": "高级强化护符",
"expert_enhancing_charm": "专家强化护符",
"master_enhancing_charm": "大师强化护符",
"grandmaster_enhancing_charm": "宗师强化护符",
"trainee_stamina_charm": "实习耐力护符",
"basic_stamina_charm": "基础耐力护符",
"advanced_stamina_charm": "高级耐力护符",
"expert_stamina_charm": "专家耐力护符",
"master_stamina_charm": "大师耐力护符",
"grandmaster_stamina_charm": "宗师耐力护符",
"trainee_intelligence_charm": "实习智力护符",
"basic_intelligence_charm": "基础智力护符",
"advanced_intelligence_charm": "高级智力护符",
"expert_intelligence_charm": "专家智力护符",
"master_intelligence_charm": "大师智力护符",
"grandmaster_intelligence_charm": "宗师智力护符",
"trainee_attack_charm": "实习攻击护符",
"basic_attack_charm": "基础攻击护符",
"advanced_attack_charm": "高级攻击护符",
"expert_attack_charm": "专家攻击护符",
"master_attack_charm": "大师攻击护符",
"grandmaster_attack_charm": "宗师攻击护符",
"trainee_defense_charm": "实习防御护符",
"basic_defense_charm": "基础防御护符",
"advanced_defense_charm": "高级防御护符",
"expert_defense_charm": "专家防御护符",
"master_defense_charm": "大师防御护符",
"grandmaster_defense_charm": "宗师防御护符",
"trainee_melee_charm": "实习近战护符",
"basic_melee_charm": "基础近战护符",
"advanced_melee_charm": "高级近战护符",
"expert_melee_charm": "专家近战护符",
"master_melee_charm": "大师近战护符",
"grandmaster_melee_charm": "宗师近战护符",
"trainee_ranged_charm": "实习远程护符",
"basic_ranged_charm": "基础远程护符",
"advanced_ranged_charm": "高级远程护符",
"expert_ranged_charm": "专家远程护符",
"master_ranged_charm": "大师远程护符",
"grandmaster_ranged_charm": "宗师远程护符",
"trainee_magic_charm": "实习魔法护符",
"basic_magic_charm": "基础魔法护符",
"advanced_magic_charm": "高级魔法护符",
"expert_magic_charm": "专家魔法护符",
"master_magic_charm": "大师魔法护符",
"grandmaster_magic_charm": "宗师魔法护符",
"basic_task_badge": "基础任务徽章",
"advanced_task_badge": "高级任务徽章",
"expert_task_badge": "专家任务徽章",
"celestial_brush": "星空刷子",
"cheese_brush": "奶酪刷子",
"verdant_brush": "翠绿刷子",
"azure_brush": "蔚蓝刷子",
"burble_brush": "深紫刷子",
"crimson_brush": "绛红刷子",
"rainbow_brush": "彩虹刷子",
"holy_brush": "神圣刷子",
"celestial_shears": "星空剪刀",
"cheese_shears": "奶酪剪刀",
"verdant_shears": "翠绿剪刀",
"azure_shears": "蔚蓝剪刀",
"burble_shears": "深紫剪刀",
"crimson_shears": "绛红剪刀",
"rainbow_shears": "彩虹剪刀",
"holy_shears": "神圣剪刀",
"celestial_hatchet": "星空斧头",
"cheese_hatchet": "奶酪斧头",
"verdant_hatchet": "翠绿斧头",
"azure_hatchet": "蔚蓝斧头",
"burble_hatchet": "深紫斧头",
"crimson_hatchet": "绛红斧头",
"rainbow_hatchet": "彩虹斧头",
"holy_hatchet": "神圣斧头",
"celestial_hammer": "星空锤子",
"cheese_hammer": "奶酪锤子",
"verdant_hammer": "翠绿锤子",
"azure_hammer": "蔚蓝锤子",
"burble_hammer": "深紫锤子",
"crimson_hammer": "绛红锤子",
"rainbow_hammer": "彩虹锤子",
"holy_hammer": "神圣锤子",
"celestial_chisel": "星空凿子",
"cheese_chisel": "奶酪凿子",
"verdant_chisel": "翠绿凿子",
"azure_chisel": "蔚蓝凿子",
"burble_chisel": "深紫凿子",
"crimson_chisel": "绛红凿子",
"rainbow_chisel": "彩虹凿子",
"holy_chisel": "神圣凿子",
"celestial_needle": "星空针",
"cheese_needle": "奶酪针",
"verdant_needle": "翠绿针",
"azure_needle": "蔚蓝针",
"burble_needle": "深紫针",
"crimson_needle": "绛红针",
"rainbow_needle": "彩虹针",
"holy_needle": "神圣针",
"celestial_spatula": "星空锅铲",
"cheese_spatula": "奶酪锅铲",
"verdant_spatula": "翠绿锅铲",
"azure_spatula": "蔚蓝锅铲",
"burble_spatula": "深紫锅铲",
"crimson_spatula": "绛红锅铲",
"rainbow_spatula": "彩虹锅铲",
"holy_spatula": "神圣锅铲",
"celestial_pot": "星空壶",
"cheese_pot": "奶酪壶",
"verdant_pot": "翠绿壶",
"azure_pot": "蔚蓝壶",
"burble_pot": "深紫壶",
"crimson_pot": "绛红壶",
"rainbow_pot": "彩虹壶",
"holy_pot": "神圣壶",
"celestial_alembic": "星空蒸馏器",
"cheese_alembic": "奶酪蒸馏器",
"verdant_alembic": "翠绿蒸馏器",
"azure_alembic": "蔚蓝蒸馏器",
"burble_alembic": "深紫蒸馏器",
"crimson_alembic": "绛红蒸馏器",
"rainbow_alembic": "彩虹蒸馏器",
"holy_alembic": "神圣蒸馏器",
"celestial_enhancer": "星空强化器",
"cheese_enhancer": "奶酪强化器",
"verdant_enhancer": "翠绿强化器",
"azure_enhancer": "蔚蓝强化器",
"burble_enhancer": "深紫强化器",
"crimson_enhancer": "绛红强化器",
"rainbow_enhancer": "彩虹强化器",
"holy_enhancer": "神圣强化器",
"milk": "牛奶",
"verdant_milk": "翠绿牛奶",
"azure_milk": "蔚蓝牛奶",
"burble_milk": "深紫牛奶",
"crimson_milk": "绛红牛奶",
"rainbow_milk": "彩虹牛奶",
"holy_milk": "神圣牛奶",
"cheese": "奶酪",
"verdant_cheese": "翠绿奶酪",
"azure_cheese": "蔚蓝奶酪",
"burble_cheese": "深紫奶酪",
"crimson_cheese": "绛红奶酪",
"rainbow_cheese": "彩虹奶酪",
"holy_cheese": "神圣奶酪",
"log": "原木",
"birch_log": "白桦原木",
"cedar_log": "雪松原木",
"purpleheart_log": "紫心原木",
"ginkgo_log": "银杏原木",
"redwood_log": "红杉原木",
"arcane_log": "神秘原木",
"lumber": "木板",
"birch_lumber": "白桦木板",
"cedar_lumber": "雪松木板",
"purpleheart_lumber": "紫心木板",
"ginkgo_lumber": "银杏木板",
"redwood_lumber": "红杉木板",
"arcane_lumber": "神秘木板",
"rough_hide": "粗糙兽皮",
"reptile_hide": "爬行动物皮",
"gobo_hide": "哥布林皮",
"beast_hide": "野兽皮",
"umbral_hide": "暗影皮",
"rough_leather": "粗糙皮革",
"reptile_leather": "爬行动物皮革",
"gobo_leather": "哥布林皮革",
"beast_leather": "野兽皮革",
"umbral_leather": "暗影皮革",
"cotton": "棉花",
"flax": "亚麻",
"bamboo_branch": "竹子",
"cocoon": "蚕茧",
"radiant_fiber": "光辉纤维",
"cotton_fabric": "棉花布料",
"linen_fabric": "亚麻布料",
"bamboo_fabric": "竹子布料",
"silk_fabric": "丝绸",
"radiant_fabric": "光辉布料",
"egg": "鸡蛋",
"wheat": "小麦",
"sugar": "糖",
"blueberry": "蓝莓",
"blackberry": "黑莓",
"strawberry": "草莓",
"mooberry": "哞莓",
"marsberry": "火星莓",
"spaceberry": "太空莓",
"apple": "苹果",
"orange": "橙子",
"plum": "李子",
"peach": "桃子",
"dragon_fruit": "火龙果",
"star_fruit": "杨桃",
"arabica_coffee_bean": "低级咖啡豆",
"robusta_coffee_bean": "中级咖啡豆",
"liberica_coffee_bean": "高级咖啡豆",
"excelsa_coffee_bean": "特级咖啡豆",
"fieriosa_coffee_bean": "火山咖啡豆",
"spacia_coffee_bean": "太空咖啡豆",
"green_tea_leaf": "绿茶叶",
"black_tea_leaf": "黑茶叶",
"burble_tea_leaf": "紫茶叶",
"moolong_tea_leaf": "哞龙茶叶",
"red_tea_leaf": "红茶叶",
"emp_tea_leaf": "虚空茶叶",
"catalyst_of_coinification": "点金催化剂",
"catalyst_of_decomposition": "分解催化剂",
"catalyst_of_transmutation": "转化催化剂",
"prime_catalyst": "至高催化剂",
"snake_fang": "蛇牙",
"shoebill_feather": "鲸头鹳羽毛",
"snail_shell": "蜗牛壳",
"crab_pincer": "蟹钳",
"turtle_shell": "乌龟壳",
"marine_scale": "海洋鳞片",
"treant_bark": "树皮",
"centaur_hoof": "半人马蹄",
"luna_wing": "月神翼",
"gobo_rag": "哥布林抹布",
"goggles": "护目镜",
"magnifying_glass": "放大镜",
"eye_of_the_watcher": "观察者之眼",
"icy_cloth": "冰霜织物",
"flaming_cloth": "烈焰织物",
"sorcerers_sole": "魔法师鞋底",
"chrono_sphere": "时空球",
"frost_sphere": "冰霜球",
"panda_fluff": "熊猫绒",
"black_bear_fluff": "黑熊绒",
"grizzly_bear_fluff": "棕熊绒",
"polar_bear_fluff": "北极熊绒",
"red_panda_fluff": "小熊猫绒",
"magnet": "磁铁",
"stalactite_shard": "钟乳石碎片",
"living_granite": "花岗岩",
"colossus_core": "巨像核心",
"vampire_fang": "吸血鬼之牙",
"werewolf_claw": "狼人之爪",
"revenant_anima": "亡者之魂",
"soul_fragment": "灵魂碎片",
"infernal_ember": "地狱余烬",
"demonic_core": "恶魔核心",
"griffin_leather": "狮鹫之皮",
"manticore_sting": "蝎狮之刺",
"jackalope_antler": "鹿角兔之角",
"dodocamel_plume": "渡渡驼之翎",
"griffin_talon": "狮鹫之爪",
"chimerical_refinement_shard": "奇幻精炼碎片",
"acrobats_ribbon": "杂技师彩带",
"magicians_cloth": "魔术师织物",
"chaotic_chain": "混沌锁链",
"cursed_ball": "诅咒之球",
"sinister_refinement_shard": "阴森精炼碎片",
"royal_cloth": "皇家织物",
"knights_ingot": "骑士之锭",
"bishops_scroll": "主教卷轴",
"regal_jewel": "君王宝石",
"sundering_jewel": "裂空宝石",
"enchanted_refinement_shard": "秘法精炼碎片",
"marksman_brooch": "神射胸针",
"corsair_crest": "掠夺者徽章",
"damaged_anchor": "破损船锚",
"maelstrom_plating": "怒涛甲片",
"kraken_leather": "克拉肯皮革",
"kraken_fang": "克拉肯之牙",
"pirate_refinement_shard": "海盗精炼碎片",
"butter_of_proficiency": "精通之油",
"thread_of_expertise": "专精之线",
"branch_of_insight": "洞察之枝",
"gluttonous_energy": "贪食能量",
"guzzling_energy": "暴饮能量",
"milking_essence": "挤奶精华",
"foraging_essence": "采摘精华",
"woodcutting_essence": "伐木精华",
"cheesesmithing_essence": "奶酪锻造精华",
"crafting_essence": "制作精华",
"tailoring_essence": "缝纫精华",
"cooking_essence": "烹饪精华",
"brewing_essence": "冲泡精华",
"alchemy_essence": "炼金精华",
"enhancing_essence": "强化精华",
"swamp_essence": "沼泽精华",
"aqua_essence": "海洋精华",
"jungle_essence": "丛林精华",
"gobo_essence": "哥布林精华",
"eyessence": "眼精华",
"sorcerer_essence": "法师精华",
"bear_essence": "熊熊精华",
"golem_essence": "魔像精华",
"twilight_essence": "暮光精华",
"abyssal_essence": "地狱精华",
"chimerical_essence": "奇幻精华",
"sinister_essence": "阴森精华",
"enchanted_essence": "秘法精华",
"pirate_essence": "海盗精华",
"task_crystal": "任务水晶",
"star_fragment": "星光碎片",
"pearl": "珍珠",
"amber": "琥珀",
"garnet": "石榴石",
"jade": "翡翠",
"amethyst": "紫水晶",
"moonstone": "月亮石",
"sunstone": "太阳石",
"philosophers_stone": "贤者之石",
"crushed_pearl": "珍珠碎片",
"crushed_amber": "琥珀碎片",
"crushed_garnet": "石榴石碎片",
"crushed_jade": "翡翠碎片",
"crushed_amethyst": "紫水晶碎片",
"crushed_moonstone": "月亮石碎片",
"crushed_sunstone": "太阳石碎片",
"crushed_philosophers_stone": "贤者之石碎片",
"shard_of_protection": "保护碎片",
"mirror_of_protection": "保护之镜",
"philosophers_mirror": "贤者之镜",
"basic_torch": "基础火炬",
"advanced_torch": "进阶火炬",
"expert_torch": "专家火炬",
"basic_shroud": "基础斗篷",
"advanced_shroud": "进阶斗篷",
"expert_shroud": "专家斗篷",
"basic_beacon": "基础信标",
"advanced_beacon": "进阶信标",
"expert_beacon": "专家信标",
"basic_food_crate": "基础食物箱",
"advanced_food_crate": "进阶食物箱",
"expert_food_crate": "专家食物箱",
"basic_tea_crate": "基础茶叶箱",
"advanced_tea_crate": "进阶茶叶箱",
"expert_tea_crate": "专家茶叶箱",
"basic_coffee_crate": "基础咖啡箱",
"advanced_coffee_crate": "进阶咖啡箱",
"expert_coffee_crate": "专家咖啡箱"
};
// 自动添加 /items/xxx 格式的映射
Object.keys(ITEM_NAME_MAP).forEach(key => {
ITEM_NAME_MAP[`/items/${key}`] = ITEM_NAME_MAP[key];
});
// ==========================================
// 物品分类数据 (Item Categories)
// ==========================================
const WIKI_CATEGORIES = {
"Currencies & Tokens (货币与代币)": ["task_token", "labyrinth_token", "chimerical_token", "sinister_token", "enchanted_token", "pirate_token", "cowbell"],
"Loots & Chests (战利品与宝箱)": ["bag_of_10_cowbells", "purples_gift", "small_meteorite_cache", "medium_meteorite_cache", "large_meteorite_cache", "small_artisans_crate", "medium_artisans_crate", "large_artisans_crate", "small_treasure_chest", "medium_treasure_chest", "large_treasure_chest", "chimerical_chest", "chimerical_refinement_chest", "sinister_chest", "sinister_refinement_chest", "enchanted_chest", "enchanted_refinement_chest", "pirate_chest", "pirate_refinement_chest", "purdoras_box_skilling", "purdoras_box_combat", "labyrinth_refinement_chest"],
"Seals (封印)": ["seal_of_gathering", "seal_of_gourmet", "seal_of_processing", "seal_of_efficiency", "seal_of_action_speed", "seal_of_combat_drop", "seal_of_attack_speed", "seal_of_cast_speed", "seal_of_damage", "seal_of_critical_rate", "seal_of_wisdom", "seal_of_rare_find"],
"Keys (钥匙与碎片)": ["blue_key_fragment", "green_key_fragment", "purple_key_fragment", "white_key_fragment", "orange_key_fragment", "brown_key_fragment", "stone_key_fragment", "dark_key_fragment", "burning_key_fragment", "chimerical_entry_key", "chimerical_chest_key", "sinister_entry_key", "sinister_chest_key", "enchanted_entry_key", "enchanted_chest_key", "pirate_entry_key", "pirate_chest_key"],
"Food (食物)": ["donut", "blueberry_donut", "blackberry_donut", "strawberry_donut", "mooberry_donut", "marsberry_donut", "spaceberry_donut", "cupcake", "blueberry_cake", "blackberry_cake", "strawberry_cake", "mooberry_cake", "marsberry_cake", "spaceberry_cake", "gummy", "apple_gummy", "orange_gummy", "plum_gummy", "peach_gummy", "dragon_fruit_gummy", "star_fruit_gummy", "yogurt", "apple_yogurt", "orange_yogurt", "plum_yogurt", "peach_yogurt", "dragon_fruit_yogurt", "star_fruit_yogurt"],
"Teas (茶)": ["milking_tea", "foraging_tea", "woodcutting_tea", "cooking_tea", "brewing_tea", "alchemy_tea", "enhancing_tea", "cheesesmithing_tea", "crafting_tea", "tailoring_tea", "super_milking_tea", "super_foraging_tea", "super_woodcutting_tea", "super_cooking_tea", "super_brewing_tea", "super_alchemy_tea", "super_enhancing_tea", "super_cheesesmithing_tea", "super_crafting_tea", "super_tailoring_tea", "ultra_milking_tea", "ultra_foraging_tea", "ultra_woodcutting_tea", "ultra_cooking_tea", "ultra_brewing_tea", "ultra_alchemy_tea", "ultra_enhancing_tea", "ultra_cheesesmithing_tea", "ultra_crafting_tea", "ultra_tailoring_tea", "gathering_tea", "gourmet_tea", "wisdom_tea", "processing_tea", "efficiency_tea", "artisan_tea", "catalytic_tea", "blessed_tea"],
"Coffees (咖啡)": ["stamina_coffee", "intelligence_coffee", "defense_coffee", "attack_coffee", "melee_coffee", "ranged_coffee", "magic_coffee", "super_stamina_coffee", "super_intelligence_coffee", "super_defense_coffee", "super_attack_coffee", "super_melee_coffee", "super_ranged_coffee", "super_magic_coffee", "ultra_stamina_coffee", "ultra_intelligence_coffee", "ultra_defense_coffee", "ultra_attack_coffee", "ultra_melee_coffee", "ultra_ranged_coffee", "ultra_magic_coffee", "wisdom_coffee", "lucky_coffee", "swiftness_coffee", "channeling_coffee", "critical_coffee"],
"Books (技能书)": ["poke", "impale", "puncture", "penetrating_strike", "scratch", "cleave", "maim", "crippling_slash", "smack", "sweep", "stunning_blow", "fracturing_impact", "shield_bash", "quick_shot", "aqua_arrow", "flame_arrow", "rain_of_arrows", "silencing_shot", "steady_shot", "pestilent_shot", "penetrating_shot", "water_strike", "ice_spear", "frost_surge", "mana_spring", "entangle", "toxic_pollen", "natures_veil", "life_drain", "fireball", "flame_blast", "firestorm", "smoke_burst", "minor_heal", "heal", "quick_aid", "rejuvenate", "taunt", "provoke", "toughness", "elusiveness", "precision", "berserk", "elemental_affinity", "frenzy", "spike_shell", "retribution", "vampirism", "revive", "insanity", "invincible", "speed_aura", "guardian_aura", "fierce_aura", "critical_aura", "mystic_aura"],
"Equipment - Main Hand (主手)": ["gobo_stabber", "gobo_slasher", "gobo_smasher", "spiked_bulwark", "werewolf_slasher", "griffin_bulwark", "griffin_bulwark_refined", "gobo_shooter", "vampiric_bow", "cursed_bow", "cursed_bow_refined", "gobo_boomstick", "cheese_bulwark", "verdant_bulwark", "azure_bulwark", "burble_bulwark", "crimson_bulwark", "rainbow_bulwark", "holy_bulwark", "wooden_bow", "birch_bow", "cedar_bow", "purpleheart_bow", "ginkgo_bow", "redwood_bow", "arcane_bow", "stalactite_spear", "granite_bludgeon", "furious_spear", "furious_spear_refined", "regal_sword", "regal_sword_refined", "chaotic_flail", "chaotic_flail_refined", "soul_hunter_crossbow", "sundering_crossbow", "sundering_crossbow_refined", "frost_staff", "infernal_battlestaff", "jackalope_staff", "rippling_trident", "rippling_trident_refined", "blooming_trident", "blooming_trident_refined", "blazing_trident", "blazing_trident_refined", "cheese_sword", "verdant_sword", "azure_sword", "burble_sword", "crimson_sword", "rainbow_sword", "holy_sword", "cheese_spear", "verdant_spear", "azure_spear", "burble_spear", "crimson_spear", "rainbow_spear", "holy_spear", "cheese_mace", "verdant_mace", "azure_mace", "burble_mace", "crimson_mace", "rainbow_mace", "holy_mace", "wooden_crossbow", "birch_crossbow", "cedar_crossbow", "purpleheart_crossbow", "ginkgo_crossbow", "redwood_crossbow", "arcane_crossbow", "wooden_water_staff", "birch_water_staff", "cedar_water_staff", "purpleheart_water_staff", "ginkgo_water_staff", "redwood_water_staff", "arcane_water_staff", "wooden_nature_staff", "birch_nature_staff", "cedar_nature_staff", "purpleheart_nature_staff", "ginkgo_nature_staff", "redwood_nature_staff", "arcane_nature_staff", "wooden_fire_staff", "birch_fire_staff", "cedar_fire_staff", "purpleheart_fire_staff", "ginkgo_fire_staff", "redwood_fire_staff", "arcane_fire_staff"],
"Equipment - Off Hand (副手)": ["eye_watch", "snake_fang_dirk", "vision_shield", "gobo_defender", "vampire_fang_dirk", "knights_aegis", "knights_aegis_refined", "treant_shield", "manticore_shield", "tome_of_healing", "tome_of_the_elements", "watchful_relic", "bishops_codex", "bishops_codex_refined", "cheese_buckler", "verdant_buckler", "azure_buckler", "burble_buckler", "crimson_buckler", "rainbow_buckler", "holy_buckler", "wooden_shield", "birch_shield", "cedar_shield", "purpleheart_shield", "ginkgo_shield", "redwood_shield", "arcane_shield"],
"Equipment - Back (背部)": ["gatherer_cape", "gatherer_cape_refined", "artificer_cape", "artificer_cape_refined", "culinary_cape", "culinary_cape_refined", "chance_cape", "chance_cape_refined", "sinister_cape", "sinister_cape_refined", "chimerical_quiver", "chimerical_quiver_refined", "enchanted_cloak", "enchanted_cloak_refined"],
"Equipment - Head (头部)": ["red_culinary_hat", "snail_shell_helmet", "vision_helmet", "fluffy_red_hat", "corsair_helmet", "corsair_helmet_refined", "acrobatic_hood", "acrobatic_hood_refined", "magicians_hat", "magicians_hat_refined", "cheese_helmet", "verdant_helmet", "azure_helmet", "burble_helmet", "crimson_helmet", "rainbow_helmet", "holy_helmet", "rough_hood", "reptile_hood", "gobo_hood", "beast_hood", "umbral_hood", "cotton_hat", "linen_hat", "bamboo_hat", "silk_hat", "radiant_hat"],
"Equipment - Body (胸甲)": ["dairyhands_top", "foragers_top", "lumberjacks_top", "cheesemakers_top", "crafters_top", "tailors_top", "chefs_top", "brewers_top", "alchemists_top", "enhancers_top", "gator_vest", "turtle_shell_body", "colossus_plate_body", "demonic_plate_body", "anchorbound_plate_body", "anchorbound_plate_body_refined", "maelstrom_plate_body", "maelstrom_plate_body_refined", "marine_tunic", "revenant_tunic", "griffin_tunic", "kraken_tunic", "kraken_tunic_refined", "icy_robe_top", "flaming_robe_top", "luna_robe_top", "royal_water_robe_top", "royal_water_robe_top_refined", "royal_nature_robe_top", "royal_nature_robe_top_refined", "royal_fire_robe_top", "royal_fire_robe_top_refined", "cheese_plate_body", "verdant_plate_body", "azure_plate_body", "burble_plate_body", "crimson_plate_body", "rainbow_plate_body", "holy_plate_body", "rough_tunic", "reptile_tunic", "gobo_tunic", "beast_tunic", "umbral_tunic", "cotton_robe_top", "linen_robe_top", "bamboo_robe_top", "silk_robe_top", "radiant_robe_top"],
"Equipment - Legs (腿甲)": ["dairyhands_bottoms", "foragers_bottoms", "lumberjacks_bottoms", "cheesemakers_bottoms", "crafters_bottoms", "tailors_bottoms", "chefs_bottoms", "brewers_bottoms", "alchemists_bottoms", "enhancers_bottoms", "turtle_shell_legs", "colossus_plate_legs", "demonic_plate_legs", "anchorbound_plate_legs", "anchorbound_plate_legs_refined", "maelstrom_plate_legs", "maelstrom_plate_legs_refined", "marine_chaps", "revenant_chaps", "griffin_chaps", "kraken_chaps", "kraken_chaps_refined", "icy_robe_bottoms", "flaming_robe_bottoms", "luna_robe_bottoms", "royal_water_robe_bottoms", "royal_water_robe_bottoms_refined", "royal_nature_robe_bottoms", "royal_nature_robe_bottoms_refined", "royal_fire_robe_bottoms", "royal_fire_robe_bottoms_refined", "cheese_plate_legs", "verdant_plate_legs", "azure_plate_legs", "burble_plate_legs", "crimson_plate_legs", "rainbow_plate_legs", "holy_plate_legs", "rough_chaps", "reptile_chaps", "gobo_chaps", "beast_chaps", "umbral_chaps", "cotton_robe_bottoms", "linen_robe_bottoms", "bamboo_robe_bottoms", "silk_robe_bottoms", "radiant_robe_bottoms"],
"Equipment - Hands (护手)": ["enchanted_gloves", "pincer_gloves", "panda_gloves", "magnetic_gloves", "dodocamel_gauntlets", "dodocamel_gauntlets_refined", "sighted_bracers", "marksman_bracers", "marksman_bracers_refined", "chrono_gloves", "cheese_gauntlets", "verdant_gauntlets", "azure_gauntlets", "burble_gauntlets", "crimson_gauntlets", "rainbow_gauntlets", "holy_gauntlets", "rough_bracers", "reptile_bracers", "gobo_bracers", "beast_bracers", "umbral_bracers", "cotton_gloves", "linen_gloves", "bamboo_gloves", "silk_gloves", "radiant_gloves"],
"Equipment - Feet (鞋靴)": ["collectors_boots", "shoebill_shoes", "black_bear_shoes", "grizzly_bear_shoes", "polar_bear_shoes", "pathbreaker_boots", "pathbreaker_boots_refined", "centaur_boots", "pathfinder_boots", "pathfinder_boots_refined", "sorcerer_boots", "pathseeker_boots", "pathseeker_boots_refined", "cheese_boots", "verdant_boots", "azure_boots", "burble_boots", "crimson_boots", "rainbow_boots", "holy_boots", "rough_boots", "reptile_boots", "gobo_boots", "beast_boots", "umbral_boots", "cotton_boots", "linen_boots", "bamboo_boots", "silk_boots", "radiant_boots"],
"Equipment - Pouch (行囊)": ["small_pouch", "medium_pouch", "large_pouch", "giant_pouch", "gluttonous_pouch", "guzzling_pouch"],
"Equipment - Jewelry (首饰)": ["necklace_of_efficiency", "fighter_necklace", "ranger_necklace", "wizard_necklace", "necklace_of_wisdom", "necklace_of_speed", "philosophers_necklace", "earrings_of_gathering", "earrings_of_essence_find", "earrings_of_armor", "earrings_of_regeneration", "earrings_of_resistance", "earrings_of_rare_find", "earrings_of_critical_strike", "philosophers_earrings", "ring_of_gathering", "ring_of_essence_find", "ring_of_armor", "ring_of_regeneration", "ring_of_resistance", "ring_of_rare_find", "ring_of_critical_strike", "philosophers_ring"],
"Charms (护符)": ["trainee_milking_charm", "basic_milking_charm", "advanced_milking_charm", "expert_milking_charm", "master_milking_charm", "grandmaster_milking_charm", "trainee_foraging_charm", "basic_foraging_charm", "advanced_foraging_charm", "expert_foraging_charm", "master_foraging_charm", "grandmaster_foraging_charm", "trainee_woodcutting_charm", "basic_woodcutting_charm", "advanced_woodcutting_charm", "expert_woodcutting_charm", "master_woodcutting_charm", "grandmaster_woodcutting_charm", "trainee_cheesesmithing_charm", "basic_cheesesmithing_charm", "advanced_cheesesmithing_charm", "expert_cheesesmithing_charm", "master_cheesesmithing_charm", "grandmaster_cheesesmithing_charm", "trainee_crafting_charm", "basic_crafting_charm", "advanced_crafting_charm", "expert_crafting_charm", "master_crafting_charm", "grandmaster_crafting_charm", "trainee_tailoring_charm", "basic_tailoring_charm", "advanced_tailoring_charm", "expert_tailoring_charm", "master_tailoring_charm", "grandmaster_tailoring_charm", "trainee_cooking_charm", "basic_cooking_charm", "advanced_cooking_charm", "expert_cooking_charm", "master_cooking_charm", "grandmaster_cooking_charm", "trainee_brewing_charm", "basic_brewing_charm", "advanced_brewing_charm", "expert_brewing_charm", "master_brewing_charm", "grandmaster_brewing_charm", "trainee_alchemy_charm", "basic_alchemy_charm", "advanced_alchemy_charm", "expert_alchemy_charm", "master_alchemy_charm", "grandmaster_alchemy_charm", "trainee_enhancing_charm", "basic_enhancing_charm", "advanced_enhancing_charm", "expert_enhancing_charm", "master_enhancing_charm", "grandmaster_enhancing_charm", "trainee_stamina_charm", "basic_stamina_charm", "advanced_stamina_charm", "expert_stamina_charm", "master_stamina_charm", "grandmaster_stamina_charm", "trainee_intelligence_charm", "basic_intelligence_charm", "advanced_intelligence_charm", "expert_intelligence_charm", "master_intelligence_charm", "grandmaster_intelligence_charm", "trainee_attack_charm", "basic_attack_charm", "advanced_attack_charm", "expert_attack_charm", "master_attack_charm", "grandmaster_attack_charm", "trainee_defense_charm", "basic_defense_charm", "advanced_defense_charm", "expert_defense_charm", "master_defense_charm", "grandmaster_defense_charm", "trainee_melee_charm", "basic_melee_charm", "advanced_melee_charm", "expert_melee_charm", "master_melee_charm", "grandmaster_melee_charm", "trainee_ranged_charm", "basic_ranged_charm", "advanced_ranged_charm", "expert_ranged_charm", "master_ranged_charm", "grandmaster_ranged_charm", "trainee_magic_charm", "basic_magic_charm", "advanced_magic_charm", "expert_magic_charm", "master_magic_charm", "grandmaster_magic_charm"],
"Equipment - Trinket (徽章)": ["basic_task_badge", "advanced_task_badge", "expert_task_badge"],
"Tools (工具)": ["celestial_brush", "cheese_brush", "verdant_brush", "azure_brush", "burble_brush", "crimson_brush", "rainbow_brush", "holy_brush", "celestial_shears", "cheese_shears", "verdant_shears", "azure_shears", "burble_shears", "crimson_shears", "rainbow_shears", "holy_shears", "celestial_hatchet", "cheese_hatchet", "verdant_hatchet", "azure_hatchet", "burble_hatchet", "crimson_hatchet", "rainbow_hatchet", "holy_hatchet", "celestial_hammer", "cheese_hammer", "verdant_hammer", "azure_hammer", "burble_hammer", "crimson_hammer", "rainbow_hammer", "holy_hammer", "celestial_chisel", "cheese_chisel", "verdant_chisel", "azure_chisel", "burble_chisel", "crimson_chisel", "rainbow_chisel", "holy_chisel", "celestial_needle", "cheese_needle", "verdant_needle", "azure_needle", "burble_needle", "crimson_needle", "rainbow_needle", "holy_needle", "celestial_spatula", "cheese_spatula", "verdant_spatula", "azure_spatula", "burble_spatula", "crimson_spatula", "rainbow_spatula", "holy_spatula", "celestial_pot", "cheese_pot", "verdant_pot", "azure_pot", "burble_pot", "crimson_pot", "rainbow_pot", "holy_pot", "celestial_alembic", "cheese_alembic", "verdant_alembic", "azure_alembic", "burble_alembic", "crimson_alembic", "rainbow_alembic", "holy_alembic", "celestial_enhancer", "cheese_enhancer", "verdant_enhancer", "azure_enhancer", "burble_enhancer", "crimson_enhancer", "rainbow_enhancer", "holy_enhancer"],
"Resources (奶与奶酪)": ["milk", "verdant_milk", "azure_milk", "burble_milk", "crimson_milk", "rainbow_milk", "holy_milk", "cheese", "verdant_cheese", "azure_cheese", "burble_cheese", "crimson_cheese", "rainbow_cheese", "holy_cheese"],
"Resources (原木与木材)": ["log", "birch_log", "cedar_log", "purpleheart_log", "ginkgo_log", "redwood_log", "arcane_log", "lumber", "birch_lumber", "cedar_lumber", "purpleheart_lumber", "ginkgo_lumber", "redwood_lumber", "arcane_lumber"],
"Resources (皮革与布料)": ["rough_hide", "reptile_hide", "gobo_hide", "beast_hide", "umbral_hide", "rough_leather", "reptile_leather", "gobo_leather", "beast_leather", "umbral_leather", "cotton", "flax", "bamboo_branch", "cocoon", "radiant_fiber", "cotton_fabric", "linen_fabric", "bamboo_fabric", "silk_fabric", "radiant_fabric"],
"Resources (农作物与茶叶)": ["egg", "wheat", "sugar", "blueberry", "blackberry", "strawberry", "mooberry", "marsberry", "spaceberry", "apple", "orange", "plum", "peach", "dragon_fruit", "star_fruit", "arabica_coffee_bean", "robusta_coffee_bean", "liberica_coffee_bean", "excelsa_coffee_bean", "fieriosa_coffee_bean", "spacia_coffee_bean", "green_tea_leaf", "black_tea_leaf", "burble_tea_leaf", "moolong_tea_leaf", "red_tea_leaf", "emp_tea_leaf"],
"Resources (怪物掉落与杂项)": ["catalyst_of_coinification", "catalyst_of_decomposition", "catalyst_of_transmutation", "prime_catalyst", "snake_fang", "shoebill_feather", "snail_shell", "crab_pincer", "turtle_shell", "marine_scale", "treant_bark", "centaur_hoof", "luna_wing", "gobo_rag", "goggles", "magnifying_glass", "eye_of_the_watcher", "icy_cloth", "flaming_cloth", "sorcerers_sole", "chrono_sphere", "frost_sphere", "panda_fluff", "black_bear_fluff", "grizzly_bear_fluff", "polar_bear_fluff", "red_panda_fluff", "magnet", "stalactite_shard", "living_granite", "colossus_core", "vampire_fang", "werewolf_claw", "revenant_anima", "soul_fragment", "infernal_ember", "demonic_core", "griffin_leather", "manticore_sting", "jackalope_antler", "dodocamel_plume", "griffin_talon", "chimerical_refinement_shard", "acrobats_ribbon", "magicians_cloth", "chaotic_chain", "cursed_ball", "sinister_refinement_shard", "royal_cloth", "knights_ingot", "bishops_scroll", "regal_jewel", "sundering_jewel", "enchanted_refinement_shard", "marksman_brooch", "corsair_crest", "damaged_anchor", "maelstrom_plating", "kraken_leather", "kraken_fang", "pirate_refinement_shard", "pathbreaker_lodestone", "pathfinder_lodestone", "pathseeker_lodestone", "labyrinth_refinement_shard", "butter_of_proficiency", "thread_of_expertise", "branch_of_insight"],
"Resources (精华)": ["gluttonous_energy", "guzzling_energy", "milking_essence", "foraging_essence", "woodcutting_essence", "cheesesmithing_essence", "crafting_essence", "tailoring_essence", "cooking_essence", "brewing_essence", "alchemy_essence", "enhancing_essence", "swamp_essence", "aqua_essence", "jungle_essence", "gobo_essence", "eyessence", "sorcerer_essence", "bear_essence", "golem_essence", "twilight_essence", "abyssal_essence", "chimerical_essence", "sinister_essence", "enchanted_essence", "pirate_essence", "labyrinth_essence"],
"Resources (宝石)": ["task_crystal", "star_fragment", "pearl", "amber", "garnet", "jade", "amethyst", "moonstone", "sunstone", "philosophers_stone", "crushed_pearl", "crushed_amber", "crushed_garnet", "crushed_jade", "crushed_amethyst", "crushed_moonstone", "crushed_sunstone", "crushed_philosophers_stone", "shard_of_protection", "mirror_of_protection", "philosophers_mirror"],
"Labyrinth Items (迷宫道具)": ["basic_torch", "advanced_torch", "expert_torch", "basic_shroud", "advanced_shroud", "expert_shroud", "basic_beacon", "advanced_beacon", "expert_beacon", "basic_food_crate", "advanced_food_crate", "expert_food_crate", "basic_tea_crate", "advanced_tea_crate", "expert_tea_crate", "basic_coffee_crate", "advanced_coffee_crate", "expert_coffee_crate"]
};
const FLAT_WIKI_GROUPS = Object.entries(WIKI_CATEGORIES).map(([catName, itemIds]) => {
return { name: catName, items: itemIds };
});
// ==========================================
// 系统常量 (Constants)
// ==========================================
const SPRITE_URL = "/static/media/items_sprite.9c39e2ec.svg";
const KEY_CN_DATA = 'tm_milky_cn_data_v2';
/**
* 获取物品中文名
* @param {string} itemHrid - 物品 hrid 或短ID
* @returns {string} 中文名或原名
*/
function getChineseName(itemHrid) {
if (!itemHrid) return "未知物品";
if (ITEM_NAME_MAP[itemHrid]) return ITEM_NAME_MAP[itemHrid];
const shortId = itemHrid.split('/').pop();
if (ITEM_NAME_MAP[shortId]) return ITEM_NAME_MAP[shortId];
return shortId;
}
/**
* 全局 API:更新汉化数据(仅更新内存,不写入 localStorage)
* 永久修改请直接编辑本脚本顶部的 CN_DATA_STR
* @param {string} str - 汉化映射字符串
*/
window.tmUpdateCn = function(str) {
// 只更新内存,不写 localStorage
ITEM_NAME_MAP = {};
if (str) {
str.split('|').forEach(entry => {
const parts = entry.split(':');
if (parts.length >= 2) {
ITEM_NAME_MAP[parts[0]] = parts[1];
ITEM_NAME_MAP[`/items/${parts[0]}`] = parts[1];
}
});
}
// 触发自定义事件,通知其他脚本汉化数据已更新
window.dispatchEvent(new CustomEvent('tmData:cnUpdated'));
};
// ==========================================
// 暴露全局 API (Expose to window)
// ==========================================
window.tmData = {
version: '1.0.0',
// 汉化
getChineseName: getChineseName,
getItemNameMap: () => ITEM_NAME_MAP,
// 分类数据
WIKI_CATEGORIES: WIKI_CATEGORIES,
FLAT_WIKI_GROUPS: FLAT_WIKI_GROUPS,
// 常量
SPRITE_URL: SPRITE_URL,
// 工具函数
/**
* 更新汉化数据(仅更新内存,不写入 localStorage)
* 永久修改请直接编辑本脚本顶部的 CN_DATA_STR
* @param {string} str - 汉化映射字符串
*/
updateCn: window.tmUpdateCn,
/**
* 判断物品属于哪个分类
* @param {string} itemShortId - 物品短ID
* @returns {string|null} 分类名,找不到返回 null
*/
getItemCategory: function(itemShortId) {
for (const [catName, items] of Object.entries(WIKI_CATEGORIES)) {
if (items.includes(itemShortId)) return catName;
}
return null;
}
};
// 广播数据中心已就绪
window.dispatchEvent(new CustomEvent('tmData:ready'));
})();