MWITools(modified)

Modified version of MWITools with additional features/fixes.

  1. // ==UserScript==
  2. // @name MWITools(modified)
  3. // @namespace http://tampermonkey.net/
  4. // @version 22.9.0
  5. // @description Modified version of MWITools with additional features/fixes.
  6. // @author Original: bot7420 | Modified feilong101
  7. // @license CC-BY-NC-SA-4.0
  8. // @match https://www.milkywayidle.com/*
  9. // @match https://test.milkywayidle.com/*
  10. // @match https://amvoidguy.github.io/MWICombatSimulatorTest/*
  11. // @match https://shykai.github.io/mwisim.github.io/*
  12. // @match https://shykai.github.io/MWICombatSimulatorTest/dist/*
  13. // @match https://mooneycalc.netlify.app/*
  14. // @grant GM_addStyle
  15. // @grant GM.xmlHttpRequest
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_notification
  18. // @grant GM_getValue
  19. // @grant GM_setValue
  20. // @connect raw.githubusercontent.com
  21. // @connect ghproxy.net
  22. // @require https://cdnjs.cloudflare.com/ajax/libs/mathjs/12.4.2/math.js
  23. // @require https://cdn.jsdelivr.net/npm/chart.js@3.7.0/dist/chart.min.js
  24. // @require https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0/dist/chartjs-plugin-datalabels.min.js
  25. // ==/UserScript==
  26.  
  27. /*
  28. Steam客户端玩家还需要额外安装兼容插件。
  29.  
  30. MilkyWayIdle Steam game client players should also install this script:
  31. https://raw.githubusercontent.com/YangLeda/Userscripts-For-MilkyWayIdle/refs/heads/main/MWITools%20addon%20for%20Steam%20version.js
  32. */
  33.  
  34. /*
  35. 【遇到MWITools插件有问题时的解决方法】
  36.  
  37. 请先务必排查以下问题:
  38. 1. 你的MWITools插件已更新至最新版(greasyfork网站有可能被墙,请开梯子更新;或者到QQ群文件里下载后手动导入或复制粘贴代码);
  39. 2. 你没有重复安装插件(有的人装了新版本插件,但还有个旧版本的没有删除,在同时运行;或者有的人在同一个浏览器里装了两个油猴类浏览器插件);
  40. 3. 安装或更新完插件后,以及在游戏设置里切换过语言后,必须刷新游戏网页;
  41. 4. 请在电脑上、使用最新版本Chrome浏览器、使用最新版本TamperMonkey(油猴)插件尝试(作者精力有限,做不到逐个适配各种环境、为每个人定位环境问题,
  42. 遇到问题时请优先使用上述主流环境。如果你一定要使用旧版本或其它品牌的浏览器或油猴插件,遇到问题请优先自行摸索如何解决,作者很可能无法解决你的问题。
  43. 手机使用问题很多,作者不定位手机上问题。问问群友用什么浏览器好使,多换几个浏览器试试。苹果手机建议尝试focus浏览器。)。
  44.  
  45. 如果仍有问题,请私聊作者具体问题是什么、复现问题的具体步骤、最好附带截图;
  46. 与网络有关的问题,右上角红字显示无法从API更新市场数据时,点击红字查看错误信息,截图发给作者;
  47. 报错日志是定位问题的快速甚至唯一方法,请打开浏览器开发者工具查看终端,刷新游戏网页,复现遇到的问题,截图发给作者。
  48. */
  49.  
  50. (() => {
  51. "use strict";
  52.  
  53. const THOUSAND_SEPERATOR = new Intl.NumberFormat().format(1111).replaceAll("1", "").at(0) || "";
  54. const DECIMAL_SEPERATOR = new Intl.NumberFormat().format(1.1).replaceAll("1", "").at(0);
  55.  
  56. const isZHInGameSetting = localStorage.getItem("i18nextLng")?.toLowerCase()?.startsWith("zh"); // 获取游戏内设置语言
  57. let isZH = isZHInGameSetting; // MWITools 本身显示的语言默认由游戏内设置语言决定
  58.  
  59. /* 自定义插件字体颜色 */
  60. /* 找颜色自行网上搜索"CSS颜色" */
  61. /* 可以是颜色名称,比如"red";也可以是颜色Hex,比如"#ED694D" */
  62. // Customization
  63. let SCRIPT_COLOR_MAIN = "green"; // 脚本主要字体颜色
  64. let SCRIPT_COLOR_TOOLTIP = "darkgreen"; // 物品悬浮窗的字体颜色
  65. const SCRIPT_COLOR_ALERT = "red"; // 警告字体颜色
  66.  
  67. const MARKET_API_URL = "https://raw.githubusercontent.com/holychikenz/MWIApi/main/milkyapi.json";
  68. const MARKET_API_URL_PROXY = "https://ghproxy.net/https://raw.githubusercontent.com/holychikenz/MWIApi/main/milkyapi.json"; // For players with difficulties to accesss Github
  69.  
  70. let settingsMap = {
  71. useOrangeAsMainColor: {
  72. id: "useOrangeAsMainColor",
  73. desc: isZH ? "使用橙色字体" : "Use orange as the main color for the script.",
  74. isTrue: true,
  75. },
  76. totalActionTime: {
  77. id: "totalActionTime",
  78. desc: isZH
  79. ? "左上角显示:当前动作预计总耗时、预计何时完成"
  80. : "Top left: Estimated total time of the current action, estimated complete time.",
  81. isTrue: true,
  82. },
  83. actionPanel_totalTime: {
  84. id: "actionPanel_totalTime",
  85. desc: isZH
  86. ? "动作面板显示:动作预计总耗时、到多少级还需做多少次、每小时经验"
  87. : "Action panel: Estimated total time of the action, times needed to reach a target skill level, exp/hour.",
  88. isTrue: true,
  89. },
  90. actionPanel_totalTime_quickInputs: {
  91. id: "actionPanel_totalTime_quickInputs",
  92. desc: isZH ? "动作面板显示:快速输入次数 [依赖上一项]" : "Action panel: Quick input numbers. [Depends on the previous selection]",
  93. isTrue: true,
  94. },
  95. actionPanel_foragingTotal: {
  96. id: "actionPanel_foragingTotal",
  97. desc: isZH
  98. ? "动作面板显示:采摘综合图显示综合收益 [依赖上一项]"
  99. : "Action panel: Overall profit of the foraging maps with multiple outcomes. [Depends on the previous selection]",
  100. isTrue: true,
  101. },
  102. networth: {
  103. id: "networth",
  104. desc: isZH
  105. ? "右上角显示:流动资产(+2及以上物品按强化模拟成本计算)"
  106. : "Top right: Current assets (Items with at least 2 enhancement levels are valued by enchancing simulator).",
  107. isTrue: true,
  108. },
  109. invWorth: {
  110. id: "invWorth",
  111. desc: isZH
  112. ? "仓库搜索栏下方显示:仓库和战力总结 [依赖上一项]"
  113. : "Below inventory search bar: Inventory and character summery. [Depends on the previous selection]",
  114. isTrue: true,
  115. },
  116. invSort: {
  117. id: "invSort",
  118. desc: isZH ? "仓库显示:仓库物品排序 [依赖上一项]" : "Inventory: Sort inventory items. [Depends on the previous selection]",
  119. isTrue: true,
  120. },
  121. profileBuildScore: {
  122. id: "profileBuildScore",
  123. desc: isZH ? "人物面板显示:战力分" : "Profile panel: Build score.",
  124. isTrue: true,
  125. },
  126. itemTooltip_prices: {
  127. id: "itemTooltip_prices",
  128. desc: isZH ? "物品悬浮窗显示:24小时市场均价" : "Item tooltip: 24 hours average market price.",
  129. isTrue: true,
  130. },
  131. itemTooltip_profit: {
  132. id: "itemTooltip_profit",
  133. desc: isZH
  134. ? "物品悬浮窗显示:生产成本和利润计算 [依赖上一项]"
  135. : "Item tooltip: Production cost and profit. [Depends on the previous selection]",
  136. isTrue: true,
  137. },
  138. showConsumTips: {
  139. id: "showConsumTips",
  140. desc: isZH
  141. ? "物品悬浮窗显示:消耗品回血回魔速度、回复性价比、每天最多消耗数量"
  142. : "Item tooltip: HP/MP consumables restore speed, cost performance, max cost per day.",
  143. isTrue: true,
  144. },
  145. networkAlert: {
  146. id: "networkAlert",
  147. desc: isZH ? "右上角显示:无法联网更新市场数据时,红字警告" : "Top right: Alert message when market price data can not be fetched.",
  148. isTrue: true,
  149. },
  150. expPercentage: {
  151. id: "expPercentage",
  152. desc: isZH ? "左侧栏显示:技能经验百分比" : "Left sidebar: Percentages of exp of the skill levels.",
  153. isTrue: true,
  154. },
  155. battlePanel: {
  156. id: "battlePanel",
  157. desc: isZH
  158. ? "战斗总结面板(战斗时点击玩家头像)显示:平均每小时战斗次数、收入、经验"
  159. : "Battle info panel(click on player avatar during combat): Encounters/hour, revenue, exp.",
  160. isTrue: true,
  161. },
  162. itemIconLevel: {
  163. id: "itemIconLevel",
  164. desc: isZH ? "装备图标右上角显示:装备等级" : "Top right corner of equipment icons: Equipment level.",
  165. isTrue: true,
  166. },
  167. showsKeyInfoInIcon: {
  168. id: "showsKeyInfoInIcon",
  169. desc: isZH
  170. ? "钥匙和钥匙碎片图标右上角显示:对应的地图序号 [依赖上一项]"
  171. : "Top right corner of key/fragment icons: Corresponding combat zone index number. [Depends on the previous selection]",
  172. isTrue: true,
  173. },
  174. marketFilter: {
  175. id: "marketFilter",
  176. desc: isZH ? "市场页面显示:装备按等级、职业、部位筛选" : "Marketplace: Filter by equipment level, class, slot.",
  177. isTrue: true,
  178. },
  179. taskMapIndex: {
  180. id: "taskMapIndex",
  181. desc: isZH ? "任务页面显示:目标战斗地图序号" : "Tasks page: Combat zone index number.",
  182. isTrue: true,
  183. },
  184. mapIndex: {
  185. id: "mapIndex",
  186. desc: isZH ? "战斗地图选择页面显示:地图序号" : "Combat zones page: Combat zone index number.",
  187. isTrue: true,
  188. },
  189. skillbook: {
  190. id: "skillbook",
  191. desc: isZH
  192. ? "技能书的物品词典面板显示:到多少级还需要多少本技能书"
  193. : "Item dictionary of skill books: Number of books needed to reach target skill level.",
  194. isTrue: true,
  195. },
  196. ThirdPartyLinks: {
  197. id: "ThirdPartyLinks",
  198. desc: isZH ? "左侧菜单栏显示:第三方工具网站链接、脚本设置链接" : "Left sidebar: Links to 3rd-party websites, script settings.",
  199. isTrue: true,
  200. },
  201. actionQueue: {
  202. id: "actionQueue",
  203. desc: isZH
  204. ? "上方动作队列菜单显示:队列中每个动作预计总时间、到何时完成"
  205. : "Queued actions panel at the top: Estimated total time and complete time of each queued action.",
  206. isTrue: true,
  207. },
  208. enhanceSim: {
  209. id: "enhanceSim",
  210. desc: isZH
  211. ? "带强化等级的装备的悬浮菜单显示:强化模拟计算"
  212. : "Tooltip of equipment with enhancement level: Enhancing simulator calculations.",
  213. isTrue: true,
  214. },
  215. checkEquipment: {
  216. id: "checkEquipment",
  217. desc: isZH
  218. ? "页面上方显示:战斗时穿了生产装备,或者生产时没有穿对应的生产装备而仓库里有,红字警告"
  219. : "Top: Alert message when combating with production equipments equipted, or producing when there are unequipted corresponding production equipment in the inventory.",
  220. isTrue: true,
  221. },
  222. notifiEmptyAction: {
  223. id: "notifiEmptyAction",
  224. desc: isZH
  225. ? "弹窗通知:正在空闲(游戏网页打开时才有效)"
  226. : "Browser notification: Action queue is empty. (Works only when the game page is open.)",
  227. isTrue: false,
  228. },
  229. fillMarketOrderPrice: {
  230. id: "fillMarketOrderPrice",
  231. desc: isZH
  232. ? "发布市场订单时自动填写为最小压价"
  233. : "Automatically input price with the smallest increasement/decreasement when posting marketplace bid/sell orders.",
  234. isTrue: true,
  235. },
  236. showDamage: {
  237. id: "showDamage",
  238. desc: isZH ? "战斗时,人物头像下方显示:伤害统计数字" : "Bottom of player avatar during combat: DPS.",
  239. isTrue: true,
  240. },
  241. showDamageGraph: {
  242. id: "showDamageGraph",
  243. desc: isZH
  244. ? "战斗时,悬浮窗显示:伤害统计图表 [依赖上一项]"
  245. : "Floating window during combat: DPS chart. [Depends on the previous selection]",
  246. isTrue: true,
  247. },
  248. damageGraphTransparentBackground: {
  249. id: "damageGraphTransparentBackground",
  250. desc: isZH ? "伤害统计图表背景透明 [依赖上一项]" : "DPS chart transparent and blur background. [Depends on the previous selection]",
  251. isTrue: true,
  252. },
  253. forceMWIToolsDisplayZH: {
  254. id: "forceMWIToolsDisplayZH",
  255. desc: isZH ? "MWITools本身强制显示中文 MWITools always in Chinese" : "MWITools本身强制显示中文 MWITools always in Chinese",
  256. isTrue: false,
  257. },
  258. useGithubProxy: {
  259. id: "useGithubProxy",
  260. desc: isZH ? "使用代理访问Github(网络有问题时请尝试打开或关闭此选项)" : "Accesss Github with proxy",
  261. isTrue: isZH,
  262. },
  263. };
  264. readSettings();
  265.  
  266. // 非游戏网站
  267. if (document.URL.includes("amvoidguy.github.io") || document.URL.includes("shykai.github.io/MWICombatSimulatorTest/")) {
  268. addImportButtonForAmvoidguy();
  269. observeResultsForAmvoidguy();
  270. return;
  271. } else if (document.URL.includes("shykai.github.io/mwisim")) {
  272. addImportButtonFor9Battles();
  273. observeResultsForAmvoidguy();
  274. return;
  275. } else if (document.URL.includes("mooneycalc.netlify.app")) {
  276. addImportButtonForMooneycalc();
  277. return;
  278. }
  279.  
  280. /* 官方汉化 */
  281. // /static/js/main.9972e69d.chunk.js
  282. const ZHitemNames = {
  283. "/items/coin": "\u91d1\u5e01",
  284. "/items/task_token": "\u4efb\u52a1\u4ee3\u5e01",
  285. "/items/chimerical_token": "\u5947\u5e7b\u4ee3\u5e01",
  286. "/items/sinister_token": "\u9634\u68ee\u4ee3\u5e01",
  287. "/items/enchanted_token": "\u79d8\u6cd5\u4ee3\u5e01",
  288. "/items/pirate_token": "\u6d77\u76d7\u4ee3\u5e01",
  289. "/items/cowbell": "\u725b\u94c3",
  290. "/items/bag_of_10_cowbells": "\u725b\u94c3\u888b (10\u4e2a)",
  291. "/items/purples_gift": "\u5c0f\u7d2b\u725b\u7684\u793c\u7269",
  292. "/items/small_meteorite_cache": "\u5c0f\u9668\u77f3\u8231",
  293. "/items/medium_meteorite_cache": "\u4e2d\u9668\u77f3\u8231",
  294. "/items/large_meteorite_cache": "\u5927\u9668\u77f3\u8231",
  295. "/items/small_artisans_crate": "\u5c0f\u5de5\u5320\u5323",
  296. "/items/medium_artisans_crate": "\u4e2d\u5de5\u5320\u5323",
  297. "/items/large_artisans_crate": "\u5927\u5de5\u5320\u5323",
  298. "/items/small_treasure_chest": "\u5c0f\u5b9d\u7bb1",
  299. "/items/medium_treasure_chest": "\u4e2d\u5b9d\u7bb1",
  300. "/items/large_treasure_chest": "\u5927\u5b9d\u7bb1",
  301. "/items/chimerical_chest": "\u5947\u5e7b\u5b9d\u7bb1",
  302. "/items/sinister_chest": "\u9634\u68ee\u5b9d\u7bb1",
  303. "/items/enchanted_chest": "\u79d8\u6cd5\u5b9d\u7bb1",
  304. "/items/pirate_chest": "\u6d77\u76d7\u5b9d\u7bb1",
  305. "/items/blue_key_fragment": "\u84dd\u8272\u94a5\u5319\u788e\u7247",
  306. "/items/green_key_fragment": "\u7eff\u8272\u94a5\u5319\u788e\u7247",
  307. "/items/purple_key_fragment": "\u7d2b\u8272\u94a5\u5319\u788e\u7247",
  308. "/items/white_key_fragment": "\u767d\u8272\u94a5\u5319\u788e\u7247",
  309. "/items/orange_key_fragment": "\u6a59\u8272\u94a5\u5319\u788e\u7247",
  310. "/items/brown_key_fragment": "\u68d5\u8272\u94a5\u5319\u788e\u7247",
  311. "/items/stone_key_fragment": "\u77f3\u5934\u94a5\u5319\u788e\u7247",
  312. "/items/dark_key_fragment": "\u9ed1\u6697\u94a5\u5319\u788e\u7247",
  313. "/items/burning_key_fragment": "\u71c3\u70e7\u94a5\u5319\u788e\u7247",
  314. "/items/chimerical_entry_key": "\u5947\u5e7b\u94a5\u5319",
  315. "/items/chimerical_chest_key": "\u5947\u5e7b\u5b9d\u7bb1\u94a5\u5319",
  316. "/items/sinister_entry_key": "\u9634\u68ee\u94a5\u5319",
  317. "/items/sinister_chest_key": "\u9634\u68ee\u5b9d\u7bb1\u94a5\u5319",
  318. "/items/enchanted_entry_key": "\u79d8\u6cd5\u94a5\u5319",
  319. "/items/enchanted_chest_key": "\u79d8\u6cd5\u5b9d\u7bb1\u94a5\u5319",
  320. "/items/pirate_entry_key": "\u6d77\u76d7\u94a5\u5319",
  321. "/items/pirate_chest_key": "\u6d77\u76d7\u5b9d\u7bb1\u94a5\u5319",
  322. "/items/donut": "\u751c\u751c\u5708",
  323. "/items/blueberry_donut": "\u84dd\u8393\u751c\u751c\u5708",
  324. "/items/blackberry_donut": "\u9ed1\u8393\u751c\u751c\u5708",
  325. "/items/strawberry_donut": "\u8349\u8393\u751c\u751c\u5708",
  326. "/items/mooberry_donut": "\u54de\u8393\u751c\u751c\u5708",
  327. "/items/marsberry_donut": "\u706b\u661f\u8393\u751c\u751c\u5708",
  328. "/items/spaceberry_donut": "\u592a\u7a7a\u8393\u751c\u751c\u5708",
  329. "/items/cupcake": "\u7eb8\u676f\u86cb\u7cd5",
  330. "/items/blueberry_cake": "\u84dd\u8393\u86cb\u7cd5",
  331. "/items/blackberry_cake": "\u9ed1\u8393\u86cb\u7cd5",
  332. "/items/strawberry_cake": "\u8349\u8393\u86cb\u7cd5",
  333. "/items/mooberry_cake": "\u54de\u8393\u86cb\u7cd5",
  334. "/items/marsberry_cake": "\u706b\u661f\u8393\u86cb\u7cd5",
  335. "/items/spaceberry_cake": "\u592a\u7a7a\u8393\u86cb\u7cd5",
  336. "/items/gummy": "\u8f6f\u7cd6",
  337. "/items/apple_gummy": "\u82f9\u679c\u8f6f\u7cd6",
  338. "/items/orange_gummy": "\u6a59\u5b50\u8f6f\u7cd6",
  339. "/items/plum_gummy": "\u674e\u5b50\u8f6f\u7cd6",
  340. "/items/peach_gummy": "\u6843\u5b50\u8f6f\u7cd6",
  341. "/items/dragon_fruit_gummy": "\u706b\u9f99\u679c\u8f6f\u7cd6",
  342. "/items/star_fruit_gummy": "\u6768\u6843\u8f6f\u7cd6",
  343. "/items/yogurt": "\u9178\u5976",
  344. "/items/apple_yogurt": "\u82f9\u679c\u9178\u5976",
  345. "/items/orange_yogurt": "\u6a59\u5b50\u9178\u5976",
  346. "/items/plum_yogurt": "\u674e\u5b50\u9178\u5976",
  347. "/items/peach_yogurt": "\u6843\u5b50\u9178\u5976",
  348. "/items/dragon_fruit_yogurt": "\u706b\u9f99\u679c\u9178\u5976",
  349. "/items/star_fruit_yogurt": "\u6768\u6843\u9178\u5976",
  350. "/items/milking_tea": "\u6324\u5976\u8336",
  351. "/items/foraging_tea": "\u91c7\u6458\u8336",
  352. "/items/woodcutting_tea": "\u4f10\u6728\u8336",
  353. "/items/cooking_tea": "\u70f9\u996a\u8336",
  354. "/items/brewing_tea": "\u51b2\u6ce1\u8336",
  355. "/items/alchemy_tea": "\u70bc\u91d1\u8336",
  356. "/items/enhancing_tea": "\u5f3a\u5316\u8336",
  357. "/items/cheesesmithing_tea": "\u5976\u916a\u953b\u9020\u8336",
  358. "/items/crafting_tea": "\u5236\u4f5c\u8336",
  359. "/items/tailoring_tea": "\u7f1d\u7eab\u8336",
  360. "/items/super_milking_tea": "\u8d85\u7ea7\u6324\u5976\u8336",
  361. "/items/super_foraging_tea": "\u8d85\u7ea7\u91c7\u6458\u8336",
  362. "/items/super_woodcutting_tea": "\u8d85\u7ea7\u4f10\u6728\u8336",
  363. "/items/super_cooking_tea": "\u8d85\u7ea7\u70f9\u996a\u8336",
  364. "/items/super_brewing_tea": "\u8d85\u7ea7\u51b2\u6ce1\u8336",
  365. "/items/super_alchemy_tea": "\u8d85\u7ea7\u70bc\u91d1\u8336",
  366. "/items/super_enhancing_tea": "\u8d85\u7ea7\u5f3a\u5316\u8336",
  367. "/items/super_cheesesmithing_tea": "\u8d85\u7ea7\u5976\u916a\u953b\u9020\u8336",
  368. "/items/super_crafting_tea": "\u8d85\u7ea7\u5236\u4f5c\u8336",
  369. "/items/super_tailoring_tea": "\u8d85\u7ea7\u7f1d\u7eab\u8336",
  370. "/items/ultra_milking_tea": "\u7a76\u6781\u6324\u5976\u8336",
  371. "/items/ultra_foraging_tea": "\u7a76\u6781\u91c7\u6458\u8336",
  372. "/items/ultra_woodcutting_tea": "\u7a76\u6781\u4f10\u6728\u8336",
  373. "/items/ultra_cooking_tea": "\u7a76\u6781\u70f9\u996a\u8336",
  374. "/items/ultra_brewing_tea": "\u7a76\u6781\u51b2\u6ce1\u8336",
  375. "/items/ultra_alchemy_tea": "\u7a76\u6781\u70bc\u91d1\u8336",
  376. "/items/ultra_enhancing_tea": "\u7a76\u6781\u5f3a\u5316\u8336",
  377. "/items/ultra_cheesesmithing_tea": "\u7a76\u6781\u5976\u916a\u953b\u9020\u8336",
  378. "/items/ultra_crafting_tea": "\u7a76\u6781\u5236\u4f5c\u8336",
  379. "/items/ultra_tailoring_tea": "\u7a76\u6781\u7f1d\u7eab\u8336",
  380. "/items/gathering_tea": "\u91c7\u96c6\u8336",
  381. "/items/gourmet_tea": "\u7f8e\u98df\u8336",
  382. "/items/wisdom_tea": "\u7ecf\u9a8c\u8336",
  383. "/items/processing_tea": "\u52a0\u5de5\u8336",
  384. "/items/efficiency_tea": "\u6548\u7387\u8336",
  385. "/items/artisan_tea": "\u5de5\u5320\u8336",
  386. "/items/catalytic_tea": "\u50ac\u5316\u8336",
  387. "/items/blessed_tea": "\u798f\u6c14\u8336",
  388. "/items/stamina_coffee": "\u8010\u529b\u5496\u5561",
  389. "/items/intelligence_coffee": "\u667a\u529b\u5496\u5561",
  390. "/items/defense_coffee": "\u9632\u5fa1\u5496\u5561",
  391. "/items/attack_coffee": "\u653b\u51fb\u5496\u5561",
  392. "/items/power_coffee": "\u529b\u91cf\u5496\u5561",
  393. "/items/ranged_coffee": "\u8fdc\u7a0b\u5496\u5561",
  394. "/items/magic_coffee": "\u9b54\u6cd5\u5496\u5561",
  395. "/items/super_stamina_coffee": "\u8d85\u7ea7\u8010\u529b\u5496\u5561",
  396. "/items/super_intelligence_coffee": "\u8d85\u7ea7\u667a\u529b\u5496\u5561",
  397. "/items/super_defense_coffee": "\u8d85\u7ea7\u9632\u5fa1\u5496\u5561",
  398. "/items/super_attack_coffee": "\u8d85\u7ea7\u653b\u51fb\u5496\u5561",
  399. "/items/super_power_coffee": "\u8d85\u7ea7\u529b\u91cf\u5496\u5561",
  400. "/items/super_ranged_coffee": "\u8d85\u7ea7\u8fdc\u7a0b\u5496\u5561",
  401. "/items/super_magic_coffee": "\u8d85\u7ea7\u9b54\u6cd5\u5496\u5561",
  402. "/items/ultra_stamina_coffee": "\u7a76\u6781\u8010\u529b\u5496\u5561",
  403. "/items/ultra_intelligence_coffee": "\u7a76\u6781\u667a\u529b\u5496\u5561",
  404. "/items/ultra_defense_coffee": "\u7a76\u6781\u9632\u5fa1\u5496\u5561",
  405. "/items/ultra_attack_coffee": "\u7a76\u6781\u653b\u51fb\u5496\u5561",
  406. "/items/ultra_power_coffee": "\u7a76\u6781\u529b\u91cf\u5496\u5561",
  407. "/items/ultra_ranged_coffee": "\u7a76\u6781\u8fdc\u7a0b\u5496\u5561",
  408. "/items/ultra_magic_coffee": "\u7a76\u6781\u9b54\u6cd5\u5496\u5561",
  409. "/items/wisdom_coffee": "\u7ecf\u9a8c\u5496\u5561",
  410. "/items/lucky_coffee": "\u5e78\u8fd0\u5496\u5561",
  411. "/items/swiftness_coffee": "\u8fc5\u6377\u5496\u5561",
  412. "/items/channeling_coffee": "\u541f\u5531\u5496\u5561",
  413. "/items/critical_coffee": "\u66b4\u51fb\u5496\u5561",
  414. "/items/poke": "\u7834\u80c6\u4e4b\u523a",
  415. "/items/impale": "\u900f\u9aa8\u4e4b\u523a",
  416. "/items/puncture": "\u7834\u7532\u4e4b\u523a",
  417. "/items/penetrating_strike": "\u8d2f\u5fc3\u4e4b\u523a",
  418. "/items/scratch": "\u722a\u5f71\u65a9",
  419. "/items/cleave": "\u5206\u88c2\u65a9",
  420. "/items/maim": "\u8840\u5203\u65a9",
  421. "/items/crippling_slash": "\u81f4\u6b8b\u65a9",
  422. "/items/smack": "\u91cd\u78be",
  423. "/items/sweep": "\u91cd\u626b",
  424. "/items/stunning_blow": "\u91cd\u9524",
  425. "/items/fracturing_impact": "\u788e\u88c2\u51b2\u51fb",
  426. "/items/shield_bash": "\u76fe\u51fb",
  427. "/items/quick_shot": "\u5feb\u901f\u5c04\u51fb",
  428. "/items/aqua_arrow": "\u6d41\u6c34\u7bad",
  429. "/items/flame_arrow": "\u70c8\u7130\u7bad",
  430. "/items/rain_of_arrows": "\u7bad\u96e8",
  431. "/items/silencing_shot": "\u6c89\u9ed8\u4e4b\u7bad",
  432. "/items/steady_shot": "\u7a33\u5b9a\u5c04\u51fb",
  433. "/items/pestilent_shot": "\u75ab\u75c5\u5c04\u51fb",
  434. "/items/penetrating_shot": "\u8d2f\u7a7f\u5c04\u51fb",
  435. "/items/water_strike": "\u6d41\u6c34\u51b2\u51fb",
  436. "/items/ice_spear": "\u51b0\u67aa\u672f",
  437. "/items/frost_surge": "\u51b0\u971c\u7206\u88c2",
  438. "/items/mana_spring": "\u6cd5\u529b\u55b7\u6cc9",
  439. "/items/entangle": "\u7f20\u7ed5",
  440. "/items/toxic_pollen": "\u5267\u6bd2\u7c89\u5c18",
  441. "/items/natures_veil": "\u81ea\u7136\u83cc\u5e55",
  442. "/items/life_drain": "\u751f\u547d\u5438\u53d6",
  443. "/items/fireball": "\u706b\u7403",
  444. "/items/flame_blast": "\u7194\u5ca9\u7206\u88c2",
  445. "/items/firestorm": "\u706b\u7130\u98ce\u66b4",
  446. "/items/smoke_burst": "\u70df\u7206\u706d\u5f71",
  447. "/items/minor_heal": "\u521d\u7ea7\u81ea\u6108\u672f",
  448. "/items/heal": "\u81ea\u6108\u672f",
  449. "/items/quick_aid": "\u5feb\u901f\u6cbb\u7597\u672f",
  450. "/items/rejuvenate": "\u7fa4\u4f53\u6cbb\u7597\u672f",
  451. "/items/taunt": "\u5632\u8bbd",
  452. "/items/provoke": "\u6311\u8845",
  453. "/items/toughness": "\u575a\u97e7",
  454. "/items/elusiveness": "\u95ea\u907f",
  455. "/items/precision": "\u7cbe\u786e",
  456. "/items/berserk": "\u72c2\u66b4",
  457. "/items/elemental_affinity": "\u5143\u7d20\u589e\u5e45",
  458. "/items/frenzy": "\u72c2\u901f",
  459. "/items/spike_shell": "\u5c16\u523a\u9632\u62a4",
  460. "/items/arcane_reflection": "\u5965\u672f\u53cd\u5c04",
  461. "/items/vampirism": "\u5438\u8840",
  462. "/items/revive": "\u590d\u6d3b",
  463. "/items/insanity": "\u75af\u72c2",
  464. "/items/invincible": "\u65e0\u654c",
  465. "/items/fierce_aura": "\u7269\u7406\u5149\u73af",
  466. "/items/aqua_aura": "\u6d41\u6c34\u5149\u73af",
  467. "/items/sylvan_aura": "\u81ea\u7136\u5149\u73af",
  468. "/items/flame_aura": "\u706b\u7130\u5149\u73af",
  469. "/items/speed_aura": "\u901f\u5ea6\u5149\u73af",
  470. "/items/critical_aura": "\u66b4\u51fb\u5149\u73af",
  471. "/items/gobo_stabber": "\u54e5\u5e03\u6797\u957f\u5251",
  472. "/items/gobo_slasher": "\u54e5\u5e03\u6797\u5173\u5200",
  473. "/items/gobo_smasher": "\u54e5\u5e03\u6797\u72fc\u7259\u68d2",
  474. "/items/spiked_bulwark": "\u5c16\u523a\u91cd\u76fe",
  475. "/items/werewolf_slasher": "\u72fc\u4eba\u5173\u5200",
  476. "/items/griffin_bulwark": "\u72ee\u9e6b\u91cd\u76fe",
  477. "/items/gobo_shooter": "\u54e5\u5e03\u6797\u5f39\u5f13",
  478. "/items/vampiric_bow": "\u5438\u8840\u5f13",
  479. "/items/cursed_bow": "\u5492\u6028\u4e4b\u5f13",
  480. "/items/gobo_boomstick": "\u54e5\u5e03\u6797\u706b\u68cd",
  481. "/items/cheese_bulwark": "\u5976\u916a\u91cd\u76fe",
  482. "/items/verdant_bulwark": "\u7fe0\u7eff\u91cd\u76fe",
  483. "/items/azure_bulwark": "\u851a\u84dd\u91cd\u76fe",
  484. "/items/burble_bulwark": "\u6df1\u7d2b\u91cd\u76fe",
  485. "/items/crimson_bulwark": "\u7edb\u7ea2\u91cd\u76fe",
  486. "/items/rainbow_bulwark": "\u5f69\u8679\u91cd\u76fe",
  487. "/items/holy_bulwark": "\u795e\u5723\u91cd\u76fe",
  488. "/items/wooden_bow": "\u6728\u5f13",
  489. "/items/birch_bow": "\u6866\u6728\u5f13",
  490. "/items/cedar_bow": "\u96ea\u677e\u5f13",
  491. "/items/purpleheart_bow": "\u7d2b\u5fc3\u5f13",
  492. "/items/ginkgo_bow": "\u94f6\u674f\u5f13",
  493. "/items/redwood_bow": "\u7ea2\u6749\u5f13",
  494. "/items/arcane_bow": "\u795e\u79d8\u5f13",
  495. "/items/stalactite_spear": "\u77f3\u949f\u957f\u67aa",
  496. "/items/granite_bludgeon": "\u82b1\u5c97\u5ca9\u5927\u68d2",
  497. "/items/furious_spear": "\u72c2\u6012\u957f\u67aa",
  498. "/items/regal_sword": "\u541b\u738b\u4e4b\u5251",
  499. "/items/chaotic_flail": "\u6df7\u6c8c\u8fde\u67b7",
  500. "/items/soul_hunter_crossbow": "\u7075\u9b42\u730e\u624b\u5f29",
  501. "/items/sundering_crossbow": "\u88c2\u7a7a\u4e4b\u5f29",
  502. "/items/frost_staff": "\u51b0\u971c\u6cd5\u6756",
  503. "/items/infernal_battlestaff": "\u70bc\u72f1\u6cd5\u6756",
  504. "/items/jackalope_staff": "\u9e7f\u89d2\u5154\u4e4b\u6756",
  505. "/items/rippling_trident": "\u6d9f\u6f2a\u4e09\u53c9\u621f",
  506. "/items/blooming_trident": "\u7efd\u653e\u4e09\u53c9\u621f",
  507. "/items/blazing_trident": "\u70bd\u7130\u4e09\u53c9\u621f",
  508. "/items/cheese_sword": "\u5976\u916a\u5251",
  509. "/items/verdant_sword": "\u7fe0\u7eff\u5251",
  510. "/items/azure_sword": "\u851a\u84dd\u5251",
  511. "/items/burble_sword": "\u6df1\u7d2b\u5251",
  512. "/items/crimson_sword": "\u7edb\u7ea2\u5251",
  513. "/items/rainbow_sword": "\u5f69\u8679\u5251",
  514. "/items/holy_sword": "\u795e\u5723\u5251",
  515. "/items/cheese_spear": "\u5976\u916a\u957f\u67aa",
  516. "/items/verdant_spear": "\u7fe0\u7eff\u957f\u67aa",
  517. "/items/azure_spear": "\u851a\u84dd\u957f\u67aa",
  518. "/items/burble_spear": "\u6df1\u7d2b\u957f\u67aa",
  519. "/items/crimson_spear": "\u7edb\u7ea2\u957f\u67aa",
  520. "/items/rainbow_spear": "\u5f69\u8679\u957f\u67aa",
  521. "/items/holy_spear": "\u795e\u5723\u957f\u67aa",
  522. "/items/cheese_mace": "\u5976\u916a\u9489\u5934\u9524",
  523. "/items/verdant_mace": "\u7fe0\u7eff\u9489\u5934\u9524",
  524. "/items/azure_mace": "\u851a\u84dd\u9489\u5934\u9524",
  525. "/items/burble_mace": "\u6df1\u7d2b\u9489\u5934\u9524",
  526. "/items/crimson_mace": "\u7edb\u7ea2\u9489\u5934\u9524",
  527. "/items/rainbow_mace": "\u5f69\u8679\u9489\u5934\u9524",
  528. "/items/holy_mace": "\u795e\u5723\u9489\u5934\u9524",
  529. "/items/wooden_crossbow": "\u6728\u5f29",
  530. "/items/birch_crossbow": "\u6866\u6728\u5f29",
  531. "/items/cedar_crossbow": "\u96ea\u677e\u5f29",
  532. "/items/purpleheart_crossbow": "\u7d2b\u5fc3\u5f29",
  533. "/items/ginkgo_crossbow": "\u94f6\u674f\u5f29",
  534. "/items/redwood_crossbow": "\u7ea2\u6749\u5f29",
  535. "/items/arcane_crossbow": "\u795e\u79d8\u5f29",
  536. "/items/wooden_water_staff": "\u6728\u5236\u6c34\u6cd5\u6756",
  537. "/items/birch_water_staff": "\u6866\u6728\u6c34\u6cd5\u6756",
  538. "/items/cedar_water_staff": "\u96ea\u677e\u6c34\u6cd5\u6756",
  539. "/items/purpleheart_water_staff": "\u7d2b\u5fc3\u6c34\u6cd5\u6756",
  540. "/items/ginkgo_water_staff": "\u94f6\u674f\u6c34\u6cd5\u6756",
  541. "/items/redwood_water_staff": "\u7ea2\u6749\u6c34\u6cd5\u6756",
  542. "/items/arcane_water_staff": "\u795e\u79d8\u6c34\u6cd5\u6756",
  543. "/items/wooden_nature_staff": "\u6728\u5236\u81ea\u7136\u6cd5\u6756",
  544. "/items/birch_nature_staff": "\u6866\u6728\u81ea\u7136\u6cd5\u6756",
  545. "/items/cedar_nature_staff": "\u96ea\u677e\u81ea\u7136\u6cd5\u6756",
  546. "/items/purpleheart_nature_staff": "\u7d2b\u5fc3\u81ea\u7136\u6cd5\u6756",
  547. "/items/ginkgo_nature_staff": "\u94f6\u674f\u81ea\u7136\u6cd5\u6756",
  548. "/items/redwood_nature_staff": "\u7ea2\u6749\u81ea\u7136\u6cd5\u6756",
  549. "/items/arcane_nature_staff": "\u795e\u79d8\u81ea\u7136\u6cd5\u6756",
  550. "/items/wooden_fire_staff": "\u6728\u5236\u706b\u6cd5\u6756",
  551. "/items/birch_fire_staff": "\u6866\u6728\u706b\u6cd5\u6756",
  552. "/items/cedar_fire_staff": "\u96ea\u677e\u706b\u6cd5\u6756",
  553. "/items/purpleheart_fire_staff": "\u7d2b\u5fc3\u706b\u6cd5\u6756",
  554. "/items/ginkgo_fire_staff": "\u94f6\u674f\u706b\u6cd5\u6756",
  555. "/items/redwood_fire_staff": "\u7ea2\u6749\u706b\u6cd5\u6756",
  556. "/items/arcane_fire_staff": "\u795e\u79d8\u706b\u6cd5\u6756",
  557. "/items/eye_watch": "\u638c\u4e0a\u76d1\u5de5",
  558. "/items/snake_fang_dirk": "\u86c7\u7259\u77ed\u5251",
  559. "/items/vision_shield": "\u89c6\u89c9\u76fe",
  560. "/items/gobo_defender": "\u54e5\u5e03\u6797\u9632\u5fa1\u8005",
  561. "/items/vampire_fang_dirk": "\u5438\u8840\u9b3c\u77ed\u5251",
  562. "/items/knights_aegis": "\u9a91\u58eb\u76fe",
  563. "/items/treant_shield": "\u6811\u4eba\u76fe",
  564. "/items/manticore_shield": "\u874e\u72ee\u76fe",
  565. "/items/tome_of_healing": "\u6cbb\u7597\u4e4b\u4e66",
  566. "/items/tome_of_the_elements": "\u5143\u7d20\u4e4b\u4e66",
  567. "/items/watchful_relic": "\u8b66\u6212\u9057\u7269",
  568. "/items/bishops_codex": "\u4e3b\u6559\u6cd5\u5178",
  569. "/items/cheese_buckler": "\u5976\u916a\u5706\u76fe",
  570. "/items/verdant_buckler": "\u7fe0\u7eff\u5706\u76fe",
  571. "/items/azure_buckler": "\u851a\u84dd\u5706\u76fe",
  572. "/items/burble_buckler": "\u6df1\u7d2b\u5706\u76fe",
  573. "/items/crimson_buckler": "\u7edb\u7ea2\u5706\u76fe",
  574. "/items/rainbow_buckler": "\u5f69\u8679\u5706\u76fe",
  575. "/items/holy_buckler": "\u795e\u5723\u5706\u76fe",
  576. "/items/wooden_shield": "\u6728\u76fe",
  577. "/items/birch_shield": "\u6866\u6728\u76fe",
  578. "/items/cedar_shield": "\u96ea\u677e\u76fe",
  579. "/items/purpleheart_shield": "\u7d2b\u5fc3\u76fe",
  580. "/items/ginkgo_shield": "\u94f6\u674f\u76fe",
  581. "/items/redwood_shield": "\u7ea2\u6749\u76fe",
  582. "/items/arcane_shield": "\u795e\u79d8\u76fe",
  583. "/items/sinister_cape": "\u9634\u68ee\u6597\u7bf7",
  584. "/items/chimerical_quiver": "\u5947\u5e7b\u7bad\u888b",
  585. "/items/enchanted_cloak": "\u79d8\u6cd5\u62ab\u98ce",
  586. "/items/red_culinary_hat": "\u7ea2\u8272\u53a8\u5e08\u5e3d",
  587. "/items/snail_shell_helmet": "\u8717\u725b\u58f3\u5934\u76d4",
  588. "/items/vision_helmet": "\u89c6\u89c9\u5934\u76d4",
  589. "/items/fluffy_red_hat": "\u84ec\u677e\u7ea2\u5e3d\u5b50",
  590. "/items/corsair_helmet": "\u63a0\u593a\u8005\u5934\u76d4",
  591. "/items/acrobatic_hood": "\u6742\u6280\u5e08\u515c\u5e3d",
  592. "/items/magicians_hat": "\u9b54\u672f\u5e08\u5e3d",
  593. "/items/cheese_helmet": "\u5976\u916a\u5934\u76d4",
  594. "/items/verdant_helmet": "\u7fe0\u7eff\u5934\u76d4",
  595. "/items/azure_helmet": "\u851a\u84dd\u5934\u76d4",
  596. "/items/burble_helmet": "\u6df1\u7d2b\u5934\u76d4",
  597. "/items/crimson_helmet": "\u7edb\u7ea2\u5934\u76d4",
  598. "/items/rainbow_helmet": "\u5f69\u8679\u5934\u76d4",
  599. "/items/holy_helmet": "\u795e\u5723\u5934\u76d4",
  600. "/items/rough_hood": "\u7c97\u7cd9\u515c\u5e3d",
  601. "/items/reptile_hood": "\u722c\u884c\u52a8\u7269\u515c\u5e3d",
  602. "/items/gobo_hood": "\u54e5\u5e03\u6797\u515c\u5e3d",
  603. "/items/beast_hood": "\u91ce\u517d\u515c\u5e3d",
  604. "/items/umbral_hood": "\u6697\u5f71\u515c\u5e3d",
  605. "/items/cotton_hat": "\u68c9\u5e3d",
  606. "/items/linen_hat": "\u4e9a\u9ebb\u5e3d",
  607. "/items/bamboo_hat": "\u7af9\u5e3d",
  608. "/items/silk_hat": "\u4e1d\u5e3d",
  609. "/items/radiant_hat": "\u5149\u8f89\u5e3d",
  610. "/items/dairyhands_top": "\u6324\u5976\u5de5\u4e0a\u8863",
  611. "/items/foragers_top": "\u91c7\u6458\u8005\u4e0a\u8863",
  612. "/items/lumberjacks_top": "\u4f10\u6728\u5de5\u4e0a\u8863",
  613. "/items/cheesemakers_top": "\u5976\u916a\u5e08\u4e0a\u8863",
  614. "/items/crafters_top": "\u5de5\u5320\u4e0a\u8863",
  615. "/items/tailors_top": "\u88c1\u7f1d\u4e0a\u8863",
  616. "/items/chefs_top": "\u53a8\u5e08\u4e0a\u8863",
  617. "/items/brewers_top": "\u996e\u54c1\u5e08\u4e0a\u8863",
  618. "/items/alchemists_top": "\u70bc\u91d1\u5e08\u4e0a\u8863",
  619. "/items/enhancers_top": "\u5f3a\u5316\u5e08\u4e0a\u8863",
  620. "/items/gator_vest": "\u9cc4\u9c7c\u9a6c\u7532",
  621. "/items/turtle_shell_body": "\u9f9f\u58f3\u80f8\u7532",
  622. "/items/colossus_plate_body": "\u5de8\u50cf\u80f8\u7532",
  623. "/items/demonic_plate_body": "\u6076\u9b54\u80f8\u7532",
  624. "/items/anchorbound_plate_body": "\u951a\u5b9a\u80f8\u7532",
  625. "/items/maelstrom_plate_body": "\u6012\u6d9b\u80f8\u7532",
  626. "/items/marine_tunic": "\u6d77\u6d0b\u76ae\u8863",
  627. "/items/revenant_tunic": "\u4ea1\u7075\u76ae\u8863",
  628. "/items/griffin_tunic": "\u72ee\u9e6b\u76ae\u8863",
  629. "/items/kraken_tunic": "\u514b\u62c9\u80af\u76ae\u8863",
  630. "/items/icy_robe_top": "\u51b0\u971c\u888d\u670d",
  631. "/items/flaming_robe_top": "\u70c8\u7130\u888d\u670d",
  632. "/items/luna_robe_top": "\u6708\u795e\u888d\u670d",
  633. "/items/royal_water_robe_top": "\u7687\u5bb6\u6c34\u7cfb\u888d\u670d",
  634. "/items/royal_nature_robe_top": "\u7687\u5bb6\u81ea\u7136\u7cfb\u888d\u670d",
  635. "/items/royal_fire_robe_top": "\u7687\u5bb6\u706b\u7cfb\u888d\u670d",
  636. "/items/cheese_plate_body": "\u5976\u916a\u80f8\u7532",
  637. "/items/verdant_plate_body": "\u7fe0\u7eff\u80f8\u7532",
  638. "/items/azure_plate_body": "\u851a\u84dd\u80f8\u7532",
  639. "/items/burble_plate_body": "\u6df1\u7d2b\u80f8\u7532",
  640. "/items/crimson_plate_body": "\u7edb\u7ea2\u80f8\u7532",
  641. "/items/rainbow_plate_body": "\u5f69\u8679\u80f8\u7532",
  642. "/items/holy_plate_body": "\u795e\u5723\u80f8\u7532",
  643. "/items/rough_tunic": "\u7c97\u7cd9\u76ae\u8863",
  644. "/items/reptile_tunic": "\u722c\u884c\u52a8\u7269\u76ae\u8863",
  645. "/items/gobo_tunic": "\u54e5\u5e03\u6797\u76ae\u8863",
  646. "/items/beast_tunic": "\u91ce\u517d\u76ae\u8863",
  647. "/items/umbral_tunic": "\u6697\u5f71\u76ae\u8863",
  648. "/items/cotton_robe_top": "\u68c9\u5e03\u888d\u670d",
  649. "/items/linen_robe_top": "\u4e9a\u9ebb\u888d\u670d",
  650. "/items/bamboo_robe_top": "\u7af9\u888d\u670d",
  651. "/items/silk_robe_top": "\u4e1d\u7ef8\u888d\u670d",
  652. "/items/radiant_robe_top": "\u5149\u8f89\u888d\u670d",
  653. "/items/dairyhands_bottoms": "\u6324\u5976\u5de5\u4e0b\u88c5",
  654. "/items/foragers_bottoms": "\u91c7\u6458\u8005\u4e0b\u88c5",
  655. "/items/lumberjacks_bottoms": "\u4f10\u6728\u5de5\u4e0b\u88c5",
  656. "/items/cheesemakers_bottoms": "\u5976\u916a\u5e08\u4e0b\u88c5",
  657. "/items/crafters_bottoms": "\u5de5\u5320\u4e0b\u88c5",
  658. "/items/tailors_bottoms": "\u88c1\u7f1d\u4e0b\u88c5",
  659. "/items/chefs_bottoms": "\u53a8\u5e08\u4e0b\u88c5",
  660. "/items/brewers_bottoms": "\u996e\u54c1\u5e08\u4e0b\u88c5",
  661. "/items/alchemists_bottoms": "\u70bc\u91d1\u5e08\u4e0b\u88c5",
  662. "/items/enhancers_bottoms": "\u5f3a\u5316\u5e08\u4e0b\u88c5",
  663. "/items/turtle_shell_legs": "\u9f9f\u58f3\u817f\u7532",
  664. "/items/colossus_plate_legs": "\u5de8\u50cf\u817f\u7532",
  665. "/items/demonic_plate_legs": "\u6076\u9b54\u817f\u7532",
  666. "/items/anchorbound_plate_legs": "\u951a\u5b9a\u817f\u7532",
  667. "/items/maelstrom_plate_legs": "\u6012\u6d9b\u817f\u7532",
  668. "/items/marine_chaps": "\u822a\u6d77\u76ae\u88e4",
  669. "/items/revenant_chaps": "\u4ea1\u7075\u76ae\u88e4",
  670. "/items/griffin_chaps": "\u72ee\u9e6b\u76ae\u88e4",
  671. "/items/kraken_chaps": "\u514b\u62c9\u80af\u76ae\u88e4",
  672. "/items/icy_robe_bottoms": "\u51b0\u971c\u888d\u88d9",
  673. "/items/flaming_robe_bottoms": "\u70c8\u7130\u888d\u88d9",
  674. "/items/luna_robe_bottoms": "\u6708\u795e\u888d\u88d9",
  675. "/items/royal_water_robe_bottoms": "\u7687\u5bb6\u6c34\u7cfb\u888d\u88d9",
  676. "/items/royal_nature_robe_bottoms": "\u7687\u5bb6\u81ea\u7136\u7cfb\u888d\u88d9",
  677. "/items/royal_fire_robe_bottoms": "\u7687\u5bb6\u706b\u7cfb\u888d\u88d9",
  678. "/items/cheese_plate_legs": "\u5976\u916a\u817f\u7532",
  679. "/items/verdant_plate_legs": "\u7fe0\u7eff\u817f\u7532",
  680. "/items/azure_plate_legs": "\u851a\u84dd\u817f\u7532",
  681. "/items/burble_plate_legs": "\u6df1\u7d2b\u817f\u7532",
  682. "/items/crimson_plate_legs": "\u7edb\u7ea2\u817f\u7532",
  683. "/items/rainbow_plate_legs": "\u5f69\u8679\u817f\u7532",
  684. "/items/holy_plate_legs": "\u795e\u5723\u817f\u7532",
  685. "/items/rough_chaps": "\u7c97\u7cd9\u76ae\u88e4",
  686. "/items/reptile_chaps": "\u722c\u884c\u52a8\u7269\u76ae\u88e4",
  687. "/items/gobo_chaps": "\u54e5\u5e03\u6797\u76ae\u88e4",
  688. "/items/beast_chaps": "\u91ce\u517d\u76ae\u88e4",
  689. "/items/umbral_chaps": "\u6697\u5f71\u76ae\u88e4",
  690. "/items/cotton_robe_bottoms": "\u68c9\u888d\u88d9",
  691. "/items/linen_robe_bottoms": "\u4e9a\u9ebb\u888d\u88d9",
  692. "/items/bamboo_robe_bottoms": "\u7af9\u888d\u88d9",
  693. "/items/silk_robe_bottoms": "\u4e1d\u7ef8\u888d\u88d9",
  694. "/items/radiant_robe_bottoms": "\u5149\u8f89\u888d\u88d9",
  695. "/items/enchanted_gloves": "\u9644\u9b54\u624b\u5957",
  696. "/items/pincer_gloves": "\u87f9\u94b3\u624b\u5957",
  697. "/items/panda_gloves": "\u718a\u732b\u624b\u5957",
  698. "/items/magnetic_gloves": "\u78c1\u529b\u624b\u5957",
  699. "/items/dodocamel_gauntlets": "\u6e21\u6e21\u9a7c\u62a4\u624b",
  700. "/items/sighted_bracers": "\u7784\u51c6\u62a4\u8155",
  701. "/items/marksman_bracers": "\u795e\u5c04\u62a4\u8155",
  702. "/items/chrono_gloves": "\u65f6\u7a7a\u624b\u5957",
  703. "/items/cheese_gauntlets": "\u5976\u916a\u62a4\u624b",
  704. "/items/verdant_gauntlets": "\u7fe0\u7eff\u62a4\u624b",
  705. "/items/azure_gauntlets": "\u851a\u84dd\u62a4\u624b",
  706. "/items/burble_gauntlets": "\u6df1\u7d2b\u62a4\u624b",
  707. "/items/crimson_gauntlets": "\u7edb\u7ea2\u62a4\u624b",
  708. "/items/rainbow_gauntlets": "\u5f69\u8679\u62a4\u624b",
  709. "/items/holy_gauntlets": "\u795e\u5723\u62a4\u624b",
  710. "/items/rough_bracers": "\u7c97\u7cd9\u62a4\u8155",
  711. "/items/reptile_bracers": "\u722c\u884c\u52a8\u7269\u62a4\u8155",
  712. "/items/gobo_bracers": "\u54e5\u5e03\u6797\u62a4\u8155",
  713. "/items/beast_bracers": "\u91ce\u517d\u62a4\u8155",
  714. "/items/umbral_bracers": "\u6697\u5f71\u62a4\u8155",
  715. "/items/cotton_gloves": "\u68c9\u624b\u5957",
  716. "/items/linen_gloves": "\u4e9a\u9ebb\u624b\u5957",
  717. "/items/bamboo_gloves": "\u7af9\u624b\u5957",
  718. "/items/silk_gloves": "\u4e1d\u624b\u5957",
  719. "/items/radiant_gloves": "\u5149\u8f89\u624b\u5957",
  720. "/items/collectors_boots": "\u6536\u85cf\u5bb6\u9774",
  721. "/items/shoebill_shoes": "\u9cb8\u5934\u9e73\u978b",
  722. "/items/black_bear_shoes": "\u9ed1\u718a\u978b",
  723. "/items/grizzly_bear_shoes": "\u68d5\u718a\u978b",
  724. "/items/polar_bear_shoes": "\u5317\u6781\u718a\u978b",
  725. "/items/centaur_boots": "\u534a\u4eba\u9a6c\u9774",
  726. "/items/sorcerer_boots": "\u5deb\u5e08\u9774",
  727. "/items/cheese_boots": "\u5976\u916a\u9774",
  728. "/items/verdant_boots": "\u7fe0\u7eff\u9774",
  729. "/items/azure_boots": "\u851a\u84dd\u9774",
  730. "/items/burble_boots": "\u6df1\u7d2b\u9774",
  731. "/items/crimson_boots": "\u7edb\u7ea2\u9774",
  732. "/items/rainbow_boots": "\u5f69\u8679\u9774",
  733. "/items/holy_boots": "\u795e\u5723\u9774",
  734. "/items/rough_boots": "\u7c97\u7cd9\u9774",
  735. "/items/reptile_boots": "\u722c\u884c\u52a8\u7269\u9774",
  736. "/items/gobo_boots": "\u54e5\u5e03\u6797\u9774",
  737. "/items/beast_boots": "\u91ce\u517d\u9774",
  738. "/items/umbral_boots": "\u6697\u5f71\u9774",
  739. "/items/cotton_boots": "\u68c9\u9774",
  740. "/items/linen_boots": "\u4e9a\u9ebb\u9774",
  741. "/items/bamboo_boots": "\u7af9\u9774",
  742. "/items/silk_boots": "\u4e1d\u9774",
  743. "/items/radiant_boots": "\u5149\u8f89\u9774",
  744. "/items/small_pouch": "\u5c0f\u888b\u5b50",
  745. "/items/medium_pouch": "\u4e2d\u888b\u5b50",
  746. "/items/large_pouch": "\u5927\u888b\u5b50",
  747. "/items/giant_pouch": "\u5de8\u5927\u888b\u5b50",
  748. "/items/gluttonous_pouch": "\u8d2a\u98df\u4e4b\u888b",
  749. "/items/guzzling_pouch": "\u66b4\u996e\u4e4b\u56ca",
  750. "/items/necklace_of_efficiency": "\u6548\u7387\u9879\u94fe",
  751. "/items/fighter_necklace": "\u6218\u58eb\u9879\u94fe",
  752. "/items/ranger_necklace": "\u5c04\u624b\u9879\u94fe",
  753. "/items/wizard_necklace": "\u5deb\u5e08\u9879\u94fe",
  754. "/items/necklace_of_wisdom": "\u7ecf\u9a8c\u9879\u94fe",
  755. "/items/necklace_of_speed": "\u901f\u5ea6\u9879\u94fe",
  756. "/items/philosophers_necklace": "\u8d24\u8005\u9879\u94fe",
  757. "/items/earrings_of_gathering": "\u91c7\u96c6\u8033\u73af",
  758. "/items/earrings_of_essence_find": "\u7cbe\u534e\u53d1\u73b0\u8033\u73af",
  759. "/items/earrings_of_armor": "\u62a4\u7532\u8033\u73af",
  760. "/items/earrings_of_regeneration": "\u6062\u590d\u8033\u73af",
  761. "/items/earrings_of_resistance": "\u6297\u6027\u8033\u73af",
  762. "/items/earrings_of_rare_find": "\u7a00\u6709\u53d1\u73b0\u8033\u73af",
  763. "/items/earrings_of_critical_strike": "\u66b4\u51fb\u8033\u73af",
  764. "/items/philosophers_earrings": "\u8d24\u8005\u8033\u73af",
  765. "/items/ring_of_gathering": "\u91c7\u96c6\u6212\u6307",
  766. "/items/ring_of_essence_find": "\u7cbe\u534e\u53d1\u73b0\u6212\u6307",
  767. "/items/ring_of_armor": "\u62a4\u7532\u6212\u6307",
  768. "/items/ring_of_regeneration": "\u6062\u590d\u6212\u6307",
  769. "/items/ring_of_resistance": "\u6297\u6027\u6212\u6307",
  770. "/items/ring_of_rare_find": "\u7a00\u6709\u53d1\u73b0\u6212\u6307",
  771. "/items/ring_of_critical_strike": "\u66b4\u51fb\u6212\u6307",
  772. "/items/philosophers_ring": "\u8d24\u8005\u6212\u6307",
  773. "/items/basic_task_badge": "\u57fa\u7840\u4efb\u52a1\u5fbd\u7ae0",
  774. "/items/advanced_task_badge": "\u9ad8\u7ea7\u4efb\u52a1\u5fbd\u7ae0",
  775. "/items/expert_task_badge": "\u4e13\u5bb6\u4efb\u52a1\u5fbd\u7ae0",
  776. "/items/celestial_brush": "\u661f\u7a7a\u5237\u5b50",
  777. "/items/cheese_brush": "\u5976\u916a\u5237\u5b50",
  778. "/items/verdant_brush": "\u7fe0\u7eff\u5237\u5b50",
  779. "/items/azure_brush": "\u851a\u84dd\u5237\u5b50",
  780. "/items/burble_brush": "\u6df1\u7d2b\u5237\u5b50",
  781. "/items/crimson_brush": "\u7edb\u7ea2\u5237\u5b50",
  782. "/items/rainbow_brush": "\u5f69\u8679\u5237\u5b50",
  783. "/items/holy_brush": "\u795e\u5723\u5237\u5b50",
  784. "/items/celestial_shears": "\u661f\u7a7a\u526a\u5200",
  785. "/items/cheese_shears": "\u5976\u916a\u526a\u5200",
  786. "/items/verdant_shears": "\u7fe0\u7eff\u526a\u5200",
  787. "/items/azure_shears": "\u851a\u84dd\u526a\u5200",
  788. "/items/burble_shears": "\u6df1\u7d2b\u526a\u5200",
  789. "/items/crimson_shears": "\u7edb\u7ea2\u526a\u5200",
  790. "/items/rainbow_shears": "\u5f69\u8679\u526a\u5200",
  791. "/items/holy_shears": "\u795e\u5723\u526a\u5200",
  792. "/items/celestial_hatchet": "\u661f\u7a7a\u65a7\u5934",
  793. "/items/cheese_hatchet": "\u5976\u916a\u65a7\u5934",
  794. "/items/verdant_hatchet": "\u7fe0\u7eff\u65a7\u5934",
  795. "/items/azure_hatchet": "\u851a\u84dd\u65a7\u5934",
  796. "/items/burble_hatchet": "\u6df1\u7d2b\u65a7\u5934",
  797. "/items/crimson_hatchet": "\u7edb\u7ea2\u65a7\u5934",
  798. "/items/rainbow_hatchet": "\u5f69\u8679\u65a7\u5934",
  799. "/items/holy_hatchet": "\u795e\u5723\u65a7\u5934",
  800. "/items/celestial_hammer": "\u661f\u7a7a\u9524\u5b50",
  801. "/items/cheese_hammer": "\u5976\u916a\u9524\u5b50",
  802. "/items/verdant_hammer": "\u7fe0\u7eff\u9524\u5b50",
  803. "/items/azure_hammer": "\u851a\u84dd\u9524\u5b50",
  804. "/items/burble_hammer": "\u6df1\u7d2b\u9524\u5b50",
  805. "/items/crimson_hammer": "\u7edb\u7ea2\u9524\u5b50",
  806. "/items/rainbow_hammer": "\u5f69\u8679\u9524\u5b50",
  807. "/items/holy_hammer": "\u795e\u5723\u9524\u5b50",
  808. "/items/celestial_chisel": "\u661f\u7a7a\u51ff\u5b50",
  809. "/items/cheese_chisel": "\u5976\u916a\u51ff\u5b50",
  810. "/items/verdant_chisel": "\u7fe0\u7eff\u51ff\u5b50",
  811. "/items/azure_chisel": "\u851a\u84dd\u51ff\u5b50",
  812. "/items/burble_chisel": "\u6df1\u7d2b\u51ff\u5b50",
  813. "/items/crimson_chisel": "\u7edb\u7ea2\u51ff\u5b50",
  814. "/items/rainbow_chisel": "\u5f69\u8679\u51ff\u5b50",
  815. "/items/holy_chisel": "\u795e\u5723\u51ff\u5b50",
  816. "/items/celestial_needle": "\u661f\u7a7a\u9488",
  817. "/items/cheese_needle": "\u5976\u916a\u9488",
  818. "/items/verdant_needle": "\u7fe0\u7eff\u9488",
  819. "/items/azure_needle": "\u851a\u84dd\u9488",
  820. "/items/burble_needle": "\u6df1\u7d2b\u9488",
  821. "/items/crimson_needle": "\u7edb\u7ea2\u9488",
  822. "/items/rainbow_needle": "\u5f69\u8679\u9488",
  823. "/items/holy_needle": "\u795e\u5723\u9488",
  824. "/items/celestial_spatula": "\u661f\u7a7a\u9505\u94f2",
  825. "/items/cheese_spatula": "\u5976\u916a\u9505\u94f2",
  826. "/items/verdant_spatula": "\u7fe0\u7eff\u9505\u94f2",
  827. "/items/azure_spatula": "\u851a\u84dd\u9505\u94f2",
  828. "/items/burble_spatula": "\u6df1\u7d2b\u9505\u94f2",
  829. "/items/crimson_spatula": "\u7edb\u7ea2\u9505\u94f2",
  830. "/items/rainbow_spatula": "\u5f69\u8679\u9505\u94f2",
  831. "/items/holy_spatula": "\u795e\u5723\u9505\u94f2",
  832. "/items/celestial_pot": "\u661f\u7a7a\u58f6",
  833. "/items/cheese_pot": "\u5976\u916a\u58f6",
  834. "/items/verdant_pot": "\u7fe0\u7eff\u58f6",
  835. "/items/azure_pot": "\u851a\u84dd\u58f6",
  836. "/items/burble_pot": "\u6df1\u7d2b\u58f6",
  837. "/items/crimson_pot": "\u7edb\u7ea2\u58f6",
  838. "/items/rainbow_pot": "\u5f69\u8679\u58f6",
  839. "/items/holy_pot": "\u795e\u5723\u58f6",
  840. "/items/celestial_alembic": "\u661f\u7a7a\u84b8\u998f\u5668",
  841. "/items/cheese_alembic": "\u5976\u916a\u84b8\u998f\u5668",
  842. "/items/verdant_alembic": "\u7fe0\u7eff\u84b8\u998f\u5668",
  843. "/items/azure_alembic": "\u851a\u84dd\u84b8\u998f\u5668",
  844. "/items/burble_alembic": "\u6df1\u7d2b\u84b8\u998f\u5668",
  845. "/items/crimson_alembic": "\u7edb\u7ea2\u84b8\u998f\u5668",
  846. "/items/rainbow_alembic": "\u5f69\u8679\u84b8\u998f\u5668",
  847. "/items/holy_alembic": "\u795e\u5723\u84b8\u998f\u5668",
  848. "/items/celestial_enhancer": "\u661f\u7a7a\u5f3a\u5316\u5668",
  849. "/items/cheese_enhancer": "\u5976\u916a\u5f3a\u5316\u5668",
  850. "/items/verdant_enhancer": "\u7fe0\u7eff\u5f3a\u5316\u5668",
  851. "/items/azure_enhancer": "\u851a\u84dd\u5f3a\u5316\u5668",
  852. "/items/burble_enhancer": "\u6df1\u7d2b\u5f3a\u5316\u5668",
  853. "/items/crimson_enhancer": "\u7edb\u7ea2\u5f3a\u5316\u5668",
  854. "/items/rainbow_enhancer": "\u5f69\u8679\u5f3a\u5316\u5668",
  855. "/items/holy_enhancer": "\u795e\u5723\u5f3a\u5316\u5668",
  856. "/items/milk": "\u725b\u5976",
  857. "/items/verdant_milk": "\u7fe0\u7eff\u725b\u5976",
  858. "/items/azure_milk": "\u851a\u84dd\u725b\u5976",
  859. "/items/burble_milk": "\u6df1\u7d2b\u725b\u5976",
  860. "/items/crimson_milk": "\u7edb\u7ea2\u725b\u5976",
  861. "/items/rainbow_milk": "\u5f69\u8679\u725b\u5976",
  862. "/items/holy_milk": "\u795e\u5723\u725b\u5976",
  863. "/items/cheese": "\u5976\u916a",
  864. "/items/verdant_cheese": "\u7fe0\u7eff\u5976\u916a",
  865. "/items/azure_cheese": "\u851a\u84dd\u5976\u916a",
  866. "/items/burble_cheese": "\u6df1\u7d2b\u5976\u916a",
  867. "/items/crimson_cheese": "\u7edb\u7ea2\u5976\u916a",
  868. "/items/rainbow_cheese": "\u5f69\u8679\u5976\u916a",
  869. "/items/holy_cheese": "\u795e\u5723\u5976\u916a",
  870. "/items/log": "\u539f\u6728",
  871. "/items/birch_log": "\u767d\u6866\u539f\u6728",
  872. "/items/cedar_log": "\u96ea\u677e\u539f\u6728",
  873. "/items/purpleheart_log": "\u7d2b\u5fc3\u539f\u6728",
  874. "/items/ginkgo_log": "\u94f6\u674f\u539f\u6728",
  875. "/items/redwood_log": "\u7ea2\u6749\u539f\u6728",
  876. "/items/arcane_log": "\u795e\u79d8\u539f\u6728",
  877. "/items/lumber": "\u6728\u677f",
  878. "/items/birch_lumber": "\u767d\u6866\u6728\u677f",
  879. "/items/cedar_lumber": "\u96ea\u677e\u6728\u677f",
  880. "/items/purpleheart_lumber": "\u7d2b\u5fc3\u6728\u677f",
  881. "/items/ginkgo_lumber": "\u94f6\u674f\u6728\u677f",
  882. "/items/redwood_lumber": "\u7ea2\u6749\u6728\u677f",
  883. "/items/arcane_lumber": "\u795e\u79d8\u6728\u677f",
  884. "/items/rough_hide": "\u7c97\u7cd9\u517d\u76ae",
  885. "/items/reptile_hide": "\u722c\u884c\u52a8\u7269\u76ae",
  886. "/items/gobo_hide": "\u54e5\u5e03\u6797\u76ae",
  887. "/items/beast_hide": "\u91ce\u517d\u76ae",
  888. "/items/umbral_hide": "\u6697\u5f71\u76ae",
  889. "/items/rough_leather": "\u7c97\u7cd9\u76ae\u9769",
  890. "/items/reptile_leather": "\u722c\u884c\u52a8\u7269\u76ae\u9769",
  891. "/items/gobo_leather": "\u54e5\u5e03\u6797\u76ae\u9769",
  892. "/items/beast_leather": "\u91ce\u517d\u76ae\u9769",
  893. "/items/umbral_leather": "\u6697\u5f71\u76ae\u9769",
  894. "/items/cotton": "\u68c9\u82b1",
  895. "/items/flax": "\u4e9a\u9ebb",
  896. "/items/bamboo_branch": "\u7af9\u5b50",
  897. "/items/cocoon": "\u8695\u8327",
  898. "/items/radiant_fiber": "\u5149\u8f89\u7ea4\u7ef4",
  899. "/items/cotton_fabric": "\u68c9\u82b1\u5e03\u6599",
  900. "/items/linen_fabric": "\u4e9a\u9ebb\u5e03\u6599",
  901. "/items/bamboo_fabric": "\u7af9\u5b50\u5e03\u6599",
  902. "/items/silk_fabric": "\u4e1d\u7ef8",
  903. "/items/radiant_fabric": "\u5149\u8f89\u5e03\u6599",
  904. "/items/egg": "\u9e21\u86cb",
  905. "/items/wheat": "\u5c0f\u9ea6",
  906. "/items/sugar": "\u7cd6",
  907. "/items/blueberry": "\u84dd\u8393",
  908. "/items/blackberry": "\u9ed1\u8393",
  909. "/items/strawberry": "\u8349\u8393",
  910. "/items/mooberry": "\u54de\u8393",
  911. "/items/marsberry": "\u706b\u661f\u8393",
  912. "/items/spaceberry": "\u592a\u7a7a\u8393",
  913. "/items/apple": "\u82f9\u679c",
  914. "/items/orange": "\u6a59\u5b50",
  915. "/items/plum": "\u674e\u5b50",
  916. "/items/peach": "\u6843\u5b50",
  917. "/items/dragon_fruit": "\u706b\u9f99\u679c",
  918. "/items/star_fruit": "\u6768\u6843",
  919. "/items/arabica_coffee_bean": "\u4f4e\u7ea7\u5496\u5561\u8c46",
  920. "/items/robusta_coffee_bean": "\u4e2d\u7ea7\u5496\u5561\u8c46",
  921. "/items/liberica_coffee_bean": "\u9ad8\u7ea7\u5496\u5561\u8c46",
  922. "/items/excelsa_coffee_bean": "\u7279\u7ea7\u5496\u5561\u8c46",
  923. "/items/fieriosa_coffee_bean": "\u706b\u5c71\u5496\u5561\u8c46",
  924. "/items/spacia_coffee_bean": "\u592a\u7a7a\u5496\u5561\u8c46",
  925. "/items/green_tea_leaf": "\u7eff\u8336\u53f6",
  926. "/items/black_tea_leaf": "\u9ed1\u8336\u53f6",
  927. "/items/burble_tea_leaf": "\u7d2b\u8336\u53f6",
  928. "/items/moolong_tea_leaf": "\u54de\u9f99\u8336\u53f6",
  929. "/items/red_tea_leaf": "\u7ea2\u8336\u53f6",
  930. "/items/emp_tea_leaf": "\u865a\u7a7a\u8336\u53f6",
  931. "/items/catalyst_of_coinification": "\u70b9\u91d1\u50ac\u5316\u5242",
  932. "/items/catalyst_of_decomposition": "\u5206\u89e3\u50ac\u5316\u5242",
  933. "/items/catalyst_of_transmutation": "\u8f6c\u5316\u50ac\u5316\u5242",
  934. "/items/prime_catalyst": "\u81f3\u9ad8\u50ac\u5316\u5242",
  935. "/items/snake_fang": "\u86c7\u7259",
  936. "/items/shoebill_feather": "\u9cb8\u5934\u9e73\u7fbd\u6bdb",
  937. "/items/snail_shell": "\u8717\u725b\u58f3",
  938. "/items/crab_pincer": "\u87f9\u94b3",
  939. "/items/turtle_shell": "\u4e4c\u9f9f\u58f3",
  940. "/items/marine_scale": "\u6d77\u6d0b\u9cde\u7247",
  941. "/items/treant_bark": "\u6811\u76ae",
  942. "/items/centaur_hoof": "\u534a\u4eba\u9a6c\u8e44",
  943. "/items/luna_wing": "\u6708\u795e\u7ffc",
  944. "/items/gobo_rag": "\u54e5\u5e03\u6797\u62b9\u5e03",
  945. "/items/goggles": "\u62a4\u76ee\u955c",
  946. "/items/magnifying_glass": "\u653e\u5927\u955c",
  947. "/items/eye_of_the_watcher": "\u89c2\u5bdf\u8005\u4e4b\u773c",
  948. "/items/icy_cloth": "\u51b0\u971c\u7ec7\u7269",
  949. "/items/flaming_cloth": "\u70c8\u7130\u7ec7\u7269",
  950. "/items/sorcerers_sole": "\u9b54\u6cd5\u5e08\u978b\u5e95",
  951. "/items/chrono_sphere": "\u65f6\u7a7a\u7403",
  952. "/items/frost_sphere": "\u51b0\u971c\u7403",
  953. "/items/panda_fluff": "\u718a\u732b\u7ed2",
  954. "/items/black_bear_fluff": "\u9ed1\u718a\u7ed2",
  955. "/items/grizzly_bear_fluff": "\u68d5\u718a\u7ed2",
  956. "/items/polar_bear_fluff": "\u5317\u6781\u718a\u7ed2",
  957. "/items/red_panda_fluff": "\u5c0f\u718a\u732b\u7ed2",
  958. "/items/magnet": "\u78c1\u94c1",
  959. "/items/stalactite_shard": "\u949f\u4e73\u77f3\u788e\u7247",
  960. "/items/living_granite": "\u82b1\u5c97\u5ca9",
  961. "/items/colossus_core": "\u5de8\u50cf\u6838\u5fc3",
  962. "/items/vampire_fang": "\u5438\u8840\u9b3c\u4e4b\u7259",
  963. "/items/werewolf_claw": "\u72fc\u4eba\u4e4b\u722a",
  964. "/items/revenant_anima": "\u4ea1\u8005\u4e4b\u9b42",
  965. "/items/soul_fragment": "\u7075\u9b42\u788e\u7247",
  966. "/items/infernal_ember": "\u5730\u72f1\u4f59\u70ec",
  967. "/items/demonic_core": "\u6076\u9b54\u6838\u5fc3",
  968. "/items/griffin_leather": "\u72ee\u9e6b\u4e4b\u76ae",
  969. "/items/manticore_sting": "\u874e\u72ee\u4e4b\u523a",
  970. "/items/jackalope_antler": "\u9e7f\u89d2\u5154\u4e4b\u89d2",
  971. "/items/dodocamel_plume": "\u6e21\u6e21\u9a7c\u4e4b\u7fce",
  972. "/items/griffin_talon": "\u72ee\u9e6b\u4e4b\u722a",
  973. "/items/acrobats_ribbon": "\u6742\u6280\u5e08\u5f69\u5e26",
  974. "/items/magicians_cloth": "\u9b54\u672f\u5e08\u7ec7\u7269",
  975. "/items/chaotic_chain": "\u6df7\u6c8c\u9501\u94fe",
  976. "/items/cursed_ball": "\u8bc5\u5492\u4e4b\u7403",
  977. "/items/royal_cloth": "\u7687\u5bb6\u7ec7\u7269",
  978. "/items/knights_ingot": "\u9a91\u58eb\u4e4b\u952d",
  979. "/items/bishops_scroll": "\u4e3b\u6559\u5377\u8f74",
  980. "/items/regal_jewel": "\u541b\u738b\u5b9d\u77f3",
  981. "/items/sundering_jewel": "\u88c2\u7a7a\u5b9d\u77f3",
  982. "/items/marksman_brooch": "\u795e\u5c04\u80f8\u9488",
  983. "/items/corsair_crest": "\u63a0\u593a\u8005\u5fbd\u7ae0",
  984. "/items/damaged_anchor": "\u7834\u635f\u8239\u951a",
  985. "/items/maelstrom_plating": "\u6012\u6d9b\u7532\u7247",
  986. "/items/kraken_leather": "\u514b\u62c9\u80af\u76ae\u9769",
  987. "/items/kraken_fang": "\u514b\u62c9\u80af\u4e4b\u7259",
  988. "/items/butter_of_proficiency": "\u7cbe\u901a\u4e4b\u6cb9",
  989. "/items/thread_of_expertise": "\u4e13\u7cbe\u4e4b\u7ebf",
  990. "/items/branch_of_insight": "\u6d1e\u5bdf\u4e4b\u679d",
  991. "/items/gluttonous_energy": "\u8d2a\u98df\u80fd\u91cf",
  992. "/items/guzzling_energy": "\u66b4\u996e\u80fd\u91cf",
  993. "/items/milking_essence": "\u6324\u5976\u7cbe\u534e",
  994. "/items/foraging_essence": "\u91c7\u6458\u7cbe\u534e",
  995. "/items/woodcutting_essence": "\u4f10\u6728\u7cbe\u534e",
  996. "/items/cheesesmithing_essence": "\u5976\u916a\u953b\u9020\u7cbe\u534e",
  997. "/items/crafting_essence": "\u5236\u4f5c\u7cbe\u534e",
  998. "/items/tailoring_essence": "\u7f1d\u7eab\u7cbe\u534e",
  999. "/items/cooking_essence": "\u70f9\u996a\u7cbe\u534e",
  1000. "/items/brewing_essence": "\u51b2\u6ce1\u7cbe\u534e",
  1001. "/items/alchemy_essence": "\u70bc\u91d1\u7cbe\u534e",
  1002. "/items/enhancing_essence": "\u5f3a\u5316\u7cbe\u534e",
  1003. "/items/swamp_essence": "\u6cbc\u6cfd\u7cbe\u534e",
  1004. "/items/aqua_essence": "\u6d77\u6d0b\u7cbe\u534e",
  1005. "/items/jungle_essence": "\u4e1b\u6797\u7cbe\u534e",
  1006. "/items/gobo_essence": "\u54e5\u5e03\u6797\u7cbe\u534e",
  1007. "/items/eyessence": "\u773c\u7cbe\u534e",
  1008. "/items/sorcerer_essence": "\u6cd5\u5e08\u7cbe\u534e",
  1009. "/items/bear_essence": "\u718a\u718a\u7cbe\u534e",
  1010. "/items/golem_essence": "\u9b54\u50cf\u7cbe\u534e",
  1011. "/items/twilight_essence": "\u66ae\u5149\u7cbe\u534e",
  1012. "/items/abyssal_essence": "\u5730\u72f1\u7cbe\u534e",
  1013. "/items/chimerical_essence": "\u5947\u5e7b\u7cbe\u534e",
  1014. "/items/sinister_essence": "\u9634\u68ee\u7cbe\u534e",
  1015. "/items/enchanted_essence": "\u79d8\u6cd5\u7cbe\u534e",
  1016. "/items/pirate_essence": "\u6d77\u76d7\u7cbe\u534e",
  1017. "/items/task_crystal": "\u4efb\u52a1\u6c34\u6676",
  1018. "/items/star_fragment": "\u661f\u5149\u788e\u7247",
  1019. "/items/pearl": "\u73cd\u73e0",
  1020. "/items/amber": "\u7425\u73c0",
  1021. "/items/garnet": "\u77f3\u69b4\u77f3",
  1022. "/items/jade": "\u7fe1\u7fe0",
  1023. "/items/amethyst": "\u7d2b\u6c34\u6676",
  1024. "/items/moonstone": "\u6708\u4eae\u77f3",
  1025. "/items/sunstone": "\u592a\u9633\u77f3",
  1026. "/items/philosophers_stone": "\u8d24\u8005\u4e4b\u77f3",
  1027. "/items/crushed_pearl": "\u73cd\u73e0\u788e\u7247",
  1028. "/items/crushed_amber": "\u7425\u73c0\u788e\u7247",
  1029. "/items/crushed_garnet": "\u77f3\u69b4\u77f3\u788e\u7247",
  1030. "/items/crushed_jade": "\u7fe1\u7fe0\u788e\u7247",
  1031. "/items/crushed_amethyst": "\u7d2b\u6c34\u6676\u788e\u7247",
  1032. "/items/crushed_moonstone": "\u6708\u4eae\u77f3\u788e\u7247",
  1033. "/items/crushed_sunstone": "\u592a\u9633\u77f3\u788e\u7247",
  1034. "/items/crushed_philosophers_stone": "\u8d24\u8005\u4e4b\u77f3\u788e\u7247",
  1035. "/items/shard_of_protection": "\u4fdd\u62a4\u788e\u7247",
  1036. "/items/mirror_of_protection": "\u4fdd\u62a4\u4e4b\u955c",
  1037. };
  1038.  
  1039. const ZHActionNames = {
  1040. "/actions/milking/cow": "\u5976\u725b",
  1041. "/actions/milking/verdant_cow": "\u7fe0\u7eff\u5976\u725b",
  1042. "/actions/milking/azure_cow": "\u851a\u84dd\u5976\u725b",
  1043. "/actions/milking/burble_cow": "\u6df1\u7d2b\u5976\u725b",
  1044. "/actions/milking/crimson_cow": "\u7edb\u7ea2\u5976\u725b",
  1045. "/actions/milking/unicow": "\u5f69\u8679\u5976\u725b",
  1046. "/actions/milking/holy_cow": "\u795e\u5723\u5976\u725b",
  1047. "/actions/foraging/egg": "\u9e21\u86cb",
  1048. "/actions/foraging/wheat": "\u5c0f\u9ea6",
  1049. "/actions/foraging/sugar": "\u7cd6",
  1050. "/actions/foraging/cotton": "\u68c9\u82b1",
  1051. "/actions/foraging/farmland": "\u7fe0\u91ce\u519c\u573a",
  1052. "/actions/foraging/blueberry": "\u84dd\u8393",
  1053. "/actions/foraging/apple": "\u82f9\u679c",
  1054. "/actions/foraging/arabica_coffee_bean": "\u4f4e\u7ea7\u5496\u5561\u8c46",
  1055. "/actions/foraging/flax": "\u4e9a\u9ebb",
  1056. "/actions/foraging/shimmering_lake": "\u6ce2\u5149\u6e56\u6cca",
  1057. "/actions/foraging/blackberry": "\u9ed1\u8393",
  1058. "/actions/foraging/orange": "\u6a59\u5b50",
  1059. "/actions/foraging/robusta_coffee_bean": "\u4e2d\u7ea7\u5496\u5561\u8c46",
  1060. "/actions/foraging/misty_forest": "\u8ff7\u96fe\u68ee\u6797",
  1061. "/actions/foraging/strawberry": "\u8349\u8393",
  1062. "/actions/foraging/plum": "\u674e\u5b50",
  1063. "/actions/foraging/liberica_coffee_bean": "\u9ad8\u7ea7\u5496\u5561\u8c46",
  1064. "/actions/foraging/bamboo_branch": "\u7af9\u5b50",
  1065. "/actions/foraging/burble_beach": "\u6df1\u7d2b\u6c99\u6ee9",
  1066. "/actions/foraging/mooberry": "\u54de\u8393",
  1067. "/actions/foraging/peach": "\u6843\u5b50",
  1068. "/actions/foraging/excelsa_coffee_bean": "\u7279\u7ea7\u5496\u5561\u8c46",
  1069. "/actions/foraging/cocoon": "\u8695\u8327",
  1070. "/actions/foraging/silly_cow_valley": "\u50bb\u725b\u5c71\u8c37",
  1071. "/actions/foraging/marsberry": "\u706b\u661f\u8393",
  1072. "/actions/foraging/dragon_fruit": "\u706b\u9f99\u679c",
  1073. "/actions/foraging/fieriosa_coffee_bean": "\u706b\u5c71\u5496\u5561\u8c46",
  1074. "/actions/foraging/olympus_mons": "\u5965\u6797\u5339\u65af\u5c71",
  1075. "/actions/foraging/spaceberry": "\u592a\u7a7a\u8393",
  1076. "/actions/foraging/star_fruit": "\u6768\u6843",
  1077. "/actions/foraging/spacia_coffee_bean": "\u592a\u7a7a\u5496\u5561\u8c46",
  1078. "/actions/foraging/radiant_fiber": "\u5149\u8f89\u7ea4\u7ef4",
  1079. "/actions/foraging/asteroid_belt": "\u5c0f\u884c\u661f\u5e26",
  1080. "/actions/woodcutting/tree": "\u6811",
  1081. "/actions/woodcutting/birch_tree": "\u6866\u6811",
  1082. "/actions/woodcutting/cedar_tree": "\u96ea\u677e\u6811",
  1083. "/actions/woodcutting/purpleheart_tree": "\u7d2b\u5fc3\u6811",
  1084. "/actions/woodcutting/ginkgo_tree": "\u94f6\u674f\u6811",
  1085. "/actions/woodcutting/redwood_tree": "\u7ea2\u6749\u6811",
  1086. "/actions/woodcutting/arcane_tree": "\u5965\u79d8\u6811",
  1087. "/actions/cheesesmithing/cheese": "\u5976\u916a",
  1088. "/actions/cheesesmithing/cheese_boots": "\u5976\u916a\u9774",
  1089. "/actions/cheesesmithing/cheese_gauntlets": "\u5976\u916a\u62a4\u624b",
  1090. "/actions/cheesesmithing/cheese_sword": "\u5976\u916a\u5251",
  1091. "/actions/cheesesmithing/cheese_brush": "\u5976\u916a\u5237\u5b50",
  1092. "/actions/cheesesmithing/cheese_shears": "\u5976\u916a\u526a\u5200",
  1093. "/actions/cheesesmithing/cheese_hatchet": "\u5976\u916a\u65a7\u5934",
  1094. "/actions/cheesesmithing/cheese_spear": "\u5976\u916a\u957f\u67aa",
  1095. "/actions/cheesesmithing/cheese_hammer": "\u5976\u916a\u9524\u5b50",
  1096. "/actions/cheesesmithing/cheese_chisel": "\u5976\u916a\u51ff\u5b50",
  1097. "/actions/cheesesmithing/cheese_needle": "\u5976\u916a\u9488",
  1098. "/actions/cheesesmithing/cheese_spatula": "\u5976\u916a\u9505\u94f2",
  1099. "/actions/cheesesmithing/cheese_pot": "\u5976\u916a\u58f6",
  1100. "/actions/cheesesmithing/cheese_mace": "\u5976\u916a\u9489\u5934\u9524",
  1101. "/actions/cheesesmithing/cheese_alembic": "\u5976\u916a\u84b8\u998f\u5668",
  1102. "/actions/cheesesmithing/cheese_enhancer": "\u5976\u916a\u5f3a\u5316\u5668",
  1103. "/actions/cheesesmithing/cheese_helmet": "\u5976\u916a\u5934\u76d4",
  1104. "/actions/cheesesmithing/cheese_buckler": "\u5976\u916a\u5706\u76fe",
  1105. "/actions/cheesesmithing/cheese_bulwark": "\u5976\u916a\u91cd\u76fe",
  1106. "/actions/cheesesmithing/cheese_plate_legs": "\u5976\u916a\u817f\u7532",
  1107. "/actions/cheesesmithing/cheese_plate_body": "\u5976\u916a\u80f8\u7532",
  1108. "/actions/cheesesmithing/verdant_cheese": "\u7fe0\u7eff\u5976\u916a",
  1109. "/actions/cheesesmithing/verdant_boots": "\u7fe0\u7eff\u9774",
  1110. "/actions/cheesesmithing/verdant_gauntlets": "\u7fe0\u7eff\u62a4\u624b",
  1111. "/actions/cheesesmithing/verdant_sword": "\u7fe0\u7eff\u5251",
  1112. "/actions/cheesesmithing/verdant_brush": "\u7fe0\u7eff\u5237\u5b50",
  1113. "/actions/cheesesmithing/verdant_shears": "\u7fe0\u7eff\u526a\u5200",
  1114. "/actions/cheesesmithing/verdant_hatchet": "\u7fe0\u7eff\u65a7\u5934",
  1115. "/actions/cheesesmithing/verdant_spear": "\u7fe0\u7eff\u957f\u67aa",
  1116. "/actions/cheesesmithing/verdant_hammer": "\u7fe0\u7eff\u9524\u5b50",
  1117. "/actions/cheesesmithing/verdant_chisel": "\u7fe0\u7eff\u51ff\u5b50",
  1118. "/actions/cheesesmithing/verdant_needle": "\u7fe0\u7eff\u9488",
  1119. "/actions/cheesesmithing/verdant_spatula": "\u7fe0\u7eff\u9505\u94f2",
  1120. "/actions/cheesesmithing/verdant_pot": "\u7fe0\u7eff\u58f6",
  1121. "/actions/cheesesmithing/verdant_mace": "\u7fe0\u7eff\u9489\u5934\u9524",
  1122. "/actions/cheesesmithing/snake_fang_dirk": "\u86c7\u7259\u77ed\u5251",
  1123. "/actions/cheesesmithing/verdant_alembic": "\u7fe0\u7eff\u84b8\u998f\u5668",
  1124. "/actions/cheesesmithing/verdant_enhancer": "\u7fe0\u7eff\u5f3a\u5316\u5668",
  1125. "/actions/cheesesmithing/verdant_helmet": "\u7fe0\u7eff\u5934\u76d4",
  1126. "/actions/cheesesmithing/verdant_buckler": "\u7fe0\u7eff\u5706\u76fe",
  1127. "/actions/cheesesmithing/verdant_bulwark": "\u7fe0\u7eff\u91cd\u76fe",
  1128. "/actions/cheesesmithing/verdant_plate_legs": "\u7fe0\u7eff\u817f\u7532",
  1129. "/actions/cheesesmithing/verdant_plate_body": "\u7fe0\u7eff\u80f8\u7532",
  1130. "/actions/cheesesmithing/azure_cheese": "\u851a\u84dd\u5976\u916a",
  1131. "/actions/cheesesmithing/azure_boots": "\u851a\u84dd\u9774",
  1132. "/actions/cheesesmithing/azure_gauntlets": "\u851a\u84dd\u62a4\u624b",
  1133. "/actions/cheesesmithing/azure_sword": "\u851a\u84dd\u5251",
  1134. "/actions/cheesesmithing/azure_brush": "\u851a\u84dd\u5237\u5b50",
  1135. "/actions/cheesesmithing/azure_shears": "\u851a\u84dd\u526a\u5200",
  1136. "/actions/cheesesmithing/azure_hatchet": "\u851a\u84dd\u65a7\u5934",
  1137. "/actions/cheesesmithing/azure_spear": "\u851a\u84dd\u957f\u67aa",
  1138. "/actions/cheesesmithing/azure_hammer": "\u851a\u84dd\u9524\u5b50",
  1139. "/actions/cheesesmithing/azure_chisel": "\u851a\u84dd\u51ff\u5b50",
  1140. "/actions/cheesesmithing/azure_needle": "\u851a\u84dd\u9488",
  1141. "/actions/cheesesmithing/azure_spatula": "\u851a\u84dd\u9505\u94f2",
  1142. "/actions/cheesesmithing/azure_pot": "\u851a\u84dd\u58f6",
  1143. "/actions/cheesesmithing/azure_mace": "\u851a\u84dd\u9489\u5934\u9524",
  1144. "/actions/cheesesmithing/pincer_gloves": "\u87f9\u94b3\u624b\u5957",
  1145. "/actions/cheesesmithing/azure_alembic": "\u851a\u84dd\u84b8\u998f\u5668",
  1146. "/actions/cheesesmithing/azure_enhancer": "\u851a\u84dd\u5f3a\u5316\u5668",
  1147. "/actions/cheesesmithing/azure_helmet": "\u851a\u84dd\u5934\u76d4",
  1148. "/actions/cheesesmithing/azure_buckler": "\u851a\u84dd\u5706\u76fe",
  1149. "/actions/cheesesmithing/azure_bulwark": "\u851a\u84dd\u91cd\u76fe",
  1150. "/actions/cheesesmithing/azure_plate_legs": "\u851a\u84dd\u817f\u7532",
  1151. "/actions/cheesesmithing/snail_shell_helmet": "\u8717\u725b\u58f3\u5934\u76d4",
  1152. "/actions/cheesesmithing/azure_plate_body": "\u851a\u84dd\u80f8\u7532",
  1153. "/actions/cheesesmithing/turtle_shell_legs": "\u9f9f\u58f3\u817f\u7532",
  1154. "/actions/cheesesmithing/turtle_shell_body": "\u9f9f\u58f3\u80f8\u7532",
  1155. "/actions/cheesesmithing/burble_cheese": "\u6df1\u7d2b\u5976\u916a",
  1156. "/actions/cheesesmithing/burble_boots": "\u6df1\u7d2b\u9774",
  1157. "/actions/cheesesmithing/burble_gauntlets": "\u6df1\u7d2b\u62a4\u624b",
  1158. "/actions/cheesesmithing/burble_sword": "\u6df1\u7d2b\u5251",
  1159. "/actions/cheesesmithing/burble_brush": "\u6df1\u7d2b\u5237\u5b50",
  1160. "/actions/cheesesmithing/burble_shears": "\u6df1\u7d2b\u526a\u5200",
  1161. "/actions/cheesesmithing/burble_hatchet": "\u6df1\u7d2b\u65a7\u5934",
  1162. "/actions/cheesesmithing/burble_spear": "\u6df1\u7d2b\u957f\u67aa",
  1163. "/actions/cheesesmithing/burble_hammer": "\u6df1\u7d2b\u9524\u5b50",
  1164. "/actions/cheesesmithing/burble_chisel": "\u6df1\u7d2b\u51ff\u5b50",
  1165. "/actions/cheesesmithing/burble_needle": "\u6df1\u7d2b\u9488",
  1166. "/actions/cheesesmithing/burble_spatula": "\u6df1\u7d2b\u9505\u94f2",
  1167. "/actions/cheesesmithing/burble_pot": "\u6df1\u7d2b\u58f6",
  1168. "/actions/cheesesmithing/burble_mace": "\u6df1\u7d2b\u9489\u5934\u9524",
  1169. "/actions/cheesesmithing/burble_alembic": "\u6df1\u7d2b\u84b8\u998f\u5668",
  1170. "/actions/cheesesmithing/burble_enhancer": "\u6df1\u7d2b\u5f3a\u5316\u5668",
  1171. "/actions/cheesesmithing/burble_helmet": "\u6df1\u7d2b\u5934\u76d4",
  1172. "/actions/cheesesmithing/burble_buckler": "\u6df1\u7d2b\u5706\u76fe",
  1173. "/actions/cheesesmithing/burble_bulwark": "\u6df1\u7d2b\u91cd\u76fe",
  1174. "/actions/cheesesmithing/burble_plate_legs": "\u6df1\u7d2b\u817f\u7532",
  1175. "/actions/cheesesmithing/burble_plate_body": "\u6df1\u7d2b\u80f8\u7532",
  1176. "/actions/cheesesmithing/crimson_cheese": "\u7edb\u7ea2\u5976\u916a",
  1177. "/actions/cheesesmithing/crimson_boots": "\u7edb\u7ea2\u9774",
  1178. "/actions/cheesesmithing/crimson_gauntlets": "\u7edb\u7ea2\u62a4\u624b",
  1179. "/actions/cheesesmithing/crimson_sword": "\u7edb\u7ea2\u5251",
  1180. "/actions/cheesesmithing/crimson_brush": "\u7edb\u7ea2\u5237\u5b50",
  1181. "/actions/cheesesmithing/crimson_shears": "\u7edb\u7ea2\u526a\u5200",
  1182. "/actions/cheesesmithing/crimson_hatchet": "\u7edb\u7ea2\u65a7\u5934",
  1183. "/actions/cheesesmithing/crimson_spear": "\u7edb\u7ea2\u957f\u67aa",
  1184. "/actions/cheesesmithing/crimson_hammer": "\u7edb\u7ea2\u9524\u5b50",
  1185. "/actions/cheesesmithing/crimson_chisel": "\u7edb\u7ea2\u51ff\u5b50",
  1186. "/actions/cheesesmithing/crimson_needle": "\u7edb\u7ea2\u9488",
  1187. "/actions/cheesesmithing/crimson_spatula": "\u7edb\u7ea2\u9505\u94f2",
  1188. "/actions/cheesesmithing/crimson_pot": "\u7edb\u7ea2\u58f6",
  1189. "/actions/cheesesmithing/crimson_mace": "\u7edb\u7ea2\u9489\u5934\u9524",
  1190. "/actions/cheesesmithing/crimson_alembic": "\u7edb\u7ea2\u84b8\u998f\u5668",
  1191. "/actions/cheesesmithing/crimson_enhancer": "\u7edb\u7ea2\u5f3a\u5316\u5668",
  1192. "/actions/cheesesmithing/crimson_helmet": "\u7edb\u7ea2\u5934\u76d4",
  1193. "/actions/cheesesmithing/crimson_buckler": "\u7edb\u7ea2\u5706\u76fe",
  1194. "/actions/cheesesmithing/crimson_bulwark": "\u7edb\u7ea2\u91cd\u76fe",
  1195. "/actions/cheesesmithing/crimson_plate_legs": "\u7edb\u7ea2\u817f\u7532",
  1196. "/actions/cheesesmithing/vision_helmet": "\u89c6\u89c9\u5934\u76d4",
  1197. "/actions/cheesesmithing/vision_shield": "\u89c6\u89c9\u76fe",
  1198. "/actions/cheesesmithing/crimson_plate_body": "\u7edb\u7ea2\u80f8\u7532",
  1199. "/actions/cheesesmithing/rainbow_cheese": "\u5f69\u8679\u5976\u916a",
  1200. "/actions/cheesesmithing/rainbow_boots": "\u5f69\u8679\u9774",
  1201. "/actions/cheesesmithing/black_bear_shoes": "\u9ed1\u718a\u978b",
  1202. "/actions/cheesesmithing/grizzly_bear_shoes": "\u68d5\u718a\u978b",
  1203. "/actions/cheesesmithing/polar_bear_shoes": "\u5317\u6781\u718a\u978b",
  1204. "/actions/cheesesmithing/rainbow_gauntlets": "\u5f69\u8679\u62a4\u624b",
  1205. "/actions/cheesesmithing/rainbow_sword": "\u5f69\u8679\u5251",
  1206. "/actions/cheesesmithing/panda_gloves": "\u718a\u732b\u624b\u5957",
  1207. "/actions/cheesesmithing/rainbow_brush": "\u5f69\u8679\u5237\u5b50",
  1208. "/actions/cheesesmithing/rainbow_shears": "\u5f69\u8679\u526a\u5200",
  1209. "/actions/cheesesmithing/rainbow_hatchet": "\u5f69\u8679\u65a7\u5934",
  1210. "/actions/cheesesmithing/rainbow_spear": "\u5f69\u8679\u957f\u67aa",
  1211. "/actions/cheesesmithing/rainbow_hammer": "\u5f69\u8679\u9524\u5b50",
  1212. "/actions/cheesesmithing/rainbow_chisel": "\u5f69\u8679\u51ff\u5b50",
  1213. "/actions/cheesesmithing/rainbow_needle": "\u5f69\u8679\u9488",
  1214. "/actions/cheesesmithing/rainbow_spatula": "\u5f69\u8679\u9505\u94f2",
  1215. "/actions/cheesesmithing/rainbow_pot": "\u5f69\u8679\u58f6",
  1216. "/actions/cheesesmithing/rainbow_mace": "\u5f69\u8679\u9489\u5934\u9524",
  1217. "/actions/cheesesmithing/rainbow_alembic": "\u5f69\u8679\u84b8\u998f\u5668",
  1218. "/actions/cheesesmithing/rainbow_enhancer": "\u5f69\u8679\u5f3a\u5316\u5668",
  1219. "/actions/cheesesmithing/rainbow_helmet": "\u5f69\u8679\u5934\u76d4",
  1220. "/actions/cheesesmithing/rainbow_buckler": "\u5f69\u8679\u5706\u76fe",
  1221. "/actions/cheesesmithing/rainbow_bulwark": "\u5f69\u8679\u91cd\u76fe",
  1222. "/actions/cheesesmithing/rainbow_plate_legs": "\u5f69\u8679\u817f\u7532",
  1223. "/actions/cheesesmithing/rainbow_plate_body": "\u5f69\u8679\u80f8\u7532",
  1224. "/actions/cheesesmithing/holy_cheese": "\u795e\u5723\u5976\u916a",
  1225. "/actions/cheesesmithing/holy_boots": "\u795e\u5723\u9774",
  1226. "/actions/cheesesmithing/holy_gauntlets": "\u795e\u5723\u62a4\u624b",
  1227. "/actions/cheesesmithing/holy_sword": "\u795e\u5723\u5251",
  1228. "/actions/cheesesmithing/holy_brush": "\u795e\u5723\u5237\u5b50",
  1229. "/actions/cheesesmithing/holy_shears": "\u795e\u5723\u526a\u5200",
  1230. "/actions/cheesesmithing/holy_hatchet": "\u795e\u5723\u65a7\u5934",
  1231. "/actions/cheesesmithing/holy_spear": "\u795e\u5723\u957f\u67aa",
  1232. "/actions/cheesesmithing/holy_hammer": "\u795e\u5723\u9524\u5b50",
  1233. "/actions/cheesesmithing/holy_chisel": "\u795e\u5723\u51ff\u5b50",
  1234. "/actions/cheesesmithing/holy_needle": "\u795e\u5723\u9488",
  1235. "/actions/cheesesmithing/holy_spatula": "\u795e\u5723\u9505\u94f2",
  1236. "/actions/cheesesmithing/holy_pot": "\u795e\u5723\u58f6",
  1237. "/actions/cheesesmithing/holy_mace": "\u795e\u5723\u9489\u5934\u9524",
  1238. "/actions/cheesesmithing/magnetic_gloves": "\u78c1\u529b\u624b\u5957",
  1239. "/actions/cheesesmithing/stalactite_spear": "\u77f3\u949f\u957f\u67aa",
  1240. "/actions/cheesesmithing/granite_bludgeon": "\u82b1\u5c97\u5ca9\u5927\u68d2",
  1241. "/actions/cheesesmithing/vampire_fang_dirk": "\u5438\u8840\u9b3c\u77ed\u5251",
  1242. "/actions/cheesesmithing/werewolf_slasher": "\u72fc\u4eba\u5173\u5200",
  1243. "/actions/cheesesmithing/holy_alembic": "\u795e\u5723\u84b8\u998f\u5668",
  1244. "/actions/cheesesmithing/holy_enhancer": "\u795e\u5723\u5f3a\u5316\u5668",
  1245. "/actions/cheesesmithing/holy_helmet": "\u795e\u5723\u5934\u76d4",
  1246. "/actions/cheesesmithing/holy_buckler": "\u795e\u5723\u5706\u76fe",
  1247. "/actions/cheesesmithing/holy_bulwark": "\u795e\u5723\u91cd\u76fe",
  1248. "/actions/cheesesmithing/holy_plate_legs": "\u795e\u5723\u817f\u7532",
  1249. "/actions/cheesesmithing/holy_plate_body": "\u795e\u5723\u80f8\u7532",
  1250. "/actions/cheesesmithing/celestial_brush": "\u661f\u7a7a\u5237\u5b50",
  1251. "/actions/cheesesmithing/celestial_shears": "\u661f\u7a7a\u526a\u5200",
  1252. "/actions/cheesesmithing/celestial_hatchet": "\u661f\u7a7a\u65a7\u5934",
  1253. "/actions/cheesesmithing/celestial_hammer": "\u661f\u7a7a\u9524\u5b50",
  1254. "/actions/cheesesmithing/celestial_chisel": "\u661f\u7a7a\u51ff\u5b50",
  1255. "/actions/cheesesmithing/celestial_needle": "\u661f\u7a7a\u9488",
  1256. "/actions/cheesesmithing/celestial_spatula": "\u661f\u7a7a\u9505\u94f2",
  1257. "/actions/cheesesmithing/celestial_pot": "\u661f\u7a7a\u58f6",
  1258. "/actions/cheesesmithing/celestial_alembic": "\u661f\u7a7a\u84b8\u998f\u5668",
  1259. "/actions/cheesesmithing/celestial_enhancer": "\u661f\u7a7a\u5f3a\u5316\u5668",
  1260. "/actions/cheesesmithing/colossus_plate_body": "\u5de8\u50cf\u80f8\u7532",
  1261. "/actions/cheesesmithing/colossus_plate_legs": "\u5de8\u50cf\u817f\u7532",
  1262. "/actions/cheesesmithing/demonic_plate_body": "\u6076\u9b54\u80f8\u7532",
  1263. "/actions/cheesesmithing/demonic_plate_legs": "\u6076\u9b54\u817f\u7532",
  1264. "/actions/cheesesmithing/spiked_bulwark": "\u5c16\u523a\u91cd\u76fe",
  1265. "/actions/cheesesmithing/dodocamel_gauntlets": "\u6e21\u6e21\u9a7c\u62a4\u624b",
  1266. "/actions/cheesesmithing/corsair_helmet": "\u63a0\u593a\u8005\u5934\u76d4",
  1267. "/actions/cheesesmithing/knights_aegis": "\u9a91\u58eb\u76fe",
  1268. "/actions/cheesesmithing/anchorbound_plate_legs": "\u951a\u5b9a\u817f\u7532",
  1269. "/actions/cheesesmithing/maelstrom_plate_legs": "\u6012\u6d9b\u817f\u7532",
  1270. "/actions/cheesesmithing/griffin_bulwark": "\u72ee\u9e6b\u91cd\u76fe",
  1271. "/actions/cheesesmithing/furious_spear": "\u72c2\u6012\u957f\u67aa",
  1272. "/actions/cheesesmithing/chaotic_flail": "\u6df7\u6c8c\u8fde\u67b7",
  1273. "/actions/cheesesmithing/regal_sword": "\u541b\u738b\u4e4b\u5251",
  1274. "/actions/cheesesmithing/anchorbound_plate_body": "\u951a\u5b9a\u80f8\u7532",
  1275. "/actions/cheesesmithing/maelstrom_plate_body": "\u6012\u6d9b\u80f8\u7532",
  1276. "/actions/crafting/lumber": "\u6728\u677f",
  1277. "/actions/crafting/wooden_crossbow": "\u6728\u5f29",
  1278. "/actions/crafting/wooden_water_staff": "\u6728\u5236\u6c34\u6cd5\u6756",
  1279. "/actions/crafting/basic_task_badge": "\u57fa\u7840\u4efb\u52a1\u5fbd\u7ae0",
  1280. "/actions/crafting/advanced_task_badge": "\u9ad8\u7ea7\u4efb\u52a1\u5fbd\u7ae0",
  1281. "/actions/crafting/expert_task_badge": "\u4e13\u5bb6\u4efb\u52a1\u5fbd\u7ae0",
  1282. "/actions/crafting/wooden_shield": "\u6728\u76fe",
  1283. "/actions/crafting/wooden_nature_staff": "\u6728\u5236\u81ea\u7136\u6cd5\u6756",
  1284. "/actions/crafting/wooden_bow": "\u6728\u5f13",
  1285. "/actions/crafting/wooden_fire_staff": "\u6728\u5236\u706b\u6cd5\u6756",
  1286. "/actions/crafting/birch_lumber": "\u767d\u6866\u6728\u677f",
  1287. "/actions/crafting/birch_crossbow": "\u6866\u6728\u5f29",
  1288. "/actions/crafting/birch_water_staff": "\u6866\u6728\u6c34\u6cd5\u6756",
  1289. "/actions/crafting/crushed_pearl": "\u73cd\u73e0\u788e\u7247",
  1290. "/actions/crafting/birch_shield": "\u6866\u6728\u76fe",
  1291. "/actions/crafting/birch_nature_staff": "\u6866\u6728\u81ea\u7136\u6cd5\u6756",
  1292. "/actions/crafting/birch_bow": "\u6866\u6728\u5f13",
  1293. "/actions/crafting/ring_of_gathering": "\u91c7\u96c6\u6212\u6307",
  1294. "/actions/crafting/birch_fire_staff": "\u6866\u6728\u706b\u6cd5\u6756",
  1295. "/actions/crafting/earrings_of_gathering": "\u91c7\u96c6\u8033\u73af",
  1296. "/actions/crafting/cedar_lumber": "\u96ea\u677e\u6728\u677f",
  1297. "/actions/crafting/cedar_crossbow": "\u96ea\u677e\u5f29",
  1298. "/actions/crafting/cedar_water_staff": "\u96ea\u677e\u6c34\u6cd5\u6756",
  1299. "/actions/crafting/cedar_shield": "\u96ea\u677e\u76fe",
  1300. "/actions/crafting/cedar_nature_staff": "\u96ea\u677e\u81ea\u7136\u6cd5\u6756",
  1301. "/actions/crafting/cedar_bow": "\u96ea\u677e\u5f13",
  1302. "/actions/crafting/crushed_amber": "\u7425\u73c0\u788e\u7247",
  1303. "/actions/crafting/cedar_fire_staff": "\u96ea\u677e\u706b\u6cd5\u6756",
  1304. "/actions/crafting/ring_of_essence_find": "\u7cbe\u534e\u53d1\u73b0\u6212\u6307",
  1305. "/actions/crafting/earrings_of_essence_find": "\u7cbe\u534e\u53d1\u73b0\u8033\u73af",
  1306. "/actions/crafting/necklace_of_efficiency": "\u6548\u7387\u9879\u94fe",
  1307. "/actions/crafting/purpleheart_lumber": "\u7d2b\u5fc3\u6728\u677f",
  1308. "/actions/crafting/purpleheart_crossbow": "\u7d2b\u5fc3\u5f29",
  1309. "/actions/crafting/purpleheart_water_staff": "\u7d2b\u5fc3\u6c34\u6cd5\u6756",
  1310. "/actions/crafting/purpleheart_shield": "\u7d2b\u5fc3\u76fe",
  1311. "/actions/crafting/purpleheart_nature_staff": "\u7d2b\u5fc3\u81ea\u7136\u6cd5\u6756",
  1312. "/actions/crafting/purpleheart_bow": "\u7d2b\u5fc3\u5f13",
  1313. "/actions/crafting/crushed_garnet": "\u77f3\u69b4\u77f3\u788e\u7247",
  1314. "/actions/crafting/crushed_jade": "\u7fe1\u7fe0\u788e\u7247",
  1315. "/actions/crafting/crushed_amethyst": "\u7d2b\u6c34\u6676\u788e\u7247",
  1316. "/actions/crafting/catalyst_of_coinification": "\u70b9\u91d1\u50ac\u5316\u5242",
  1317. "/actions/crafting/treant_shield": "\u6811\u4eba\u76fe",
  1318. "/actions/crafting/purpleheart_fire_staff": "\u7d2b\u5fc3\u706b\u6cd5\u6756",
  1319. "/actions/crafting/ring_of_regeneration": "\u6062\u590d\u6212\u6307",
  1320. "/actions/crafting/earrings_of_regeneration": "\u6062\u590d\u8033\u73af",
  1321. "/actions/crafting/fighter_necklace": "\u6218\u58eb\u9879\u94fe",
  1322. "/actions/crafting/ginkgo_lumber": "\u94f6\u674f\u6728\u677f",
  1323. "/actions/crafting/ginkgo_crossbow": "\u94f6\u674f\u5f29",
  1324. "/actions/crafting/ginkgo_water_staff": "\u94f6\u674f\u6c34\u6cd5\u6756",
  1325. "/actions/crafting/ring_of_armor": "\u62a4\u7532\u6212\u6307",
  1326. "/actions/crafting/catalyst_of_decomposition": "\u5206\u89e3\u50ac\u5316\u5242",
  1327. "/actions/crafting/ginkgo_shield": "\u94f6\u674f\u76fe",
  1328. "/actions/crafting/earrings_of_armor": "\u62a4\u7532\u8033\u73af",
  1329. "/actions/crafting/ginkgo_nature_staff": "\u94f6\u674f\u81ea\u7136\u6cd5\u6756",
  1330. "/actions/crafting/ranger_necklace": "\u5c04\u624b\u9879\u94fe",
  1331. "/actions/crafting/ginkgo_bow": "\u94f6\u674f\u5f13",
  1332. "/actions/crafting/ring_of_resistance": "\u6297\u6027\u6212\u6307",
  1333. "/actions/crafting/crushed_moonstone": "\u6708\u4eae\u77f3\u788e\u7247",
  1334. "/actions/crafting/ginkgo_fire_staff": "\u94f6\u674f\u706b\u6cd5\u6756",
  1335. "/actions/crafting/earrings_of_resistance": "\u6297\u6027\u8033\u73af",
  1336. "/actions/crafting/wizard_necklace": "\u5deb\u5e08\u9879\u94fe",
  1337. "/actions/crafting/ring_of_rare_find": "\u7a00\u6709\u53d1\u73b0\u6212\u6307",
  1338. "/actions/crafting/catalyst_of_transmutation": "\u8f6c\u5316\u50ac\u5316\u5242",
  1339. "/actions/crafting/earrings_of_rare_find": "\u7a00\u6709\u53d1\u73b0\u8033\u73af",
  1340. "/actions/crafting/necklace_of_wisdom": "\u7ecf\u9a8c\u9879\u94fe",
  1341. "/actions/crafting/redwood_lumber": "\u7ea2\u6749\u6728\u677f",
  1342. "/actions/crafting/redwood_crossbow": "\u7ea2\u6749\u5f29",
  1343. "/actions/crafting/redwood_water_staff": "\u7ea2\u6749\u6c34\u6cd5\u6756",
  1344. "/actions/crafting/redwood_shield": "\u7ea2\u6749\u76fe",
  1345. "/actions/crafting/redwood_nature_staff": "\u7ea2\u6749\u81ea\u7136\u6cd5\u6756",
  1346. "/actions/crafting/redwood_bow": "\u7ea2\u6749\u5f13",
  1347. "/actions/crafting/crushed_sunstone": "\u592a\u9633\u77f3\u788e\u7247",
  1348. "/actions/crafting/chimerical_entry_key": "\u5947\u5e7b\u94a5\u5319",
  1349. "/actions/crafting/chimerical_chest_key": "\u5947\u5e7b\u5b9d\u7bb1\u94a5\u5319",
  1350. "/actions/crafting/eye_watch": "\u638c\u4e0a\u76d1\u5de5",
  1351. "/actions/crafting/watchful_relic": "\u8b66\u6212\u9057\u7269",
  1352. "/actions/crafting/redwood_fire_staff": "\u7ea2\u6749\u706b\u6cd5\u6756",
  1353. "/actions/crafting/ring_of_critical_strike": "\u66b4\u51fb\u6212\u6307",
  1354. "/actions/crafting/mirror_of_protection": "\u4fdd\u62a4\u4e4b\u955c",
  1355. "/actions/crafting/earrings_of_critical_strike": "\u66b4\u51fb\u8033\u73af",
  1356. "/actions/crafting/necklace_of_speed": "\u901f\u5ea6\u9879\u94fe",
  1357. "/actions/crafting/arcane_lumber": "\u795e\u79d8\u6728\u677f",
  1358. "/actions/crafting/arcane_crossbow": "\u795e\u79d8\u5f29",
  1359. "/actions/crafting/arcane_water_staff": "\u795e\u79d8\u6c34\u6cd5\u6756",
  1360. "/actions/crafting/sinister_entry_key": "\u9634\u68ee\u94a5\u5319",
  1361. "/actions/crafting/sinister_chest_key": "\u9634\u68ee\u5b9d\u7bb1\u94a5\u5319",
  1362. "/actions/crafting/arcane_shield": "\u795e\u79d8\u76fe",
  1363. "/actions/crafting/arcane_nature_staff": "\u795e\u79d8\u81ea\u7136\u6cd5\u6756",
  1364. "/actions/crafting/manticore_shield": "\u874e\u72ee\u76fe",
  1365. "/actions/crafting/arcane_bow": "\u795e\u79d8\u5f13",
  1366. "/actions/crafting/enchanted_entry_key": "\u79d8\u6cd5\u94a5\u5319",
  1367. "/actions/crafting/enchanted_chest_key": "\u79d8\u6cd5\u5b9d\u7bb1\u94a5\u5319",
  1368. "/actions/crafting/pirate_entry_key": "\u6d77\u76d7\u94a5\u5319",
  1369. "/actions/crafting/pirate_chest_key": "\u6d77\u76d7\u5b9d\u7bb1\u94a5\u5319",
  1370. "/actions/crafting/arcane_fire_staff": "\u795e\u79d8\u706b\u6cd5\u6756",
  1371. "/actions/crafting/vampiric_bow": "\u5438\u8840\u5f13",
  1372. "/actions/crafting/soul_hunter_crossbow": "\u7075\u9b42\u730e\u624b\u5f29",
  1373. "/actions/crafting/rippling_trident": "\u6d9f\u6f2a\u4e09\u53c9\u621f",
  1374. "/actions/crafting/blooming_trident": "\u7efd\u653e\u4e09\u53c9\u621f",
  1375. "/actions/crafting/blazing_trident": "\u70bd\u7130\u4e09\u53c9\u621f",
  1376. "/actions/crafting/frost_staff": "\u51b0\u971c\u6cd5\u6756",
  1377. "/actions/crafting/infernal_battlestaff": "\u70bc\u72f1\u6cd5\u6756",
  1378. "/actions/crafting/jackalope_staff": "\u9e7f\u89d2\u5154\u4e4b\u6756",
  1379. "/actions/crafting/philosophers_ring": "\u8d24\u8005\u6212\u6307",
  1380. "/actions/crafting/crushed_philosophers_stone": "\u8d24\u8005\u4e4b\u77f3\u788e\u7247",
  1381. "/actions/crafting/philosophers_earrings": "\u8d24\u8005\u8033\u73af",
  1382. "/actions/crafting/philosophers_necklace": "\u8d24\u8005\u9879\u94fe",
  1383. "/actions/crafting/bishops_codex": "\u4e3b\u6559\u6cd5\u5178",
  1384. "/actions/crafting/cursed_bow": "\u5492\u6028\u4e4b\u5f13",
  1385. "/actions/crafting/sundering_crossbow": "\u88c2\u7a7a\u4e4b\u5f29",
  1386. "/actions/tailoring/rough_leather": "\u7c97\u7cd9\u76ae\u9769",
  1387. "/actions/tailoring/cotton_fabric": "\u68c9\u82b1\u5e03\u6599",
  1388. "/actions/tailoring/rough_boots": "\u7c97\u7cd9\u9774",
  1389. "/actions/tailoring/cotton_boots": "\u68c9\u9774",
  1390. "/actions/tailoring/rough_bracers": "\u7c97\u7cd9\u62a4\u8155",
  1391. "/actions/tailoring/cotton_gloves": "\u68c9\u624b\u5957",
  1392. "/actions/tailoring/small_pouch": "\u5c0f\u888b\u5b50",
  1393. "/actions/tailoring/rough_hood": "\u7c97\u7cd9\u515c\u5e3d",
  1394. "/actions/tailoring/cotton_hat": "\u68c9\u5e3d",
  1395. "/actions/tailoring/rough_chaps": "\u7c97\u7cd9\u76ae\u88e4",
  1396. "/actions/tailoring/cotton_robe_bottoms": "\u68c9\u5e03\u888d\u88d9",
  1397. "/actions/tailoring/rough_tunic": "\u7c97\u7cd9\u76ae\u8863",
  1398. "/actions/tailoring/cotton_robe_top": "\u68c9\u5e03\u888d\u670d",
  1399. "/actions/tailoring/reptile_leather": "\u722c\u884c\u52a8\u7269\u76ae\u9769",
  1400. "/actions/tailoring/linen_fabric": "\u4e9a\u9ebb\u5e03\u6599",
  1401. "/actions/tailoring/reptile_boots": "\u722c\u884c\u52a8\u7269\u9774",
  1402. "/actions/tailoring/linen_boots": "\u4e9a\u9ebb\u9774",
  1403. "/actions/tailoring/reptile_bracers": "\u722c\u884c\u52a8\u7269\u62a4\u8155",
  1404. "/actions/tailoring/linen_gloves": "\u4e9a\u9ebb\u624b\u5957",
  1405. "/actions/tailoring/reptile_hood": "\u722c\u884c\u52a8\u7269\u515c\u5e3d",
  1406. "/actions/tailoring/linen_hat": "\u4e9a\u9ebb\u5e3d",
  1407. "/actions/tailoring/reptile_chaps": "\u722c\u884c\u52a8\u7269\u76ae\u88e4",
  1408. "/actions/tailoring/linen_robe_bottoms": "\u4e9a\u9ebb\u888d\u88d9",
  1409. "/actions/tailoring/medium_pouch": "\u4e2d\u888b\u5b50",
  1410. "/actions/tailoring/reptile_tunic": "\u722c\u884c\u52a8\u7269\u76ae\u8863",
  1411. "/actions/tailoring/linen_robe_top": "\u4e9a\u9ebb\u888d\u670d",
  1412. "/actions/tailoring/shoebill_shoes": "\u9cb8\u5934\u9e73\u978b",
  1413. "/actions/tailoring/gobo_leather": "\u54e5\u5e03\u6797\u76ae\u9769",
  1414. "/actions/tailoring/bamboo_fabric": "\u7af9\u5b50\u5e03\u6599",
  1415. "/actions/tailoring/gobo_boots": "\u54e5\u5e03\u6797\u9774",
  1416. "/actions/tailoring/bamboo_boots": "\u7af9\u9774",
  1417. "/actions/tailoring/gobo_bracers": "\u54e5\u5e03\u6797\u62a4\u8155",
  1418. "/actions/tailoring/bamboo_gloves": "\u7af9\u624b\u5957",
  1419. "/actions/tailoring/gobo_hood": "\u54e5\u5e03\u6797\u515c\u5e3d",
  1420. "/actions/tailoring/bamboo_hat": "\u7af9\u5e3d",
  1421. "/actions/tailoring/gobo_chaps": "\u54e5\u5e03\u6797\u76ae\u88e4",
  1422. "/actions/tailoring/bamboo_robe_bottoms": "\u7af9\u5e03\u888d\u88d9",
  1423. "/actions/tailoring/large_pouch": "\u5927\u888b\u5b50",
  1424. "/actions/tailoring/gobo_tunic": "\u54e5\u5e03\u6797\u76ae\u8863",
  1425. "/actions/tailoring/bamboo_robe_top": "\u7af9\u888d\u670d",
  1426. "/actions/tailoring/marine_tunic": "\u6d77\u6d0b\u76ae\u8863",
  1427. "/actions/tailoring/marine_chaps": "\u822a\u6d77\u76ae\u88e4",
  1428. "/actions/tailoring/icy_robe_top": "\u51b0\u971c\u888d\u670d",
  1429. "/actions/tailoring/icy_robe_bottoms": "\u51b0\u971c\u888d\u88d9",
  1430. "/actions/tailoring/flaming_robe_top": "\u70c8\u7130\u888d\u670d",
  1431. "/actions/tailoring/flaming_robe_bottoms": "\u70c8\u7130\u888d\u88d9",
  1432. "/actions/tailoring/beast_leather": "\u91ce\u517d\u76ae\u9769",
  1433. "/actions/tailoring/silk_fabric": "\u4e1d\u7ef8",
  1434. "/actions/tailoring/beast_boots": "\u91ce\u517d\u9774",
  1435. "/actions/tailoring/silk_boots": "\u4e1d\u9774",
  1436. "/actions/tailoring/beast_bracers": "\u91ce\u517d\u62a4\u8155",
  1437. "/actions/tailoring/silk_gloves": "\u4e1d\u624b\u5957",
  1438. "/actions/tailoring/collectors_boots": "\u6536\u85cf\u5bb6\u4e4b\u9774",
  1439. "/actions/tailoring/sighted_bracers": "\u7784\u51c6\u62a4\u8155",
  1440. "/actions/tailoring/beast_hood": "\u91ce\u517d\u515c\u5e3d",
  1441. "/actions/tailoring/silk_hat": "\u4e1d\u5e3d",
  1442. "/actions/tailoring/beast_chaps": "\u91ce\u517d\u76ae\u88e4",
  1443. "/actions/tailoring/silk_robe_bottoms": "\u4e1d\u7ef8\u888d\u88d9",
  1444. "/actions/tailoring/centaur_boots": "\u534a\u4eba\u9a6c\u9774",
  1445. "/actions/tailoring/sorcerer_boots": "\u5deb\u5e08\u9774",
  1446. "/actions/tailoring/giant_pouch": "\u5de8\u5927\u888b\u5b50",
  1447. "/actions/tailoring/beast_tunic": "\u91ce\u517d\u76ae\u8863",
  1448. "/actions/tailoring/silk_robe_top": "\u4e1d\u7ef8\u888d\u670d",
  1449. "/actions/tailoring/red_culinary_hat": "\u7ea2\u8272\u53a8\u5e08\u5e3d",
  1450. "/actions/tailoring/luna_robe_top": "\u6708\u795e\u888d\u670d",
  1451. "/actions/tailoring/luna_robe_bottoms": "\u6708\u795e\u888d\u88d9",
  1452. "/actions/tailoring/umbral_leather": "\u6697\u5f71\u76ae\u9769",
  1453. "/actions/tailoring/radiant_fabric": "\u5149\u8f89\u5e03\u6599",
  1454. "/actions/tailoring/umbral_boots": "\u6697\u5f71\u9774",
  1455. "/actions/tailoring/radiant_boots": "\u5149\u8f89\u9774",
  1456. "/actions/tailoring/umbral_bracers": "\u6697\u5f71\u62a4\u8155",
  1457. "/actions/tailoring/radiant_gloves": "\u5149\u8f89\u624b\u5957",
  1458. "/actions/tailoring/enchanted_gloves": "\u9644\u9b54\u624b\u5957",
  1459. "/actions/tailoring/fluffy_red_hat": "\u84ec\u677e\u7ea2\u5e3d\u5b50",
  1460. "/actions/tailoring/chrono_gloves": "\u65f6\u7a7a\u624b\u5957",
  1461. "/actions/tailoring/umbral_hood": "\u6697\u5f71\u515c\u5e3d",
  1462. "/actions/tailoring/radiant_hat": "\u5149\u8f89\u5e3d",
  1463. "/actions/tailoring/umbral_chaps": "\u6697\u5f71\u76ae\u88e4",
  1464. "/actions/tailoring/radiant_robe_bottoms": "\u5149\u8f89\u888d\u88d9",
  1465. "/actions/tailoring/umbral_tunic": "\u6697\u5f71\u76ae\u8863",
  1466. "/actions/tailoring/radiant_robe_top": "\u5149\u8f89\u888d\u670d",
  1467. "/actions/tailoring/revenant_chaps": "\u4ea1\u7075\u76ae\u88e4",
  1468. "/actions/tailoring/griffin_chaps": "\u72ee\u9e6b\u62a4\u817f",
  1469. "/actions/tailoring/dairyhands_top": "\u6324\u5976\u5de5\u4e0a\u8863",
  1470. "/actions/tailoring/dairyhands_bottoms": "\u6324\u5976\u5de5\u4e0b\u88c5",
  1471. "/actions/tailoring/foragers_top": "\u91c7\u6458\u8005\u4e0a\u8863",
  1472. "/actions/tailoring/foragers_bottoms": "\u91c7\u6458\u8005\u4e0b\u88c5",
  1473. "/actions/tailoring/lumberjacks_top": "\u4f10\u6728\u5de5\u4e0a\u8863",
  1474. "/actions/tailoring/lumberjacks_bottoms": "\u4f10\u6728\u5de5\u4e0b\u88c5",
  1475. "/actions/tailoring/cheesemakers_top": "\u5976\u916a\u5e08\u4e0a\u8863",
  1476. "/actions/tailoring/cheesemakers_bottoms": "\u5976\u916a\u5e08\u4e0b\u88c5",
  1477. "/actions/tailoring/crafters_top": "\u5de5\u5320\u4e0a\u8863",
  1478. "/actions/tailoring/crafters_bottoms": "\u5de5\u5320\u4e0b\u88c5",
  1479. "/actions/tailoring/tailors_top": "\u88c1\u7f1d\u4e0a\u8863",
  1480. "/actions/tailoring/tailors_bottoms": "\u88c1\u7f1d\u4e0b\u88c5",
  1481. "/actions/tailoring/chefs_top": "\u53a8\u5e08\u4e0a\u8863",
  1482. "/actions/tailoring/chefs_bottoms": "\u53a8\u5e08\u4e0b\u88c5",
  1483. "/actions/tailoring/brewers_top": "\u996e\u54c1\u5e08\u4e0a\u8863",
  1484. "/actions/tailoring/brewers_bottoms": "\u996e\u54c1\u5e08\u4e0b\u88c5",
  1485. "/actions/tailoring/alchemists_top": "\u70bc\u91d1\u5e08\u7684\u4e0a\u8863",
  1486. "/actions/tailoring/alchemists_bottoms": "\u70bc\u91d1\u5e08\u4e0b\u88c5",
  1487. "/actions/tailoring/enhancers_top": "\u5f3a\u5316\u5e08\u4e0a\u8863",
  1488. "/actions/tailoring/enhancers_bottoms": "\u5f3a\u5316\u5e08\u4e0b\u88c5",
  1489. "/actions/tailoring/revenant_tunic": "\u4ea1\u7075\u76ae\u8863",
  1490. "/actions/tailoring/griffin_tunic": "\u72ee\u9e6b\u76ae\u8863",
  1491. "/actions/tailoring/gluttonous_pouch": "\u8d2a\u98df\u4e4b\u888b",
  1492. "/actions/tailoring/guzzling_pouch": "\u66b4\u996e\u4e4b\u56ca",
  1493. "/actions/tailoring/marksman_bracers": "\u795e\u5c04\u62a4\u8155",
  1494. "/actions/tailoring/acrobatic_hood": "\u6742\u6280\u5e08\u515c\u5e3d",
  1495. "/actions/tailoring/magicians_hat": "\u9b54\u672f\u5e08\u4e4b\u5e3d",
  1496. "/actions/tailoring/kraken_chaps": "\u514b\u62c9\u80af\u76ae\u88e4",
  1497. "/actions/tailoring/royal_water_robe_bottoms": "\u7687\u5bb6\u6c34\u7cfb\u888d\u88d9",
  1498. "/actions/tailoring/royal_nature_robe_bottoms": "\u7687\u5bb6\u81ea\u7136\u7cfb\u888d\u88d9",
  1499. "/actions/tailoring/royal_fire_robe_bottoms": "\u7687\u5bb6\u706b\u7cfb\u888d\u88d9",
  1500. "/actions/tailoring/kraken_tunic": "\u514b\u62c9\u80af\u76ae\u8863",
  1501. "/actions/tailoring/royal_water_robe_top": "\u7687\u5bb6\u6c34\u7cfb\u888d\u670d",
  1502. "/actions/tailoring/royal_nature_robe_top": "\u7687\u5bb6\u81ea\u7136\u7cfb\u888d\u670d",
  1503. "/actions/tailoring/royal_fire_robe_top": "\u7687\u5bb6\u706b\u7cfb\u888d\u670d",
  1504. "/actions/cooking/donut": "\u751c\u751c\u5708",
  1505. "/actions/cooking/cupcake": "\u7eb8\u676f\u86cb\u7cd5",
  1506. "/actions/cooking/gummy": "\u8f6f\u7cd6",
  1507. "/actions/cooking/yogurt": "\u9178\u5976",
  1508. "/actions/cooking/blueberry_donut": "\u84dd\u8393\u751c\u751c\u5708",
  1509. "/actions/cooking/blueberry_cake": "\u84dd\u8393\u86cb\u7cd5",
  1510. "/actions/cooking/apple_gummy": "\u82f9\u679c\u8f6f\u7cd6",
  1511. "/actions/cooking/apple_yogurt": "\u82f9\u679c\u9178\u5976",
  1512. "/actions/cooking/blackberry_donut": "\u9ed1\u8393\u751c\u751c\u5708",
  1513. "/actions/cooking/blackberry_cake": "\u9ed1\u8393\u86cb\u7cd5",
  1514. "/actions/cooking/orange_gummy": "\u6a59\u5b50\u8f6f\u7cd6",
  1515. "/actions/cooking/orange_yogurt": "\u6a59\u5b50\u9178\u5976",
  1516. "/actions/cooking/strawberry_donut": "\u8349\u8393\u751c\u751c\u5708",
  1517. "/actions/cooking/strawberry_cake": "\u8349\u8393\u86cb\u7cd5",
  1518. "/actions/cooking/plum_gummy": "\u674e\u5b50\u8f6f\u7cd6",
  1519. "/actions/cooking/plum_yogurt": "\u674e\u5b50\u9178\u5976",
  1520. "/actions/cooking/mooberry_donut": "\u54de\u8393\u751c\u751c\u5708",
  1521. "/actions/cooking/mooberry_cake": "\u54de\u8393\u86cb\u7cd5",
  1522. "/actions/cooking/peach_gummy": "\u6843\u5b50\u8f6f\u7cd6",
  1523. "/actions/cooking/peach_yogurt": "\u6843\u5b50\u9178\u5976",
  1524. "/actions/cooking/marsberry_donut": "\u706b\u661f\u8393\u751c\u751c\u5708",
  1525. "/actions/cooking/marsberry_cake": "\u706b\u661f\u8393\u86cb\u7cd5",
  1526. "/actions/cooking/dragon_fruit_gummy": "\u706b\u9f99\u679c\u8f6f\u7cd6",
  1527. "/actions/cooking/dragon_fruit_yogurt": "\u706b\u9f99\u679c\u9178\u5976",
  1528. "/actions/cooking/spaceberry_donut": "\u592a\u7a7a\u8393\u751c\u751c\u5708",
  1529. "/actions/cooking/spaceberry_cake": "\u592a\u7a7a\u8393\u86cb\u7cd5",
  1530. "/actions/cooking/star_fruit_gummy": "\u6768\u6843\u8f6f\u7cd6",
  1531. "/actions/cooking/star_fruit_yogurt": "\u6768\u6843\u9178\u5976",
  1532. "/actions/brewing/milking_tea": "\u6324\u5976\u8336",
  1533. "/actions/brewing/stamina_coffee": "\u8010\u529b\u5496\u5561",
  1534. "/actions/brewing/foraging_tea": "\u91c7\u6458\u8336",
  1535. "/actions/brewing/intelligence_coffee": "\u667a\u529b\u5496\u5561",
  1536. "/actions/brewing/gathering_tea": "\u91c7\u96c6\u8336",
  1537. "/actions/brewing/woodcutting_tea": "\u4f10\u6728\u8336",
  1538. "/actions/brewing/cooking_tea": "\u70f9\u996a\u8336",
  1539. "/actions/brewing/defense_coffee": "\u9632\u5fa1\u5496\u5561",
  1540. "/actions/brewing/brewing_tea": "\u51b2\u6ce1\u8336",
  1541. "/actions/brewing/attack_coffee": "\u653b\u51fb\u5496\u5561",
  1542. "/actions/brewing/gourmet_tea": "\u7f8e\u98df\u8336",
  1543. "/actions/brewing/alchemy_tea": "\u70bc\u91d1\u8336",
  1544. "/actions/brewing/enhancing_tea": "\u5f3a\u5316\u8336",
  1545. "/actions/brewing/cheesesmithing_tea": "\u5976\u916a\u953b\u9020\u8336",
  1546. "/actions/brewing/power_coffee": "\u529b\u91cf\u5496\u5561",
  1547. "/actions/brewing/crafting_tea": "\u5236\u4f5c\u8336",
  1548. "/actions/brewing/ranged_coffee": "\u8fdc\u7a0b\u5496\u5561",
  1549. "/actions/brewing/wisdom_tea": "\u7ecf\u9a8c\u8336",
  1550. "/actions/brewing/wisdom_coffee": "\u7ecf\u9a8c\u5496\u5561",
  1551. "/actions/brewing/tailoring_tea": "\u7f1d\u7eab\u8336",
  1552. "/actions/brewing/magic_coffee": "\u9b54\u6cd5\u5496\u5561",
  1553. "/actions/brewing/super_milking_tea": "\u8d85\u7ea7\u6324\u5976\u8336",
  1554. "/actions/brewing/super_stamina_coffee": "\u8d85\u7ea7\u8010\u529b\u5496\u5561",
  1555. "/actions/brewing/super_foraging_tea": "\u8d85\u7ea7\u91c7\u6458\u8336",
  1556. "/actions/brewing/super_intelligence_coffee": "\u8d85\u7ea7\u667a\u529b\u5496\u5561",
  1557. "/actions/brewing/processing_tea": "\u52a0\u5de5\u8336",
  1558. "/actions/brewing/lucky_coffee": "\u5e78\u8fd0\u5496\u5561",
  1559. "/actions/brewing/super_woodcutting_tea": "\u8d85\u7ea7\u4f10\u6728\u8336",
  1560. "/actions/brewing/super_cooking_tea": "\u8d85\u7ea7\u70f9\u996a\u8336",
  1561. "/actions/brewing/super_defense_coffee": "\u8d85\u7ea7\u9632\u5fa1\u5496\u5561",
  1562. "/actions/brewing/super_brewing_tea": "\u8d85\u7ea7\u51b2\u6ce1\u8336",
  1563. "/actions/brewing/ultra_milking_tea": "\u7a76\u6781\u6324\u5976\u8336",
  1564. "/actions/brewing/super_attack_coffee": "\u8d85\u7ea7\u653b\u51fb\u5496\u5561",
  1565. "/actions/brewing/ultra_stamina_coffee": "\u7a76\u6781\u8010\u529b\u5496\u5561",
  1566. "/actions/brewing/efficiency_tea": "\u6548\u7387\u8336",
  1567. "/actions/brewing/swiftness_coffee": "\u8fc5\u6377\u5496\u5561",
  1568. "/actions/brewing/super_alchemy_tea": "\u8d85\u7ea7\u70bc\u91d1\u8336",
  1569. "/actions/brewing/super_enhancing_tea": "\u8d85\u7ea7\u5f3a\u5316\u8336",
  1570. "/actions/brewing/ultra_foraging_tea": "\u7a76\u6781\u91c7\u6458\u8336",
  1571. "/actions/brewing/ultra_intelligence_coffee": "\u7a76\u6781\u667a\u529b\u5496\u5561",
  1572. "/actions/brewing/channeling_coffee": "\u541f\u5531\u5496\u5561",
  1573. "/actions/brewing/super_cheesesmithing_tea": "\u8d85\u7ea7\u5976\u916a\u953b\u9020\u8336",
  1574. "/actions/brewing/ultra_woodcutting_tea": "\u7a76\u6781\u4f10\u6728\u8336",
  1575. "/actions/brewing/super_power_coffee": "\u8d85\u7ea7\u529b\u91cf\u5496\u5561",
  1576. "/actions/brewing/artisan_tea": "\u5de5\u5320\u8336",
  1577. "/actions/brewing/super_crafting_tea": "\u8d85\u7ea7\u5236\u4f5c\u8336",
  1578. "/actions/brewing/ultra_cooking_tea": "\u7a76\u6781\u70f9\u996a\u8336",
  1579. "/actions/brewing/super_ranged_coffee": "\u8d85\u7ea7\u8fdc\u7a0b\u5496\u5561",
  1580. "/actions/brewing/ultra_defense_coffee": "\u7a76\u6781\u9632\u5fa1\u5496\u5561",
  1581. "/actions/brewing/catalytic_tea": "\u50ac\u5316\u8336",
  1582. "/actions/brewing/critical_coffee": "\u66b4\u51fb\u5496\u5561",
  1583. "/actions/brewing/super_tailoring_tea": "\u8d85\u7ea7\u7f1d\u7eab\u8336",
  1584. "/actions/brewing/ultra_brewing_tea": "\u7a76\u6781\u51b2\u6ce1\u8336",
  1585. "/actions/brewing/super_magic_coffee": "\u8d85\u7ea7\u9b54\u6cd5\u5496\u5561",
  1586. "/actions/brewing/ultra_attack_coffee": "\u7a76\u6781\u653b\u51fb\u5496\u5561",
  1587. "/actions/brewing/blessed_tea": "\u798f\u6c14\u8336",
  1588. "/actions/brewing/ultra_alchemy_tea": "\u7a76\u6781\u70bc\u91d1\u8336",
  1589. "/actions/brewing/ultra_enhancing_tea": "\u7a76\u6781\u5f3a\u5316\u8336",
  1590. "/actions/brewing/ultra_cheesesmithing_tea": "\u7a76\u6781\u5976\u916a\u953b\u9020\u8336",
  1591. "/actions/brewing/ultra_power_coffee": "\u7a76\u6781\u529b\u91cf\u5496\u5561",
  1592. "/actions/brewing/ultra_crafting_tea": "\u7a76\u6781\u5236\u4f5c\u8336",
  1593. "/actions/brewing/ultra_ranged_coffee": "\u7a76\u6781\u8fdc\u7a0b\u5496\u5561",
  1594. "/actions/brewing/ultra_tailoring_tea": "\u7a76\u6781\u7f1d\u7eab\u8336",
  1595. "/actions/brewing/ultra_magic_coffee": "\u7a76\u6781\u9b54\u6cd5\u5496\u5561",
  1596. "/actions/alchemy/coinify": "\u70b9\u91d1",
  1597. "/actions/alchemy/transmute": "\u8f6c\u5316",
  1598. "/actions/alchemy/decompose": "\u5206\u89e3",
  1599. "/actions/enhancing/enhance": "\u5f3a\u5316",
  1600. "/actions/combat/fly": "\u82cd\u8747",
  1601. "/actions/combat/rat": "\u6770\u745e",
  1602. "/actions/combat/skunk": "\u81ed\u9f2c",
  1603. "/actions/combat/porcupine": "\u8c6a\u732a",
  1604. "/actions/combat/slimy": "\u53f2\u83b1\u59c6",
  1605. "/actions/combat/smelly_planet": "\u81ed\u81ed\u661f\u7403",
  1606. "/actions/combat/smelly_planet_elite": "\u81ed\u81ed\u661f\u7403 (\u7cbe\u82f1)",
  1607. "/actions/combat/frog": "\u9752\u86d9",
  1608. "/actions/combat/snake": "\u86c7",
  1609. "/actions/combat/swampy": "\u6cbc\u6cfd\u866b",
  1610. "/actions/combat/alligator": "\u590f\u6d1b\u514b",
  1611. "/actions/combat/swamp_planet": "\u6cbc\u6cfd\u661f\u7403",
  1612. "/actions/combat/swamp_planet_elite": "\u6cbc\u6cfd\u661f\u7403 (\u7cbe\u82f1)",
  1613. "/actions/combat/sea_snail": "\u8717\u725b",
  1614. "/actions/combat/crab": "\u8783\u87f9",
  1615. "/actions/combat/aquahorse": "\u6c34\u9a6c",
  1616. "/actions/combat/nom_nom": "\u54ac\u54ac\u9c7c",
  1617. "/actions/combat/turtle": "\u5fcd\u8005\u9f9f",
  1618. "/actions/combat/aqua_planet": "\u6d77\u6d0b\u661f\u7403",
  1619. "/actions/combat/aqua_planet_elite": "\u6d77\u6d0b\u661f\u7403 (\u7cbe\u82f1)",
  1620. "/actions/combat/jungle_sprite": "\u4e1b\u6797\u7cbe\u7075",
  1621. "/actions/combat/myconid": "\u8611\u83c7\u4eba",
  1622. "/actions/combat/treant": "\u6811\u4eba",
  1623. "/actions/combat/centaur_archer": "\u534a\u4eba\u9a6c\u5f13\u7bad\u624b",
  1624. "/actions/combat/jungle_planet": "\u4e1b\u6797\u661f\u7403",
  1625. "/actions/combat/jungle_planet_elite": "\u4e1b\u6797\u661f\u7403 (\u7cbe\u82f1)",
  1626. "/actions/combat/gobo_stabby": "\u523a\u523a",
  1627. "/actions/combat/gobo_slashy": "\u780d\u780d",
  1628. "/actions/combat/gobo_smashy": "\u9524\u9524",
  1629. "/actions/combat/gobo_shooty": "\u54bb\u54bb",
  1630. "/actions/combat/gobo_boomy": "\u8f70\u8f70",
  1631. "/actions/combat/gobo_planet": "\u54e5\u5e03\u6797\u661f\u7403",
  1632. "/actions/combat/gobo_planet_elite": "\u54e5\u5e03\u6797\u661f\u7403 (\u7cbe\u82f1)",
  1633. "/actions/combat/eye": "\u72ec\u773c",
  1634. "/actions/combat/eyes": "\u53e0\u773c",
  1635. "/actions/combat/veyes": "\u590d\u773c",
  1636. "/actions/combat/planet_of_the_eyes": "\u773c\u7403\u661f\u7403",
  1637. "/actions/combat/planet_of_the_eyes_elite": "\u773c\u7403\u661f\u7403 (\u7cbe\u82f1)",
  1638. "/actions/combat/novice_sorcerer": "\u65b0\u624b\u5deb\u5e08",
  1639. "/actions/combat/ice_sorcerer": "\u51b0\u971c\u5deb\u5e08",
  1640. "/actions/combat/flame_sorcerer": "\u706b\u7130\u5deb\u5e08",
  1641. "/actions/combat/elementalist": "\u5143\u7d20\u6cd5\u5e08",
  1642. "/actions/combat/sorcerers_tower": "\u5deb\u5e08\u4e4b\u5854",
  1643. "/actions/combat/sorcerers_tower_elite": "\u5deb\u5e08\u4e4b\u5854 (\u7cbe\u82f1)",
  1644. "/actions/combat/gummy_bear": "\u8f6f\u7cd6\u718a",
  1645. "/actions/combat/panda": "\u718a\u732b",
  1646. "/actions/combat/black_bear": "\u9ed1\u718a",
  1647. "/actions/combat/grizzly_bear": "\u68d5\u718a",
  1648. "/actions/combat/polar_bear": "\u5317\u6781\u718a",
  1649. "/actions/combat/bear_with_it": "\u718a\u718a\u661f\u7403",
  1650. "/actions/combat/bear_with_it_elite": "\u718a\u718a\u661f\u7403 (\u7cbe\u82f1)",
  1651. "/actions/combat/magnetic_golem": "\u78c1\u529b\u9b54\u50cf",
  1652. "/actions/combat/stalactite_golem": "\u949f\u4e73\u77f3\u9b54\u50cf",
  1653. "/actions/combat/granite_golem": "\u82b1\u5c97\u5ca9\u9b54\u50cf",
  1654. "/actions/combat/golem_cave": "\u9b54\u50cf\u6d1e\u7a74",
  1655. "/actions/combat/golem_cave_elite": "\u9b54\u50cf\u6d1e\u7a74 (\u7cbe\u82f1)",
  1656. "/actions/combat/zombie": "\u50f5\u5c38",
  1657. "/actions/combat/vampire": "\u5438\u8840\u9b3c",
  1658. "/actions/combat/werewolf": "\u72fc\u4eba",
  1659. "/actions/combat/twilight_zone": "\u66ae\u5149\u4e4b\u5730",
  1660. "/actions/combat/twilight_zone_elite": "\u66ae\u5149\u4e4b\u5730 (\u7cbe\u82f1)",
  1661. "/actions/combat/abyssal_imp": "\u6df1\u6e0a\u5c0f\u9b3c",
  1662. "/actions/combat/soul_hunter": "\u7075\u9b42\u730e\u624b",
  1663. "/actions/combat/infernal_warlock": "\u5730\u72f1\u672f\u58eb",
  1664. "/actions/combat/infernal_abyss": "\u5730\u72f1\u6df1\u6e0a",
  1665. "/actions/combat/infernal_abyss_elite": "\u5730\u72f1\u6df1\u6e0a (\u7cbe\u82f1)",
  1666. "/actions/combat/chimerical_den": "\u5947\u5e7b\u6d1e\u7a74",
  1667. "/actions/combat/sinister_circus": "\u9634\u68ee\u9a6c\u620f\u56e2",
  1668. "/actions/combat/enchanted_fortress": "\u79d8\u6cd5\u8981\u585e",
  1669. "/actions/combat/pirate_cove": "\u6d77\u76d7\u57fa\u5730",
  1670. };
  1671.  
  1672. const ZHOthersDic = {
  1673. // monsterNames
  1674. "/monsters/abyssal_imp": "\u6df1\u6e0a\u5c0f\u9b3c",
  1675. "/monsters/acrobat": "\u6742\u6280\u5e08",
  1676. "/monsters/anchor_shark": "\u6301\u951a\u9ca8",
  1677. "/monsters/aquahorse": "\u6c34\u9a6c",
  1678. "/monsters/black_bear": "\u9ed1\u718a",
  1679. "/monsters/gobo_boomy": "\u8f70\u8f70",
  1680. "/monsters/brine_marksman": "\u6d77\u76d0\u5c04\u624b",
  1681. "/monsters/captain_fishhook": "\u9c7c\u94a9\u8239\u957f",
  1682. "/monsters/butterjerry": "\u8776\u9f20",
  1683. "/monsters/centaur_archer": "\u534a\u4eba\u9a6c\u5f13\u7bad\u624b",
  1684. "/monsters/chronofrost_sorcerer": "\u971c\u65f6\u5deb\u5e08",
  1685. "/monsters/crystal_colossus": "\u6c34\u6676\u5de8\u50cf",
  1686. "/monsters/demonic_overlord": "\u6076\u9b54\u9738\u4e3b",
  1687. "/monsters/deranged_jester": "\u5c0f\u4e11\u7687",
  1688. "/monsters/dodocamel": "\u6e21\u6e21\u9a7c",
  1689. "/monsters/dusk_revenant": "\u9ec4\u660f\u4ea1\u7075",
  1690. "/monsters/elementalist": "\u5143\u7d20\u6cd5\u5e08",
  1691. "/monsters/enchanted_bishop": "\u79d8\u6cd5\u4e3b\u6559",
  1692. "/monsters/enchanted_king": "\u79d8\u6cd5\u56fd\u738b",
  1693. "/monsters/enchanted_knight": "\u79d8\u6cd5\u9a91\u58eb",
  1694. "/monsters/enchanted_pawn": "\u79d8\u6cd5\u58eb\u5175",
  1695. "/monsters/enchanted_queen": "\u79d8\u6cd5\u738b\u540e",
  1696. "/monsters/enchanted_rook": "\u79d8\u6cd5\u5821\u5792",
  1697. "/monsters/eye": "\u72ec\u773c",
  1698. "/monsters/eyes": "\u53e0\u773c",
  1699. "/monsters/flame_sorcerer": "\u706b\u7130\u5deb\u5e08",
  1700. "/monsters/fly": "\u82cd\u8747",
  1701. "/monsters/frog": "\u9752\u86d9",
  1702. "/monsters/sea_snail": "\u8717\u725b",
  1703. "/monsters/giant_shoebill": "\u9cb8\u5934\u9e73",
  1704. "/monsters/gobo_chieftain": "\u54e5\u5e03\u6797\u914b\u957f",
  1705. "/monsters/granite_golem": "\u82b1\u5c97\u9b54\u50cf",
  1706. "/monsters/griffin": "\u72ee\u9e6b",
  1707. "/monsters/grizzly_bear": "\u68d5\u718a",
  1708. "/monsters/gummy_bear": "\u8f6f\u7cd6\u718a",
  1709. "/monsters/crab": "\u8783\u87f9",
  1710. "/monsters/ice_sorcerer": "\u51b0\u971c\u5deb\u5e08",
  1711. "/monsters/infernal_warlock": "\u5730\u72f1\u672f\u58eb",
  1712. "/monsters/jackalope": "\u9e7f\u89d2\u5154",
  1713. "/monsters/rat": "\u6770\u745e",
  1714. "/monsters/juggler": "\u6742\u800d\u8005",
  1715. "/monsters/jungle_sprite": "\u4e1b\u6797\u7cbe\u7075",
  1716. "/monsters/luna_empress": "\u6708\u795e\u4e4b\u8776",
  1717. "/monsters/magician": "\u9b54\u672f\u5e08",
  1718. "/monsters/magnetic_golem": "\u78c1\u529b\u9b54\u50cf",
  1719. "/monsters/manticore": "\u72ee\u874e\u517d",
  1720. "/monsters/marine_huntress": "\u6d77\u6d0b\u730e\u624b",
  1721. "/monsters/myconid": "\u8611\u83c7\u4eba",
  1722. "/monsters/nom_nom": "\u54ac\u54ac\u9c7c",
  1723. "/monsters/novice_sorcerer": "\u65b0\u624b\u5deb\u5e08",
  1724. "/monsters/panda": "\u718a\u732b",
  1725. "/monsters/polar_bear": "\u5317\u6781\u718a",
  1726. "/monsters/porcupine": "\u8c6a\u732a",
  1727. "/monsters/rabid_rabbit": "\u75af\u9b54\u5154",
  1728. "/monsters/red_panda": "\u5c0f\u718a\u732b",
  1729. "/monsters/alligator": "\u590f\u6d1b\u514b",
  1730. "/monsters/gobo_shooty": "\u54bb\u54bb",
  1731. "/monsters/skunk": "\u81ed\u9f2c",
  1732. "/monsters/gobo_slashy": "\u780d\u780d",
  1733. "/monsters/slimy": "\u53f2\u83b1\u59c6",
  1734. "/monsters/gobo_smashy": "\u9524\u9524",
  1735. "/monsters/soul_hunter": "\u7075\u9b42\u730e\u624b",
  1736. "/monsters/squawker": "\u9e66\u9e49",
  1737. "/monsters/gobo_stabby": "\u523a\u523a",
  1738. "/monsters/stalactite_golem": "\u949f\u4e73\u77f3\u9b54\u50cf",
  1739. "/monsters/swampy": "\u6cbc\u6cfd\u866b",
  1740. "/monsters/the_kraken": "\u514b\u62c9\u80af",
  1741. "/monsters/the_watcher": "\u89c2\u5bdf\u8005",
  1742. "/monsters/snake": "\u86c7",
  1743. "/monsters/tidal_conjuror": "\u6f6e\u6c50\u53ec\u5524\u5e08",
  1744. "/monsters/treant": "\u6811\u4eba",
  1745. "/monsters/turtle": "\u5fcd\u8005\u9f9f",
  1746. "/monsters/vampire": "\u5438\u8840\u9b3c",
  1747. "/monsters/veyes": "\u590d\u773c",
  1748. "/monsters/werewolf": "\u72fc\u4eba",
  1749. "/monsters/zombie": "\u50f5\u5c38",
  1750. "/monsters/zombie_bear": "\u50f5\u5c38\u718a",
  1751.  
  1752. // abilityNames
  1753. "/abilities/poke": "\u7834\u80c6\u4e4b\u523a",
  1754. "/abilities/impale": "\u900f\u9aa8\u4e4b\u523a",
  1755. "/abilities/puncture": "\u7834\u7532\u4e4b\u523a",
  1756. "/abilities/penetrating_strike": "\u8d2f\u5fc3\u4e4b\u523a",
  1757. "/abilities/scratch": "\u722a\u5f71\u65a9",
  1758. "/abilities/cleave": "\u5206\u88c2\u65a9",
  1759. "/abilities/maim": "\u8840\u5203\u65a9",
  1760. "/abilities/crippling_slash": "\u81f4\u6b8b\u65a9",
  1761. "/abilities/smack": "\u91cd\u78be",
  1762. "/abilities/sweep": "\u91cd\u626b",
  1763. "/abilities/stunning_blow": "\u91cd\u9524",
  1764. "/abilities/fracturing_impact": "\u788e\u88c2\u51b2\u51fb",
  1765. "/abilities/shield_bash": "\u76fe\u51fb",
  1766. "/abilities/quick_shot": "\u5feb\u901f\u5c04\u51fb",
  1767. "/abilities/aqua_arrow": "\u6d41\u6c34\u7bad",
  1768. "/abilities/flame_arrow": "\u70c8\u7130\u7bad",
  1769. "/abilities/rain_of_arrows": "\u7bad\u96e8",
  1770. "/abilities/silencing_shot": "\u6c89\u9ed8\u4e4b\u7bad",
  1771. "/abilities/steady_shot": "\u7a33\u5b9a\u5c04\u51fb",
  1772. "/abilities/pestilent_shot": "\u75ab\u75c5\u5c04\u51fb",
  1773. "/abilities/penetrating_shot": "\u8d2f\u7a7f\u5c04\u51fb",
  1774. "/abilities/water_strike": "\u6d41\u6c34\u51b2\u51fb",
  1775. "/abilities/ice_spear": "\u51b0\u67aa\u672f",
  1776. "/abilities/frost_surge": "\u51b0\u971c\u7206\u88c2",
  1777. "/abilities/mana_spring": "\u6cd5\u529b\u55b7\u6cc9",
  1778. "/abilities/entangle": "\u7f20\u7ed5",
  1779. "/abilities/toxic_pollen": "\u5267\u6bd2\u7c89\u5c18",
  1780. "/abilities/natures_veil": "\u81ea\u7136\u83cc\u5e55",
  1781. "/abilities/life_drain": "\u751f\u547d\u5438\u53d6",
  1782. "/abilities/fireball": "\u706b\u7403",
  1783. "/abilities/flame_blast": "\u7194\u5ca9\u7206\u88c2",
  1784. "/abilities/firestorm": "\u706b\u7130\u98ce\u66b4",
  1785. "/abilities/smoke_burst": "\u70df\u7206\u706d\u5f71",
  1786. "/abilities/minor_heal": "\u521d\u7ea7\u81ea\u6108\u672f",
  1787. "/abilities/heal": "\u81ea\u6108\u672f",
  1788. "/abilities/quick_aid": "\u5feb\u901f\u6cbb\u7597\u672f",
  1789. "/abilities/rejuvenate": "\u7fa4\u4f53\u6cbb\u7597\u672f",
  1790. "/abilities/taunt": "\u5632\u8bbd",
  1791. "/abilities/provoke": "\u6311\u8845",
  1792. "/abilities/toughness": "\u575a\u97e7",
  1793. "/abilities/elusiveness": "\u95ea\u907f",
  1794. "/abilities/precision": "\u7cbe\u786e",
  1795. "/abilities/berserk": "\u72c2\u66b4",
  1796. "/abilities/frenzy": "\u72c2\u901f",
  1797. "/abilities/elemental_affinity": "\u5143\u7d20\u589e\u5e45",
  1798. "/abilities/spike_shell": "\u5c16\u523a\u9632\u62a4",
  1799. "/abilities/arcane_reflection": "\u5965\u672f\u53cd\u5c04",
  1800. "/abilities/vampirism": "\u5438\u8840",
  1801. "/abilities/revive": "\u590d\u6d3b",
  1802. "/abilities/insanity": "\u75af\u72c2",
  1803. "/abilities/invincible": "\u65e0\u654c",
  1804. "/abilities/fierce_aura": "\u7269\u7406\u5149\u73af",
  1805. "/abilities/aqua_aura": "\u6d41\u6c34\u5149\u73af",
  1806. "/abilities/sylvan_aura": "\u81ea\u7136\u5149\u73af",
  1807. "/abilities/flame_aura": "\u706b\u7130\u5149\u73af",
  1808. "/abilities/speed_aura": "\u901f\u5ea6\u5149\u73af",
  1809. "/abilities/critical_aura": "\u66b4\u51fb\u5149\u73af",
  1810. "/abilities/promote": "\u664b\u5347",
  1811. };
  1812.  
  1813. function inverseKV(obj) {
  1814. const retobj = {};
  1815. for (const key in obj) {
  1816. retobj[obj[key]] = key;
  1817. }
  1818. return retobj;
  1819. }
  1820.  
  1821. const ZHToItemHridMap = inverseKV(ZHitemNames);
  1822. const ZHToActionHridMap = inverseKV(ZHActionNames);
  1823. const ZHToOthersMap = inverseKV(ZHOthersDic);
  1824.  
  1825. function getItemEnNameFromZhName(zhName) {
  1826. const itemHrid = ZHToItemHridMap[zhName];
  1827. if (!itemHrid) {
  1828. console.log("Can not find EN name for item " + zhName);
  1829. return "";
  1830. }
  1831. const enName = initData_itemDetailMap[itemHrid]?.name;
  1832. if (!enName) {
  1833. console.log("Can not find EN name for itemHrid " + itemHrid);
  1834. return "";
  1835. }
  1836. return enName;
  1837. }
  1838.  
  1839. function getActionEnNameFromZhName(zhName) {
  1840. const actionHrid = ZHToActionHridMap[zhName];
  1841. if (!actionHrid) {
  1842. console.log("Can not find EN name for action " + zhName);
  1843. return "";
  1844. }
  1845. const enName = initData_actionDetailMap[actionHrid]?.name;
  1846. if (!enName) {
  1847. console.log("Can not find EN name for actionHrid " + actionHrid);
  1848. return "";
  1849. }
  1850. return enName;
  1851. }
  1852.  
  1853. function getOthersFromZhName(zhName) {
  1854. const key = ZHToOthersMap[zhName];
  1855. if (!key) {
  1856. // console.log("Can not find EN key for " + zhName);
  1857. return "";
  1858. }
  1859. return key;
  1860. }
  1861.  
  1862. const MARKET_JSON_LOCAL_BACKUP = `{"time":1748767210, "market":{"Abyssal Essence":{"ask":330,"bid":320,"vendor":108},"Acrobatic Hood":{"ask":100000000,"bid":94000000,"vendor":3500000},"Acrobat's Ribbon":{"ask":9800000,"bid":9600000,"vendor":40000},"Advanced Task Badge":{"ask":-1,"bid":-1,"vendor":1000},"Alchemist's Bottoms":{"ask":-1,"bid":36000000,"vendor":3500000},"Alchemist's Top":{"ask":-1,"bid":-1,"vendor":3500000},"Alchemy Essence":{"ask":235,"bid":230,"vendor":50},"Alchemy Tea":{"ask":560,"bid":540,"vendor":20},"Amber":{"ask":26500,"bid":26000,"vendor":6000},"Amethyst":{"ask":42000,"bid":41000,"vendor":8000},"Anchorbound Plate Body":{"ask":-1,"bid":105000000,"vendor":4500000},"Anchorbound Plate Legs":{"ask":105000000,"bid":92000000,"vendor":4000000},"Apple":{"ask":7,"bid":5,"vendor":3},"Apple Gummy":{"ask":23,"bid":22,"vendor":10},"Apple Yogurt":{"ask":240,"bid":185,"vendor":10},"Aqua Arrow":{"ask":27000,"bid":26000,"vendor":1000},"Aqua Aura":{"ask":2700000,"bid":2600000,"vendor":10000},"Aqua Essence":{"ask":21,"bid":20,"vendor":16},"Arabica Coffee Bean":{"ask":140,"bid":135,"vendor":8},"Arcane Bow":{"ask":540000,"bid":520000,"vendor":105600},"Arcane Crossbow":{"ask":420000,"bid":410000,"vendor":79200},"Arcane Fire Staff":{"ask":420000,"bid":410000,"vendor":79200},"Arcane Log":{"ask":400,"bid":390,"vendor":40},"Arcane Lumber":{"ask":1700,"bid":1650,"vendor":160},"Arcane Nature Staff":{"ask":420000,"bid":410000,"vendor":79200},"Arcane Reflection":{"ask":66000,"bid":64000,"vendor":1000},"Arcane Shield":{"ask":290000,"bid":250000,"vendor":52800},"Arcane Water Staff":{"ask":420000,"bid":410000,"vendor":79200},"Artisan Tea":{"ask":1450,"bid":1400,"vendor":120},"Attack Coffee":{"ask":370,"bid":340,"vendor":20},"Azure Alembic":{"ask":24000,"bid":17000,"vendor":2016},"Azure Boots":{"ask":17000,"bid":15000,"vendor":1152},"Azure Brush":{"ask":24500,"bid":19500,"vendor":2016},"Azure Buckler":{"ask":15000,"bid":9800,"vendor":1728},"Azure Bulwark":{"ask":20000,"bid":14000,"vendor":3456},"Azure Cheese":{"ask":460,"bid":450,"vendor":32},"Azure Chisel":{"ask":19500,"bid":17000,"vendor":2016},"Azure Enhancer":{"ask":22000,"bid":20500,"vendor":2016},"Azure Gauntlets":{"ask":16000,"bid":15000,"vendor":1152},"Azure Hammer":{"ask":21500,"bid":18500,"vendor":2016},"Azure Hatchet":{"ask":22500,"bid":20000,"vendor":2016},"Azure Helmet":{"ask":19000,"bid":15500,"vendor":1440},"Azure Mace":{"ask":30000,"bid":28000,"vendor":2592},"Azure Milk":{"ask":145,"bid":115,"vendor":8},"Azure Needle":{"ask":23500,"bid":19500,"vendor":2016},"Azure Plate Body":{"ask":28500,"bid":27500,"vendor":2304},"Azure Plate Legs":{"ask":24000,"bid":21500,"vendor":2016},"Azure Pot":{"ask":23500,"bid":21500,"vendor":2016},"Azure Shears":{"ask":22500,"bid":19500,"vendor":2016},"Azure Spatula":{"ask":22000,"bid":20500,"vendor":2016},"Azure Spear":{"ask":33000,"bid":22000,"vendor":2592},"Azure Sword":{"ask":33000,"bid":32000,"vendor":2592},"Bag Of 10 Cowbells":{"ask":215000,"bid":210000,"vendor":0},"Bamboo Boots":{"ask":10000,"bid":9200,"vendor":2496},"Bamboo Branch":{"ask":36,"bid":31,"vendor":12},"Bamboo Fabric":{"ask":190,"bid":180,"vendor":48},"Bamboo Gloves":{"ask":11000,"bid":8200,"vendor":2496},"Bamboo Hat":{"ask":19000,"bid":13000,"vendor":3120},"Bamboo Robe Bottoms":{"ask":28000,"bid":23500,"vendor":4368},"Bamboo Robe Top":{"ask":22500,"bid":19500,"vendor":4992},"Basic Task Badge":{"ask":-1,"bid":-1,"vendor":1000},"Bear Essence":{"ask":140,"bid":135,"vendor":54},"Beast Boots":{"ask":32000,"bid":31000,"vendor":8000},"Beast Bracers":{"ask":45000,"bid":41000,"vendor":8000},"Beast Chaps":{"ask":86000,"bid":78000,"vendor":14000},"Beast Hide":{"ask":22,"bid":21,"vendor":20},"Beast Hood":{"ask":58000,"bid":54000,"vendor":10000},"Beast Leather":{"ask":680,"bid":660,"vendor":80},"Beast Tunic":{"ask":80000,"bid":-1,"vendor":16000},"Berserk":{"ask":175000,"bid":170000,"vendor":1000},"Birch Bow":{"ask":16500,"bid":14500,"vendor":960},"Birch Crossbow":{"ask":11500,"bid":9000,"vendor":720},"Birch Fire Staff":{"ask":13500,"bid":12000,"vendor":720},"Birch Log":{"ask":47,"bid":44,"vendor":4},"Birch Lumber":{"ask":300,"bid":295,"vendor":16},"Birch Nature Staff":{"ask":13500,"bid":12000,"vendor":720},"Birch Shield":{"ask":7200,"bid":2050,"vendor":480},"Birch Water Staff":{"ask":14000,"bid":10500,"vendor":720},"Bishop's Codex":{"ask":120000000,"bid":115000000,"vendor":4000000},"Bishop's Scroll":{"ask":11500000,"bid":11000000,"vendor":40000},"Black Bear Fluff":{"ask":94000,"bid":92000,"vendor":5000},"Black Bear Shoes":{"ask":410000,"bid":350000,"vendor":60000},"Black Tea Leaf":{"ask":17,"bid":16,"vendor":16},"Blackberry":{"ask":46,"bid":44,"vendor":4},"Blackberry Cake":{"ask":500,"bid":490,"vendor":20},"Blackberry Donut":{"ask":340,"bid":310,"vendor":20},"Blazing Trident":{"ask":-1,"bid":360000000,"vendor":5000000},"Blessed Tea":{"ask":1450,"bid":1400,"vendor":120},"Blooming Trident":{"ask":460000000,"bid":440000000,"vendor":5000000},"Blue Key Fragment":{"ask":660000,"bid":640000,"vendor":30000},"Blueberry":{"ask":30,"bid":28,"vendor":2},"Blueberry Cake":{"ask":360,"bid":350,"vendor":10},"Blueberry Donut":{"ask":330,"bid":285,"vendor":10},"Branch Of Insight":{"ask":12500000,"bid":12000000,"vendor":100000},"Brewer's Bottoms":{"ask":200000000,"bid":34000000,"vendor":3500000},"Brewer's Top":{"ask":135000000,"bid":110000000,"vendor":3500000},"Brewing Essence":{"ask":170,"bid":165,"vendor":50},"Brewing Tea":{"ask":360,"bid":350,"vendor":20},"Brown Key Fragment":{"ask":1250000,"bid":1200000,"vendor":50000},"Burble Alembic":{"ask":38000,"bid":32000,"vendor":5040},"Burble Boots":{"ask":25000,"bid":21000,"vendor":2880},"Burble Brush":{"ask":42000,"bid":34000,"vendor":5040},"Burble Buckler":{"ask":27500,"bid":24000,"vendor":4320},"Burble Bulwark":{"ask":33000,"bid":31000,"vendor":8640},"Burble Cheese":{"ask":430,"bid":420,"vendor":48},"Burble Chisel":{"ask":42000,"bid":37000,"vendor":5040},"Burble Enhancer":{"ask":42000,"bid":33000,"vendor":5040},"Burble Gauntlets":{"ask":27500,"bid":24500,"vendor":2880},"Burble Hammer":{"ask":39000,"bid":35000,"vendor":5040},"Burble Hatchet":{"ask":35000,"bid":30000,"vendor":5040},"Burble Helmet":{"ask":31000,"bid":27000,"vendor":3600},"Burble Mace":{"ask":50000,"bid":47000,"vendor":6480},"Burble Milk":{"ask":155,"bid":150,"vendor":12},"Burble Needle":{"ask":46000,"bid":39000,"vendor":5040},"Burble Plate Body":{"ask":46000,"bid":41000,"vendor":5760},"Burble Plate Legs":{"ask":43000,"bid":39000,"vendor":5040},"Burble Pot":{"ask":44000,"bid":32000,"vendor":5040},"Burble Shears":{"ask":39000,"bid":35000,"vendor":5040},"Burble Spatula":{"ask":44000,"bid":38000,"vendor":5040},"Burble Spear":{"ask":52000,"bid":47000,"vendor":6480},"Burble Sword":{"ask":56000,"bid":49000,"vendor":6480},"Burble Tea Leaf":{"ask":37,"bid":36,"vendor":24},"Burning Key Fragment":{"ask":2350000,"bid":2300000,"vendor":80000},"Butter Of Proficiency":{"ask":10000000,"bid":9800000,"vendor":100000},"Catalyst Of Coinification":{"ask":2650,"bid":2600,"vendor":500},"Catalyst Of Decomposition":{"ask":2950,"bid":2850,"vendor":500},"Catalyst Of Transmutation":{"ask":7000,"bid":6800,"vendor":500},"Catalytic Tea":{"ask":1450,"bid":1400,"vendor":120},"Cedar Bow":{"ask":45000,"bid":36000,"vendor":3456},"Cedar Crossbow":{"ask":27500,"bid":26000,"vendor":2592},"Cedar Fire Staff":{"ask":30000,"bid":27000,"vendor":2592},"Cedar Log":{"ask":52,"bid":49,"vendor":8},"Cedar Lumber":{"ask":430,"bid":410,"vendor":32},"Cedar Nature Staff":{"ask":31000,"bid":25000,"vendor":2592},"Cedar Shield":{"ask":19500,"bid":15000,"vendor":1728},"Cedar Water Staff":{"ask":30000,"bid":24500,"vendor":2592},"Celestial Alembic":{"ask":-1,"bid":56000000,"vendor":5000000},"Celestial Brush":{"ask":260000000,"bid":170000000,"vendor":5000000},"Celestial Chisel":{"ask":-1,"bid":170000000,"vendor":5000000},"Celestial Enhancer":{"ask":-1,"bid":290000000,"vendor":5000000},"Celestial Hammer":{"ask":-1,"bid":155000000,"vendor":5000000},"Celestial Hatchet":{"ask":-1,"bid":125000000,"vendor":5000000},"Celestial Needle":{"ask":-1,"bid":110000000,"vendor":5000000},"Celestial Pot":{"ask":-1,"bid":22000000,"vendor":5000000},"Celestial Shears":{"ask":-1,"bid":175000000,"vendor":5000000},"Celestial Spatula":{"ask":-1,"bid":155000000,"vendor":5000000},"Centaur Boots":{"ask":940000,"bid":900000,"vendor":50000},"Centaur Hoof":{"ask":170000,"bid":165000,"vendor":5000},"Channeling Coffee":{"ask":1850,"bid":1800,"vendor":80},"Chaotic Chain":{"ask":15000000,"bid":14500000,"vendor":100000},"Chaotic Flail":{"ask":-1,"bid":290000000,"vendor":5000000},"Cheese":{"ask":255,"bid":250,"vendor":8},"Cheese Alembic":{"ask":3600,"bid":2400,"vendor":112},"Cheese Boots":{"ask":2050,"bid":2000,"vendor":64},"Cheese Brush":{"ask":3400,"bid":2800,"vendor":112},"Cheese Buckler":{"ask":1650,"bid":1450,"vendor":96},"Cheese Bulwark":{"ask":3600,"bid":3000,"vendor":192},"Cheese Chisel":{"ask":3700,"bid":3100,"vendor":112},"Cheese Enhancer":{"ask":3200,"bid":2050,"vendor":112},"Cheese Gauntlets":{"ask":2100,"bid":2000,"vendor":64},"Cheese Hammer":{"ask":3700,"bid":2850,"vendor":112},"Cheese Hatchet":{"ask":3700,"bid":3200,"vendor":112},"Cheese Helmet":{"ask":2900,"bid":2700,"vendor":80},"Cheese Mace":{"ask":4200,"bid":3500,"vendor":144},"Cheese Needle":{"ask":3600,"bid":3000,"vendor":112},"Cheese Plate Body":{"ask":4200,"bid":3300,"vendor":128},"Cheese Plate Legs":{"ask":3800,"bid":3500,"vendor":112},"Cheese Pot":{"ask":3600,"bid":3100,"vendor":112},"Cheese Shears":{"ask":3500,"bid":2600,"vendor":112},"Cheese Spatula":{"ask":4400,"bid":2350,"vendor":112},"Cheese Spear":{"ask":4700,"bid":4500,"vendor":144},"Cheese Sword":{"ask":4800,"bid":4200,"vendor":144},"Cheesemaker's Bottoms":{"ask":-1,"bid":90000000,"vendor":3500000},"Cheesemaker's Top":{"ask":-1,"bid":-1,"vendor":3500000},"Cheesesmithing Essence":{"ask":220,"bid":210,"vendor":50},"Cheesesmithing Tea":{"ask":490,"bid":460,"vendor":40},"Chef's Bottoms":{"ask":-1,"bid":100000000,"vendor":3500000},"Chef's Top":{"ask":200000000,"bid":72000000,"vendor":3500000},"Chimerical Chest":{"ask":-1,"bid":-1,"vendor":0},"Chimerical Chest Key":{"ask":3100000,"bid":3000000,"vendor":200000},"Chimerical Entry Key":{"ask":280000,"bid":275000,"vendor":20000},"Chimerical Essence":{"ask":580,"bid":560,"vendor":200},"Chimerical Quiver":{"ask":-1,"bid":-1,"vendor":100000},"Chimerical Token":{"ask":-1,"bid":-1,"vendor":0},"Chrono Gloves":{"ask":11000000,"bid":9400000,"vendor":200000},"Chrono Sphere":{"ask":1100000,"bid":1050000,"vendor":10000},"Cleave":{"ask":28500,"bid":27000,"vendor":1000},"Cocoon":{"ask":115,"bid":110,"vendor":20},"Coin":{"ask":-1,"bid":-1,"vendor":0},"Collector's Boots":{"ask":4100000,"bid":4000000,"vendor":200000},"Colossus Core":{"ask":1200000,"bid":1150000,"vendor":20000},"Colossus Plate Body":{"ask":12000000,"bid":9800000,"vendor":400000},"Colossus Plate Legs":{"ask":9200000,"bid":6600000,"vendor":320000},"Cooking Essence":{"ask":200,"bid":195,"vendor":50},"Cooking Tea":{"ask":420,"bid":410,"vendor":20},"Corsair Crest":{"ask":12500000,"bid":12000000,"vendor":40000},"Corsair Helmet":{"ask":125000000,"bid":120000000,"vendor":3500000},"Cotton":{"ask":48,"bid":46,"vendor":2},"Cotton Boots":{"ask":2150,"bid":2050,"vendor":64},"Cotton Fabric":{"ask":250,"bid":245,"vendor":8},"Cotton Gloves":{"ask":2100,"bid":2050,"vendor":64},"Cotton Hat":{"ask":2650,"bid":1850,"vendor":80},"Cotton Robe Bottoms":{"ask":3900,"bid":3100,"vendor":112},"Cotton Robe Top":{"ask":2200,"bid":1600,"vendor":128},"Cowbell":{"ask":-1,"bid":-1,"vendor":0},"Crab Pincer":{"ask":13500,"bid":8800,"vendor":1500},"Crafter's Bottoms":{"ask":-1,"bid":30000000,"vendor":3500000},"Crafter's Top":{"ask":-1,"bid":70000000,"vendor":3500000},"Crafting Essence":{"ask":205,"bid":200,"vendor":50},"Crafting Tea":{"ask":360,"bid":340,"vendor":40},"Crimson Alembic":{"ask":60000,"bid":58000,"vendor":10752},"Crimson Boots":{"ask":33000,"bid":29000,"vendor":6144},"Crimson Brush":{"ask":66000,"bid":58000,"vendor":10752},"Crimson Buckler":{"ask":66000,"bid":54000,"vendor":9216},"Crimson Bulwark":{"ask":70000,"bid":50000,"vendor":18432},"Crimson Cheese":{"ask":470,"bid":460,"vendor":64},"Crimson Chisel":{"ask":76000,"bid":66000,"vendor":10752},"Crimson Enhancer":{"ask":72000,"bid":64000,"vendor":10752},"Crimson Gauntlets":{"ask":31000,"bid":28500,"vendor":6144},"Crimson Hammer":{"ask":70000,"bid":64000,"vendor":10752},"Crimson Hatchet":{"ask":66000,"bid":64000,"vendor":10752},"Crimson Helmet":{"ask":54000,"bid":48000,"vendor":7680},"Crimson Mace":{"ask":88000,"bid":80000,"vendor":13824},"Crimson Milk":{"ask":190,"bid":180,"vendor":16},"Crimson Needle":{"ask":68000,"bid":60000,"vendor":10752},"Crimson Plate Body":{"ask":78000,"bid":72000,"vendor":12288},"Crimson Plate Legs":{"ask":72000,"bid":50000,"vendor":10752},"Crimson Pot":{"ask":74000,"bid":66000,"vendor":10752},"Crimson Shears":{"ask":72000,"bid":66000,"vendor":10752},"Crimson Spatula":{"ask":90000,"bid":66000,"vendor":10752},"Crimson Spear":{"ask":82000,"bid":74000,"vendor":13824},"Crimson Sword":{"ask":76000,"bid":60000,"vendor":13824},"Crippling Slash":{"ask":68000,"bid":66000,"vendor":1000},"Critical Aura":{"ask":3800000,"bid":3300000,"vendor":10000},"Critical Coffee":{"ask":2400,"bid":2350,"vendor":120},"Crushed Amber":{"ask":1650,"bid":1600,"vendor":300},"Crushed Amethyst":{"ask":2600,"bid":2550,"vendor":400},"Crushed Garnet":{"ask":2600,"bid":2550,"vendor":400},"Crushed Jade":{"ask":2600,"bid":2550,"vendor":400},"Crushed Moonstone":{"ask":2600,"bid":2550,"vendor":500},"Crushed Pearl":{"ask":940,"bid":920,"vendor":200},"Crushed Philosopher's Stone":{"ask":2300000,"bid":2250000,"vendor":50000},"Crushed Sunstone":{"ask":9000,"bid":8800,"vendor":1000},"Cupcake":{"ask":280,"bid":265,"vendor":5},"Cursed Ball":{"ask":8400000,"bid":8000000,"vendor":100000},"Cursed Bow":{"ask":195000000,"bid":160000000,"vendor":5000000},"Dairyhand's Bottoms":{"ask":-1,"bid":24000000,"vendor":3500000},"Dairyhand's Top":{"ask":200000000,"bid":98000000,"vendor":3500000},"Damaged Anchor":{"ask":12000000,"bid":11500000,"vendor":40000},"Dark Key Fragment":{"ask":1950000,"bid":1900000,"vendor":80000},"Defense Coffee":{"ask":340,"bid":310,"vendor":20},"Demonic Core":{"ask":1200000,"bid":1150000,"vendor":20000},"Demonic Plate Body":{"ask":11000000,"bid":6400000,"vendor":400000},"Demonic Plate Legs":{"ask":10000000,"bid":8000000,"vendor":320000},"Dodocamel Gauntlets":{"ask":56000000,"bid":48000000,"vendor":3000000},"Dodocamel Plume":{"ask":8000000,"bid":7800000,"vendor":40000},"Donut":{"ask":145,"bid":130,"vendor":5},"Dragon Fruit":{"ask":165,"bid":160,"vendor":18},"Dragon Fruit Gummy":{"ask":640,"bid":620,"vendor":50},"Dragon Fruit Yogurt":{"ask":780,"bid":740,"vendor":50},"Earrings Of Armor":{"ask":6800000,"bid":5800000,"vendor":30000},"Earrings Of Critical Strike":{"ask":9600000,"bid":8400000,"vendor":100000},"Earrings Of Essence Find":{"ask":7000000,"bid":5400000,"vendor":20000},"Earrings Of Gathering":{"ask":7400000,"bid":7000000,"vendor":10000},"Earrings Of Rare Find":{"ask":8000000,"bid":7600000,"vendor":40000},"Earrings Of Regeneration":{"ask":8000000,"bid":7600000,"vendor":30000},"Earrings Of Resistance":{"ask":6600000,"bid":5600000,"vendor":30000},"Efficiency Tea":{"ask":900,"bid":860,"vendor":80},"Egg":{"ask":31,"bid":29,"vendor":1},"Elemental Affinity":{"ask":255000,"bid":250000,"vendor":1000},"Elusiveness":{"ask":49000,"bid":48000,"vendor":1000},"Emp Tea Leaf":{"ask":290,"bid":285,"vendor":80},"Enchanted Chest":{"ask":-1,"bid":-1,"vendor":0},"Enchanted Chest Key":{"ask":6400000,"bid":6200000,"vendor":500000},"Enchanted Cloak":{"ask":-1,"bid":-1,"vendor":100000},"Enchanted Entry Key":{"ask":460000,"bid":450000,"vendor":50000},"Enchanted Essence":{"ask":1700,"bid":1650,"vendor":500},"Enchanted Gloves":{"ask":11500000,"bid":8600000,"vendor":200000},"Enchanted Token":{"ask":-1,"bid":-1,"vendor":0},"Enhancer's Bottoms":{"ask":-1,"bid":96000000,"vendor":3500000},"Enhancer's Top":{"ask":-1,"bid":74000000,"vendor":3500000},"Enhancing Essence":{"ask":880,"bid":860,"vendor":50},"Enhancing Tea":{"ask":1050,"bid":980,"vendor":20},"Entangle":{"ask":12500,"bid":12000,"vendor":1000},"Excelsa Coffee Bean":{"ask":480,"bid":460,"vendor":32},"Expert Task Badge":{"ask":-1,"bid":-1,"vendor":1000},"Eye Of The Watcher":{"ask":450000,"bid":440000,"vendor":10000},"Eye Watch":{"ask":4300000,"bid":4100000,"vendor":200000},"Eyessence":{"ask":84,"bid":82,"vendor":36},"Fierce Aura":{"ask":8400000,"bid":8000000,"vendor":10000},"Fieriosa Coffee Bean":{"ask":450,"bid":440,"vendor":48},"Fighter Necklace":{"ask":13500000,"bid":11500000,"vendor":45000},"Fireball":{"ask":10000,"bid":9800,"vendor":1000},"Firestorm":{"ask":300000,"bid":295000,"vendor":1000},"Flame Arrow":{"ask":26500,"bid":26000,"vendor":1000},"Flame Aura":{"ask":2950000,"bid":2200000,"vendor":10000},"Flame Blast":{"ask":56000,"bid":54000,"vendor":1000},"Flaming Cloth":{"ask":64000,"bid":62000,"vendor":4000},"Flaming Robe Bottoms":{"ask":265000,"bid":220000,"vendor":40000},"Flaming Robe Top":{"ask":360000,"bid":310000,"vendor":60000},"Flax":{"ask":66,"bid":64,"vendor":6},"Fluffy Red Hat":{"ask":6000000,"bid":5600000,"vendor":200000},"Forager's Bottoms":{"ask":-1,"bid":16000000,"vendor":3500000},"Forager's Top":{"ask":-1,"bid":110000000,"vendor":3500000},"Foraging Essence":{"ask":170,"bid":165,"vendor":50},"Foraging Tea":{"ask":360,"bid":310,"vendor":10},"Fracturing Impact":{"ask":165000,"bid":160000,"vendor":1000},"Frenzy":{"ask":220000,"bid":215000,"vendor":1000},"Frost Sphere":{"ask":620000,"bid":600000,"vendor":10000},"Frost Staff":{"ask":12500000,"bid":10500000,"vendor":400000},"Frost Surge":{"ask":470000,"bid":460000,"vendor":1000},"Furious Spear":{"ask":330000000,"bid":310000000,"vendor":5000000},"Garnet":{"ask":42000,"bid":41000,"vendor":8000},"Gathering Tea":{"ask":350,"bid":340,"vendor":10},"Gator Vest":{"ask":18000,"bid":17500,"vendor":5000},"Giant Pouch":{"ask":6000000,"bid":5800000,"vendor":1000000},"Ginkgo Bow":{"ask":100000,"bid":98000,"vendor":18432},"Ginkgo Crossbow":{"ask":82000,"bid":74000,"vendor":13824},"Ginkgo Fire Staff":{"ask":76000,"bid":72000,"vendor":13824},"Ginkgo Log":{"ask":31,"bid":28,"vendor":16},"Ginkgo Lumber":{"ask":460,"bid":450,"vendor":64},"Ginkgo Nature Staff":{"ask":78000,"bid":74000,"vendor":13824},"Ginkgo Shield":{"ask":45000,"bid":43000,"vendor":9216},"Ginkgo Water Staff":{"ask":90000,"bid":82000,"vendor":13824},"Gluttonous Energy":{"ask":10500000,"bid":9400000,"vendor":200000},"Gluttonous Pouch":{"ask":165000000,"bid":74000000,"vendor":5000000},"Gobo Boomstick":{"ask":82000,"bid":80000,"vendor":20000},"Gobo Boots":{"ask":25500,"bid":21500,"vendor":2496},"Gobo Bracers":{"ask":27500,"bid":22500,"vendor":2496},"Gobo Chaps":{"ask":50000,"bid":33000,"vendor":4368},"Gobo Defender":{"ask":420000,"bid":410000,"vendor":100000},"Gobo Essence":{"ask":46,"bid":45,"vendor":24},"Gobo Hide":{"ask":15,"bid":14,"vendor":12},"Gobo Hood":{"ask":25500,"bid":23500,"vendor":3120},"Gobo Leather":{"ask":520,"bid":500,"vendor":48},"Gobo Rag":{"ask":430000,"bid":420000,"vendor":10000},"Gobo Shooter":{"ask":82000,"bid":80000,"vendor":20000},"Gobo Slasher":{"ask":82000,"bid":80000,"vendor":20000},"Gobo Smasher":{"ask":82000,"bid":80000,"vendor":20000},"Gobo Stabber":{"ask":82000,"bid":80000,"vendor":20000},"Gobo Tunic":{"ask":31000,"bid":26500,"vendor":4992},"Goggles":{"ask":90000,"bid":84000,"vendor":10000},"Golem Essence":{"ask":330,"bid":320,"vendor":108},"Gourmet Tea":{"ask":470,"bid":460,"vendor":20},"Granite Bludgeon":{"ask":15000000,"bid":-1,"vendor":500000},"Green Key Fragment":{"ask":600000,"bid":580000,"vendor":30000},"Green Tea Leaf":{"ask":12,"bid":10,"vendor":8},"Griffin Bulwark":{"ask":150000000,"bid":140000000,"vendor":5000000},"Griffin Chaps":{"ask":7800000,"bid":7000000,"vendor":320000},"Griffin Leather":{"ask":960000,"bid":940000,"vendor":10000},"Griffin Talon":{"ask":5200000,"bid":5000000,"vendor":100000},"Griffin Tunic":{"ask":9200000,"bid":8400000,"vendor":400000},"Grizzly Bear Fluff":{"ask":94000,"bid":92000,"vendor":5000},"Grizzly Bear Shoes":{"ask":490000,"bid":450000,"vendor":60000},"Gummy":{"ask":170,"bid":150,"vendor":5},"Guzzling Energy":{"ask":17500000,"bid":17000000,"vendor":200000},"Guzzling Pouch":{"ask":225000000,"bid":210000000,"vendor":5000000},"Heal":{"ask":28500,"bid":28000,"vendor":1000},"Holy Alembic":{"ask":330000,"bid":320000,"vendor":61600},"Holy Boots":{"ask":185000,"bid":150000,"vendor":35200},"Holy Brush":{"ask":310000,"bid":300000,"vendor":61600},"Holy Buckler":{"ask":290000,"bid":275000,"vendor":52800},"Holy Bulwark":{"ask":470000,"bid":450000,"vendor":105600},"Holy Cheese":{"ask":1550,"bid":1500,"vendor":160},"Holy Chisel":{"ask":320000,"bid":310000,"vendor":61600},"Holy Enhancer":{"ask":320000,"bid":310000,"vendor":61600},"Holy Gauntlets":{"ask":200000,"bid":180000,"vendor":35200},"Holy Hammer":{"ask":320000,"bid":300000,"vendor":61600},"Holy Hatchet":{"ask":310000,"bid":300000,"vendor":61600},"Holy Helmet":{"ask":240000,"bid":230000,"vendor":44000},"Holy Mace":{"ask":390000,"bid":380000,"vendor":79200},"Holy Milk":{"ask":380,"bid":370,"vendor":40},"Holy Needle":{"ask":330000,"bid":320000,"vendor":61600},"Holy Plate Body":{"ask":370000,"bid":360000,"vendor":70400},"Holy Plate Legs":{"ask":340000,"bid":320000,"vendor":61600},"Holy Pot":{"ask":340000,"bid":330000,"vendor":61600},"Holy Shears":{"ask":320000,"bid":310000,"vendor":61600},"Holy Spatula":{"ask":330000,"bid":320000,"vendor":61600},"Holy Spear":{"ask":360000,"bid":350000,"vendor":79200},"Holy Sword":{"ask":390000,"bid":380000,"vendor":79200},"Ice Spear":{"ask":27000,"bid":26500,"vendor":1000},"Icy Cloth":{"ask":62000,"bid":60000,"vendor":4000},"Icy Robe Bottoms":{"ask":230000,"bid":150000,"vendor":40000},"Icy Robe Top":{"ask":280000,"bid":195000,"vendor":60000},"Impale":{"ask":27000,"bid":26500,"vendor":1000},"Infernal Battlestaff":{"ask":58000000,"bid":23500000,"vendor":400000},"Infernal Ember":{"ask":1300000,"bid":1250000,"vendor":10000},"Insanity":{"ask":3500000,"bid":3400000,"vendor":10000},"Intelligence Coffee":{"ask":370,"bid":350,"vendor":10},"Invincible":{"ask":2650000,"bid":2600000,"vendor":10000},"Jackalope Antler":{"ask":3500000,"bid":3400000,"vendor":10000},"Jackalope Staff":{"ask":64000000,"bid":60000000,"vendor":400000},"Jade":{"ask":42000,"bid":41000,"vendor":8000},"Jungle Essence":{"ask":66,"bid":64,"vendor":24},"Knight's Aegis":{"ask":110000000,"bid":100000000,"vendor":4000000},"Knight's Ingot":{"ask":11000000,"bid":10500000,"vendor":40000},"Kraken Chaps":{"ask":125000000,"bid":110000000,"vendor":4000000},"Kraken Fang":{"ask":21000000,"bid":20500000,"vendor":100000},"Kraken Leather":{"ask":14000000,"bid":13500000,"vendor":40000},"Kraken Tunic":{"ask":155000000,"bid":135000000,"vendor":4500000},"Large Artisan's Crate":{"ask":-1,"bid":-1,"vendor":0},"Large Meteorite Cache":{"ask":-1,"bid":-1,"vendor":0},"Large Pouch":{"ask":540000,"bid":520000,"vendor":100000},"Large Treasure Chest":{"ask":-1,"bid":-1,"vendor":0},"Liberica Coffee Bean":{"ask":340,"bid":330,"vendor":24},"Life Drain":{"ask":100000,"bid":96000,"vendor":1000},"Linen Boots":{"ask":8800,"bid":6400,"vendor":576},"Linen Fabric":{"ask":330,"bid":320,"vendor":24},"Linen Gloves":{"ask":7800,"bid":5800,"vendor":576},"Linen Hat":{"ask":10500,"bid":9400,"vendor":720},"Linen Robe Bottoms":{"ask":15000,"bid":11500,"vendor":1008},"Linen Robe Top":{"ask":17000,"bid":14000,"vendor":1152},"Living Granite":{"ask":720000,"bid":700000,"vendor":10000},"Log":{"ask":31,"bid":29,"vendor":2},"Lucky Coffee":{"ask":1400,"bid":1300,"vendor":60},"Lumber":{"ask":205,"bid":200,"vendor":8},"Lumberjack's Bottoms":{"ask":-1,"bid":17000000,"vendor":3500000},"Lumberjack's Top":{"ask":-1,"bid":26500000,"vendor":3500000},"Luna Robe Bottoms":{"ask":1350000,"bid":1300000,"vendor":80000},"Luna Robe Top":{"ask":1900000,"bid":1750000,"vendor":100000},"Luna Wing":{"ask":205000,"bid":200000,"vendor":5000},"Maelstrom Plate Body":{"ask":135000000,"bid":125000000,"vendor":4500000},"Maelstrom Plate Legs":{"ask":110000000,"bid":105000000,"vendor":4000000},"Maelstrom Plating":{"ask":13000000,"bid":12500000,"vendor":40000},"Magic Coffee":{"ask":700,"bid":680,"vendor":40},"Magician's Cloth":{"ask":9800000,"bid":9600000,"vendor":40000},"Magician's Hat":{"ask":98000000,"bid":96000000,"vendor":3500000},"Magnet":{"ask":340000,"bid":330000,"vendor":10000},"Magnetic Gloves":{"ask":3300000,"bid":3100000,"vendor":300000},"Magnifying Glass":{"ask":260000,"bid":255000,"vendor":10000},"Maim":{"ask":170000,"bid":165000,"vendor":1000},"Mana Spring":{"ask":225000,"bid":215000,"vendor":1000},"Manticore Shield":{"ask":26500000,"bid":23500000,"vendor":400000},"Manticore Sting":{"ask":2850000,"bid":2750000,"vendor":10000},"Marine Chaps":{"ask":430000,"bid":410000,"vendor":48000},"Marine Scale":{"ask":74000,"bid":72000,"vendor":2000},"Marine Tunic":{"ask":560000,"bid":500000,"vendor":60000},"Marksman Bracers":{"ask":120000000,"bid":115000000,"vendor":3000000},"Marksman Brooch":{"ask":13000000,"bid":12500000,"vendor":40000},"Marsberry":{"ask":88,"bid":84,"vendor":12},"Marsberry Cake":{"ask":840,"bid":820,"vendor":50},"Marsberry Donut":{"ask":680,"bid":640,"vendor":50},"Medium Artisan's Crate":{"ask":-1,"bid":-1,"vendor":0},"Medium Meteorite Cache":{"ask":-1,"bid":-1,"vendor":0},"Medium Pouch":{"ask":78000,"bid":76000,"vendor":10000},"Medium Treasure Chest":{"ask":-1,"bid":-1,"vendor":0},"Milk":{"ask":54,"bid":52,"vendor":2},"Milking Essence":{"ask":185,"bid":180,"vendor":50},"Milking Tea":{"ask":350,"bid":320,"vendor":10},"Minor Heal":{"ask":3600,"bid":3400,"vendor":1000},"Mirror Of Protection":{"ask":11500000,"bid":11000000,"vendor":200000},"Mooberry":{"ask":110,"bid":105,"vendor":8},"Mooberry Cake":{"ask":680,"bid":660,"vendor":40},"Mooberry Donut":{"ask":500,"bid":480,"vendor":40},"Moolong Tea Leaf":{"ask":33,"bid":32,"vendor":32},"Moonstone":{"ask":62000,"bid":60000,"vendor":10000},"Nature's Veil":{"ask":660000,"bid":640000,"vendor":1000},"Necklace Of Efficiency":{"ask":13500000,"bid":11500000,"vendor":30000},"Necklace Of Speed":{"ask":15500000,"bid":15000000,"vendor":150000},"Necklace Of Wisdom":{"ask":13500000,"bid":12500000,"vendor":60000},"Orange":{"ask":9,"bid":7,"vendor":6},"Orange Gummy":{"ask":56,"bid":50,"vendor":20},"Orange Key Fragment":{"ask":1150000,"bid":1100000,"vendor":50000},"Orange Yogurt":{"ask":360,"bid":350,"vendor":20},"Panda Fluff":{"ask":94000,"bid":92000,"vendor":5000},"Panda Gloves":{"ask":500000,"bid":440000,"vendor":60000},"Peach":{"ask":115,"bid":110,"vendor":12},"Peach Gummy":{"ask":440,"bid":430,"vendor":40},"Peach Yogurt":{"ask":640,"bid":600,"vendor":40},"Pearl":{"ask":15000,"bid":14500,"vendor":4000},"Penetrating Shot":{"ask":330000,"bid":320000,"vendor":1000},"Penetrating Strike":{"ask":70000,"bid":66000,"vendor":1000},"Pestilent Shot":{"ask":66000,"bid":64000,"vendor":1000},"Philosopher's Earrings":{"ask":-1,"bid":660000000,"vendor":12000000},"Philosopher's Necklace":{"ask":-1,"bid":450000000,"vendor":12000000},"Philosopher's Ring":{"ask":-1,"bid":680000000,"vendor":12000000},"Philosopher's Stone":{"ask":680000000,"bid":640000000,"vendor":10000000},"Pincer Gloves":{"ask":22500,"bid":21500,"vendor":6000},"Pirate Chest":{"ask":-1,"bid":-1,"vendor":0},"Pirate Chest Key":{"ask":7200000,"bid":7000000,"vendor":600000},"Pirate Entry Key":{"ask":480000,"bid":470000,"vendor":60000},"Pirate Essence":{"ask":2050,"bid":2000,"vendor":600},"Pirate Token":{"ask":-1,"bid":-1,"vendor":0},"Plum":{"ask":100,"bid":98,"vendor":9},"Plum Gummy":{"ask":215,"bid":210,"vendor":30},"Plum Yogurt":{"ask":540,"bid":520,"vendor":30},"Poke":{"ask":3300,"bid":3100,"vendor":1000},"Polar Bear Fluff":{"ask":96000,"bid":92000,"vendor":5000},"Polar Bear Shoes":{"ask":500000,"bid":300000,"vendor":60000},"Power Coffee":{"ask":640,"bid":620,"vendor":40},"Precision":{"ask":68000,"bid":66000,"vendor":1000},"Prime Catalyst":{"ask":86000,"bid":84000,"vendor":5000},"Processing Tea":{"ask":1250,"bid":1200,"vendor":60},"Provoke":{"ask":50000,"bid":48000,"vendor":1000},"Puncture":{"ask":165000,"bid":160000,"vendor":1000},"Purple Key Fragment":{"ask":760000,"bid":740000,"vendor":30000},"Purpleheart Bow":{"ask":64000,"bid":62000,"vendor":8640},"Purpleheart Crossbow":{"ask":41000,"bid":38000,"vendor":6480},"Purpleheart Fire Staff":{"ask":48000,"bid":43000,"vendor":6480},"Purpleheart Log":{"ask":37,"bid":35,"vendor":12},"Purpleheart Lumber":{"ask":420,"bid":400,"vendor":48},"Purpleheart Nature Staff":{"ask":52000,"bid":47000,"vendor":6480},"Purpleheart Shield":{"ask":43000,"bid":35000,"vendor":4320},"Purpleheart Water Staff":{"ask":49000,"bid":43000,"vendor":6480},"Purple's Gift":{"ask":-1,"bid":-1,"vendor":0},"Quick Aid":{"ask":340000,"bid":310000,"vendor":1000},"Quick Shot":{"ask":3100,"bid":3000,"vendor":1000},"Radiant Boots":{"ask":110000,"bid":105000,"vendor":22016},"Radiant Fabric":{"ask":1650,"bid":1600,"vendor":128},"Radiant Fiber":{"ask":340,"bid":320,"vendor":32},"Radiant Gloves":{"ask":115000,"bid":105000,"vendor":22016},"Radiant Hat":{"ask":220000,"bid":215000,"vendor":27520},"Radiant Robe Bottoms":{"ask":310000,"bid":295000,"vendor":38528},"Radiant Robe Top":{"ask":350000,"bid":340000,"vendor":44032},"Rain Of Arrows":{"ask":150000,"bid":145000,"vendor":1000},"Rainbow Alembic":{"ask":135000,"bid":125000,"vendor":24864},"Rainbow Boots":{"ask":74000,"bid":62000,"vendor":14208},"Rainbow Brush":{"ask":125000,"bid":120000,"vendor":24864},"Rainbow Buckler":{"ask":120000,"bid":110000,"vendor":21312},"Rainbow Bulwark":{"ask":175000,"bid":170000,"vendor":42624},"Rainbow Cheese":{"ask":680,"bid":660,"vendor":96},"Rainbow Chisel":{"ask":130000,"bid":125000,"vendor":24864},"Rainbow Enhancer":{"ask":130000,"bid":125000,"vendor":24864},"Rainbow Gauntlets":{"ask":68000,"bid":60000,"vendor":14208},"Rainbow Hammer":{"ask":130000,"bid":120000,"vendor":24864},"Rainbow Hatchet":{"ask":130000,"bid":120000,"vendor":24864},"Rainbow Helmet":{"ask":110000,"bid":94000,"vendor":17760},"Rainbow Mace":{"ask":190000,"bid":145000,"vendor":31968},"Rainbow Milk":{"ask":225,"bid":215,"vendor":24},"Rainbow Needle":{"ask":130000,"bid":125000,"vendor":24864},"Rainbow Plate Body":{"ask":160000,"bid":140000,"vendor":28416},"Rainbow Plate Legs":{"ask":155000,"bid":135000,"vendor":24864},"Rainbow Pot":{"ask":130000,"bid":125000,"vendor":24864},"Rainbow Shears":{"ask":125000,"bid":115000,"vendor":24864},"Rainbow Spatula":{"ask":140000,"bid":125000,"vendor":24864},"Rainbow Spear":{"ask":145000,"bid":135000,"vendor":31968},"Rainbow Sword":{"ask":150000,"bid":135000,"vendor":31968},"Ranged Coffee":{"ask":620,"bid":600,"vendor":40},"Ranger Necklace":{"ask":12000000,"bid":9000000,"vendor":45000},"Red Culinary Hat":{"ask":6000000,"bid":5800000,"vendor":200000},"Red Panda Fluff":{"ask":620000,"bid":600000,"vendor":10000},"Red Tea Leaf":{"ask":50,"bid":48,"vendor":48},"Redwood Bow":{"ask":190000,"bid":185000,"vendor":42624},"Redwood Crossbow":{"ask":150000,"bid":140000,"vendor":31968},"Redwood Fire Staff":{"ask":155000,"bid":140000,"vendor":31968},"Redwood Log":{"ask":39,"bid":38,"vendor":24},"Redwood Lumber":{"ask":580,"bid":560,"vendor":96},"Redwood Nature Staff":{"ask":165000,"bid":145000,"vendor":31968},"Redwood Shield":{"ask":88000,"bid":84000,"vendor":21312},"Redwood Water Staff":{"ask":150000,"bid":140000,"vendor":31968},"Regal Jewel":{"ask":17000000,"bid":16500000,"vendor":100000},"Regal Sword":{"ask":-1,"bid":330000000,"vendor":5000000},"Rejuvenate":{"ask":310000,"bid":300000,"vendor":1000},"Reptile Boots":{"ask":9200,"bid":4400,"vendor":576},"Reptile Bracers":{"ask":7400,"bid":6600,"vendor":576},"Reptile Chaps":{"ask":12000,"bid":9600,"vendor":1008},"Reptile Hide":{"ask":9,"bid":8,"vendor":6},"Reptile Hood":{"ask":8400,"bid":5400,"vendor":720},"Reptile Leather":{"ask":285,"bid":260,"vendor":24},"Reptile Tunic":{"ask":15000,"bid":12000,"vendor":1152},"Revenant Anima":{"ask":1200000,"bid":1150000,"vendor":20000},"Revenant Chaps":{"ask":8600000,"bid":8000000,"vendor":320000},"Revenant Tunic":{"ask":10500000,"bid":8800000,"vendor":400000},"Revive":{"ask":2700000,"bid":2600000,"vendor":10000},"Ring Of Armor":{"ask":6800000,"bid":6000000,"vendor":30000},"Ring Of Critical Strike":{"ask":9400000,"bid":8400000,"vendor":100000},"Ring Of Essence Find":{"ask":7800000,"bid":5800000,"vendor":20000},"Ring Of Gathering":{"ask":7200000,"bid":6200000,"vendor":10000},"Ring Of Rare Find":{"ask":8200000,"bid":7600000,"vendor":40000},"Ring Of Regeneration":{"ask":8000000,"bid":7600000,"vendor":30000},"Ring Of Resistance":{"ask":6800000,"bid":6000000,"vendor":30000},"Rippling Trident":{"ask":-1,"bid":330000000,"vendor":5000000},"Robusta Coffee Bean":{"ask":125,"bid":115,"vendor":16},"Rough Boots":{"ask":2050,"bid":2000,"vendor":64},"Rough Bracers":{"ask":2150,"bid":2000,"vendor":64},"Rough Chaps":{"ask":3800,"bid":2700,"vendor":112},"Rough Hide":{"ask":44,"bid":42,"vendor":2},"Rough Hood":{"ask":2350,"bid":1850,"vendor":80},"Rough Leather":{"ask":260,"bid":250,"vendor":8},"Rough Tunic":{"ask":2800,"bid":1950,"vendor":128},"Royal Cloth":{"ask":11500000,"bid":11000000,"vendor":40000},"Royal Fire Robe Bottoms":{"ask":98000000,"bid":90000000,"vendor":4000000},"Royal Fire Robe Top":{"ask":115000000,"bid":105000000,"vendor":4500000},"Royal Nature Robe Bottoms":{"ask":92000000,"bid":86000000,"vendor":4000000},"Royal Nature Robe Top":{"ask":105000000,"bid":82000000,"vendor":4500000},"Royal Water Robe Bottoms":{"ask":96000000,"bid":80000000,"vendor":4000000},"Royal Water Robe Top":{"ask":115000000,"bid":100000000,"vendor":4500000},"Scratch":{"ask":3300,"bid":3100,"vendor":1000},"Shard Of Protection":{"ask":66000,"bid":64000,"vendor":800},"Shield Bash":{"ask":68000,"bid":64000,"vendor":1000},"Shoebill Feather":{"ask":78000,"bid":70000,"vendor":1000},"Shoebill Shoes":{"ask":580000,"bid":520000,"vendor":20000},"Sighted Bracers":{"ask":265000,"bid":255000,"vendor":40000},"Silencing Shot":{"ask":165000,"bid":160000,"vendor":1000},"Silk Boots":{"ask":38000,"bid":33000,"vendor":8000},"Silk Fabric":{"ask":900,"bid":880,"vendor":80},"Silk Gloves":{"ask":105000,"bid":33000,"vendor":8000},"Silk Hat":{"ask":74000,"bid":64000,"vendor":10000},"Silk Robe Bottoms":{"ask":105000,"bid":90000,"vendor":14000},"Silk Robe Top":{"ask":120000,"bid":100000,"vendor":16000},"Sinister Cape":{"ask":-1,"bid":-1,"vendor":100000},"Sinister Chest":{"ask":-1,"bid":-1,"vendor":0},"Sinister Chest Key":{"ask":4700000,"bid":4600000,"vendor":300000},"Sinister Entry Key":{"ask":350000,"bid":340000,"vendor":30000},"Sinister Essence":{"ask":980,"bid":960,"vendor":300},"Sinister Token":{"ask":-1,"bid":-1,"vendor":0},"Smack":{"ask":3200,"bid":3100,"vendor":1000},"Small Artisan's Crate":{"ask":-1,"bid":-1,"vendor":0},"Small Meteorite Cache":{"ask":-1,"bid":-1,"vendor":0},"Small Pouch":{"ask":13000,"bid":11500,"vendor":1000},"Small Treasure Chest":{"ask":-1,"bid":-1,"vendor":0},"Smoke Burst":{"ask":80000,"bid":78000,"vendor":1000},"Snail Shell":{"ask":9200,"bid":8200,"vendor":1500},"Snail Shell Helmet":{"ask":22000,"bid":21500,"vendor":6000},"Snake Fang":{"ask":4000,"bid":3900,"vendor":200},"Snake Fang Dirk":{"ask":21500,"bid":17500,"vendor":2000},"Sorcerer Boots":{"ask":700000,"bid":640000,"vendor":50000},"Sorcerer Essence":{"ask":140,"bid":135,"vendor":36},"Sorcerer's Sole":{"ask":130000,"bid":125000,"vendor":5000},"Soul Fragment":{"ask":1650000,"bid":1600000,"vendor":10000},"Soul Hunter Crossbow":{"ask":50000000,"bid":28500000,"vendor":400000},"Spaceberry":{"ask":190,"bid":185,"vendor":20},"Spaceberry Cake":{"ask":1350,"bid":1300,"vendor":75},"Spaceberry Donut":{"ask":920,"bid":900,"vendor":75},"Spacia Coffee Bean":{"ask":680,"bid":660,"vendor":80},"Speed Aura":{"ask":6400000,"bid":5800000,"vendor":10000},"Spike Shell":{"ask":68000,"bid":41000,"vendor":1000},"Spiked Bulwark":{"ask":16500000,"bid":13000000,"vendor":500000},"Stalactite Shard":{"ask":680000,"bid":660000,"vendor":10000},"Stalactite Spear":{"ask":13500000,"bid":10000000,"vendor":500000},"Stamina Coffee":{"ask":430,"bid":330,"vendor":10},"Star Fragment":{"ask":14000,"bid":13500,"vendor":100},"Star Fruit":{"ask":350,"bid":340,"vendor":30},"Star Fruit Gummy":{"ask":880,"bid":860,"vendor":75},"Star Fruit Yogurt":{"ask":1200,"bid":1150,"vendor":75},"Steady Shot":{"ask":165000,"bid":160000,"vendor":1000},"Stone Key Fragment":{"ask":2200000,"bid":2150000,"vendor":80000},"Strawberry":{"ask":46,"bid":44,"vendor":6},"Strawberry Cake":{"ask":580,"bid":560,"vendor":30},"Strawberry Donut":{"ask":390,"bid":380,"vendor":30},"Stunning Blow":{"ask":165000,"bid":160000,"vendor":1000},"Sugar":{"ask":14,"bid":13,"vendor":1},"Sundering Crossbow":{"ask":390000000,"bid":350000000,"vendor":5000000},"Sundering Jewel":{"ask":17000000,"bid":16500000,"vendor":100000},"Sunstone":{"ask":600000,"bid":580000,"vendor":30000},"Super Alchemy Tea":{"ask":3200,"bid":3000,"vendor":80},"Super Attack Coffee":{"ask":2600,"bid":2500,"vendor":80},"Super Brewing Tea":{"ask":2700,"bid":2600,"vendor":80},"Super Cheesesmithing Tea":{"ask":3500,"bid":3400,"vendor":120},"Super Cooking Tea":{"ask":2900,"bid":2550,"vendor":80},"Super Crafting Tea":{"ask":3700,"bid":3300,"vendor":120},"Super Defense Coffee":{"ask":2800,"bid":2700,"vendor":80},"Super Enhancing Tea":{"ask":4800,"bid":4700,"vendor":80},"Super Foraging Tea":{"ask":1950,"bid":1850,"vendor":60},"Super Intelligence Coffee":{"ask":2000,"bid":1950,"vendor":60},"Super Magic Coffee":{"ask":4100,"bid":4000,"vendor":120},"Super Milking Tea":{"ask":1950,"bid":1700,"vendor":60},"Super Power Coffee":{"ask":4000,"bid":3900,"vendor":120},"Super Ranged Coffee":{"ask":4000,"bid":3900,"vendor":120},"Super Stamina Coffee":{"ask":1900,"bid":1850,"vendor":60},"Super Tailoring Tea":{"ask":4200,"bid":3700,"vendor":120},"Super Woodcutting Tea":{"ask":2250,"bid":2200,"vendor":60},"Swamp Essence":{"ask":14,"bid":13,"vendor":8},"Sweep":{"ask":39000,"bid":38000,"vendor":1000},"Swiftness Coffee":{"ask":1800,"bid":1750,"vendor":80},"Sylvan Aura":{"ask":7000000,"bid":6400000,"vendor":10000},"Tailoring Essence":{"ask":155,"bid":150,"vendor":50},"Tailoring Tea":{"ask":580,"bid":540,"vendor":40},"Tailor's Bottoms":{"ask":300000000,"bid":-1,"vendor":3500000},"Tailor's Top":{"ask":-1,"bid":54000000,"vendor":3500000},"Task Crystal":{"ask":-1,"bid":-1,"vendor":1000},"Task Token":{"ask":-1,"bid":-1,"vendor":0},"Taunt":{"ask":68000,"bid":66000,"vendor":1000},"Thread Of Expertise":{"ask":7000000,"bid":6800000,"vendor":100000},"Tome Of Healing":{"ask":39000,"bid":38000,"vendor":10000},"Tome Of The Elements":{"ask":540000,"bid":500000,"vendor":100000},"Toughness":{"ask":68000,"bid":66000,"vendor":1000},"Toxic Pollen":{"ask":130000,"bid":125000,"vendor":1000},"Treant Bark":{"ask":28000,"bid":27500,"vendor":4000},"Treant Shield":{"ask":130000,"bid":125000,"vendor":32000},"Turtle Shell":{"ask":11500,"bid":10500,"vendor":1500},"Turtle Shell Body":{"ask":36000,"bid":35000,"vendor":9000},"Turtle Shell Legs":{"ask":31000,"bid":25000,"vendor":6000},"Twilight Essence":{"ask":330,"bid":320,"vendor":108},"Ultra Alchemy Tea":{"ask":6600,"bid":6000,"vendor":180},"Ultra Attack Coffee":{"ask":10000,"bid":9800,"vendor":180},"Ultra Brewing Tea":{"ask":6000,"bid":5800,"vendor":180},"Ultra Cheesesmithing Tea":{"ask":7200,"bid":7000,"vendor":210},"Ultra Cooking Tea":{"ask":6200,"bid":6000,"vendor":180},"Ultra Crafting Tea":{"ask":7600,"bid":7200,"vendor":210},"Ultra Defense Coffee":{"ask":11000,"bid":10000,"vendor":180},"Ultra Enhancing Tea":{"ask":10500,"bid":10000,"vendor":180},"Ultra Foraging Tea":{"ask":5000,"bid":4500,"vendor":150},"Ultra Intelligence Coffee":{"ask":9800,"bid":9400,"vendor":150},"Ultra Magic Coffee":{"ask":12000,"bid":11500,"vendor":210},"Ultra Milking Tea":{"ask":5400,"bid":4800,"vendor":150},"Ultra Power Coffee":{"ask":12000,"bid":11500,"vendor":210},"Ultra Ranged Coffee":{"ask":12000,"bid":11500,"vendor":210},"Ultra Stamina Coffee":{"ask":9600,"bid":9400,"vendor":150},"Ultra Tailoring Tea":{"ask":7600,"bid":7200,"vendor":210},"Ultra Woodcutting Tea":{"ask":5400,"bid":5000,"vendor":150},"Umbral Boots":{"ask":115000,"bid":92000,"vendor":22016},"Umbral Bracers":{"ask":155000,"bid":150000,"vendor":22016},"Umbral Chaps":{"ask":255000,"bid":240000,"vendor":38528},"Umbral Hide":{"ask":210,"bid":205,"vendor":32},"Umbral Hood":{"ask":190000,"bid":185000,"vendor":27520},"Umbral Leather":{"ask":1450,"bid":1400,"vendor":128},"Umbral Tunic":{"ask":290000,"bid":285000,"vendor":44032},"Vampire Fang":{"ask":680000,"bid":660000,"vendor":10000},"Vampire Fang Dirk":{"ask":-1,"bid":6200000,"vendor":500000},"Vampiric Bow":{"ask":13500000,"bid":10000000,"vendor":400000},"Vampirism":{"ask":52000,"bid":50000,"vendor":1000},"Verdant Alembic":{"ask":10000,"bid":9800,"vendor":560},"Verdant Boots":{"ask":7000,"bid":6600,"vendor":320},"Verdant Brush":{"ask":10500,"bid":10000,"vendor":560},"Verdant Buckler":{"ask":4500,"bid":1100,"vendor":480},"Verdant Bulwark":{"ask":12000,"bid":7800,"vendor":960},"Verdant Cheese":{"ask":400,"bid":380,"vendor":16},"Verdant Chisel":{"ask":11000,"bid":9400,"vendor":560},"Verdant Enhancer":{"ask":10500,"bid":10000,"vendor":560},"Verdant Gauntlets":{"ask":7200,"bid":6200,"vendor":320},"Verdant Hammer":{"ask":10500,"bid":8400,"vendor":560},"Verdant Hatchet":{"ask":9400,"bid":8800,"vendor":560},"Verdant Helmet":{"ask":8600,"bid":7800,"vendor":400},"Verdant Mace":{"ask":14000,"bid":12500,"vendor":720},"Verdant Milk":{"ask":72,"bid":70,"vendor":4},"Verdant Needle":{"ask":10500,"bid":9600,"vendor":560},"Verdant Plate Body":{"ask":13500,"bid":12500,"vendor":640},"Verdant Plate Legs":{"ask":13000,"bid":11500,"vendor":560},"Verdant Pot":{"ask":10500,"bid":8800,"vendor":560},"Verdant Shears":{"ask":10500,"bid":8200,"vendor":560},"Verdant Spatula":{"ask":9800,"bid":9600,"vendor":560},"Verdant Spear":{"ask":25000,"bid":12500,"vendor":720},"Verdant Sword":{"ask":15000,"bid":14500,"vendor":720},"Vision Helmet":{"ask":110000,"bid":96000,"vendor":20000},"Vision Shield":{"ask":270000,"bid":125000,"vendor":20000},"Watchful Relic":{"ask":4400000,"bid":4200000,"vendor":200000},"Water Strike":{"ask":11500,"bid":11000,"vendor":1000},"Werewolf Claw":{"ask":700000,"bid":680000,"vendor":10000},"Werewolf Slasher":{"ask":15500000,"bid":13500000,"vendor":500000},"Wheat":{"ask":36,"bid":35,"vendor":1},"White Key Fragment":{"ask":1300000,"bid":1250000,"vendor":50000},"Wisdom Coffee":{"ask":1150,"bid":1100,"vendor":40},"Wisdom Tea":{"ask":580,"bid":540,"vendor":40},"Wizard Necklace":{"ask":13500000,"bid":11500000,"vendor":45000},"Woodcutting Essence":{"ask":175,"bid":165,"vendor":50},"Woodcutting Tea":{"ask":500,"bid":420,"vendor":10},"Wooden Bow":{"ask":4600,"bid":4000,"vendor":192},"Wooden Crossbow":{"ask":3400,"bid":3200,"vendor":144},"Wooden Fire Staff":{"ask":3400,"bid":3300,"vendor":144},"Wooden Nature Staff":{"ask":3600,"bid":3400,"vendor":144},"Wooden Shield":{"ask":2300,"bid":1900,"vendor":96},"Wooden Water Staff":{"ask":3600,"bid":3300,"vendor":144},"Yogurt":{"ask":160,"bid":155,"vendor":5}},"time":1748607302.628071}`;
  1863.  
  1864. let isUsingExpiredMarketJson = false;
  1865. let reasonForUsingExpiredMarketJson = "";
  1866.  
  1867. let initData_characterSkills = null;
  1868. let initData_characterItems = null;
  1869. let initData_combatAbilities = null;
  1870. let initData_characterHouseRoomMap = null;
  1871. let initData_actionTypeDrinkSlotsMap = null;
  1872. let initData_actionDetailMap = null;
  1873. let initData_levelExperienceTable = null;
  1874. let initData_itemDetailMap = null;
  1875. let initData_actionCategoryDetailMap = null;
  1876. let initData_abilityDetailMap = null;
  1877. let initData_characterAbilities = null;
  1878. let initData_myMarketListings = null;
  1879.  
  1880. let currentActionsHridList = [];
  1881. let currentEquipmentMap = {};
  1882.  
  1883. if (localStorage.getItem("initClientData")) {
  1884. const obj = JSON.parse(localStorage.getItem("initClientData"));
  1885. console.log(obj);
  1886. GM_setValue("init_client_data", localStorage.getItem("initClientData"));
  1887.  
  1888. initData_actionDetailMap = obj.actionDetailMap;
  1889. initData_levelExperienceTable = obj.levelExperienceTable;
  1890. initData_itemDetailMap = obj.itemDetailMap;
  1891. initData_actionCategoryDetailMap = obj.actionCategoryDetailMap;
  1892. initData_abilityDetailMap = obj.abilityDetailMap;
  1893. }
  1894.  
  1895. hookWS();
  1896.  
  1897. fetchMarketJSON(true);
  1898.  
  1899. function hookWS() {
  1900. const dataProperty = Object.getOwnPropertyDescriptor(MessageEvent.prototype, "data");
  1901. const oriGet = dataProperty.get;
  1902.  
  1903. dataProperty.get = hookedGet;
  1904. Object.defineProperty(MessageEvent.prototype, "data", dataProperty);
  1905.  
  1906. function hookedGet() {
  1907. const socket = this.currentTarget;
  1908. if (!(socket instanceof WebSocket)) {
  1909. return oriGet.call(this);
  1910. }
  1911. if (socket.url.indexOf("api.milkywayidle.com/ws") <= -1 && socket.url.indexOf("api-test.milkywayidle.com/ws") <= -1) {
  1912. return oriGet.call(this);
  1913. }
  1914.  
  1915. const message = oriGet.call(this);
  1916. Object.defineProperty(this, "data", { value: message }); // Anti-loop
  1917.  
  1918. return handleMessage(message);
  1919. }
  1920. }
  1921.  
  1922. function handleMessage(message) {
  1923. let obj = JSON.parse(message);
  1924. if (obj && obj.type === "init_character_data") {
  1925. console.log(obj);
  1926. GM_setValue("init_character_data", message);
  1927.  
  1928. initData_characterSkills = obj.characterSkills;
  1929. initData_characterItems = obj.characterItems;
  1930. initData_characterHouseRoomMap = obj.characterHouseRoomMap;
  1931. initData_actionTypeDrinkSlotsMap = obj.actionTypeDrinkSlotsMap;
  1932. initData_characterAbilities = obj.characterAbilities;
  1933. initData_myMarketListings = obj.myMarketListings;
  1934. initData_combatAbilities = obj.combatUnit.combatAbilities;
  1935. currentActionsHridList = [...obj.characterActions];
  1936. if (settingsMap.totalActionTime.isTrue) {
  1937. showTotalActionTime();
  1938. }
  1939. waitForActionPanelParent();
  1940. if (settingsMap.skillbook.isTrue) {
  1941. waitForItemDict();
  1942. }
  1943. if (settingsMap.ThirdPartyLinks.isTrue) {
  1944. add3rdPartyLinks();
  1945. }
  1946. if (settingsMap.networth.isTrue) {
  1947. calculateNetworth();
  1948. }
  1949. for (const item of obj.characterItems) {
  1950. if (item.itemLocationHrid !== "/item_locations/inventory") {
  1951. currentEquipmentMap[item.itemLocationHrid] = item;
  1952. }
  1953. }
  1954. if (settingsMap.checkEquipment.isTrue) {
  1955. checkEquipment();
  1956. }
  1957. if (settingsMap.notifiEmptyAction.isTrue) {
  1958. notificate();
  1959. }
  1960. if (settingsMap.fillMarketOrderPrice.isTrue) {
  1961. waitForMarketOrders();
  1962. }
  1963. } else if (obj && obj.type === "init_client_data") {
  1964. console.log(obj);
  1965. GM_setValue("init_client_data", message);
  1966.  
  1967. initData_actionDetailMap = obj.actionDetailMap;
  1968. initData_levelExperienceTable = obj.levelExperienceTable;
  1969. initData_itemDetailMap = obj.itemDetailMap;
  1970. initData_actionCategoryDetailMap = obj.actionCategoryDetailMap;
  1971. initData_abilityDetailMap = obj.abilityDetailMap;
  1972. } else if (obj && obj.type === "actions_updated") {
  1973. for (const action of obj.endCharacterActions) {
  1974. if (action.isDone === false) {
  1975. currentActionsHridList.push(action);
  1976. } else {
  1977. currentActionsHridList = currentActionsHridList.filter((o) => {
  1978. return o.id !== action.id;
  1979. });
  1980. }
  1981. }
  1982. if (settingsMap.checkEquipment.isTrue) {
  1983. checkEquipment();
  1984. }
  1985. if (settingsMap.notifiEmptyAction.isTrue) {
  1986. setTimeout(notificate, 1000);
  1987. }
  1988. if (settingsMap.showDamage.isTrue) {
  1989. if (currentActionsHridList.length === 0 || !currentActionsHridList[0].actionHrid.startsWith("/actions/combat/")) {
  1990. // Clear damage statistics panel
  1991. players = [];
  1992. monsters = [];
  1993. monstersHP = [];
  1994. playersMP = [];
  1995. startTime = null;
  1996. endTime = null;
  1997. totalDuration = 0;
  1998. totalDamage = new Array(players.length).fill(0);
  1999. monsterCounts = {};
  2000. monsterEvasion = {};
  2001. monsterHrids = {};
  2002. }
  2003. }
  2004. } else if (obj && obj.type === "action_completed") {
  2005. const action = obj.endCharacterAction;
  2006. if (action.isDone === false) {
  2007. for (const a of currentActionsHridList) {
  2008. if (a.id === action.id) {
  2009. a.currentCount = action.currentCount;
  2010. }
  2011. }
  2012. }
  2013. } else if (obj && obj.type === "battle_unit_fetched") {
  2014. if (settingsMap.battlePanel.isTrue) {
  2015. handleBattleSummary(obj);
  2016. }
  2017. } else if (obj && obj.type === "items_updated" && obj.endCharacterItems) {
  2018. for (const item of obj.endCharacterItems) {
  2019. if (item.itemLocationHrid !== "/item_locations/inventory") {
  2020. if (item.count === 0) {
  2021. currentEquipmentMap[item.itemLocationHrid] = null;
  2022. } else {
  2023. currentEquipmentMap[item.itemLocationHrid] = item;
  2024. }
  2025. }
  2026. }
  2027. if (settingsMap.checkEquipment.isTrue) {
  2028. checkEquipment();
  2029. }
  2030. } else if (obj && obj.type === "new_battle") {
  2031. GM_setValue("new_battle", message); // This is the only place to get other party members' equipted consumables.
  2032.  
  2033. if (settingsMap.showDamage.isTrue) {
  2034. if (startTime && endTime) {
  2035. totalDuration += (endTime - startTime) / 1000;
  2036. }
  2037. startTime = Date.now();
  2038. endTime = null;
  2039. monstersHP = obj.monsters.map((monster) => monster.currentHitpoints);
  2040. playersMP = obj.players.map((player) => player.currentManapoints);
  2041. if (!players || players.length === 0) {
  2042. players = obj.players;
  2043. }
  2044. const playerIndices = Object.keys(players);
  2045. playerIndices.forEach((userIndex) => {
  2046. players[userIndex].currentAction = players[userIndex].preparingAbilityHrid
  2047. ? players[userIndex].preparingAbilityHrid
  2048. : players[userIndex].isPreparingAutoAttack
  2049. ? "auto"
  2050. : "idle";
  2051. });
  2052. monsters = obj.monsters;
  2053. if (!totalDamage.length) {
  2054. totalDamage = new Array(players.length).fill(0);
  2055. }
  2056. // Accumulate monster counts and store evasion ratings by combat style
  2057. obj.monsters.forEach((monster) => {
  2058. const name = monster.name;
  2059. monsterHrids[name] = monster.hrid;
  2060. monsterCounts[name] = (monsterCounts[name] || 0) + 1;
  2061. if (!monsterEvasion[name]) {
  2062. monsterEvasion[name] = {};
  2063. }
  2064. players.forEach((player) => {
  2065. if (player.combatDetails && player.combatDetails.combatStats.combatStyleHrids) {
  2066. player.combatDetails.combatStats.combatStyleHrids.forEach((styleHrid) => {
  2067. const style = styleHrid.split("/").pop(); // Get the combat style (e.g., "ranged")
  2068. const evasionRating = monster.combatDetails[`${style}EvasionRating`];
  2069. monsterEvasion[name][player.name + "-" + style] = evasionRating;
  2070. });
  2071. }
  2072. });
  2073. });
  2074. }
  2075. } else if (obj && obj.type === "profile_shared") {
  2076. let profileExportListString = GM_getValue("profile_export_list", null);
  2077. let profileExportList = null;
  2078. // Remove invalid
  2079. // GM_setValue("profile_export_list", JSON.stringify(new Array())); // Remove stored profiles. Only for testing.
  2080. if (profileExportListString) {
  2081. profileExportList = JSON.parse(profileExportListString);
  2082. if (!profileExportList || !profileExportList.filter) {
  2083. console.error("Found invalid profileExportList in store. profileExportList cleared.");
  2084. GM_setValue("profile_export_list", JSON.stringify(new Array()));
  2085. }
  2086. } else {
  2087. GM_setValue("profile_export_list", JSON.stringify(new Array()));
  2088. }
  2089.  
  2090. obj.characterID = obj.profile.characterSkills[0].characterID;
  2091. obj.characterName = obj.profile.sharableCharacter.name;
  2092. obj.timestamp = Date.now();
  2093.  
  2094. profileExportListString = GM_getValue("profile_export_list", null) || JSON.stringify(new Array());
  2095. profileExportList = JSON.parse(profileExportListString);
  2096. profileExportList = profileExportList.filter((item) => item.characterID !== obj.characterID);
  2097. profileExportList.unshift(obj);
  2098. if (profileExportList.length > 20) {
  2099. profileExportList.pop();
  2100. }
  2101. // console.log(profileExportList);
  2102. GM_setValue("profile_export_list", JSON.stringify(profileExportList));
  2103.  
  2104. addExportButton(obj);
  2105.  
  2106. if (settingsMap.profileBuildScore.isTrue) {
  2107. showBuildScoreOnProfile(obj);
  2108. }
  2109. } else if (obj && obj.type === "battle_updated" && monstersHP.length) {
  2110. if (settingsMap.showDamage.isTrue) {
  2111. const mMap = obj.mMap;
  2112. const pMap = obj.pMap;
  2113. const playerIndices = Object.keys(obj.pMap);
  2114.  
  2115. // Decide which player cast a spell by MP decrease.
  2116. let castPlayer = -1;
  2117. playerIndices.forEach((userIndex) => {
  2118. if (pMap[userIndex].cMP < playersMP[userIndex]) {
  2119. castPlayer = userIndex;
  2120. }
  2121. playersMP[userIndex] = pMap[userIndex].cMP;
  2122. });
  2123.  
  2124. monstersHP.forEach((mHP, mIndex) => {
  2125. const monster = mMap[mIndex];
  2126. if (monster) {
  2127. const hpDiff = mHP - monster.cHP;
  2128. monstersHP[mIndex] = monster.cHP;
  2129. if (hpDiff > 0) {
  2130. if (playerIndices.length > 1) {
  2131. // Damage is resulted by ManaSpring or Bloom from one of the players.
  2132. playerIndices.forEach((userIndex) => {
  2133. if (userIndex === castPlayer) {
  2134. if (!players[userIndex].damageMap) {
  2135. players[userIndex].damageMap = new Map();
  2136. }
  2137. players[userIndex].damageMap.set(
  2138. players[userIndex].currentAction,
  2139. players[userIndex].damageMap.has(players[userIndex].currentAction)
  2140. ? players[userIndex].damageMap.get(players[userIndex].currentAction) + hpDiff
  2141. : hpDiff
  2142. );
  2143. totalDamage[userIndex] += hpDiff;
  2144. }
  2145. });
  2146. } else {
  2147. if (!players[playerIndices[0]].damageMap) {
  2148. players[playerIndices[0]].damageMap = new Map();
  2149. }
  2150. players[playerIndices[0]].damageMap.set(
  2151. players[playerIndices[0]].currentAction,
  2152. players[playerIndices[0]].damageMap.has(players[playerIndices[0]].currentAction)
  2153. ? players[playerIndices[0]].damageMap.get(players[playerIndices[0]].currentAction) + hpDiff
  2154. : hpDiff
  2155. );
  2156. totalDamage[playerIndices[0]] += hpDiff;
  2157. }
  2158. }
  2159. }
  2160. });
  2161.  
  2162. playerIndices.forEach((userIndex) => {
  2163. players[userIndex].currentAction = pMap[userIndex].abilityHrid
  2164. ? pMap[userIndex].abilityHrid
  2165. : pMap[userIndex].isAutoAtk
  2166. ? "auto"
  2167. : "idle";
  2168. });
  2169. endTime = Date.now();
  2170. updateStatisticsPanel();
  2171. }
  2172. }
  2173. return message;
  2174. }
  2175.  
  2176. /* 计算Networth */
  2177. async function calculateNetworth() {
  2178. const marketAPIJson = await fetchMarketJSON();
  2179. if (!marketAPIJson) {
  2180. console.error("calculateNetworth marketAPIJson is null");
  2181. return;
  2182. }
  2183.  
  2184. let networthAsk = 0;
  2185. let networthBid = 0;
  2186. let marketListingsNetworthAsk = 0;
  2187. let marketListingsNetworthBid = 0;
  2188. let equippedNetworthAsk = 0;
  2189. let equippedNetworthBid = 0;
  2190. let inventoryNetworthAsk = 0;
  2191. let inventoryNetworthBid = 0;
  2192.  
  2193. for (const item of initData_characterItems) {
  2194. const enhanceLevel = item.enhancementLevel;
  2195. const itemName = initData_itemDetailMap[item.itemHrid].name;
  2196. const marketPrices = marketAPIJson.market[itemName];
  2197. if (enhanceLevel && enhanceLevel > 1) {
  2198. input_data.item_hrid = item.itemHrid;
  2199. input_data.stop_at = enhanceLevel;
  2200. const best = await findBestEnhanceStrat(input_data);
  2201. let totalCost = best?.totalCost;
  2202. totalCost = totalCost ? Math.round(totalCost) : 0;
  2203. if (item.itemLocationHrid !== "/item_locations/inventory") {
  2204. equippedNetworthAsk += item.count * (totalCost > 0 ? totalCost : 0);
  2205. equippedNetworthBid += item.count * (totalCost > 0 ? totalCost : 0);
  2206. } else {
  2207. inventoryNetworthAsk += item.count * (totalCost > 0 ? totalCost : 0);
  2208. inventoryNetworthBid += item.count * (totalCost > 0 ? totalCost : 0);
  2209. }
  2210. } else if (marketPrices) {
  2211. if (item.itemLocationHrid !== "/item_locations/inventory") {
  2212. equippedNetworthAsk += item.count * (marketPrices.ask > 0 ? marketPrices.ask : 0);
  2213. equippedNetworthBid += item.count * (marketPrices.bid > 0 ? marketPrices.bid : 0);
  2214. } else {
  2215. inventoryNetworthAsk += item.count * (marketPrices.ask > 0 ? marketPrices.ask : 0);
  2216. inventoryNetworthBid += item.count * (marketPrices.bid > 0 ? marketPrices.bid : 0);
  2217. }
  2218. } else {
  2219. console.log("calculateNetworth cannot find price of " + itemName);
  2220. }
  2221. }
  2222.  
  2223. for (const item of initData_myMarketListings) {
  2224. const itemName = initData_itemDetailMap[item.itemHrid]?.name;
  2225. const quantity = item.orderQuantity - item.filledQuantity;
  2226. const enhancementLevel = item.enhancementLevel;
  2227. const marketPrices = marketAPIJson.market[itemName];
  2228. if (!marketPrices) {
  2229. console.log("calculateNetworth cannot get marketPrices of " + itemName);
  2230. return;
  2231. }
  2232. if (item.isSell) {
  2233. if (itemName === "Bag Of 10 Cowbells") {
  2234. marketPrices.ask *= 1 - 18 / 100;
  2235. marketPrices.bid *= 1 - 18 / 100;
  2236. } else {
  2237. marketPrices.ask *= 1 - 2 / 100;
  2238. marketPrices.bid *= 1 - 2 / 100;
  2239. }
  2240. if (!enhancementLevel || enhancementLevel <= 1) {
  2241. marketListingsNetworthAsk += quantity * (marketPrices.ask > 0 ? marketPrices.ask : 0);
  2242. marketListingsNetworthBid += quantity * (marketPrices.bid > 0 ? marketPrices.bid : 0);
  2243. } else {
  2244. input_data.item_hrid = item.itemHrid;
  2245. input_data.stop_at = enhancementLevel;
  2246. const best = await findBestEnhanceStrat(input_data);
  2247. let totalCost = best?.totalCost;
  2248. totalCost = totalCost ? Math.round(totalCost) : 0;
  2249. marketListingsNetworthAsk += quantity * (totalCost > 0 ? totalCost : 0);
  2250. marketListingsNetworthBid += quantity * (totalCost > 0 ? totalCost : 0);
  2251. }
  2252. marketListingsNetworthAsk += item.unclaimedCoinCount;
  2253. marketListingsNetworthBid += item.unclaimedCoinCount;
  2254. } else {
  2255. marketListingsNetworthAsk += quantity * item.price;
  2256. marketListingsNetworthBid += quantity * item.price;
  2257. marketListingsNetworthAsk += item.unclaimedItemCount * (marketPrices.ask > 0 ? marketPrices.ask : 0);
  2258. marketListingsNetworthBid += item.unclaimedItemCount * (marketPrices.bid > 0 ? marketPrices.bid : 0);
  2259. }
  2260. }
  2261.  
  2262. networthAsk = equippedNetworthAsk + inventoryNetworthAsk + marketListingsNetworthAsk;
  2263. networthBid = equippedNetworthBid + inventoryNetworthBid + marketListingsNetworthBid;
  2264.  
  2265. /* 仓库搜索栏下方显示人物总结 */
  2266. // Some code of networth summery is by Stella.
  2267. const addInventorySummery = async (invElem) => {
  2268. const [battleHouseScore, nonBattleHouseScore, abilityScore, equipmentScore] = await getSelfBuildScores(
  2269. equippedNetworthAsk * 0.5 + equippedNetworthBid * 0.5
  2270. );
  2271. const totalScore = battleHouseScore + abilityScore + equipmentScore;
  2272. const totalHouseScore = battleHouseScore + nonBattleHouseScore;
  2273. const totalNetworth = networthAsk * 0.5 + networthBid * 0.5 + (totalHouseScore + abilityScore) * 1000000;
  2274.  
  2275. invElem.insertAdjacentHTML(
  2276. "beforebegin",
  2277. `<div style="text-align: left; color: ${SCRIPT_COLOR_MAIN}; font-size: 14px;">
  2278. <!-- 战力打造分 -->
  2279. <div style="cursor: pointer; font-weight: bold" id="toggleScores">${
  2280. isZH ? "+ 战力打造分: " : "+ Character Build Score: "
  2281. }${totalScore.toFixed(1)}</div>
  2282. <div id="buildScores" style="display: none; margin-left: 20px;">
  2283. <div>${isZH ? "房子分:" : "House score: "}${battleHouseScore.toFixed(1)}</div>
  2284. <div>${isZH ? "技能分:" : "Ability score: "}${abilityScore.toFixed(1)}</div>
  2285. <div>${isZH ? "装备分:" : "Equipment score: "}${equipmentScore.toFixed(1)}</div>
  2286. </div>
  2287.  
  2288. <div style="font-weight: bold;">
  2289. ${isZH ? "+ 库存价值:" : "+ Inventory value: "}${numberFormatter(inventoryNetworthAsk)}
  2290. </div>
  2291. <!-- NetWorth -->
  2292. <div style="cursor: pointer; font-weight: bold;" id="toggleNetWorth">
  2293. ${isZH ? "+ 总NetWorth:" : "+ Total NetWorth: "}${numberFormatter(totalNetworth)}
  2294. </div>
  2295.  
  2296. <div id="netWorthDetails" style="display: none; margin-left: 20px;">
  2297. <!-- 流动资产 -->
  2298. <div style="cursor: pointer;" id="toggleCurrentAssets">
  2299. ${isZH ? "+ 流动资产价值" : "+ Current assets value"}
  2300. </div>
  2301. <div id="currentAssets" style="display: none; margin-left: 20px;">
  2302. <div>${isZH ? "装备价值:" : "Equipment value: "}${numberFormatter(equippedNetworthAsk)}</div>
  2303. <div>${isZH ? "库存价值:" : "Inventory value: "}${numberFormatter(inventoryNetworthAsk)}</div>
  2304. <div>${isZH ? "订单价值:" : "Market listing value: "}${numberFormatter(marketListingsNetworthAsk)}</div>
  2305. </div>
  2306.  
  2307. <!-- 非流动资产 -->
  2308. <div style="cursor: pointer;" id="toggleNonCurrentAssets">
  2309. ${isZH ? "+ 非流动资产价值" : "+ Fixed assets value"}
  2310. </div>
  2311. <div id="nonCurrentAssets" style="display: none; margin-left: 20px;">
  2312. <div>${isZH ? "房子价值:" : "Houses value: "}${numberFormatter(totalHouseScore * 1000000)}</div>
  2313. <div>${isZH ? "技能价值:" : "Abilities value: "}${numberFormatter(abilityScore * 1000000)}</div>
  2314. </div>
  2315. </div>
  2316. </div>`
  2317. );
  2318.  
  2319. // 监听点击事件,控制折叠和展开
  2320. const toggleScores = document.getElementById("toggleScores");
  2321. const ScoreDetails = document.getElementById("buildScores");
  2322. const toggleButton = document.getElementById("toggleNetWorth");
  2323. const netWorthDetails = document.getElementById("netWorthDetails");
  2324. const toggleCurrentAssets = document.getElementById("toggleCurrentAssets");
  2325. const currentAssets = document.getElementById("currentAssets");
  2326. const toggleNonCurrentAssets = document.getElementById("toggleNonCurrentAssets");
  2327. const nonCurrentAssets = document.getElementById("nonCurrentAssets");
  2328.  
  2329. toggleScores.addEventListener("click", () => {
  2330. const isCollapsed = ScoreDetails.style.display === "none";
  2331. ScoreDetails.style.display = isCollapsed ? "block" : "none";
  2332. toggleScores.textContent = (isCollapsed ? "↓ " : "+ ") + (isZH ? "战力打造分: " : "Character Build Score: ") + totalScore.toFixed(1);
  2333. });
  2334.  
  2335. toggleButton.addEventListener("click", () => {
  2336. const isCollapsed = netWorthDetails.style.display === "none";
  2337. netWorthDetails.style.display = isCollapsed ? "block" : "none";
  2338. toggleButton.textContent =
  2339. (isCollapsed ? "↓ " : "+ ") + (isZH ? "总NetWorth:" : "Total NetWorth: ") + numberFormatter(totalNetworth);
  2340. currentAssets.style.display = isCollapsed ? "block" : "none";
  2341. toggleCurrentAssets.textContent = (isCollapsed ? "↓ " : "+ ") + (isZH ? "流动资产价值" : "Current assets value");
  2342. nonCurrentAssets.style.display = isCollapsed ? "block" : "none";
  2343. toggleNonCurrentAssets.textContent = (isCollapsed ? "↓ " : "+ ") + (isZH ? "非流动资产价值" : "Fixed assets value");
  2344. });
  2345.  
  2346. toggleCurrentAssets.addEventListener("click", () => {
  2347. const isCollapsed = currentAssets.style.display === "none";
  2348. currentAssets.style.display = isCollapsed ? "block" : "none";
  2349. toggleCurrentAssets.textContent = (isCollapsed ? "↓ " : "+ ") + (isZH ? "流动资产价值" : "Current assets value");
  2350. });
  2351.  
  2352. toggleNonCurrentAssets.addEventListener("click", () => {
  2353. const isCollapsed = nonCurrentAssets.style.display === "none";
  2354. nonCurrentAssets.style.display = isCollapsed ? "block" : "none";
  2355. toggleNonCurrentAssets.textContent = (isCollapsed ? "↓ " : "+ ") + (isZH ? "非流动资产价值" : "Fixed assets value");
  2356. });
  2357. };
  2358.  
  2359. const waitForHeader = () => {
  2360. const targetNode = document.querySelector("div.Header_totalLevel__8LY3Q");
  2361. if (targetNode) {
  2362. targetNode.insertAdjacentHTML(
  2363. "afterend",
  2364. `<div style="font-size: 13px; font-weight: 500; color: ${SCRIPT_COLOR_MAIN}; text-wrap: nowrap;">Current Assets: ${numberFormatter(
  2365. networthAsk
  2366. )} / ${numberFormatter(networthBid)}${`<div id="script_api_fail_alert" style="color: ${SCRIPT_COLOR_ALERT};">${
  2367. isZH ? "无法从API更新市场数据" : "Can't update market prices"
  2368. }</div>`}</div>`
  2369. );
  2370.  
  2371. const alertDiv = document.querySelector("div#script_api_fail_alert");
  2372. if (alertDiv) {
  2373. alertDiv.style.cursor = "pointer";
  2374. alertDiv.addEventListener("click", () => {
  2375. showApiFailAlertPopup();
  2376. });
  2377.  
  2378. if (isUsingExpiredMarketJson && settingsMap.networkAlert.isTrue) {
  2379. alertDiv.style.display = "block";
  2380. } else {
  2381. alertDiv.style.display = "none";
  2382. }
  2383. }
  2384.  
  2385. document.body.insertAdjacentHTML(
  2386. "beforeend",
  2387. `<div id="script_api_fail_popout" style="display: none; position: absolute; top: 50px; left: 0; padding: 10px; background: white; border: 1px solid black; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); border-radius: 8px; white-space: pre-wrap;"></div>`
  2388. );
  2389.  
  2390. const popout = document.querySelector("#script_api_fail_popout");
  2391. if (popout) {
  2392. popout.addEventListener("click", function () {
  2393. const popout = document.querySelector("#script_api_fail_popout");
  2394. popout.style.display = popout.style.display === "block" ? "none" : "block";
  2395. });
  2396. }
  2397. } else {
  2398. setTimeout(waitForHeader, 200);
  2399. }
  2400. };
  2401. waitForHeader();
  2402.  
  2403. function showApiFailAlertPopup() {
  2404. console.log(reasonForUsingExpiredMarketJson);
  2405. const popout = document.querySelector("#script_api_fail_popout");
  2406. if (popout) {
  2407. popout.textContent = reasonForUsingExpiredMarketJson;
  2408. popout.style.display = "block";
  2409. }
  2410. }
  2411.  
  2412. const waitForInv = () => {
  2413. const targetNodes = document.querySelectorAll("div.Inventory_items__6SXv0");
  2414. for (const node of targetNodes) {
  2415. if (settingsMap.invWorth.isTrue) {
  2416. if (!node.classList.contains("script_buildScore_added")) {
  2417. node.classList.add("script_buildScore_added");
  2418. addInventorySummery(node);
  2419. }
  2420. }
  2421. if (settingsMap.invSort.isTrue) {
  2422. if (!node.classList.contains("script_invSort_added")) {
  2423. node.classList.add("script_invSort_added");
  2424. addInvSortButton(node);
  2425. }
  2426. }
  2427. }
  2428. setTimeout(waitForInv, 1000);
  2429. };
  2430. waitForInv();
  2431. }
  2432.  
  2433. /* 仓库物品排序 */
  2434. // by daluo, bot7420
  2435. async function addInvSortButton(invElem) {
  2436. const price_data = await fetchMarketJSON();
  2437. if (!price_data || !price_data.market) {
  2438. console.error("addInvSortButton fetchMarketJSON null");
  2439. return;
  2440. }
  2441.  
  2442. const askButton = `<button
  2443. id="script_sortByAsk_btn"
  2444. style="border-radius: 3px; background-color: ${SCRIPT_COLOR_MAIN}; color: black;">
  2445. ${isZH ? "出售价" : "Ask"}
  2446. </button>`;
  2447. const bidButton = `<button
  2448. id="script_sortByBid_btn"
  2449. style="border-radius: 3px; background-color: ${SCRIPT_COLOR_MAIN}; color: black;">
  2450. ${isZH ? "收购价" : "Bid"}
  2451. </button>`;
  2452. const noneButton = `<button
  2453. id="script_sortByNone_btn"
  2454. style="border-radius: 3px; background-color: ${SCRIPT_COLOR_MAIN}; color: black;">
  2455. ${isZH ? "无" : "None"}
  2456. </button>`;
  2457. const buttonsDiv = `<div style="color: ${SCRIPT_COLOR_MAIN}; font-size: 14px; text-align: left; ">${
  2458. isZH ? "物品排序:" : "Sort items by: "
  2459. }${askButton} ${bidButton} ${noneButton}</div>`;
  2460. invElem.insertAdjacentHTML("beforebegin", buttonsDiv);
  2461.  
  2462. invElem.parentElement.querySelector("button#script_sortByAsk_btn").addEventListener("click", function (e) {
  2463. sortItemsBy("ask");
  2464. });
  2465. invElem.parentElement.querySelector("button#script_sortByBid_btn").addEventListener("click", function (e) {
  2466. sortItemsBy("bid");
  2467. });
  2468. invElem.parentElement.querySelector("button#script_sortByNone_btn").addEventListener("click", function (e) {
  2469. sortItemsBy("none");
  2470. });
  2471.  
  2472. const sortItemsBy = (order) => {
  2473. for (const typeDiv of invElem.children) {
  2474. const typeName = getOriTextFromElement(typeDiv.getElementsByClassName("Inventory_categoryButton__35s1x")[0]);
  2475. const notNeedSortTypes = ["Loots", "Currencies", "Equipment"];
  2476. if (notNeedSortTypes.includes(typeName)) {
  2477. continue;
  2478. }
  2479.  
  2480. typeDiv.querySelector(".Inventory_label__XEOAx").style.order = Number.MIN_SAFE_INTEGER;
  2481.  
  2482. const itemElems = typeDiv.querySelectorAll(".Item_itemContainer__x7kH1");
  2483. for (const itemElem of itemElems) {
  2484. let itemName = itemElem.querySelector("svg").attributes["aria-label"].value;
  2485. if (isZHInGameSetting) {
  2486. itemName = getItemEnNameFromZhName(itemName);
  2487. }
  2488. let itemCount = itemElem.querySelector(".Item_count__1HVvv").innerText;
  2489. itemCount = Number(itemCount.toLowerCase().replaceAll("k", "000").replaceAll("m", "000000"));
  2490. const askPrice = price_data.market[itemName] && price_data.market[itemName].ask > 0 ? price_data.market[itemName].ask : 0;
  2491. const bidPrice = price_data.market[itemName] && price_data.market[itemName].bid > 0 ? price_data.market[itemName].bid : 0;
  2492. const itemAskmWorth = askPrice * itemCount;
  2493. const itemBidWorth = bidPrice * itemCount;
  2494.  
  2495. // 价格角标
  2496. if (!itemElem.querySelector("#script_stack_price")) {
  2497. itemElem.style.position = "relative";
  2498. const priceElemHTML = `<div
  2499. id="script_stack_price"
  2500. style="z-index: 1; position: absolute; top: 2px; left: 2px; text-align: left;">
  2501. </div>`;
  2502. itemElem.querySelector(".Item_item__2De2O.Item_clickable__3viV6").insertAdjacentHTML("beforeend", priceElemHTML);
  2503. }
  2504. const priceElem = itemElem.querySelector("#script_stack_price");
  2505.  
  2506. // 排序
  2507. if (order === "ask") {
  2508. itemElem.style.order = -itemAskmWorth;
  2509. priceElem.textContent = numberFormatter(itemAskmWorth);
  2510. } else if (order === "bid") {
  2511. itemElem.style.order = -itemBidWorth;
  2512. priceElem.textContent = numberFormatter(itemBidWorth);
  2513. } else if (order === "none") {
  2514. itemElem.style.order = 0;
  2515. priceElem.textContent = "";
  2516. }
  2517. }
  2518. }
  2519. };
  2520. }
  2521.  
  2522. /* 计算打造分 */
  2523. // BuildScore algorithm by Ratatatata (https://greasyfork.org/zh-CN/scripts/511240)
  2524. async function getSelfBuildScores(equippedNetworth) {
  2525. // 房子分:战斗相关房子升级所需总金币
  2526. const battleHouses = ["dining_room", "library", "dojo", "gym", "armory", "archery_range", "mystical_study"];
  2527. let battleHouseScore = 0;
  2528. let nonBattleHouseScore = 0;
  2529. for (const key in initData_characterHouseRoomMap) {
  2530. if (battleHouses.some((house) => initData_characterHouseRoomMap[key].houseRoomHrid.includes(house))) {
  2531. battleHouseScore += (await getHouseFullBuildPrice(initData_characterHouseRoomMap[key])) / 1000000;
  2532. } else {
  2533. nonBattleHouseScore += (await getHouseFullBuildPrice(initData_characterHouseRoomMap[key])) / 1000000;
  2534. }
  2535. }
  2536.  
  2537. // 技能分:当前使用的战斗技能所需技能书总价,单位M
  2538. let abilityScore = 0;
  2539. try {
  2540. abilityScore = await calculateAbilityScore();
  2541. } catch (error) {
  2542. console.error("Error in calculateAbilityScore()", error);
  2543. }
  2544. // console.log("abilityScore " + abilityScore);
  2545.  
  2546. // 装备分:当前身上装备总价,单位M
  2547. let equipmentScore = equippedNetworth / 1000000;
  2548. // console.log("equipmentScore " + equipmentScore);
  2549.  
  2550. return [battleHouseScore, nonBattleHouseScore, abilityScore, equipmentScore];
  2551. }
  2552.  
  2553. // 计算单个房子完整造价
  2554. async function getHouseFullBuildPrice(house) {
  2555. const marketAPIJson = await fetchMarketJSON();
  2556. if (!marketAPIJson) {
  2557. return 0;
  2558. }
  2559. const clientObj = JSON.parse(GM_getValue("init_client_data", ""));
  2560.  
  2561. const upgradeCostsMap = clientObj.houseRoomDetailMap[house.houseRoomHrid].upgradeCostsMap;
  2562. const level = house.level;
  2563.  
  2564. let cost = 0;
  2565. for (let i = 1; i <= level; i++) {
  2566. for (const item of upgradeCostsMap[i]) {
  2567. const itemName = clientObj.itemDetailMap[item.itemHrid].name;
  2568. const marketPrices = marketAPIJson.market[itemName];
  2569. if (marketPrices) {
  2570. cost += item.count * getWeightedMarketPrice(marketPrices);
  2571. } else {
  2572. console.log("getHouseFullBuildPrice cannot find price of " + itemName);
  2573. }
  2574. }
  2575. }
  2576. return cost;
  2577. }
  2578.  
  2579. function getWeightedMarketPrice(marketPrices, ratio = 0.5) {
  2580. let ask = marketPrices.ask;
  2581. let bid = marketPrices.bid;
  2582. if (ask > 0 && bid < 0) {
  2583. bid = ask;
  2584. }
  2585. if (bid > 0 && ask < 0) {
  2586. ask = bid;
  2587. }
  2588. const weightedPrice = ask * ratio + bid * (1 - ratio);
  2589. return weightedPrice;
  2590. }
  2591.  
  2592. // 技能价格计算
  2593. async function calculateAbilityScore() {
  2594. const marketAPIJson = await fetchMarketJSON();
  2595. if (!marketAPIJson) {
  2596. return 0;
  2597. }
  2598. let exp_50_skill = ["poke", "scratch", "smack", "quick_shot", "water_strike", "fireball", "entangle", "minor_heal"];
  2599. const getNeedBooksToLevel = (targetLevel, abilityPerBookExp) => {
  2600. const needExp = initData_levelExperienceTable[targetLevel];
  2601. let needBooks = needExp / abilityPerBookExp;
  2602. needBooks += 1;
  2603. return needBooks.toFixed(1);
  2604. };
  2605. // 技能净值
  2606. let price = 0;
  2607. initData_combatAbilities.forEach((item) => {
  2608. let numBooks = 0;
  2609. if (exp_50_skill.some((skill) => item.abilityHrid.includes(skill))) {
  2610. numBooks = getNeedBooksToLevel(item.level, 50);
  2611. } else {
  2612. numBooks = getNeedBooksToLevel(item.level, 500);
  2613. }
  2614. const itemName = initData_itemDetailMap[item.abilityHrid.replace("/abilities/", "/items/")].name;
  2615. const marketPrices = marketAPIJson.market[itemName];
  2616. if (marketPrices) {
  2617. price += numBooks * getWeightedMarketPrice(marketPrices);
  2618. } else {
  2619. console.log("calculateAbilityScore cannot find price of " + itemName);
  2620. }
  2621. // console.log(`技能:${itemName},价值${numBooks * (marketPrices.bid > 0 ? marketPrices.bid : 0)}`)
  2622. });
  2623.  
  2624. return (price /= 1000000);
  2625. }
  2626.  
  2627. /* 查看人物面板显示打造分 */
  2628. // by Ratatatata (https://greasyfork.org/zh-CN/scripts/511240)
  2629. function getInfoPanel() {
  2630. const selectedElement = document.querySelector(`div.SharableProfile_overviewTab__W4dCV`);
  2631. if (selectedElement) {
  2632. return selectedElement;
  2633. } else {
  2634. return new Promise((resolve) => {
  2635. setTimeout(() => resolve(getInfoPanel()), 500);
  2636. });
  2637. }
  2638. }
  2639.  
  2640. async function showBuildScoreOnProfile(profile_shared_obj) {
  2641. const [battleHouseScore, abilityScore, equipmentScore] = await getBuildScoreByProfile(profile_shared_obj);
  2642. const totalBuildScore = battleHouseScore + abilityScore + equipmentScore;
  2643. const isEquipmentHiddenText = abilityScore + equipmentScore <= 0 ? (isZH ? " (装备隐藏)" : " (Equipment hidden)") : " ";
  2644.  
  2645. const panel = await getInfoPanel();
  2646. panel.insertAdjacentHTML(
  2647. "beforeend",
  2648. `<div style="text-align: left; color: ${SCRIPT_COLOR_MAIN}; font-size: 14px;">
  2649. <div style="cursor: pointer; font-weight: bold" id="toggleScores_profile">${
  2650. isZH ? "+ 战力打造分: " : "+ Character Build Score: "
  2651. }${totalBuildScore.toFixed(1)}${isEquipmentHiddenText}</div>
  2652. <div id="buildScores_profile" style="display: none; margin-left: 20px;">
  2653. <div>${isZH ? "房子分:" : "House score: "}${battleHouseScore.toFixed(1)}</div>
  2654. <div>${isZH ? "技能分:" : "Ability score: "}${abilityScore.toFixed(1)}</div>
  2655. <div>${isZH ? "装备分:" : "Equipment score: "}${equipmentScore.toFixed(1)}</div>
  2656. </div>
  2657. </div>`
  2658. );
  2659. // 监听点击事件,控制折叠和展开
  2660. const toggleScores = document.getElementById("toggleScores_profile");
  2661. const ScoreDetails = document.getElementById("buildScores_profile");
  2662. toggleScores.addEventListener("click", () => {
  2663. const isCollapsed = ScoreDetails.style.display === "none";
  2664. ScoreDetails.style.display = isCollapsed ? "block" : "none";
  2665. toggleScores.textContent =
  2666. (isCollapsed ? "↓ " : "+ ") +
  2667. (isZH ? "战力打造分: " : "Character Build Score: ") +
  2668. totalBuildScore.toFixed(1) +
  2669. isEquipmentHiddenText;
  2670. });
  2671. }
  2672.  
  2673. // 计算打造分
  2674. async function getBuildScoreByProfile(profile_shared_obj) {
  2675. // 房子分:战斗相关房子升级所需总金币
  2676. const battleHouses = ["dining_room", "library", "dojo", "gym", "armory", "archery_range", "mystical_study"];
  2677. let battleHouseScore = 0;
  2678. for (const key in profile_shared_obj.profile.characterHouseRoomMap) {
  2679. if (battleHouses.some((house) => profile_shared_obj.profile.characterHouseRoomMap[key].houseRoomHrid.includes(house))) {
  2680. battleHouseScore += (await getHouseFullBuildPrice(profile_shared_obj.profile.characterHouseRoomMap[key])) / 1000000;
  2681. }
  2682. }
  2683. // console.log("房屋分:" + battleHouseScore);
  2684. if (profile_shared_obj.profile.hideWearableItems) {
  2685. // 对方未展示装备
  2686. return [battleHouseScore, 0, 0];
  2687. }
  2688.  
  2689. // 技能分:当前使用的战斗技能所需技能书总价,单位M
  2690. let abilityScore = 0;
  2691. try {
  2692. abilityScore = await calculateSkill(profile_shared_obj);
  2693. // console.log("技能分:" + abilityScore);
  2694. } catch (error) {
  2695. console.error("Error in calculate skill:", error);
  2696. }
  2697.  
  2698. // 装备分:当前身上装备总价,单位M
  2699. let equipmentScore = 0;
  2700. try {
  2701. equipmentScore = await calculateEquipment(profile_shared_obj);
  2702. // console.log("装备分:" + equipmentScore);
  2703. } catch (error) {
  2704. console.error("Error in calculateEquipmen:", error);
  2705. }
  2706.  
  2707. return [battleHouseScore, abilityScore, equipmentScore];
  2708. }
  2709.  
  2710. // 技能价格计算
  2711. async function calculateSkill(profile_shared_obj) {
  2712. const marketAPIJson = await fetchMarketJSON();
  2713. if (!marketAPIJson) {
  2714. return 0;
  2715. }
  2716. let obj = profile_shared_obj.profile;
  2717. let exp_50_skill = ["poke", "scratch", "smack", "quick_shot", "water_strike", "fireball", "entangle", "minor_heal"];
  2718. const getNeedBooksToLevel = (targetLevel, abilityPerBookExp) => {
  2719. const needExp = initData_levelExperienceTable[targetLevel];
  2720. let needBooks = needExp / abilityPerBookExp;
  2721. needBooks += 1;
  2722. return needBooks.toFixed(1);
  2723. };
  2724. // 技能净值
  2725. let price = 0;
  2726. obj.equippedAbilities.forEach((item) => {
  2727. let numBooks = 0;
  2728. if (exp_50_skill.some((skill) => item.abilityHrid.includes(skill))) {
  2729. numBooks = getNeedBooksToLevel(item.level, 50);
  2730. } else {
  2731. numBooks = getNeedBooksToLevel(item.level, 500);
  2732. }
  2733. const itemName = initData_itemDetailMap[item.abilityHrid.replace("/abilities/", "/items/")].name;
  2734. const marketPrices = marketAPIJson.market[itemName];
  2735. if (marketPrices) {
  2736. price += numBooks * getWeightedMarketPrice(marketPrices);
  2737. } else {
  2738. console.log("calculateSkill cannot find price of " + itemName);
  2739. }
  2740. // console.log(`技能:${itemName},价值${numBooks * (marketPrices.bid > 0 ? marketPrices.bid : 0)}`)
  2741. });
  2742.  
  2743. return (price /= 1000000);
  2744. }
  2745.  
  2746. // 装备价格计算
  2747. async function calculateEquipment(profile_shared_obj) {
  2748. const marketAPIJson = await fetchMarketJSON();
  2749. if (!marketAPIJson) {
  2750. return 0;
  2751. }
  2752. let obj = profile_shared_obj.profile;
  2753. // 装备净值
  2754. let networthAsk = 0;
  2755. let networthBid = 0;
  2756. for (const key in obj.wearableItemMap) {
  2757. let item = obj.wearableItemMap[key];
  2758. const enhanceLevel = obj.wearableItemMap[key].enhancementLevel;
  2759. const itemName = initData_itemDetailMap[obj.wearableItemMap[key].itemHrid].name;
  2760. const marketPrices = marketAPIJson.market[itemName];
  2761.  
  2762. if (enhanceLevel && enhanceLevel > 1) {
  2763. input_data.item_hrid = item.itemHrid;
  2764. input_data.stop_at = enhanceLevel;
  2765. const best = await findBestEnhanceStrat(input_data);
  2766. let totalCost = best?.totalCost;
  2767. totalCost = totalCost ? Math.round(totalCost) : 0;
  2768. networthAsk += item.count * (totalCost > 0 ? totalCost : 0);
  2769. networthBid += item.count * (totalCost > 0 ? totalCost : 0);
  2770. } else if (marketPrices) {
  2771. networthAsk += item.count * (marketPrices.ask > 0 ? marketPrices.ask : 0);
  2772. networthBid += item.count * (marketPrices.bid > 0 ? marketPrices.bid : 0);
  2773. } else {
  2774. console.log("calculateEquipment cannot find price of " + itemName);
  2775. }
  2776. }
  2777.  
  2778. return (networthAsk * 0.5 + networthBid * 0.5) / 1000000;
  2779. }
  2780.  
  2781. /* 显示当前动作总时间 */
  2782. const showTotalActionTime = () => {
  2783. const targetNode = document.querySelector("div.Header_actionName__31-L2");
  2784. if (targetNode) {
  2785. console.log("start observe action progress bar");
  2786. calculateTotalTime(targetNode);
  2787. new MutationObserver((mutationsList) =>
  2788. mutationsList.forEach((mutation) => {
  2789. calculateTotalTime();
  2790. })
  2791. ).observe(targetNode, { characterData: true, subtree: true, childList: true });
  2792. } else {
  2793. setTimeout(showTotalActionTime, 200);
  2794. }
  2795. };
  2796.  
  2797. function calculateTotalTime() {
  2798. const targetNode = document.querySelector("div.Header_actionName__31-L2 > div.Header_displayName__1hN09");
  2799. if (targetNode.textContent.includes("[")) {
  2800. return;
  2801. }
  2802.  
  2803. let totalTimeStr = "Error";
  2804. const content = targetNode.innerText;
  2805. const match = content.match(/\((\d+)\)/);
  2806. if (match) {
  2807. const numOfTimes = +match[1];
  2808. const timePerActionSec = +getOriTextFromElement(document.querySelector(".ProgressBar_text__102Yn")).match(/[\d\.]+/)[0];
  2809. const actionHrid = currentActionsHridList[0].actionHrid;
  2810. let effBuff = 1 + getTotalEffiPercentage(actionHrid) / 100;
  2811. if (actionHrid.includes("enhanc")) {
  2812. effBuff = 1;
  2813. }
  2814. const actualNumberOfTimes = Math.round(numOfTimes / effBuff);
  2815. const totalTimeSeconds = actualNumberOfTimes * timePerActionSec;
  2816. totalTimeStr = " [" + timeReadable(totalTimeSeconds) + "]";
  2817.  
  2818. const currentTime = new Date();
  2819. currentTime.setSeconds(currentTime.getSeconds() + totalTimeSeconds);
  2820. totalTimeStr += ` ${String(currentTime.getHours()).padStart(2, "0")}:${String(currentTime.getMinutes()).padStart(2, "0")}:${String(
  2821. currentTime.getSeconds()
  2822. ).padStart(2, "0")}`;
  2823. } else {
  2824. totalTimeStr = " [∞]";
  2825. }
  2826.  
  2827. targetNode.textContent += totalTimeStr;
  2828. }
  2829.  
  2830. function timeReadable(sec) {
  2831. if (sec >= 86400) {
  2832. return Number(sec / 86400).toFixed(1) + (isZH ? " 天" : " days");
  2833. }
  2834. const d = new Date(Math.round(sec * 1000));
  2835. function pad(i) {
  2836. return ("0" + i).slice(-2);
  2837. }
  2838. let str = d.getUTCHours() + "h " + pad(d.getUTCMinutes()) + "m " + pad(d.getUTCSeconds()) + "s";
  2839. return str;
  2840. }
  2841.  
  2842. GM_addStyle(`div.Header_actionName__31-L2 {
  2843. overflow: visible !important;
  2844. white-space: normal !important;
  2845. height: auto !important;
  2846. }`);
  2847.  
  2848. GM_addStyle(`span.NavigationBar_label__1uH-y {
  2849. width: 10px !important;
  2850. }`);
  2851.  
  2852. /* 物品 ToolTips */
  2853. const tooltipObserver = new MutationObserver(async function (mutations) {
  2854. for (const mutation of mutations) {
  2855. for (const added of mutation.addedNodes) {
  2856. if (added.classList.contains("MuiTooltip-popper")) {
  2857. if (added.querySelector("div.ItemTooltipText_name__2JAHA")) {
  2858. await handleTooltipItem(added);
  2859. } else if (added.querySelector("div.QueuedActions_queuedActionsEditMenu__3OoQH")) {
  2860. handleActionQueueMenue(added.querySelector("div.QueuedActions_queuedActionsEditMenu__3OoQH"));
  2861. }
  2862. }
  2863. }
  2864. }
  2865. });
  2866. tooltipObserver.observe(document.body, { attributes: false, childList: true, characterData: false });
  2867.  
  2868. const actionHridToToolsSpeedBuffNamesMap = {
  2869. "/action_types/brewing": "brewingSpeed",
  2870. "/action_types/cheesesmithing": "cheesesmithingSpeed",
  2871. "/action_types/cooking": "cookingSpeed",
  2872. "/action_types/crafting": "craftingSpeed",
  2873. "/action_types/foraging": "foragingSpeed",
  2874. "/action_types/milking": "milkingSpeed",
  2875. "/action_types/tailoring": "tailoringSpeed",
  2876. "/action_types/woodcutting": "woodcuttingSpeed",
  2877. "/action_types/alchemy": "alchemySpeed",
  2878. };
  2879.  
  2880. const actionHridToHouseNamesMap = {
  2881. "/action_types/brewing": "/house_rooms/brewery",
  2882. "/action_types/cheesesmithing": "/house_rooms/forge",
  2883. "/action_types/cooking": "/house_rooms/kitchen",
  2884. "/action_types/crafting": "/house_rooms/workshop",
  2885. "/action_types/foraging": "/house_rooms/garden",
  2886. "/action_types/milking": "/house_rooms/dairy_barn",
  2887. "/action_types/tailoring": "/house_rooms/sewing_parlor",
  2888. "/action_types/woodcutting": "/house_rooms/log_shed",
  2889. "/action_types/alchemy": "/house_rooms/laboratory",
  2890. };
  2891.  
  2892. const itemEnhanceLevelToBuffBonusMap = {
  2893. 0: 0,
  2894. 1: 2,
  2895. 2: 4.2,
  2896. 3: 6.6,
  2897. 4: 9.2,
  2898. 5: 12.0,
  2899. 6: 15.0,
  2900. 7: 18.2,
  2901. 8: 21.6,
  2902. 9: 25.2,
  2903. 10: 29.0,
  2904. 11: 33.0,
  2905. 12: 37.2,
  2906. 13: 41.6,
  2907. 14: 46.2,
  2908. 15: 51.0,
  2909. 16: 56.0,
  2910. 17: 61.2,
  2911. 18: 66.6,
  2912. 19: 72.2,
  2913. 20: 78.0,
  2914. };
  2915.  
  2916. function getToolsSpeedBuffByActionHrid(actionHrid) {
  2917. let totalBuff = 0;
  2918. for (const item of initData_characterItems) {
  2919. if (item.itemLocationHrid.includes("_tool")) {
  2920. const buffName = actionHridToToolsSpeedBuffNamesMap[initData_actionDetailMap[actionHrid].type];
  2921. const enhanceBonus = 1 + itemEnhanceLevelToBuffBonusMap[item.enhancementLevel] / 100;
  2922. const buff = initData_itemDetailMap[item.itemHrid].equipmentDetail.noncombatStats[buffName] || 0;
  2923. totalBuff += buff * enhanceBonus;
  2924. }
  2925. }
  2926. return Number(totalBuff * 100).toFixed(1);
  2927. }
  2928.  
  2929. function getItemEffiBuffByActionHrid(actionHrid) {
  2930. let buff = 0;
  2931. const propertyName = initData_actionDetailMap[actionHrid].type.replace("/action_types/", "") + "Efficiency";
  2932. for (const item of initData_characterItems) {
  2933. if (item.itemLocationHrid === "/item_locations/inventory") {
  2934. continue;
  2935. }
  2936. const itemDetail = initData_itemDetailMap[item.itemHrid];
  2937.  
  2938. const specificStat = itemDetail?.equipmentDetail?.noncombatStats[propertyName];
  2939. if (specificStat && specificStat > 0) {
  2940. let enhanceBonus = 1;
  2941. if (item.itemLocationHrid.includes("earrings") || item.itemLocationHrid.includes("ring") || item.itemLocationHrid.includes("neck")) {
  2942. enhanceBonus = 1 + (itemEnhanceLevelToBuffBonusMap[item.enhancementLevel] * 5) / 100;
  2943. } else {
  2944. enhanceBonus = 1 + itemEnhanceLevelToBuffBonusMap[item.enhancementLevel] / 100;
  2945. }
  2946. buff += specificStat * enhanceBonus;
  2947. }
  2948.  
  2949. const skillingStat = itemDetail?.equipmentDetail?.noncombatStats["skillingEfficiency"];
  2950. if (skillingStat && skillingStat > 0) {
  2951. let enhanceBonus = 1;
  2952. if (item.itemLocationHrid.includes("earrings") || item.itemLocationHrid.includes("ring") || item.itemLocationHrid.includes("neck")) {
  2953. enhanceBonus = 1 + (itemEnhanceLevelToBuffBonusMap[item.enhancementLevel] * 5) / 100;
  2954. } else {
  2955. enhanceBonus = 1 + itemEnhanceLevelToBuffBonusMap[item.enhancementLevel] / 100;
  2956. }
  2957. buff += skillingStat * enhanceBonus;
  2958. }
  2959. }
  2960. return Number(buff * 100).toFixed(1);
  2961. }
  2962.  
  2963. function getHousesEffBuffByActionHrid(actionHrid) {
  2964. const houseName = actionHridToHouseNamesMap[initData_actionDetailMap[actionHrid].type];
  2965. if (!houseName) {
  2966. return 0;
  2967. }
  2968. const house = initData_characterHouseRoomMap[houseName];
  2969. if (!house) {
  2970. return 0;
  2971. }
  2972. return house.level * 1.5;
  2973. }
  2974.  
  2975. function getTeaBuffsByActionHrid(actionHrid) {
  2976. const teaBuffs = {
  2977. efficiency: 0, // Efficiency tea, specific teas, -Artisan tea.
  2978. quantity: 0, // Gathering tea, Gourmet tea.
  2979. lessResource: 0, // Artisan tea.
  2980. extraExp: 0, // Wisdom tea. Not used.
  2981. upgradedProduct: 0, // Processing tea. Not used.
  2982. };
  2983.  
  2984. const actionTypeId = initData_actionDetailMap[actionHrid].type;
  2985. const teaList = initData_actionTypeDrinkSlotsMap[actionTypeId];
  2986. for (const tea of teaList) {
  2987. if (!tea || !tea.itemHrid) {
  2988. continue;
  2989. }
  2990.  
  2991. for (const buff of initData_itemDetailMap[tea.itemHrid].consumableDetail.buffs) {
  2992. if (buff.typeHrid === "/buff_types/artisan") {
  2993. teaBuffs.lessResource += buff.flatBoost * 100;
  2994. } else if (buff.typeHrid === "/buff_types/action_level") {
  2995. teaBuffs.efficiency -= buff.flatBoost;
  2996. } else if (buff.typeHrid === "/buff_types/gathering") {
  2997. teaBuffs.quantity += buff.flatBoost * 100;
  2998. } else if (buff.typeHrid === "/buff_types/gourmet") {
  2999. teaBuffs.quantity += buff.flatBoost * 100;
  3000. } else if (buff.typeHrid === "/buff_types/wisdom") {
  3001. teaBuffs.extraExp += buff.flatBoost * 100;
  3002. } else if (buff.typeHrid === "/buff_types/processing") {
  3003. teaBuffs.upgradedProduct += buff.flatBoost * 100;
  3004. } else if (buff.typeHrid === "/buff_types/efficiency") {
  3005. teaBuffs.efficiency += buff.flatBoost * 100;
  3006. } else if (buff.typeHrid === `/buff_types/${actionTypeId.replace("/action_types/", "")}_level`) {
  3007. teaBuffs.efficiency += buff.flatBoost;
  3008. }
  3009. }
  3010. }
  3011.  
  3012. return teaBuffs;
  3013. }
  3014.  
  3015. async function handleTooltipItem(tooltip) {
  3016. const itemNameElems = tooltip.querySelectorAll("div.ItemTooltipText_name__2JAHA span");
  3017.  
  3018. // 带强化等级的物品单独处理
  3019. if (itemNameElems.length > 1) {
  3020. handleItemTooltipWithEnhancementLevel(tooltip);
  3021. return;
  3022. }
  3023.  
  3024. const itemNameElem = itemNameElems[0];
  3025. let itemName = getOriTextFromElement(itemNameElem);
  3026. if (isZHInGameSetting) {
  3027. itemName = getItemEnNameFromZhName(itemName);
  3028. }
  3029.  
  3030. let amount = 0;
  3031. let insertAfterElem = null;
  3032. const amountSpan = tooltip.querySelectorAll("span")[1];
  3033. if (amountSpan) {
  3034. amount = +getOriTextFromElement(amountSpan).split(": ")[1].replaceAll(THOUSAND_SEPERATOR, "");
  3035. insertAfterElem = amountSpan.parentNode.nextSibling;
  3036. } else {
  3037. insertAfterElem = tooltip.querySelectorAll("span")[0].parentNode.nextSibling;
  3038. }
  3039.  
  3040. let appendHTMLStr = "";
  3041. let marketJson = null;
  3042. let ask = null;
  3043. let bid = null;
  3044. let vendor = null;
  3045.  
  3046. // 物品市场价格
  3047. if (settingsMap.itemTooltip_prices.isTrue) {
  3048. marketJson = await fetchMarketJSON();
  3049. if (!marketJson || !marketJson.market) {
  3050. console.error("jsonObj null");
  3051. }
  3052. ask = marketJson?.market[itemName]?.ask;
  3053. bid = marketJson?.market[itemName]?.bid;
  3054. vendor = marketJson?.market[itemName]?.vendor;
  3055. appendHTMLStr += `
  3056. <div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "日均价: " : "Daily average price: "}${numberFormatter(ask)} / ${numberFormatter(
  3057. bid
  3058. )} (${ask && ask > 0 ? numberFormatter(ask * amount) : ""} / ${bid && bid > 0 ? numberFormatter(bid * amount) : ""})</div>
  3059. `;
  3060. }
  3061.  
  3062. // 消耗品回复计算
  3063. if (settingsMap.showConsumTips.isTrue) {
  3064. let itemDetail = null;
  3065. for (const item of Object.values(initData_itemDetailMap)) {
  3066. if (item.name === itemName) {
  3067. itemDetail = item;
  3068. }
  3069. }
  3070. const hp = itemDetail?.consumableDetail?.hitpointRestore;
  3071. const mp = itemDetail?.consumableDetail?.manapointRestore;
  3072. const cd = itemDetail?.consumableDetail?.cooldownDuration;
  3073. if (hp && cd) {
  3074. const hpPerMiniute = (60 / (cd / 1000000000)) * hp;
  3075. const pricePer100Hp = ask ? ask / (hp / 100) : null;
  3076. const usePerday = (24 * 60 * 60) / (cd / 1000000000);
  3077. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${
  3078. pricePer100Hp ? pricePer100Hp.toFixed(0) + (isZH ? "金/100血, " : "coins/100hp, ") : ""
  3079. }${hpPerMiniute.toFixed(0) + (isZH ? "血/分" : "hp/min")}, ${usePerday.toFixed(0)}${isZH ? "个/天" : "/day"}</div>`;
  3080. } else if (mp && cd) {
  3081. const mpPerMiniute = (60 / (cd / 1000000000)) * mp;
  3082. const pricePer100Mp = ask ? ask / (mp / 100) : null;
  3083. const usePerday = (24 * 60 * 60) / (cd / 1000000000);
  3084. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${
  3085. pricePer100Mp ? pricePer100Mp.toFixed(0) + (isZH ? "金/100蓝, " : "coins/100hp, ") : ""
  3086. }${mpPerMiniute.toFixed(0) + (isZH ? "蓝/分" : "hp/min")}, ${usePerday.toFixed(0)}${isZH ? "个/天" : "/day"}</div>`;
  3087. } else if (cd) {
  3088. const usePerday = (24 * 60 * 60) / (cd / 1000000000);
  3089. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}">${usePerday.toFixed(0)}${isZH ? "个/天" : "/day"}</div>`;
  3090. }
  3091. }
  3092.  
  3093. // 生产利润计算
  3094. if (
  3095. settingsMap.itemTooltip_profit.isTrue &&
  3096. marketJson &&
  3097. getActionHridFromItemName(itemName) &&
  3098. initData_actionDetailMap &&
  3099. initData_itemDetailMap
  3100. ) {
  3101. // 区分生产类动作和采集类动作
  3102. const isProduction =
  3103. initData_actionDetailMap[getActionHridFromItemName(itemName)].inputItems &&
  3104. initData_actionDetailMap[getActionHridFromItemName(itemName)].inputItems.length > 0;
  3105.  
  3106. const actionHrid = getActionHridFromItemName(itemName);
  3107. // 茶效率
  3108. const teaBuffs = getTeaBuffsByActionHrid(actionHrid);
  3109.  
  3110. // 原料信息
  3111. let inputItems = [];
  3112. let totalResourcesAskPricePerAction = 0;
  3113. let totalResourcesBidPricePerAction = 0;
  3114.  
  3115. // 消耗饮料
  3116. let drinksConsumedPerHourAskPrice = 0;
  3117. let drinksConsumedPerHourBidPrice = 0;
  3118.  
  3119. let upgradedFromItemHrid = null
  3120. let upgradedFromItemName = null;
  3121. let upgradedFromItemZhName = null;
  3122. let upgradedFromItemAsk = null;
  3123. let upgradedFromItemBid = null;
  3124.  
  3125. const drinksList = initData_actionTypeDrinkSlotsMap[initData_actionDetailMap[actionHrid].type];
  3126. for (const drink of drinksList) {
  3127. if (!drink || !drink.itemHrid) {
  3128. continue;
  3129. }
  3130. const drinkName = initData_itemDetailMap[drink.itemHrid].name;
  3131. drinksConsumedPerHourAskPrice += (marketJson?.market[drinkName]?.ask ?? 0) * 12;
  3132. drinksConsumedPerHourBidPrice += (marketJson?.market[drinkName]?.bid ?? 0) * 12;
  3133. }
  3134.  
  3135. if (isProduction){
  3136. inputItems = JSON.parse(JSON.stringify(initData_actionDetailMap[actionHrid].inputItems));
  3137. for (const item of inputItems) {
  3138. item.name = initData_itemDetailMap[item.itemHrid].name;
  3139. item.zhName = ZHitemNames[item.itemHrid];
  3140. item.perAskPrice = marketJson?.market[item.name]?.ask;
  3141. item.perBidPrice = marketJson?.market[item.name]?.bid;
  3142. totalResourcesAskPricePerAction += item.perAskPrice * item.count;
  3143. totalResourcesBidPricePerAction += item.perBidPrice * item.count;
  3144. }
  3145.  
  3146. // 茶减少原料消耗(对于升级物品,不影响上一级物品消耗)
  3147. const lessResourceBuff = teaBuffs.lessResource;
  3148. totalResourcesAskPricePerAction *= 1 - lessResourceBuff / 100;
  3149. totalResourcesBidPricePerAction *= 1 - lessResourceBuff / 100;
  3150.  
  3151. // 上级物品作为原料
  3152. const upgradedFromItemHrid = initData_actionDetailMap[actionHrid]?.upgradeItemHrid;
  3153.  
  3154. if (upgradedFromItemHrid) {
  3155. upgradedFromItemName = initData_itemDetailMap[upgradedFromItemHrid].name;
  3156. upgradedFromItemZhName = ZHitemNames[upgradedFromItemHrid];
  3157. upgradedFromItemAsk += marketJson?.market[upgradedFromItemName]?.ask;
  3158. upgradedFromItemBid += marketJson?.market[upgradedFromItemName]?.bid;
  3159. totalResourcesAskPricePerAction += upgradedFromItemAsk;
  3160. totalResourcesBidPricePerAction += upgradedFromItemBid;
  3161. }
  3162. }
  3163.  
  3164. // 每小时动作数(包含工具缩减动作时间)
  3165. const baseTimePerActionSec = initData_actionDetailMap[actionHrid].baseTimeCost / 1000000000;
  3166. const toolPercent = getToolsSpeedBuffByActionHrid(actionHrid);
  3167. const actualTimePerActionSec = baseTimePerActionSec / (1 + toolPercent / 100);
  3168.  
  3169. let actionPerHour = 3600 / actualTimePerActionSec;
  3170.  
  3171. // 每小时产品数
  3172. let droprate = null;
  3173. if (isProduction) {
  3174. droprate = initData_actionDetailMap[actionHrid].outputItems[0].count;
  3175. } else {
  3176. droprate =
  3177. (initData_actionDetailMap[actionHrid].dropTable[0].minCount + initData_actionDetailMap[actionHrid].dropTable[0].maxCount) / 2;
  3178. }
  3179. let itemPerHour = actionPerHour * droprate;
  3180.  
  3181. // 等级碾压提高效率(人物等级不及最低要求等级时,按最低要求等级计算)
  3182. const requiredLevel = initData_actionDetailMap[actionHrid].levelRequirement.level;
  3183. let currentLevel = requiredLevel;
  3184. for (const skill of initData_characterSkills) {
  3185. if (skill.skillHrid === initData_actionDetailMap[actionHrid].levelRequirement.skillHrid) {
  3186. currentLevel = skill.level;
  3187. break;
  3188. }
  3189. }
  3190. const levelEffBuff = currentLevel - requiredLevel > 0 ? currentLevel - requiredLevel : 0;
  3191.  
  3192. // 房子效率
  3193. const houseEffBuff = getHousesEffBuffByActionHrid(actionHrid);
  3194.  
  3195. // 特殊装备效率
  3196. const itemEffiBuff = Number(getItemEffiBuffByActionHrid(actionHrid));
  3197.  
  3198. // 总效率影响动作数/生产物品数
  3199. actionPerHour *= 1 + (levelEffBuff + houseEffBuff + teaBuffs.efficiency + itemEffiBuff) / 100;
  3200. itemPerHour *= 1 + (levelEffBuff + houseEffBuff + teaBuffs.efficiency + itemEffiBuff) / 100;
  3201.  
  3202. // 茶额外产品数量(不消耗原料)
  3203. const extraFreeItemPerHour = (itemPerHour * teaBuffs.quantity) / 100;
  3204.  
  3205. // 出售市场税
  3206. const bidAfterTax = bid * 0.98;
  3207. const askAfterTax = ask * 0.98;
  3208.  
  3209. // 每小时利润
  3210. const profitPerHour_ask_in_bid_out =
  3211. itemPerHour * (bidAfterTax - totalResourcesAskPricePerAction / droprate) +
  3212. extraFreeItemPerHour * bidAfterTax -
  3213. drinksConsumedPerHourAskPrice;
  3214.  
  3215. const profitPerHour_bid_in_ask_out =
  3216. itemPerHour * (askAfterTax - totalResourcesBidPricePerAction / droprate) +
  3217. extraFreeItemPerHour * bidAfterTax -
  3218. drinksConsumedPerHourAskPrice;
  3219.  
  3220. const profitPerHour_bid_in_bid_out =
  3221. itemPerHour * (bidAfterTax - totalResourcesBidPricePerAction / droprate) +
  3222. extraFreeItemPerHour * bidAfterTax -
  3223. drinksConsumedPerHourAskPrice;
  3224.  
  3225. const profitPerHour_ask_in_ask_out =
  3226. itemPerHour * (askAfterTax - totalResourcesAskPricePerAction / droprate) +
  3227. extraFreeItemPerHour * askAfterTax -
  3228. drinksConsumedPerHourAskPrice;
  3229.  
  3230.  
  3231. const totalResourceAsk_for_positive_profit = itemPerHour*bidAfterTax + extraFreeItemPerHour * bidAfterTax - drinksConsumedPerHourAskPrice;
  3232.  
  3233. let positive_resource_ask_per_action = totalResourceAsk_for_positive_profit/actionPerHour
  3234.  
  3235. let discount_required = (positive_resource_ask_per_action-upgradedFromItemAsk) / ((totalResourcesAskPricePerAction-upgradedFromItemAsk) / droprate)
  3236. if (discount_required > 1.0){
  3237. discount_required = 1.0
  3238. positive_resource_ask_per_action = totalResourcesAskPricePerAction
  3239. }
  3240. if (positive_resource_ask_per_action<0){
  3241. discount_required = Infinity
  3242. positive_resource_ask_per_action=Infinity
  3243. }
  3244.  
  3245. if (isProduction) {
  3246.  
  3247. // 使用表格显示原料信息
  3248. appendHTMLStr += `
  3249. <div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">
  3250. <table style="width:100%; border-collapse: collapse;">
  3251. <tr style="border-bottom: 1px solid ${SCRIPT_COLOR_TOOLTIP};">
  3252. <th style="text-align: left;">${isZH ? "原料" : "Material"}</th>
  3253. <th style="text-align: center;">${isZH ? "数量" : "Count"}</th>
  3254. <th style="text-align: right;">${isZH ? "出售价" : "Ask"}</th>
  3255. <th style="text-align: right;">${isZH ? "收购价" : "Bid"}</th>
  3256. <th style="text-align: right;">${isZH ? "保本价" : "discount"}</th>
  3257. </tr>
  3258. <tr style="border-bottom: 1px solid ${SCRIPT_COLOR_TOOLTIP};">
  3259. <td style="text-align: left;"><b>${isZH ? "合计" : "Total"}</b></td>
  3260. <td style="text-align: center;"><b>${inputItems.reduce((sum, item) => sum + item.count, 0)}</b></td>
  3261. <td style="text-align: right;"><b>${numberFormatter(totalResourcesAskPricePerAction)}</b></td>
  3262. <td style="text-align: right;"><b>${numberFormatter(totalResourcesBidPricePerAction)}</b></td>
  3263. <td style="text-align: right;"><b>${numberFormatter(positive_resource_ask_per_action)}</b></td>
  3264. </tr>`;
  3265.  
  3266. for (const item of inputItems) {
  3267. appendHTMLStr += `
  3268. <tr>
  3269. <td style="text-align: left;">${isZH ? item.zhName : item.name}</td>
  3270. <td style="text-align: center;">${item.count}</td>
  3271. <td style="text-align: right;">${numberFormatter(item.perAskPrice)}</td>
  3272. <td style="text-align: right;">${numberFormatter(item.perBidPrice)}</td>
  3273. <td style="text-align: right;">${numberFormatter(item.perAskPrice*discount_required)}</td>
  3274. </tr>`;
  3275. }
  3276. appendHTMLStr += `</table></div>`;
  3277.  
  3278. if (upgradedFromItemHrid) {
  3279. appendHTMLStr += `
  3280. <div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;"> ${
  3281. isZH ? upgradedFromItemZhName : upgradedFromItemName
  3282. }: ${numberFormatter(upgradedFromItemAsk)} / ${numberFormatter(upgradedFromItemBid)}</div>
  3283. `;
  3284. }
  3285. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "正利润需求: " : "Profit: "}${numberFormatter(
  3286. positive_resource_ask_per_action
  3287. )}, ${isZH ? "需求数量: " : "vendor: "}${numberFormatter(vendor)}</div>`;
  3288. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "基础物品 ask: " : "Base item ask: "}${numberFormatter(
  3289. upgradedFromItemAsk
  3290. )}, ${isZH ? "基础物品 bid: " : "Base item bid: "}${numberFormatter(upgradedFromItemBid)}</div>`;
  3291.  
  3292.  
  3293. }
  3294.  
  3295. // appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${
  3296. // isZH
  3297. // ? "生产利润(卖单价进、买单价出,包含销售税;不包括加工茶、社区增益、稀有掉落、袋子饮食增益;刷新网页更新人物数据):"
  3298. // : "Production profit(Sell price in, bid price out, including sales tax; Not including processing tea, comm buffs, rare drops, pouch consumables buffs; Refresh page to update player data): "
  3299. // }</div>`;
  3300.  
  3301. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${baseTimePerActionSec.toFixed(2)}s ${
  3302. isZH ? "基础速度" : "base speed,"
  3303. } x${droprate} ${isZH ? "基础掉率" : "base drop rate,"} +${toolPercent}%${isZH ? "工具速度" : " tool speed,"} +${levelEffBuff}%${
  3304. isZH ? "等级效率" : " level eff,"
  3305. } +${houseEffBuff}%${isZH ? "房子效率" : " house eff,"} +${teaBuffs.efficiency}%${isZH ? "茶效率" : " tea eff,"} +${itemEffiBuff}%${
  3306. isZH ? "装备效率" : " equipment eff,"
  3307. } +${teaBuffs.quantity}%${isZH ? "茶额外数量" : " tea extra outcome,"} +${teaBuffs.lessResource}%${
  3308. isZH ? "茶减少消耗" : " tea lower resource"
  3309. }</div>`;
  3310.  
  3311. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${
  3312. isZH ? "每小时饮料消耗: " : "Drinks consumed per hour: "
  3313. }${numberFormatter(drinksConsumedPerHourAskPrice)} / ${numberFormatter(drinksConsumedPerHourBidPrice)}</div>`;
  3314.  
  3315. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP}; font-size: 10px;">${isZH ? "每小时动作" : "Actions per hour"} ${Number(
  3316. actionPerHour
  3317. ).toFixed(1)}${isZH ? " 次" : " times"}, ${isZH ? "每小时生产" : "Production per hour"} ${Number(
  3318. itemPerHour + extraFreeItemPerHour
  3319. ).toFixed(1)}${isZH ? " 个" : " items"}</div>`;
  3320.  
  3321. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "左进右出利润: " : "Profit: "}${numberFormatter(
  3322. profitPerHour_ask_in_bid_out / actionPerHour
  3323. )}${isZH ? "/动作" : "/action"}, ${numberFormatter(profitPerHour_ask_in_bid_out)}${isZH ? "/小时" : "/hour"}, ${numberFormatter(24 * profitPerHour_ask_in_bid_out)}${
  3324. isZH ? "/天" : "/day"
  3325. }</div>`;
  3326.  
  3327. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "右进左出利润: " : "Profit: "}${numberFormatter(
  3328. profitPerHour_bid_in_ask_out / actionPerHour
  3329. )}${isZH ? "/动作" : "/action"}, ${numberFormatter(profitPerHour_bid_in_ask_out)}${isZH ? "/小时" : "/hour"}, ${numberFormatter(24 * profitPerHour_bid_in_ask_out)}${
  3330. isZH ? "/天" : "/day"
  3331. }</div>`;
  3332.  
  3333. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "右进右出利润: " : "Profit: "}${numberFormatter(
  3334. profitPerHour_bid_in_bid_out / actionPerHour
  3335. )}${isZH ? "/动作" : "/action"}, ${numberFormatter(profitPerHour_bid_in_bid_out)}${isZH ? "/小时" : "/hour"}, ${numberFormatter(24 * profitPerHour_bid_in_bid_out)}${
  3336. isZH ? "/天" : "/day"
  3337. }</div>`;
  3338.  
  3339. appendHTMLStr += `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${isZH ? "左进左出利润: " : "Profit: "}${numberFormatter(
  3340. profitPerHour_ask_in_ask_out / actionPerHour
  3341. )}${isZH ? "/动作" : "/action"}, ${numberFormatter(profitPerHour_ask_in_ask_out)}${isZH ? "/小时" : "/hour"}, ${numberFormatter(24 * profitPerHour_ask_in_ask_out)}${
  3342. isZH ? "/天" : "/day"
  3343. }</div>`;
  3344.  
  3345. }
  3346.  
  3347. insertAfterElem.insertAdjacentHTML("afterend", appendHTMLStr);
  3348.  
  3349. // Make sure the tooltip is fully visible in the viewport
  3350. const tootip = insertAfterElem.closest(".MuiTooltip-popper");
  3351. const fixOverflow = (tootip) => {
  3352. if (!tootip.isConnected) {
  3353. return;
  3354. }
  3355. const bBox = tootip.getBoundingClientRect();
  3356. if (bBox.top < 0 || bBox.bottom > window.innerHeight) {
  3357. const transformString = tootip.style.transform.split(/\w+\(|\);?/);
  3358. const transformValues = transformString[1].split(/,\s?/g).map((numStr) => parseInt(numStr));
  3359. tootip.style.transform = `translate3d(${transformValues[0]}px, 0px, ${transformValues[2]}px)`;
  3360. }
  3361. };
  3362. setTimeout(fixOverflow, 100, tootip); // A delay is added because the game seems to reset the style if applied immediately.
  3363. }
  3364.  
  3365. function validateMarketJsonFetch(jsonStr, isSave) {
  3366. if (!jsonStr) {
  3367. console.error("validateMarketJson jsonStr is null");
  3368. return null;
  3369. }
  3370.  
  3371. let jsonObj = null;
  3372. try {
  3373. jsonObj = JSON.parse(jsonStr);
  3374. } catch (error) {
  3375. console.error("validateMarketJson failed to parse JSON:", error.message);
  3376. }
  3377.  
  3378. if (jsonObj && jsonObj.time && jsonObj.market) {
  3379. if (isSave) {
  3380. localStorage.setItem("MWITools_marketAPI_timestamp", Date.now());
  3381. localStorage.setItem("MWITools_marketAPI_json", JSON.stringify(jsonObj));
  3382. }
  3383. return jsonObj;
  3384. } else {
  3385. console.error("validateMarketJson invalid json structure");
  3386. return null;
  3387. }
  3388. }
  3389.  
  3390. async function fetchMarketJSON(forceFetch = false) {
  3391. // console.log(GM_xmlhttpRequest); // Tampermonkey
  3392. // console.log(GM.xmlHttpRequest); // Tampermonkey promise based, Greasemonkey 4.0+
  3393.  
  3394. // Broswer does not support fetch
  3395. const sendRequest =
  3396. typeof GM.xmlHttpRequest === "function" ? GM.xmlHttpRequest : typeof GM_xmlhttpRequest === "function" ? GM_xmlhttpRequest : null;
  3397. if (typeof sendRequest != "function") {
  3398. console.error("fetchMarketJSON null GM xmlHttpRequest function");
  3399. if (!isUsingExpiredMarketJson) {
  3400. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " Setting isUsingExpiredMarketJson to true:\n";
  3401. reasonForUsingExpiredMarketJson += "GM_xmlhttpRequest " + typeof GM_xmlhttpRequest + "\n";
  3402. reasonForUsingExpiredMarketJson += "GM.xmlHttpRequest " + typeof GM.xmlHttpRequest + "\n";
  3403. }
  3404. isUsingExpiredMarketJson = true;
  3405. const alertDiv = document.querySelector("div#script_api_fail_alert");
  3406. if (alertDiv) {
  3407. alertDiv.style.display = "block";
  3408. }
  3409.  
  3410. const jsonStr = MARKET_JSON_LOCAL_BACKUP;
  3411. const jsonObj = JSON.parse(jsonStr);
  3412. if (jsonObj && jsonObj.time && jsonObj.market) {
  3413. jsonObj.market.Coin.ask = 1;
  3414. jsonObj.market.Coin.bid = 1;
  3415. console.log(jsonObj);
  3416. return jsonObj;
  3417. }
  3418. }
  3419.  
  3420. // Has recently fetched
  3421. if (
  3422. !forceFetch &&
  3423. localStorage.getItem("MWITools_marketAPI_timestamp") &&
  3424. Date.now() - localStorage.getItem("MWITools_marketAPI_timestamp") < 3600000 // 1 hr
  3425. ) {
  3426. return JSON.parse(localStorage.getItem("MWITools_marketAPI_json"));
  3427. }
  3428.  
  3429. // Start fetch
  3430. console.log("fetchMarketJSON fetch github start");
  3431. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch start \n";
  3432. console.log("use proxy: " + settingsMap.useGithubProxy.isTrue);
  3433. reasonForUsingExpiredMarketJson +=
  3434. new Date().toUTCString() + "use proxy: " + settingsMap.useGithubProxy.isTrue + "请尝试在设置中打开或关闭Github代理\n";
  3435. const response = await sendRequest({
  3436. url: settingsMap.useGithubProxy.isTrue ? MARKET_API_URL_PROXY : MARKET_API_URL,
  3437. method: "GET",
  3438. synchronous: true,
  3439. timeout: 5000,
  3440. onload: (response) => {
  3441. if (response.status == 200) {
  3442. console.log("fetchMarketJSON fetch github success 200");
  3443. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch onload 200 \n";
  3444. } else {
  3445. console.error("fetchMarketJSON fetch github onload with HTTP status failure " + response.status);
  3446. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch onload NOT 200 \n";
  3447. }
  3448. },
  3449. onabort: () => {
  3450. console.error("fetchMarketJSON fetch github onabort");
  3451. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch onabort \n";
  3452. },
  3453. onerror: () => {
  3454. console.error("fetchMarketJSON fetch github onerror");
  3455. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch onerror \n";
  3456. },
  3457. ontimeout: () => {
  3458. console.error("fetchMarketJSON fetch github ontimeout");
  3459. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch ontimeout \n";
  3460. },
  3461. });
  3462. console.log("fetchMarketJSON fetch github end with response status: " + response?.status);
  3463. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " fetch end with response status " + response?.status + "\n";
  3464.  
  3465. let jsonStr = response?.status === 200 ? response.responseText : null;
  3466.  
  3467. let jsonObj = validateMarketJsonFetch(jsonStr, true);
  3468.  
  3469. if (jsonObj) {
  3470. isUsingExpiredMarketJson = false;
  3471. reasonForUsingExpiredMarketJson = "";
  3472. const alertDiv = document.querySelector("div#script_api_fail_alert");
  3473. if (alertDiv) {
  3474. alertDiv.style.display = "none";
  3475. }
  3476. return jsonObj;
  3477. }
  3478.  
  3479. // Fetch failed
  3480. isUsingExpiredMarketJson = true;
  3481. reasonForUsingExpiredMarketJson += new Date().toUTCString() + " Setting isUsingExpiredMarketJson to true:\n";
  3482. reasonForUsingExpiredMarketJson += "Failed fetch";
  3483. const alertDiv = document.querySelector("div#script_api_fail_alert");
  3484. if (alertDiv) {
  3485. alertDiv.style.display = "block";
  3486. }
  3487.  
  3488. // Try previously fetched version
  3489. if (
  3490. localStorage.getItem("MWITools_marketAPI_json") &&
  3491. localStorage.getItem("MWITools_marketAPI_timestamp") &&
  3492. JSON.parse(MARKET_JSON_LOCAL_BACKUP).time * 1000 < localStorage.getItem("MWITools_marketAPI_timestamp")
  3493. ) {
  3494. console.error("fetchMarketJSON network error, using previously fetched version");
  3495. const jsonStr = localStorage.getItem("MWITools_marketAPI_json");
  3496. const jsonObj = validateMarketJsonFetch(jsonStr, false);
  3497. if (jsonObj) {
  3498. reasonForUsingExpiredMarketJson += "\nusing previously fetched version\n";
  3499. return jsonObj;
  3500. }
  3501. }
  3502.  
  3503. // Use hard-coded backup version
  3504. reasonForUsingExpiredMarketJson += "\nusing hard-coded backup version\n";
  3505. return validateMarketJsonFetch(MARKET_JSON_LOCAL_BACKUP, false);
  3506. }
  3507.  
  3508. function numberFormatter(num, digits = 1) {
  3509. if (num === null || num === undefined) {
  3510. return null;
  3511. }
  3512. if (num < 0) {
  3513. return "-" + numberFormatter(-num);
  3514. }
  3515. const lookup = [
  3516. { value: 1, symbol: "" },
  3517. { value: 1e3, symbol: "k" },
  3518. { value: 1e6, symbol: "M" },
  3519. { value: 1e9, symbol: "B" },
  3520. ];
  3521. const rx = /\.0+$|(\.[0-9]*[1-9])0+$/;
  3522. var item = lookup
  3523. .slice()
  3524. .reverse()
  3525. .find(function (item) {
  3526. return num >= item.value;
  3527. });
  3528. return item ? (num / item.value).toFixed(digits).replace(rx, "$1") + item.symbol : "0";
  3529. }
  3530.  
  3531. function getActionHridFromItemName(name) {
  3532. let newName = name.replace("Milk", "Cow");
  3533. newName = newName.replace("Log", "Tree");
  3534. newName = newName.replace("Cowing", "Milking");
  3535. newName = newName.replace("Rainbow Cow", "Unicow");
  3536. newName = newName.replace("Collector's Boots", "Collectors Boots");
  3537. newName = newName.replace("Knight's Aegis", "Knights Aegis");
  3538. if (!initData_actionDetailMap) {
  3539. console.error("getActionHridFromItemName no initData_actionDetailMap: " + name);
  3540. return null;
  3541. }
  3542. for (const action of Object.values(initData_actionDetailMap)) {
  3543. if (action.name === newName) {
  3544. return action.hrid;
  3545. }
  3546. }
  3547. return null;
  3548. }
  3549.  
  3550. /* 动作面板 */
  3551. const waitForActionPanelParent = () => {
  3552. const targetNode = document.querySelector("div.GamePage_mainPanel__2njyb");
  3553. if (targetNode) {
  3554. console.log("start observe action panel");
  3555. const actionPanelObserver = new MutationObserver(async function (mutations) {
  3556. for (const mutation of mutations) {
  3557. for (const added of mutation.addedNodes) {
  3558. if (
  3559. added?.classList?.contains("Modal_modalContainer__3B80m") &&
  3560. added.querySelector("div.SkillActionDetail_regularComponent__3oCgr")
  3561. ) {
  3562. handleActionPanel(added.querySelector("div.SkillActionDetail_regularComponent__3oCgr"));
  3563. }
  3564. }
  3565. }
  3566. });
  3567. actionPanelObserver.observe(targetNode, { attributes: false, childList: true, subtree: true });
  3568. } else {
  3569. setTimeout(waitForActionPanelParent, 200);
  3570. }
  3571. };
  3572.  
  3573. async function handleActionPanel(panel) {
  3574. if (!settingsMap.actionPanel_totalTime.isTrue) {
  3575. return;
  3576. }
  3577.  
  3578. if (!panel.querySelector("div.SkillActionDetail_expGain__F5xHu")) {
  3579. return; // 不处理战斗ActionPanel
  3580. }
  3581. let actionName = getOriTextFromElement(panel.querySelector("div.SkillActionDetail_name__3erHV"));
  3582. if (isZHInGameSetting) {
  3583. actionName = getActionEnNameFromZhName(actionName);
  3584. }
  3585.  
  3586. const exp = Number(
  3587. getOriTextFromElement(panel.querySelector("div.SkillActionDetail_expGain__F5xHu"))
  3588. .replaceAll(THOUSAND_SEPERATOR, "")
  3589. .replaceAll(DECIMAL_SEPERATOR, ".")
  3590. );
  3591.  
  3592. const elems = panel.querySelectorAll("div.SkillActionDetail_value__dQjYH");
  3593. const duration = Number(
  3594. getOriTextFromElement(elems[elems.length - 2])
  3595. .replaceAll(THOUSAND_SEPERATOR, "")
  3596. .replaceAll(DECIMAL_SEPERATOR, ".")
  3597. .replace("s", "")
  3598. );
  3599. const inputElem = panel.querySelector("div.SkillActionDetail_maxActionCountInput__1C0Pw input");
  3600.  
  3601. const actionHrid = initData_actionDetailMap[getActionHridFromItemName(actionName)].hrid;
  3602. const effBuff = 1 + getTotalEffiPercentage(actionHrid, false) / 100;
  3603.  
  3604. // 显示总时间
  3605. let hTMLStr = `<div id="showTotalTime" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${getTotalTimeStr(
  3606. inputElem.value,
  3607. duration,
  3608. effBuff
  3609. )}</div>`;
  3610. const gatherDiv = inputElem.parentNode.parentNode.parentNode;
  3611. gatherDiv.insertAdjacentHTML("afterend", hTMLStr);
  3612. const showTotalTimeDiv = panel.querySelector("div#showTotalTime");
  3613.  
  3614. panel.addEventListener("click", function (evt) {
  3615. setTimeout(() => {
  3616. showTotalTimeDiv.textContent = getTotalTimeStr(inputElem.value, duration, effBuff);
  3617. }, 50);
  3618. });
  3619. inputElem.addEventListener("keyup", function (evt) {
  3620. if (inputElem.value.toLowerCase().includes("k") || inputElem.value.toLowerCase().includes("m")) {
  3621. reactInputTriggerHack(inputElem, inputElem.value.toLowerCase().replaceAll("k", "000").replaceAll("m", "000000"));
  3622. }
  3623. showTotalTimeDiv.textContent = getTotalTimeStr(inputElem.value, duration, effBuff);
  3624. });
  3625.  
  3626. let appendAfterElem = showTotalTimeDiv;
  3627.  
  3628. // 显示快捷按钮
  3629. if (settingsMap.actionPanel_totalTime_quickInputs.isTrue) {
  3630. hTMLStr = `<div id="quickInputButtons" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${isZH ? "做 " : "Do "}</div>`;
  3631. showTotalTimeDiv.insertAdjacentHTML("afterend", hTMLStr);
  3632. const quickInputButtonsDiv = panel.querySelector("div#quickInputButtons");
  3633.  
  3634. const presetHours = [0.5, 1, 2, 3, 4, 5, 6, 10, 12, 24];
  3635. for (const value of presetHours) {
  3636. const btn = document.createElement("button");
  3637. btn.style.backgroundColor = "white";
  3638. btn.style.color = "black";
  3639. btn.style.padding = "1px 6px 1px 6px";
  3640. btn.style.margin = "1px";
  3641. btn.innerText = value === 0.5 ? 0.5 : numberFormatter(value);
  3642. btn.onclick = () => {
  3643. reactInputTriggerHack(inputElem, Math.round((value * 60 * 60 * effBuff) / duration));
  3644. };
  3645. quickInputButtonsDiv.append(btn);
  3646. }
  3647. quickInputButtonsDiv.append(document.createTextNode(isZH ? " 小时" : " hours"));
  3648.  
  3649. quickInputButtonsDiv.append(document.createElement("div"));
  3650. quickInputButtonsDiv.append(document.createTextNode(isZH ? "做 " : "Do "));
  3651. const presetTimes = [10, 100, 300, 500, 1000, 2000];
  3652. for (const value of presetTimes) {
  3653. const btn = document.createElement("button");
  3654. btn.style.backgroundColor = "white";
  3655. btn.style.color = "black";
  3656. btn.style.padding = "1px 6px 1px 6px";
  3657. btn.style.margin = "1px";
  3658. btn.innerText = numberFormatter(value);
  3659. btn.onclick = () => {
  3660. reactInputTriggerHack(inputElem, value);
  3661. };
  3662. quickInputButtonsDiv.append(btn);
  3663. }
  3664. quickInputButtonsDiv.append(document.createTextNode(isZH ? " 次" : " times"));
  3665.  
  3666. appendAfterElem = quickInputButtonsDiv;
  3667. }
  3668.  
  3669. // 还有多久到多少技能等级
  3670. const skillHrid = initData_actionDetailMap[getActionHridFromItemName(actionName)].experienceGain.skillHrid;
  3671. let currentExp = null;
  3672. let currentLevel = null;
  3673. for (const skill of initData_characterSkills) {
  3674. if (skill.skillHrid === skillHrid) {
  3675. currentExp = skill.experience;
  3676. currentLevel = skill.level;
  3677. break;
  3678. }
  3679. }
  3680. if (currentExp && currentLevel) {
  3681. const calculateNeedToLevel = (currentLevel, targetLevel, effBuff, duration, exp) => {
  3682. let needTotalTimeSec = 0;
  3683. let needTotalNumOfActions = 0;
  3684. for (let level = currentLevel; level < targetLevel; level++) {
  3685. let needExpToNextLevel = null;
  3686. if (level === currentLevel) {
  3687. needExpToNextLevel = initData_levelExperienceTable[level + 1] - currentExp;
  3688. } else {
  3689. needExpToNextLevel = initData_levelExperienceTable[level + 1] - initData_levelExperienceTable[level];
  3690. }
  3691. const extraLevelEffBuff = (level - currentLevel) * 0.01; // 升级过程中,每升一级,额外多1%效率
  3692. const needNumOfActionsToNextLevel = Math.round(needExpToNextLevel / exp);
  3693. needTotalNumOfActions += needNumOfActionsToNextLevel;
  3694. needTotalTimeSec += (needNumOfActionsToNextLevel / (effBuff + extraLevelEffBuff)) * duration;
  3695. }
  3696. return { numOfActions: needTotalNumOfActions, timeSec: needTotalTimeSec };
  3697. };
  3698.  
  3699. const need = calculateNeedToLevel(currentLevel, currentLevel + 1, effBuff, duration, exp);
  3700. hTMLStr = `<div id="tillLevel" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${
  3701. isZH ? "到 " : "To reach level "
  3702. }<input id="tillLevelInput" type="number" value="${currentLevel + 1}" min="${currentLevel + 1}" max="200">${
  3703. isZH ? " 级还需做 " : ", need to do "
  3704. }<span id="tillLevelNumber">${need.numOfActions}${isZH ? " 次" : " times "}[${timeReadable(need.timeSec)}]${
  3705. isZH ? " (刷新网页更新当前等级)" : " (Refresh page to update current level)"
  3706. }</span></div>`;
  3707.  
  3708. appendAfterElem.insertAdjacentHTML("afterend", hTMLStr);
  3709. const tillLevelInput = panel.querySelector("input#tillLevelInput");
  3710. const tillLevelNumber = panel.querySelector("span#tillLevelNumber");
  3711. tillLevelInput.onchange = () => {
  3712. const targetLevel = Number(tillLevelInput.value);
  3713. if (targetLevel > currentLevel && targetLevel <= 200) {
  3714. const need = calculateNeedToLevel(currentLevel, targetLevel, effBuff, duration, exp);
  3715. tillLevelNumber.textContent = `${need.numOfActions}${isZH ? " 次" : " times "}[${timeReadable(need.timeSec)}]${
  3716. isZH ? " (刷新网页更新当前等级)" : " (Refresh page to update current level)"
  3717. }`;
  3718. } else {
  3719. tillLevelNumber.textContent = "Error";
  3720. }
  3721. };
  3722. tillLevelInput.addEventListener("keyup", function (evt) {
  3723. const targetLevel = Number(tillLevelInput.value);
  3724. if (targetLevel > currentLevel && targetLevel <= 200) {
  3725. const need = calculateNeedToLevel(currentLevel, targetLevel, effBuff, duration, exp);
  3726. tillLevelNumber.textContent = `${need.numOfActions}${isZH ? " 次" : " times "}[${timeReadable(need.timeSec)}]${
  3727. isZH ? " (刷新网页更新当前等级)" : " (Refresh page to update current level)"
  3728. }`;
  3729. } else {
  3730. tillLevelNumber.textContent = "Error";
  3731. }
  3732. });
  3733. }
  3734.  
  3735. // 显示每小时经验
  3736. panel
  3737. .querySelector("div#tillLevel")
  3738. .insertAdjacentHTML(
  3739. "afterend",
  3740. `<div id="expPerHour" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${isZH ? "每小时经验: " : "Exp/hour: "}${numberFormatter(
  3741. Math.round((3600 / duration) * exp * effBuff)
  3742. )} (+${Number((effBuff - 1) * 100).toFixed(1)}%${isZH ? "效率" : " eff"})</div>`
  3743. );
  3744.  
  3745. // 显示Foraging最后一个图综合收益
  3746. if (panel.querySelector("div.SkillActionDetail_dropTable__3ViVp").children.length > 1 && settingsMap.actionPanel_foragingTotal.isTrue) {
  3747. const marketJson = await fetchMarketJSON();
  3748. const actionHrid = "/actions/foraging/" + actionName.toLowerCase().replaceAll(" ", "_");
  3749.  
  3750. // 茶效率
  3751. const teaBuffs = getTeaBuffsByActionHrid(actionHrid);
  3752.  
  3753. // 消耗饮料
  3754. let drinksConsumedPerHourAskPrice = 0;
  3755. let drinksConsumedPerHourBidPrice = 0;
  3756.  
  3757. const drinksList = initData_actionTypeDrinkSlotsMap[initData_actionDetailMap[actionHrid].type];
  3758. for (const drink of drinksList) {
  3759. if (!drink || !drink.itemHrid) {
  3760. continue;
  3761. }
  3762. const drinkName = initData_itemDetailMap[drink.itemHrid].name;
  3763. drinksConsumedPerHourAskPrice += (marketJson?.market[drinkName]?.ask ?? 0) * 12;
  3764. drinksConsumedPerHourBidPrice += (marketJson?.market[drinkName]?.bid ?? 0) * 12;
  3765. }
  3766.  
  3767. // 每小时动作数(包含工具缩减动作时间)
  3768. const baseTimePerActionSec = initData_actionDetailMap[actionHrid].baseTimeCost / 1000000000;
  3769. const toolPercent = getToolsSpeedBuffByActionHrid(actionHrid);
  3770. const actualTimePerActionSec = baseTimePerActionSec / (1 + toolPercent / 100);
  3771. let actionPerHour = 3600 / actualTimePerActionSec;
  3772.  
  3773. // 将掉落表看作每次动作掉落一件虚拟物品
  3774. const dropTable = initData_actionDetailMap[actionHrid].dropTable;
  3775. let virtualItemBid = 0;
  3776. for (const drop of dropTable) {
  3777. const bid = marketJson?.market[initData_itemDetailMap[drop.itemHrid].name]?.bid;
  3778. const amount = drop.dropRate * ((drop.minCount + drop.maxCount) / 2);
  3779. virtualItemBid += bid * amount;
  3780. }
  3781. let droprate = 1;
  3782. let itemPerHour = actionPerHour * droprate;
  3783.  
  3784. // 等级碾压提高效率(人物等级不及最低要求等级时,按最低要求等级计算)
  3785. const requiredLevel = initData_actionDetailMap[actionHrid].levelRequirement.level;
  3786. let currentLevel = requiredLevel;
  3787. for (const skill of initData_characterSkills) {
  3788. if (skill.skillHrid === initData_actionDetailMap[actionHrid].levelRequirement.skillHrid) {
  3789. currentLevel = skill.level;
  3790. break;
  3791. }
  3792. }
  3793. const levelEffBuff = currentLevel - requiredLevel > 0 ? currentLevel - requiredLevel : 0;
  3794.  
  3795. // 房子效率
  3796. const houseEffBuff = getHousesEffBuffByActionHrid(actionHrid);
  3797.  
  3798. // 特殊装备效率
  3799. const itemEffiBuff = Number(getItemEffiBuffByActionHrid(actionHrid));
  3800.  
  3801. // 总效率影响动作数/生产物品数
  3802. actionPerHour *= 1 + (levelEffBuff + houseEffBuff + teaBuffs.efficiency + itemEffiBuff) / 100;
  3803. itemPerHour *= 1 + (levelEffBuff + houseEffBuff + teaBuffs.efficiency + itemEffiBuff) / 100;
  3804.  
  3805. // 茶额外产品数量(不消耗原料)
  3806. const extraFreeItemPerHour = (itemPerHour * teaBuffs.quantity) / 100;
  3807.  
  3808. // 出售市场税
  3809. const bidAfterTax = virtualItemBid * 0.98;
  3810.  
  3811. // 每小时利润
  3812. const profitPerHour = itemPerHour * bidAfterTax + extraFreeItemPerHour * bidAfterTax - drinksConsumedPerHourAskPrice;
  3813.  
  3814. let htmlStr = `<div id="totalProfit" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${
  3815. isZH ? "综合利润: " : "Overall profit: "
  3816. }${numberFormatter(profitPerHour)}${isZH ? "/小时" : "/hour"}, ${numberFormatter(24 * profitPerHour)}${isZH ? "/天" : "/day"}</div>`;
  3817. panel.querySelector("div#expPerHour").insertAdjacentHTML("afterend", htmlStr);
  3818. }
  3819. }
  3820.  
  3821. function getTotalEffiPercentage(actionHrid, debug = false) {
  3822. if (debug) {
  3823. console.log("----- getTotalEffiPercentage " + actionHrid);
  3824. }
  3825. // 等级碾压效率
  3826. const requiredLevel = initData_actionDetailMap[actionHrid].levelRequirement.level;
  3827. let currentLevel = requiredLevel;
  3828. for (const skill of initData_characterSkills) {
  3829. if (skill.skillHrid === initData_actionDetailMap[actionHrid].levelRequirement.skillHrid) {
  3830. currentLevel = skill.level;
  3831. break;
  3832. }
  3833. }
  3834. const levelEffBuff = currentLevel - requiredLevel > 0 ? currentLevel - requiredLevel : 0;
  3835. if (debug) {
  3836. console.log("等级碾压 " + levelEffBuff);
  3837. }
  3838. // 房子效率
  3839. const houseEffBuff = getHousesEffBuffByActionHrid(actionHrid);
  3840. if (debug) {
  3841. console.log("房子 " + houseEffBuff);
  3842. }
  3843. // 茶
  3844. const teaBuffs = getTeaBuffsByActionHrid(actionHrid);
  3845. if (debug) {
  3846. console.log("茶 " + teaBuffs.efficiency);
  3847. }
  3848. // 特殊装备
  3849. const itemEffiBuff = getItemEffiBuffByActionHrid(actionHrid);
  3850. if (debug) {
  3851. console.log("特殊装备 " + itemEffiBuff);
  3852. }
  3853. // 总效率
  3854. const total = levelEffBuff + houseEffBuff + teaBuffs.efficiency + Number(itemEffiBuff);
  3855. if (debug) {
  3856. console.log("总计 " + total);
  3857. }
  3858. return total;
  3859. }
  3860.  
  3861. function getTotalTimeStr(input, duration, effBuff) {
  3862. if (input === "∞") {
  3863. return "[∞]";
  3864. } else if (isNaN(input)) {
  3865. return "Error";
  3866. }
  3867. return "[" + timeReadable(Math.round(input / effBuff) * duration) + "]";
  3868. }
  3869.  
  3870. function reactInputTriggerHack(inputElem, value) {
  3871. let lastValue = inputElem.value;
  3872. inputElem.value = value;
  3873. let event = new Event("input", { bubbles: true });
  3874. event.simulated = true;
  3875. let tracker = inputElem._valueTracker;
  3876. if (tracker) {
  3877. tracker.setValue(lastValue);
  3878. }
  3879. inputElem.dispatchEvent(event);
  3880. }
  3881.  
  3882. /* 左侧栏显示技能百分比 */
  3883. const waitForProgressBar = () => {
  3884. const elements = document.querySelectorAll(".NavigationBar_currentExperience__3GDeX");
  3885. if (elements.length) {
  3886. removeInsertedDivs();
  3887. elements.forEach((element) => {
  3888. let text = element.style.width;
  3889. text = Number(text.replace("%", "")).toFixed(2) + "%";
  3890.  
  3891. const span = document.createElement("span");
  3892. span.textContent = text;
  3893. span.classList.add("insertedSpan");
  3894. span.style.fontSize = "13px";
  3895. span.style.color = SCRIPT_COLOR_MAIN;
  3896.  
  3897. element.parentNode.parentNode.querySelector("span.NavigationBar_level__3C7eR").style.width = "auto";
  3898.  
  3899. const insertParent = element.parentNode.parentNode.children[0];
  3900. insertParent.insertBefore(span, insertParent.children[1]);
  3901. });
  3902. } else {
  3903. setTimeout(waitForProgressBar, 200);
  3904. }
  3905. };
  3906.  
  3907. const removeInsertedDivs = () => document.querySelectorAll("span.insertedSpan").forEach((div) => div.parentNode.removeChild(div));
  3908.  
  3909. if (settingsMap.expPercentage.isTrue) {
  3910. window.setInterval(() => {
  3911. removeInsertedDivs();
  3912. waitForProgressBar();
  3913. }, 1000);
  3914. }
  3915.  
  3916. /* 战斗总结 */
  3917. async function handleBattleSummary(message) {
  3918. const marketJson = await fetchMarketJSON();
  3919. let hasMarketJson = true;
  3920. if (!marketJson) {
  3921. console.error("handleBattleSummary null marketAPI");
  3922. hasMarketJson = false;
  3923. }
  3924. let totalPriceAsk = 0;
  3925. let totalPriceAskBid = 0;
  3926. let totalRawCoins = 0; // For IC
  3927.  
  3928. if (hasMarketJson) {
  3929. for (const loot of Object.values(message.unit.totalLootMap)) {
  3930. const itemName = initData_itemDetailMap[loot.itemHrid].name;
  3931. const itemCount = loot.count;
  3932. if (itemName === "Coin") {
  3933. totalRawCoins += itemCount;
  3934. }
  3935. if (marketJson.market[itemName]) {
  3936. totalPriceAsk += marketJson.market[itemName].ask * itemCount;
  3937. totalPriceAskBid += marketJson.market[itemName].bid * itemCount;
  3938. } else {
  3939. console.log("handleBattleSummary failed to read price of " + loot.itemHrid);
  3940. }
  3941. }
  3942. }
  3943.  
  3944. let totalSkillsExp = 0;
  3945. for (const exp of Object.values(message.unit.totalSkillExperienceMap)) {
  3946. totalSkillsExp += exp;
  3947. }
  3948.  
  3949. let tryTimes = 0;
  3950. findElem();
  3951. function findElem() {
  3952. tryTimes++;
  3953. let elem = document.querySelector(".BattlePanel_gainedExp__3SaCa")?.parentElement;
  3954. if (elem) {
  3955. // 战斗时长和次数
  3956. let battleDurationSec = null;
  3957. const combatInfoElement = document.querySelector(".BattlePanel_combatInfo__sHGCe");
  3958. if (combatInfoElement) {
  3959. let matches = combatInfoElement.innerHTML.match(
  3960. /(战斗时间|战斗时长|Combat Duration): (?:(\d+)d\s*)?(?:(\d+)h\s*)?(?:(\d+)m\s*)?(?:(\d+)s).*?(交战|战斗|Battles): (\d+).*?(战败|死亡次数|Deaths): (\d+)/
  3961. );
  3962. if (matches) {
  3963. let days = parseInt(matches[2], 10) || 0;
  3964. let hours = parseInt(matches[3], 10) || 0;
  3965. let minutes = parseInt(matches[4], 10) || 0;
  3966. let seconds = parseInt(matches[5], 10) || 0;
  3967. let battles = parseInt(matches[7], 10) - 1; // 排除当前战斗
  3968. battleDurationSec = days * 86400 + hours * 3600 + minutes * 60 + seconds;
  3969. let efficiencyPerHour = ((battles / battleDurationSec) * 3600).toFixed(1);
  3970. elem.insertAdjacentHTML(
  3971. "beforeend",
  3972. `<div id="script_battleNumbers" style="color: ${SCRIPT_COLOR_MAIN};">${
  3973. isZH ? "每小时战斗: " : "Encounters/hour: "
  3974. }${efficiencyPerHour}${isZH ? " 次" : ""}</div>`
  3975. );
  3976. }
  3977. }
  3978. // 总收入
  3979. document
  3980. .querySelector("div#script_battleNumbers")
  3981. .insertAdjacentHTML(
  3982. "afterend",
  3983. `<div id="script_totalIncome" style="color: ${SCRIPT_COLOR_MAIN};">${isZH ? "总收获: " : "Total revenue: "}${numberFormatter(
  3984. totalPriceAsk
  3985. )} / ${numberFormatter(totalPriceAskBid)}</div>`
  3986. );
  3987. // 平均收入
  3988. if (battleDurationSec) {
  3989. document
  3990. .querySelector("div#script_totalIncome")
  3991. .insertAdjacentHTML(
  3992. "afterend",
  3993. `<div id="script_averageIncome" style="color: ${SCRIPT_COLOR_MAIN};">${
  3994. isZH ? "每小时收获: " : "Revenue/hour: "
  3995. }${numberFormatter(totalPriceAsk / (battleDurationSec / 60 / 60))} / ${numberFormatter(
  3996. totalPriceAskBid / (battleDurationSec / 60 / 60)
  3997. )}</div>`
  3998. );
  3999. document
  4000. .querySelector("div#script_averageIncome")
  4001. .insertAdjacentHTML(
  4002. "afterend",
  4003. `<div id="script_totalIncomeDay" style="color: ${SCRIPT_COLOR_MAIN};">${
  4004. isZH ? "每天收获: " : "Revenue/day: "
  4005. }${numberFormatter((totalPriceAsk / (battleDurationSec / 60 / 60)) * 24)} / ${numberFormatter(
  4006. (totalPriceAskBid / (battleDurationSec / 60 / 60)) * 24
  4007. )}</div>`
  4008. );
  4009. document
  4010. .querySelector("div#script_totalIncomeDay")
  4011. .insertAdjacentHTML(
  4012. "afterend",
  4013. `<div id="script_avgRawCoinHour" style="color: ${SCRIPT_COLOR_MAIN};">${
  4014. isZH ? "每小时仅金币收获: " : "Raw coins/hour: "
  4015. }${numberFormatter(totalRawCoins / (battleDurationSec / 60 / 60))}</div>`
  4016. );
  4017. }
  4018. // 总经验
  4019. document
  4020. .querySelector("div#script_avgRawCoinHour")
  4021. .insertAdjacentHTML(
  4022. "afterend",
  4023. `<div id="script_totalSkillsExp" style="color: ${SCRIPT_COLOR_MAIN};">${isZH ? "总经验: " : "Total exp: "}${numberFormatter(
  4024. totalSkillsExp
  4025. )}</div>`
  4026. );
  4027. // 平均经验
  4028. if (battleDurationSec) {
  4029. document
  4030. .querySelector("div#script_totalSkillsExp")
  4031. .insertAdjacentHTML(
  4032. "afterend",
  4033. `<div id="script_averageSkillsExp" style="color: ${SCRIPT_COLOR_MAIN};">${
  4034. isZH ? "每小时总经验: " : "Total exp/hour: "
  4035. }${numberFormatter(totalSkillsExp / (battleDurationSec / 60 / 60))}</div>`
  4036. );
  4037.  
  4038. [
  4039. { skillHrid: "/skills/magic", zhName: "魔法", enName: "Magic" },
  4040. { skillHrid: "/skills/ranged", zhName: "远程", enName: "Ranged" },
  4041. { skillHrid: "/skills/defense", zhName: "防御", enName: "Defense" },
  4042. { skillHrid: "/skills/power", zhName: "力量", enName: "Power" },
  4043. { skillHrid: "/skills/attack", zhName: "攻击", enName: "Attack" },
  4044. { skillHrid: "/skills/intelligence", zhName: "智力", enName: "Intelligence" },
  4045. { skillHrid: "/skills/stamina", zhName: "耐力", enName: "Stamina" },
  4046. ].forEach((skill) => {
  4047. const expGained = message.unit.totalSkillExperienceMap[skill.skillHrid];
  4048. if (expGained) {
  4049. document
  4050. .querySelector("div#script_totalSkillsExp")
  4051. .insertAdjacentHTML(
  4052. "afterend",
  4053. `<div style="color: ${SCRIPT_COLOR_MAIN};">${isZH ? "每小时" : ""}${isZH ? skill.zhName : skill.enName}${
  4054. isZH ? "经验: " : " exp/hour: "
  4055. }${numberFormatter(expGained / (battleDurationSec / 60 / 60))}</div>`
  4056. );
  4057. }
  4058. });
  4059. } else {
  4060. console.error("handleBattleSummary unable to display average exp due to null battleDurationSec");
  4061. }
  4062. } else if (tryTimes <= 10) {
  4063. setTimeout(findElem, 200);
  4064. } else {
  4065. console.error("handleBattleSummary: Elem not found after 10 tries.");
  4066. }
  4067. }
  4068. }
  4069.  
  4070. /* 图标上显示装备等级 */
  4071. function addItemLevels() {
  4072. const iconDivs = document.querySelectorAll("div.Item_itemContainer__x7kH1 div.Item_item__2De2O.Item_clickable__3viV6");
  4073. for (const div of iconDivs) {
  4074. if (div.querySelector("div.Item_name__2C42x")) {
  4075. continue;
  4076. }
  4077. const href = div.querySelector("use").getAttribute("href");
  4078. const hrefName = href.split("#")[1];
  4079. const itemHrid = "/items/" + hrefName;
  4080. const itemLevel = initData_itemDetailMap[itemHrid]?.itemLevel;
  4081. const itemAbilityLevel = initData_itemDetailMap[itemHrid]?.abilityBookDetail?.levelRequirements?.[0]?.level;
  4082.  
  4083. if (initData_itemDetailMap[itemHrid]?.equipmentDetail && itemLevel && itemLevel > 0) {
  4084. if (!div.querySelector("div.script_itemLevel")) {
  4085. div.style.position = "relative";
  4086. div.insertAdjacentHTML(
  4087. "beforeend",
  4088. `<div class="script_itemLevel" style="z-index: 1; position: absolute; top: 2px; right: 2px; text-align: right; color: ${SCRIPT_COLOR_MAIN};">${itemLevel}</div>`
  4089. );
  4090. }
  4091. if (
  4092. !initData_itemDetailMap[itemHrid]?.equipmentDetail?.type?.includes("_tool") &&
  4093. div.parentElement.parentElement.parentElement.className.includes("MarketplacePanel_marketItems__D4k7e")
  4094. ) {
  4095. handleMarketItemFilter(div, initData_itemDetailMap[itemHrid]);
  4096. }
  4097. } else if (itemAbilityLevel && itemAbilityLevel > 0) {
  4098. if (!div.querySelector("div.script_itemLevel")) {
  4099. div.style.position = "relative";
  4100. div.insertAdjacentHTML(
  4101. "beforeend",
  4102. `<div class="script_itemLevel" style="z-index: 1; position: absolute; top: 2px; right: 2px; text-align: right; color: ${SCRIPT_COLOR_MAIN};">${itemAbilityLevel}</div>`
  4103. );
  4104. }
  4105. } else if (settingsMap.showsKeyInfoInIcon.isTrue && (itemHrid.includes("_key_fragment") || itemHrid.includes("_key"))) {
  4106. const map = new Map();
  4107. map.set("/items/blue_key_fragment", isZH ? "图3" : "Z3");
  4108. map.set("/items/green_key_fragment", isZH ? "图4" : "Z4");
  4109. map.set("/items/purple_key_fragment", isZH ? "图5" : "Z5");
  4110. map.set("/items/white_key_fragment", isZH ? "图6" : "Z6");
  4111. map.set("/items/orange_key_fragment", isZH ? "图7" : "Z7");
  4112. map.set("/items/brown_key_fragment", isZH ? "图8" : "Z8");
  4113. map.set("/items/stone_key_fragment", isZH ? "图9" : "Z9");
  4114. map.set("/items/dark_key_fragment", isZH ? "图10" : "Z10");
  4115. map.set("/items/burning_key_fragment", isZH ? "图11" : "Z11");
  4116.  
  4117. map.set("/items/chimerical_entry_key", isZH ? "牢1" : "D1");
  4118. map.set("/items/sinister_entry_key", isZH ? "牢2" : "D2");
  4119. map.set("/items/enchanted_entry_key", isZH ? "牢3" : "D3");
  4120. map.set("/items/pirate_entry_key", isZH ? "牢4" : "D4");
  4121.  
  4122. map.set("/items/chimerical_chest_key", "3.4.5.6");
  4123. map.set("/items/sinister_chest_key", "5.7.8.10");
  4124. map.set("/items/enchanted_chest_key", "7.8.9.11");
  4125. map.set("/items/pirate_chest_key", "6.9.10.11");
  4126.  
  4127. if (!div.querySelector("div.script_key")) {
  4128. div.style.position = "relative";
  4129. div.insertAdjacentHTML(
  4130. "beforeend",
  4131. `<div class="script_key" style="z-index: 1; position: absolute; top: 2px; right: 2px; text-align: right; color: ${SCRIPT_COLOR_MAIN};">${map.get(
  4132. itemHrid
  4133. )}</div>`
  4134. );
  4135. }
  4136. }
  4137. }
  4138. }
  4139. if (settingsMap.itemIconLevel.isTrue) {
  4140. setInterval(addItemLevels, 500);
  4141. }
  4142.  
  4143. /* 市场物品筛选 */
  4144. let onlyShowItemsAboveLevel = 1;
  4145. let onlyShowItemsBelowLevel = 1000;
  4146. let onlyShowItemsType = "all";
  4147. let onlyShowItemsSkillReq = "all";
  4148.  
  4149. function addMarketFilterButtons() {
  4150. const oriFilter = document.querySelector(".MarketplacePanel_itemFilterContainer__3F3td");
  4151. let filters = document.querySelector("#script_filters");
  4152. if (oriFilter && !filters) {
  4153. oriFilter.insertAdjacentHTML("afterend", `<div id="script_filters" style="float: left; color: ${SCRIPT_COLOR_MAIN};"></div>`);
  4154. filters = document.querySelector("#script_filters");
  4155. filters.insertAdjacentHTML(
  4156. "beforeend",
  4157. `<span id="script_filter_level" style="float: left; color: ${SCRIPT_COLOR_MAIN};">${isZH ? "等级: 大于等于 " : "Equipment level: >= "}
  4158. <select name="script_filter_level_select" id="script_filter_level_select">
  4159. <option value="1">All</option>
  4160. <option value="10">10</option>
  4161. <option value="20">20</option>
  4162. <option value="30">30</option>
  4163. <option value="40">40</option>
  4164. <option value="50">50</option>
  4165. <option value="60">60</option>
  4166. <option value="65">65</option>
  4167. <option value="70">70</option>
  4168. <option value="75">75</option>
  4169. <option value="80">80</option>
  4170. <option value="85">85</option>
  4171. <option value="90">90</option>
  4172. <option value="95">95</option>
  4173. <option value="100">100</option>
  4174. </select>&nbsp;</span>`
  4175. );
  4176. filters.insertAdjacentHTML(
  4177. "beforeend",
  4178. `<span id="script_filter_level_to" style="float: left; color: ${SCRIPT_COLOR_MAIN};">${isZH ? "小于 " : "< "}
  4179. <select name="script_filter_level_select_to" id="script_filter_level_select_to">
  4180. <option value="1000">All</option>
  4181. <option value="10">10</option>
  4182. <option value="20">20</option>
  4183. <option value="30">30</option>
  4184. <option value="40">40</option>
  4185. <option value="50">50</option>
  4186. <option value="60">60</option>
  4187. <option value="65">65</option>
  4188. <option value="70">70</option>
  4189. <option value="75">75</option>
  4190. <option value="80">80</option>
  4191. <option value="85">85</option>
  4192. <option value="90">90</option>
  4193. <option value="95">95</option>
  4194. <option value="100">100</option>
  4195. </select>&emsp;</span>`
  4196. );
  4197. filters.insertAdjacentHTML(
  4198. "beforeend",
  4199. `<span id="script_filter_skill" style="float: left; color: ${SCRIPT_COLOR_MAIN};">${isZH ? "职业: " : "Class: "}
  4200. <select name="script_filter_skill_select" id="script_filter_skill_select">
  4201. <option value="all">All</option>
  4202. <option value="attack">Attack</option>
  4203. <option value="power">Power</option>
  4204. <option value="defense">Defense</option>
  4205. <option value="ranged">Ranged</option>
  4206. <option value="magic">Magic</option>
  4207. <option value="others">Others</option>
  4208. </select>&emsp;</span>`
  4209. );
  4210. filters.insertAdjacentHTML(
  4211. "beforeend",
  4212. `<span id="script_filter_location" style="float: left; color: ${SCRIPT_COLOR_MAIN};">${isZH ? "部位: " : "Slot: "}
  4213. <select name="script_filter_location_select" id="script_filter_location_select">
  4214. <option value="all">All</option>
  4215. <option value="main_hand">Main Hand</option>
  4216. <option value="off_hand">Off Hand</option>
  4217. <option value="two_hand">Two Hand</option>
  4218. <option value="head">Head</option>
  4219. <option value="body">Body</option>
  4220. <option value="hands">Hands</option>
  4221. <option value="legs">Legs</option>
  4222. <option value="feet">Feet</option>
  4223. <option value="neck">Neck</option>
  4224. <option value="earrings">Earrings</option>
  4225. <option value="ring">Ring</option>
  4226. <option value="pouch">Pouch</option>
  4227. <option value="back">Back</option>
  4228. </select>&emsp;</span>`
  4229. );
  4230.  
  4231. const levelFilter = document.querySelector("#script_filter_level_select");
  4232. levelFilter.addEventListener("change", function () {
  4233. if (levelFilter.value && !isNaN(levelFilter.value)) {
  4234. onlyShowItemsAboveLevel = Number(levelFilter.value);
  4235. }
  4236. });
  4237. const levelToFilter = document.querySelector("#script_filter_level_select_to");
  4238. levelToFilter.addEventListener("change", function () {
  4239. if (levelToFilter.value && !isNaN(levelToFilter.value)) {
  4240. onlyShowItemsBelowLevel = Number(levelToFilter.value);
  4241. }
  4242. });
  4243. const skillFilter = document.querySelector("#script_filter_skill_select");
  4244. skillFilter.addEventListener("change", function () {
  4245. if (skillFilter.value) {
  4246. onlyShowItemsSkillReq = skillFilter.value;
  4247. }
  4248. });
  4249. const locationFilter = document.querySelector("#script_filter_location_select");
  4250. locationFilter.addEventListener("change", function () {
  4251. if (locationFilter.value) {
  4252. onlyShowItemsType = locationFilter.value;
  4253. }
  4254. });
  4255. }
  4256. }
  4257. if (settingsMap.marketFilter.isTrue) {
  4258. setInterval(addMarketFilterButtons, 500);
  4259. }
  4260.  
  4261. function handleMarketItemFilter(div, itemDetal) {
  4262. if (!itemDetal.equipmentDetail) {
  4263. return;
  4264. }
  4265.  
  4266. const itemLevel = itemDetal.itemLevel;
  4267. const type = itemDetal.equipmentDetail.type;
  4268. const levelRequirements = itemDetal.equipmentDetail.levelRequirements;
  4269.  
  4270. let isType = false;
  4271. isType = type && type.includes(onlyShowItemsType);
  4272. if (onlyShowItemsType === "all") {
  4273. isType = true;
  4274. }
  4275.  
  4276. let isRequired = false;
  4277. for (const requirement of levelRequirements) {
  4278. if (requirement.skillHrid.includes(onlyShowItemsSkillReq)) {
  4279. isRequired = true;
  4280. }
  4281. }
  4282. if (onlyShowItemsSkillReq === "others") {
  4283. const combatTypes = ["attack", "power", "defense", "ranged", "magic"];
  4284. isRequired = !combatTypes.some((type) => {
  4285. for (const requirement of levelRequirements) {
  4286. if (requirement.skillHrid.includes(type)) {
  4287. return true;
  4288. }
  4289. }
  4290. });
  4291. }
  4292. if (onlyShowItemsSkillReq === "all") {
  4293. isRequired = true;
  4294. }
  4295.  
  4296. if (itemLevel >= onlyShowItemsAboveLevel && itemLevel < onlyShowItemsBelowLevel && isType && isRequired) {
  4297. div.style.display = "block";
  4298. } else {
  4299. div.style.display = "none";
  4300. }
  4301. }
  4302.  
  4303. /* 任务卡片显示战斗地图序号 */
  4304. function handleTaskCard() {
  4305. const taskNameDivs = document.querySelectorAll("div.RandomTask_randomTask__3B9fA div.RandomTask_name__1hl1b");
  4306. for (const div of taskNameDivs) {
  4307. if (div.querySelector("span.script_taskMapIndex")) {
  4308. continue;
  4309. }
  4310.  
  4311. const taskStr = getOriTextFromElement(div);
  4312. if (!taskStr.startsWith("Defeat - ") && !taskStr.startsWith("击败 - ")) {
  4313. continue;
  4314. }
  4315.  
  4316. let monsterName = taskStr.replace("Defeat - ", "").replace("击败 - ", "");
  4317. let actionHrid = null;
  4318. if (isZHInGameSetting) {
  4319. actionHrid = (
  4320. getOthersFromZhName(monsterName) ? getOthersFromZhName(monsterName) : getActionEnNameFromZhName(monsterName)
  4321. )?.replaceAll("/monsters/", "/actions/combat/");
  4322. }
  4323.  
  4324. let actionObj = null;
  4325. for (const action of Object.values(initData_actionDetailMap)) {
  4326. if (action.hrid.includes("/combat/")) {
  4327. if (action.hrid === actionHrid || action.name.toLowerCase() === monsterName.toLowerCase()) {
  4328. actionObj = action;
  4329. break;
  4330. } else if (action.combatZoneInfo.fightInfo.battlesPerBoss === 10) {
  4331. if (
  4332. actionHrid?.replaceAll("/actions/combat/", "/monsters/") ===
  4333. action.combatZoneInfo.fightInfo.bossSpawns[0].combatMonsterHrid ||
  4334. "/monsters/" + monsterName.toLowerCase().replaceAll(" ", "_") ===
  4335. action.combatZoneInfo.fightInfo.bossSpawns[0].combatMonsterHrid
  4336. ) {
  4337. actionObj = action;
  4338. break;
  4339. }
  4340. }
  4341. }
  4342. }
  4343. const actionCategoryHrid = actionObj?.category;
  4344. const index = initData_actionCategoryDetailMap?.[actionCategoryHrid]?.sortIndex;
  4345. if (index) {
  4346. div.insertAdjacentHTML(
  4347. "beforeend",
  4348. `<span class="script_taskMapIndex" style="text-align: right; color: ${SCRIPT_COLOR_MAIN};"> ${isZH ? "图" : "Z"}${index}</span>`
  4349. );
  4350. }
  4351. }
  4352. }
  4353. if (settingsMap.taskMapIndex.isTrue) {
  4354. setInterval(handleTaskCard, 500);
  4355. }
  4356.  
  4357. /* 显示战斗地图序号 */
  4358. function addIndexToMaps() {
  4359. const buttons = document.querySelectorAll(
  4360. "div.MainPanel_subPanelContainer__1i-H9 div.CombatPanel_tabsComponentContainer__GsQlg div.MuiTabs-root.MuiTabs-vertical.css-6x4ics button.MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.css-1q2h7u5 span.MuiBadge-root.TabsComponent_badge__1Du26.css-1rzb3uu"
  4361. );
  4362. let index = 1;
  4363. for (const button of buttons) {
  4364. if (!button.querySelector("span.script_mapIndex")) {
  4365. button.insertAdjacentHTML("afterbegin", `<span class="script_mapIndex" style="color: ${SCRIPT_COLOR_MAIN};">${index++}. </span>`);
  4366. }
  4367. }
  4368. }
  4369. if (settingsMap.mapIndex.isTrue) {
  4370. setInterval(addIndexToMaps, 500);
  4371. }
  4372.  
  4373. /* 物品词典窗口显示还需多少技能书到X级 */
  4374. const waitForItemDict = () => {
  4375. const targetNode = document.querySelector("div.GamePage_gamePage__ixiPl");
  4376. if (targetNode) {
  4377. console.log("start observe item dict");
  4378. const itemDictPanelObserver = new MutationObserver(async function (mutations) {
  4379. for (const mutation of mutations) {
  4380. for (const added of mutation.addedNodes) {
  4381. if (
  4382. added?.classList?.contains("Modal_modalContainer__3B80m") &&
  4383. added.querySelector("div.ItemDictionary_modalContent__WvEBY")
  4384. ) {
  4385. handleItemDict(added.querySelector("div.ItemDictionary_modalContent__WvEBY"));
  4386. }
  4387. }
  4388. }
  4389. });
  4390. itemDictPanelObserver.observe(targetNode, { attributes: false, childList: true, subtree: true });
  4391. } else {
  4392. setTimeout(waitForItemDict, 200);
  4393. }
  4394. };
  4395.  
  4396. async function handleItemDict(panel) {
  4397. let abilityHrid = null;
  4398. if (isZHInGameSetting) {
  4399. abilityHrid = getOthersFromZhName(panel.querySelector("h1.ItemDictionary_title__27cTd").textContent);
  4400. } else {
  4401. const itemName = getOriTextFromElement(panel.querySelector("h1.ItemDictionary_title__27cTd"))
  4402. .toLowerCase()
  4403. .replaceAll(" ", "_")
  4404. .replaceAll("'", "");
  4405. for (const skillHrid of Object.keys(initData_abilityDetailMap)) {
  4406. if (skillHrid.includes("/" + itemName)) {
  4407. abilityHrid = skillHrid;
  4408. }
  4409. }
  4410. }
  4411. if (!abilityHrid) {
  4412. return;
  4413. }
  4414.  
  4415. const itemHrid = abilityHrid.replace("/abilities/", "/items/");
  4416. const abilityPerBookExp = initData_itemDetailMap[itemHrid]?.abilityBookDetail?.experienceGain;
  4417.  
  4418. let currentLevel = 0;
  4419. let currentExp = 0;
  4420. for (const a of Object.values(initData_characterAbilities)) {
  4421. if (a.abilityHrid === abilityHrid) {
  4422. currentLevel = a.level;
  4423. currentExp = a.experience;
  4424. }
  4425. }
  4426.  
  4427. const getNeedBooksToLevel = (currentLevel, currentExp, targetLevel, abilityPerBookExp) => {
  4428. const needExp = initData_levelExperienceTable[targetLevel] - currentExp;
  4429. let needBooks = needExp / abilityPerBookExp;
  4430. if (currentLevel === 0) {
  4431. needBooks += 1;
  4432. }
  4433. return needBooks.toFixed(1);
  4434. };
  4435.  
  4436. let numBooks = getNeedBooksToLevel(currentLevel, currentExp, currentLevel + 1, abilityPerBookExp);
  4437.  
  4438. const marketAPIJson = await fetchMarketJSON();
  4439. const itemName = initData_itemDetailMap[itemHrid].name;
  4440. const ask = marketAPIJson.market[itemName].ask || 0;
  4441. const bid = marketAPIJson.market[itemName].bid || 0;
  4442.  
  4443. let hTMLStr = `<div id="tillLevel" style="color: ${SCRIPT_COLOR_MAIN}; text-align: left;">${
  4444. isZH ? "到 " : "To "
  4445. }<input id="tillLevelInput" type="number" value="${currentLevel + 1}" min="${currentLevel + 1}" max="200">${
  4446. isZH ? " 级还需 " : " level need "
  4447. }
  4448. <span id="tillLevelNumber">${numBooks} (${numberFormatter(numBooks * ask)} / ${numberFormatter(numBooks * bid)})</span>
  4449. <div>${isZH ? " 本书 (刷新网页更新当前等级)" : " books (Refresh page to update current level.)"}</div>
  4450. </div>`;
  4451. panel.insertAdjacentHTML("beforeend", hTMLStr);
  4452.  
  4453. const tillLevelInput = panel.querySelector("input#tillLevelInput");
  4454. const tillLevelNumber = panel.querySelector("span#tillLevelNumber");
  4455. tillLevelInput.onchange = () => {
  4456. const targetLevel = Number(tillLevelInput.value);
  4457. if (targetLevel > currentLevel && targetLevel <= 200) {
  4458. let numBooks = getNeedBooksToLevel(currentLevel, currentExp, targetLevel, abilityPerBookExp);
  4459. tillLevelNumber.textContent = `${numBooks} (${numberFormatter(numBooks * ask)} / ${numberFormatter(numBooks * bid)})`;
  4460. } else {
  4461. tillLevelNumber.textContent = "Error";
  4462. }
  4463. };
  4464. tillLevelInput.addEventListener("keyup", function (evt) {
  4465. const targetLevel = Number(tillLevelInput.value);
  4466. if (targetLevel > currentLevel && targetLevel <= 200) {
  4467. let numBooks = getNeedBooksToLevel(currentLevel, currentExp, targetLevel, abilityPerBookExp);
  4468. tillLevelNumber.textContent = `${numBooks} (${numberFormatter(numBooks * ask)} / ${numberFormatter(numBooks * bid)})`;
  4469. } else {
  4470. tillLevelNumber.textContent = "Error";
  4471. }
  4472. });
  4473. }
  4474.  
  4475. /* 添加第三方网站链接 */
  4476. function add3rdPartyLinks() {
  4477. const waitForNavi = () => {
  4478. const targetNode = document.querySelector("div.NavigationBar_minorNavigationLinks__dbxh7");
  4479. if (targetNode) {
  4480. let div = document.createElement("div");
  4481. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4482. div.style.color = SCRIPT_COLOR_MAIN;
  4483. div.innerHTML = isZH ? "插件设置" : "Script settings";
  4484. div.addEventListener("click", () => {
  4485. const array = document.querySelectorAll(".NavigationBar_navigationLink__3eAHA");
  4486. array[array.length - 1]?.click();
  4487. });
  4488. targetNode.insertAdjacentElement("afterbegin", div);
  4489.  
  4490. if (isZH) {
  4491. div = document.createElement("div");
  4492. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4493. div.style.color = SCRIPT_COLOR_MAIN;
  4494. div.innerHTML = isZH ? "9战模拟" : "9战模拟";
  4495. div.addEventListener("click", () => {
  4496. window.open("https://shykai.github.io/mwisim.github.io/", "_blank");
  4497. });
  4498. targetNode.insertAdjacentElement("afterbegin", div);
  4499.  
  4500. div = document.createElement("div");
  4501. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4502. div.style.color = SCRIPT_COLOR_MAIN;
  4503. div.innerHTML = isZH ? "利润网站 Mooneycalc" : "利润网站 Mooneycalc";
  4504. div.addEventListener("click", () => {
  4505. window.open("https://mooneycalc.netlify.app/", "_blank");
  4506. });
  4507. targetNode.insertAdjacentElement("afterbegin", div);
  4508.  
  4509. div = document.createElement("div");
  4510. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4511. div.style.color = SCRIPT_COLOR_MAIN;
  4512. div.innerHTML = isZH ? "利润网站 Milkonomy" : "利润网站 Milkonomy";
  4513. div.addEventListener("click", () => {
  4514. window.open("https://milkonomy.pages.dev/", "_blank");
  4515. });
  4516. targetNode.insertAdjacentElement("afterbegin", div);
  4517.  
  4518. div = document.createElement("div");
  4519. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4520. div.style.color = SCRIPT_COLOR_MAIN;
  4521. div.innerHTML = isZH ? "牛牛手册" : "牛牛手册";
  4522. div.addEventListener("click", () => {
  4523. window.open("https://test-ctmd6jnzo6t9.feishu.cn/docx/KG9ddER6Eo2uPoxJFkicsvbEnCe", "_blank");
  4524. });
  4525. targetNode.insertAdjacentElement("afterbegin", div);
  4526. }
  4527.  
  4528. div = document.createElement("div");
  4529. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4530. div.style.color = SCRIPT_COLOR_MAIN;
  4531. div.innerHTML = isZH ? "强化模拟 Enhancelator" : "Enhancement sim Enhancelator";
  4532. div.addEventListener("click", () => {
  4533. window.open("https://doh-nuts.github.io/Enhancelator/", "_blank");
  4534. });
  4535. targetNode.insertAdjacentElement("afterbegin", div);
  4536.  
  4537. div = document.createElement("div");
  4538. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4539. div.style.color = SCRIPT_COLOR_MAIN;
  4540. div.innerHTML = isZH ? "利润计算 Cowculator" : "Profit calc Cowculator";
  4541. div.addEventListener("click", () => {
  4542. window.open("https://danthegoodman.github.io/cowculator/", "_blank");
  4543. });
  4544. targetNode.insertAdjacentElement("afterbegin", div);
  4545.  
  4546. div = document.createElement("div");
  4547. div.setAttribute("class", "NavigationBar_minorNavigationLink__31K7Y");
  4548. div.style.color = SCRIPT_COLOR_MAIN;
  4549. div.innerHTML = isZH ? "战斗模拟 AmVoidGuy-shykai" : "Combat sim AmVoidGuy";
  4550. div.addEventListener("click", () => {
  4551. window.open(
  4552. isZH
  4553. ? "https://shykai.github.io/MWICombatSimulatorTest/dist/"
  4554. : "https://amvoidguy.github.io/MWICombatSimulatorTest/dist/index.html",
  4555. "_blank"
  4556. );
  4557. });
  4558. targetNode.insertAdjacentElement("afterbegin", div);
  4559. } else {
  4560. setTimeout(add3rdPartyLinks, 200);
  4561. }
  4562. };
  4563. waitForNavi();
  4564. }
  4565.  
  4566. /* 动作列表菜单计算时间 */
  4567. function handleActionQueueMenue(added) {
  4568. if (!settingsMap.actionQueue.isTrue) {
  4569. return;
  4570. }
  4571.  
  4572. handleActionQueueMenueCalculateTime(added);
  4573.  
  4574. const listDiv = added.querySelector(".QueuedActions_actions__2Lur6");
  4575. new MutationObserver((mutationsList) => {
  4576. handleActionQueueMenueCalculateTime(added);
  4577. }).observe(listDiv, { characterData: false, subtree: false, childList: true });
  4578. }
  4579.  
  4580. function handleActionQueueMenueCalculateTime(added) {
  4581. const actionDivList = added.querySelectorAll("div.QueuedActions_action__r3HlD");
  4582. if (!actionDivList || actionDivList.length === 0) {
  4583. return;
  4584. }
  4585. if (actionDivList.length !== currentActionsHridList.length - 1) {
  4586. console.error("handleActionQueueTooltip action queue length inconsistency");
  4587. return;
  4588. }
  4589.  
  4590. let actionDivListIndex = 0;
  4591. let hasSkippedfirstActionObj = false;
  4592. let accumulatedTimeSec = 0;
  4593. let isAccumulatedTimeInfinite = false;
  4594. for (const actionObj of currentActionsHridList) {
  4595. const actionHrid = actionObj.actionHrid;
  4596. const count = actionObj.maxCount - actionObj.currentCount;
  4597. let isInfinit = false;
  4598. if (count === 0 || actionHrid.includes("/combat/")) {
  4599. isInfinit = true;
  4600. isAccumulatedTimeInfinite = true;
  4601. }
  4602.  
  4603. const baseTimePerActionSec = initData_actionDetailMap[actionHrid].baseTimeCost / 1000000000;
  4604. const totalEffBuff = getTotalEffiPercentage(actionHrid);
  4605. const toolSpeedBuff = getToolsSpeedBuffByActionHrid(actionHrid);
  4606.  
  4607. let timePerActionSec = baseTimePerActionSec / (1 + toolSpeedBuff / 100);
  4608. timePerActionSec /= 1 + totalEffBuff / 100;
  4609. let totalTimeSec = count * timePerActionSec;
  4610.  
  4611. let str = isZH ? "到 ∞ " : "Complete at ∞ ";
  4612. if (!isAccumulatedTimeInfinite) {
  4613. accumulatedTimeSec += totalTimeSec;
  4614. const currentTime = new Date();
  4615. currentTime.setSeconds(currentTime.getSeconds() + accumulatedTimeSec);
  4616. str = `${isZH ? "到 " : "Complete at "}${String(currentTime.getHours()).padStart(2, "0")}:${String(currentTime.getMinutes()).padStart(
  4617. 2,
  4618. "0"
  4619. )}:${String(currentTime.getSeconds()).padStart(2, "0")}`;
  4620. }
  4621.  
  4622. if (hasSkippedfirstActionObj) {
  4623. const html = `<div class="script_actionTime" style="color: ${SCRIPT_COLOR_MAIN};">${
  4624. isInfinit ? "[ ∞ ] " : `[${timeReadable(totalTimeSec)}]`
  4625. } ${str}</div>`;
  4626. if (actionDivList[actionDivListIndex].querySelector("div div.script_actionTime")) {
  4627. actionDivList[actionDivListIndex].querySelector("div div.script_actionTime").innerHTML = html;
  4628. } else {
  4629. actionDivList[actionDivListIndex].querySelector("div").insertAdjacentHTML("beforeend", html);
  4630. }
  4631. actionDivListIndex++;
  4632. }
  4633. hasSkippedfirstActionObj = true;
  4634. }
  4635. const html = `<div id="script_queueTotalTime" style="color: ${SCRIPT_COLOR_MAIN};">${isZH ? "总时间:" : "Total time: "}${
  4636. isAccumulatedTimeInfinite ? "[ ∞ ] " : `[${timeReadable(accumulatedTimeSec)}]`
  4637. }</div>`;
  4638. if (document.querySelector("div#script_queueTotalTime")) {
  4639. document.querySelector("div#script_queueTotalTime").innerHTML = html;
  4640. } else {
  4641. document.querySelector("div.QueuedActions_queuedActionsEditMenu__3OoQH").insertAdjacentHTML("afterend", html);
  4642. }
  4643. }
  4644.  
  4645. /* 支持修改版汉化插件 */
  4646. function getOriTextFromElement(elem) {
  4647. if (!elem) {
  4648. console.error("getTextFromElement null elem");
  4649. return "";
  4650. }
  4651. const translatedfrom = elem.getAttribute("script_translatedfrom");
  4652. if (translatedfrom) {
  4653. return translatedfrom;
  4654. }
  4655. return elem.textContent;
  4656. }
  4657.  
  4658. /* 强化模拟器 */
  4659. async function handleItemTooltipWithEnhancementLevel(tooltip) {
  4660. if (!settingsMap.enhanceSim.isTrue) {
  4661. return;
  4662. }
  4663.  
  4664. if (typeof math === "undefined") {
  4665. console.error(`handleItemTooltipWithEnhancementLevel no math lib`);
  4666. tooltip
  4667. .querySelector(".ItemTooltipText_itemTooltipText__zFq3A")
  4668. .insertAdjacentHTML(
  4669. "beforeend",
  4670. `<div style="color: ${SCRIPT_COLOR_ALERT};">${
  4671. isZH ? "由于网络问题无法强化模拟: 1. 手机可能不支持脚本联网;2. 请尝试科学网络;" : "Enhancement sim Internet error"
  4672. }</div>`
  4673. );
  4674. return;
  4675. }
  4676.  
  4677. const itemNameElems = tooltip.querySelectorAll("div.ItemTooltipText_name__2JAHA span");
  4678. let itemName = getOriTextFromElement(itemNameElems[0]);
  4679. if (isZHInGameSetting) {
  4680. itemName = getItemEnNameFromZhName(itemName);
  4681. }
  4682. const enhancementLevel = Number(itemNameElems[1].textContent.replace("+", ""));
  4683.  
  4684. let itemHrid = null;
  4685. for (const item of Object.values(initData_itemDetailMap)) {
  4686. if (item.name === itemName) {
  4687. itemHrid = item.hrid;
  4688. }
  4689. }
  4690. if (!itemHrid || !initData_itemDetailMap[itemHrid]) {
  4691. console.error(`handleItemTooltipWithEnhancementLevel invalid itemHrid ${itemName} ${itemHrid}`);
  4692. return;
  4693. }
  4694.  
  4695. input_data.item_hrid = itemHrid;
  4696. input_data.stop_at = enhancementLevel;
  4697. const best = await findBestEnhanceStrat(input_data);
  4698.  
  4699. let appendHTMLStr = `<div style="color: ${SCRIPT_COLOR_TOOLTIP};">${
  4700. isZH ? "不支持模拟+1装备" : "Enhancement sim of +1 equipments not supported"
  4701. }</div>`;
  4702. if (best) {
  4703. let needMatStr = "";
  4704. for (const [key, value] of Object.entries(best.costs.needMap)) {
  4705. needMatStr += `<div>${key} ${isZH ? "单价: " : "price per item: "}${numberFormatter(value)}<div>`;
  4706. }
  4707. appendHTMLStr = `<div style="color: ${SCRIPT_COLOR_TOOLTIP};"><div>${
  4708. isZH
  4709. ? "强化模拟(默认100级强化,4级房子,10级工具,5级手套,究极茶,幸运茶,卖单价收货,无工时费):"
  4710. : "Enhancement simulator: Default level 100 enhancing, level 4 house, level 10 tool, level 5 gloves, ultra tea, blessed tea, sell order price in, no player time fee"
  4711. }</div><div>${isZH ? "总成本 " : "Total cost "}${numberFormatter(best.totalCost.toFixed(0))}</div><div>${isZH ? "耗时 " : "Time spend "}${
  4712. best.simResult.totalActionTimeStr
  4713. }</div>${
  4714. best.protect_count > 0
  4715. ? `<div>${isZH ? "从 " : "Use protection from level "}` + best.protect_at + `${isZH ? " 级开始保护" : ""}</div>`
  4716. : `<div>${isZH ? "不需要保护" : "No protection use"}</div>`
  4717. }<div>${isZH ? "保护 " : "Protection "}${best.protect_count.toFixed(1)}${isZH ? " 次" : " times"}</div><div>${
  4718. isZH ? "+0底子: " : "+0 Base item: "
  4719. }${numberFormatter(best.costs.baseCost)}</div><div>${
  4720. best.protect_count > 0
  4721. ? (isZH ? "保护单价: " : "Price per protection: ") +
  4722. initData_itemDetailMap[best.costs.choiceOfProtection].name +
  4723. " " +
  4724. numberFormatter(best.costs.minProtectionCost)
  4725. : ""
  4726. }
  4727. </div>${needMatStr}</div>`;
  4728. }
  4729.  
  4730. tooltip.querySelector(".ItemTooltipText_itemTooltipText__zFq3A").insertAdjacentHTML("beforeend", appendHTMLStr);
  4731. }
  4732.  
  4733. async function findBestEnhanceStrat(input_data) {
  4734. const price_data = await fetchMarketJSON();
  4735. if (!price_data || !price_data.market) {
  4736. console.error("findBestEnhanceStrat fetchMarketJSON null");
  4737. return [];
  4738. }
  4739.  
  4740. const allResults = [];
  4741. for (let protect_at = 2; protect_at <= input_data.stop_at; protect_at++) {
  4742. const simResult = Enhancelate(input_data, protect_at);
  4743. const costs = getCosts(input_data.item_hrid, price_data);
  4744. const totalCost = costs.baseCost + costs.minProtectionCost * simResult.protect_count + costs.perActionCost * simResult.actions;
  4745. const r = {};
  4746. r.protect_at = protect_at;
  4747. r.protect_count = simResult.protect_count;
  4748. r.simResult = simResult;
  4749. r.costs = costs;
  4750. r.totalCost = totalCost;
  4751. allResults.push(r);
  4752. }
  4753.  
  4754. let best = null;
  4755. for (const r of allResults) {
  4756. if (best === null || r.totalCost < best.totalCost) {
  4757. best = r;
  4758. }
  4759. }
  4760. return best;
  4761. }
  4762.  
  4763. // Source: https://doh-nuts.github.io/Enhancelator/
  4764. function Enhancelate(input_data, protect_at) {
  4765. const success_rate = [
  4766. 50, //+1
  4767. 45, //+2
  4768. 45, //+3
  4769. 40, //+4
  4770. 40, //+5
  4771. 40, //+6
  4772. 35, //+7
  4773. 35, //+8
  4774. 35, //+9
  4775. 35, //+10
  4776. 30, //+11
  4777. 30, //+12
  4778. 30, //+13
  4779. 30, //+14
  4780. 30, //+15
  4781. 30, //+16
  4782. 30, //+17
  4783. 30, //+18
  4784. 30, //+19
  4785. 30, //+20
  4786. ];
  4787.  
  4788. // 物品等级
  4789. const itemLevel = initData_itemDetailMap[input_data.item_hrid].itemLevel;
  4790.  
  4791. // 总强化buff
  4792. let total_bonus = null;
  4793. const effective_level =
  4794. input_data.enhancing_level +
  4795. (input_data.tea_enhancing ? 3 : 0) +
  4796. (input_data.tea_super_enhancing ? 6 : 0) +
  4797. (input_data.tea_ultra_enhancing ? 8 : 0);
  4798. if (effective_level >= itemLevel) {
  4799. total_bonus = 1 + (0.05 * (effective_level + input_data.laboratory_level - itemLevel) + input_data.enhancer_bonus) / 100;
  4800. } else {
  4801. total_bonus = 1 - 0.5 * (1 - effective_level / itemLevel) + (0.05 * input_data.laboratory_level + input_data.enhancer_bonus) / 100;
  4802. }
  4803.  
  4804. // 模拟
  4805. let markov = math.zeros(20, 20);
  4806. for (let i = 0; i < input_data.stop_at; i++) {
  4807. const success_chance = (success_rate[i] / 100.0) * total_bonus;
  4808. const destination = i >= protect_at ? i - 1 : 0;
  4809. if (input_data.tea_blessed) {
  4810. markov.set([i, i + 2], success_chance * 0.01);
  4811. markov.set([i, i + 1], success_chance * 0.99);
  4812. markov.set([i, destination], 1 - success_chance);
  4813. } else {
  4814. markov.set([i, i + 1], success_chance);
  4815. markov.set([i, destination], 1.0 - success_chance);
  4816. }
  4817. }
  4818. markov.set([input_data.stop_at, input_data.stop_at], 1.0);
  4819. let Q = markov.subset(math.index(math.range(0, input_data.stop_at), math.range(0, input_data.stop_at)));
  4820. const M = math.inv(math.subtract(math.identity(input_data.stop_at), Q));
  4821. const attemptsArray = M.subset(math.index(math.range(0, 1), math.range(0, input_data.stop_at)));
  4822. const attempts = math.flatten(math.row(attemptsArray, 0).valueOf()).reduce((a, b) => a + b, 0);
  4823. const protectAttempts = M.subset(math.index(math.range(0, 1), math.range(protect_at, input_data.stop_at)));
  4824. const protectAttemptsArray = typeof protectAttempts === "number" ? [protectAttempts] : math.flatten(math.row(protectAttempts, 0).valueOf());
  4825. const protects = protectAttemptsArray.map((a, i) => a * markov.get([i + protect_at, i + protect_at - 1])).reduce((a, b) => a + b, 0);
  4826.  
  4827. // 动作时间
  4828. const perActionTimeSec = (
  4829. 12 /
  4830. (1 +
  4831. (input_data.enhancing_level > itemLevel
  4832. ? (effective_level + input_data.laboratory_level - itemLevel + input_data.glove_bonus) / 100
  4833. : (input_data.laboratory_level + input_data.glove_bonus) / 100))
  4834. ).toFixed(2);
  4835.  
  4836. const result = {};
  4837. result.actions = attempts;
  4838. result.protect_count = protects;
  4839. result.totalActionTimeSec = perActionTimeSec * attempts;
  4840. result.totalActionTimeStr = timeReadable(result.totalActionTimeSec);
  4841. return result;
  4842. }
  4843.  
  4844. // 自定义强化模拟输入参数
  4845. // Customization
  4846. let input_data = {
  4847. item_hrid: null,
  4848. stop_at: null,
  4849.  
  4850. enhancing_level: 100, // 人物 Enhancing 技能等级
  4851. laboratory_level: 4, // 房子等级
  4852. enhancer_bonus: 4.64, // 工具提高成功率,0级=3.6,5级=4.03,10级=4.64
  4853. glove_bonus: 11.2, // 手套提高强化速度,0级=10,5级=11.2,10级=12.9
  4854.  
  4855. tea_enhancing: false, // 强化茶
  4856. tea_super_enhancing: false, // 超级强化茶
  4857. tea_ultra_enhancing: true,
  4858. tea_blessed: true, // 祝福茶
  4859.  
  4860. priceAskBidRatio: 1, // 取市场卖单价买单价比例,1=只用卖单价,0=只用买单价
  4861. };
  4862.  
  4863. function getCosts(hrid, price_data) {
  4864. const itemDetailObj = initData_itemDetailMap[hrid];
  4865.  
  4866. // +0本体成本
  4867. const baseCost = getRealisticBaseItemPrice(hrid, price_data);
  4868.  
  4869. // 保护成本
  4870. let minProtectionPrice = null;
  4871. let minProtectionHrid = null;
  4872. let protect_item_hrids =
  4873. itemDetailObj.protectionItemHrids == null
  4874. ? [hrid, "/items/mirror_of_protection"]
  4875. : [hrid, "/items/mirror_of_protection"].concat(itemDetailObj.protectionItemHrids);
  4876. protect_item_hrids.forEach((protection_hrid, i) => {
  4877. const this_cost = getRealisticBaseItemPrice(protection_hrid, price_data);
  4878. if (i === 0) {
  4879. minProtectionPrice = this_cost;
  4880. minProtectionHrid = protection_hrid;
  4881. } else {
  4882. if (this_cost > 0 && (minProtectionPrice < 0 || this_cost < minProtectionPrice)) {
  4883. minProtectionPrice = this_cost;
  4884. minProtectionHrid = protection_hrid;
  4885. }
  4886. }
  4887. });
  4888.  
  4889. // 强化材料成本
  4890. const needMap = {};
  4891. let totalNeedPrice = 0;
  4892. for (const need of itemDetailObj.enhancementCosts) {
  4893. const price = getItemMarketPrice(need.itemHrid, price_data);
  4894. totalNeedPrice += price * need.count;
  4895. if (!need.itemHrid.includes("/coin")) {
  4896. needMap[initData_itemDetailMap[need.itemHrid].name] = price;
  4897. }
  4898. }
  4899.  
  4900. return {
  4901. baseCost: baseCost,
  4902. minProtectionCost: minProtectionPrice,
  4903. perActionCost: totalNeedPrice,
  4904. choiceOfProtection: minProtectionHrid,
  4905. needMap: needMap,
  4906. };
  4907. }
  4908.  
  4909. function getRealisticBaseItemPrice(hrid, price_data) {
  4910. const itemDetailObj = initData_itemDetailMap[hrid];
  4911. const productionCost = getBaseItemProductionCost(itemDetailObj.name, price_data);
  4912.  
  4913. const fullName = initData_itemDetailMap[hrid].name;
  4914. const item_price_data = price_data.market[fullName];
  4915. const ask = item_price_data?.ask;
  4916. const bid = item_price_data?.bid;
  4917.  
  4918. let result = 0;
  4919.  
  4920. if (ask && ask > 0) {
  4921. if (bid && bid > 0) {
  4922. // Both ask and bid.
  4923. if (ask / bid > 1.3) {
  4924. result = Math.max(bid, productionCost);
  4925. } else {
  4926. result = ask;
  4927. }
  4928. } else {
  4929. // Only ask.
  4930. if (ask / productionCost > 1.3) {
  4931. result = productionCost;
  4932. } else {
  4933. result = Math.max(ask, productionCost);
  4934. }
  4935. }
  4936. } else {
  4937. if (bid && bid > 0) {
  4938. // Only bid.
  4939. result = Math.max(bid, productionCost);
  4940. } else {
  4941. // Neither ask nor bid.
  4942. result = productionCost;
  4943. }
  4944. }
  4945.  
  4946. return result;
  4947. }
  4948.  
  4949. function getItemMarketPrice(hrid, price_data) {
  4950. const fullName = initData_itemDetailMap[hrid].name;
  4951. const item_price_data = price_data.market[fullName];
  4952.  
  4953. // Return 0 if the item does not have neither ask nor bid prices.
  4954. if (!item_price_data || (item_price_data.ask < 0 && item_price_data.bid < 0)) {
  4955. // console.log("getItemMarketPrice() return 0 due to neither ask nor bid prices: " + fullName);
  4956. return 0;
  4957. }
  4958.  
  4959. // Return the other price if the item does not have ask or bid price.
  4960. let ask = item_price_data.ask;
  4961. let bid = item_price_data.bid;
  4962. if (ask > 0 && bid < 0) {
  4963. return ask;
  4964. }
  4965. if (bid > 0 && ask < 0) {
  4966. return bid;
  4967. }
  4968.  
  4969. let final_cost = ask * input_data.priceAskBidRatio + bid * (1 - input_data.priceAskBidRatio);
  4970. return final_cost;
  4971. }
  4972.  
  4973. // +0底子制作成本,仅单层制作,考虑茶减少消耗
  4974. function getBaseItemProductionCost(itemName, price_data) {
  4975. const actionHrid = getActionHridFromItemName(itemName);
  4976. if (!actionHrid || !initData_actionDetailMap[actionHrid]) {
  4977. return -1;
  4978. }
  4979.  
  4980. let totalPrice = 0;
  4981.  
  4982. const inputItems = JSON.parse(JSON.stringify(initData_actionDetailMap[actionHrid].inputItems));
  4983. for (let item of inputItems) {
  4984. totalPrice += getItemMarketPrice(item.itemHrid, price_data) * item.count;
  4985. }
  4986. totalPrice *= 0.9; // 茶减少消耗
  4987.  
  4988. const upgradedFromItemHrid = initData_actionDetailMap[actionHrid]?.upgradeItemHrid;
  4989. if (upgradedFromItemHrid) {
  4990. totalPrice += getItemMarketPrice(upgradedFromItemHrid, price_data) * 1;
  4991. }
  4992.  
  4993. return totalPrice;
  4994. }
  4995.  
  4996. /* 脚本设置面板 */
  4997. const waitForSetttins = () => {
  4998. const targetNode = document.querySelector("div.SettingsPanel_profileTab__214Bj");
  4999. if (targetNode) {
  5000. if (!targetNode.querySelector("#script_settings")) {
  5001. targetNode.insertAdjacentHTML("beforeend", `<div id="script_settings"></div>`);
  5002. const insertElem = targetNode.querySelector("div#script_settings");
  5003. insertElem.insertAdjacentHTML(
  5004. "beforeend",
  5005. `<div style="float: left; color: ${SCRIPT_COLOR_MAIN}">${
  5006. isZH ? "MWITools 设置 (刷新生效):" : "MWITools Settings (refresh page to apply): "
  5007. }</div></br>`
  5008. );
  5009.  
  5010. for (const setting of Object.values(settingsMap)) {
  5011. insertElem.insertAdjacentHTML(
  5012. "beforeend",
  5013. `<div style="float: left;"><input type="checkbox" id="${setting.id}" ${setting.isTrue ? "checked" : ""}></input>${
  5014. setting.desc
  5015. }</div></br>`
  5016. );
  5017. }
  5018.  
  5019. insertElem.insertAdjacentHTML(
  5020. "beforeend",
  5021. `<div style="float: left;">${
  5022. isZH
  5023. ? "代码里搜索“自定义”可以手动修改字体颜色、强化模拟默认参数"
  5024. : `Search "Customization" in code to customize font colors and default enhancement simulation parameters.`
  5025. }</div></br>`
  5026. );
  5027. insertElem.addEventListener("change", saveSettings);
  5028. }
  5029. }
  5030. setTimeout(waitForSetttins, 500);
  5031. };
  5032. waitForSetttins();
  5033.  
  5034. function saveSettings() {
  5035. for (const checkbox of document.querySelectorAll("div#script_settings input")) {
  5036. settingsMap[checkbox.id].isTrue = checkbox.checked;
  5037. localStorage.setItem("script_settingsMap", JSON.stringify(settingsMap));
  5038. }
  5039. }
  5040.  
  5041. function readSettings() {
  5042. const ls = localStorage.getItem("script_settingsMap");
  5043. if (ls) {
  5044. const lsObj = JSON.parse(ls);
  5045. for (const option of Object.values(lsObj)) {
  5046. if (settingsMap.hasOwnProperty(option.id)) {
  5047. settingsMap[option.id].isTrue = option.isTrue;
  5048. }
  5049. }
  5050. }
  5051.  
  5052. if (settingsMap.forceMWIToolsDisplayZH.isTrue) {
  5053. isZH = true; // For Traditional Chinese users.
  5054. }
  5055.  
  5056. if (settingsMap.useOrangeAsMainColor.isTrue && SCRIPT_COLOR_MAIN === "green") {
  5057. SCRIPT_COLOR_MAIN = "orange";
  5058. }
  5059. if (settingsMap.useOrangeAsMainColor.isTrue && SCRIPT_COLOR_TOOLTIP === "darkgreen") {
  5060. SCRIPT_COLOR_TOOLTIP = "#804600";
  5061. }
  5062. }
  5063.  
  5064. /* 检查是否穿错生产/战斗装备 */
  5065. function checkEquipment() {
  5066. if (currentActionsHridList.length === 0) {
  5067. return;
  5068. }
  5069. const currentActionHrid = currentActionsHridList[0].actionHrid;
  5070. const hasHat = currentEquipmentMap["/item_locations/head"]?.itemHrid === "/items/red_chefs_hat" ? true : false; // Cooking, Brewing
  5071. const hasOffHand = currentEquipmentMap["/item_locations/off_hand"]?.itemHrid === "/items/eye_watch" ? true : false; // Cheesesmithing, Crafting, Tailoring
  5072. const hasBoot = currentEquipmentMap["/item_locations/feet"]?.itemHrid === "/items/collectors_boots" ? true : false; // Milking, Foraging, Woodcutting
  5073. const hasGlove = currentEquipmentMap["/item_locations/hands"]?.itemHrid === "/items/enchanted_gloves" ? true : false; // Enhancing
  5074.  
  5075. let warningStr = null;
  5076. if (currentActionHrid.includes("/actions/combat/")) {
  5077. if (hasHat || hasOffHand || hasBoot || hasGlove) {
  5078. warningStr = isZH ? "正穿着生产装备" : "Production equipment equipted";
  5079. }
  5080. } else if (currentActionHrid.includes("/actions/cooking/") || currentActionHrid.includes("/actions/brewing/")) {
  5081. if (!hasHat && hasItemHridInInv("/items/red_chefs_hat")) {
  5082. warningStr = isZH ? "没穿生产帽" : "Not wearing production hat";
  5083. }
  5084. } else if (
  5085. currentActionHrid.includes("/actions/cheesesmithing/") ||
  5086. currentActionHrid.includes("/actions/crafting/") ||
  5087. currentActionHrid.includes("/actions/tailoring/")
  5088. ) {
  5089. if (!hasOffHand && hasItemHridInInv("/items/eye_watch")) {
  5090. warningStr = isZH ? "没穿生产副手" : "Not wearing production off-hand";
  5091. }
  5092. } else if (
  5093. currentActionHrid.includes("/actions/milking/") ||
  5094. currentActionHrid.includes("/actions/foraging/") ||
  5095. currentActionHrid.includes("/actions/woodcutting/")
  5096. ) {
  5097. if (!hasBoot && hasItemHridInInv("/items/collectors_boots")) {
  5098. warningStr = isZH ? "没穿生产鞋" : "Not wearing production boots";
  5099. }
  5100. } else if (currentActionHrid.includes("/actions/enhancing")) {
  5101. if (!hasGlove && hasItemHridInInv("/items/enchanted_gloves")) {
  5102. warningStr = isZH ? "没穿强化手套" : "Not wearing enhancing gloves";
  5103. }
  5104. }
  5105.  
  5106. document.body.querySelector("#script_item_warning")?.remove();
  5107. if (warningStr) {
  5108. document.body.insertAdjacentHTML(
  5109. "beforeend",
  5110. `<div id="script_item_warning" style="position: fixed; top: 1%; left: 30%; color: ${SCRIPT_COLOR_ALERT}; font-size: 20px;">${warningStr}</div>`
  5111. );
  5112. }
  5113. }
  5114.  
  5115. function hasItemHridInInv(hrid) {
  5116. let result = null;
  5117. for (const item of initData_characterItems) {
  5118. if (item.itemHrid === hrid && item.itemLocationHrid === "/item_locations/inventory") {
  5119. result = item;
  5120. }
  5121. }
  5122. return result ? true : false;
  5123. }
  5124.  
  5125. /* 空闲时弹窗通知 */
  5126. function notificate() {
  5127. if (typeof GM_notification === "undefined" || !GM_notification) {
  5128. console.error("notificate null GM_notification");
  5129. return;
  5130. }
  5131. if (currentActionsHridList.length > 0) {
  5132. return;
  5133. }
  5134. console.log("notificate empty action");
  5135. GM_notification({
  5136. text: isZH ? "动作队列为空" : "Action queue is empty.",
  5137. title: "MWITools",
  5138. });
  5139. }
  5140.  
  5141. /* 市场价格自动输入最小压价 */
  5142. const waitForMarketOrders = () => {
  5143. const element = document.querySelector(".MarketplacePanel_marketListings__1GCyQ");
  5144. if (element) {
  5145. console.log("start observe market order");
  5146. new MutationObserver((mutationsList) => {
  5147. mutationsList.forEach((mutation) => {
  5148. mutation.addedNodes.forEach((node) => {
  5149. if (node.classList.contains("Modal_modalContainer__3B80m")) {
  5150. handleMarketNewOrder(node);
  5151. }
  5152. });
  5153. });
  5154. }).observe(element, {
  5155. characterData: false,
  5156. subtree: false,
  5157. childList: true,
  5158. });
  5159. } else {
  5160. setTimeout(waitForMarketOrders, 500);
  5161. }
  5162. };
  5163.  
  5164. function handleMarketNewOrder(node) {
  5165. const title = getOriTextFromElement(node.querySelector(".MarketplacePanel_header__yahJo"));
  5166. if (!title || title.includes(" Now") || title.includes("立即")) {
  5167. return;
  5168. }
  5169. const label = node.querySelector("span.MarketplacePanel_bestPrice__3bgKp");
  5170. const inputDiv = node.querySelector(".MarketplacePanel_inputContainer__3xmB2 .MarketplacePanel_priceInputs__3iWxy");
  5171. if (!label || !inputDiv) {
  5172. console.error("handleMarketNewOrder can not find elements");
  5173. return;
  5174. }
  5175.  
  5176. label.click();
  5177.  
  5178. if (getOriTextFromElement(label.parentElement).toLowerCase().includes("best buy") || label.parentElement.textContent.includes("购买")) {
  5179. inputDiv.querySelectorAll(".MarketplacePanel_buttonContainer__vJQud")[2]?.querySelector("div button")?.click();
  5180. } else if (
  5181. getOriTextFromElement(label.parentElement).toLowerCase().includes("best sell") ||
  5182. label.parentElement.textContent.includes("出售")
  5183. ) {
  5184. inputDiv.querySelectorAll(".MarketplacePanel_buttonContainer__vJQud")[1]?.querySelector("div button")?.click();
  5185. }
  5186. }
  5187.  
  5188. /* 伤害统计 */
  5189. // 此功能基于以下作者的代码:
  5190. // 伤害统计 by ponchain
  5191. // 图表 by Stella
  5192. // 头像下方显示数字 by Truth_Light
  5193. const lang = {
  5194. toggleButtonHide: isZH ? "收起" : "Hide",
  5195. toggleButtonShow: isZH ? "展开" : "Show",
  5196. players: isZH ? "玩家" : "Players",
  5197. dpsTextDPS: isZH ? "DPS" : "DPS",
  5198. dpsTextTotalDamage: isZH ? "总伤害" : "Total Damage",
  5199. totalRuntime: isZH ? "运行时间" : "Runtime",
  5200. totalTeamDPS: isZH ? "团队DPS" : "Total Team DPS",
  5201. totalTeamDamage: isZH ? "团队总伤害" : "Total Team Damage",
  5202. damagePercentage: isZH ? "伤害占比" : "Damage %",
  5203. monstername: isZH ? "怪物" : "Monster",
  5204. encountertimes: isZH ? "遭遇数" : "Encounter",
  5205. hitChance: isZH ? "命中率" : "Hit Chance",
  5206. aura: isZH ? "光环" : "Aura",
  5207. };
  5208.  
  5209. let totalDamage = [];
  5210. let totalDuration = 0;
  5211. let startTime = null;
  5212. let endTime = null;
  5213. let monstersHP = [];
  5214. let playersMP = [];
  5215. let players = [];
  5216. let monsters = [];
  5217. let dragging = false;
  5218. let chart = null;
  5219. let monsterCounts = {}; // Object to store monster counts
  5220. let monsterEvasion = {}; // Object to store monster evasion ratings by combat style
  5221. let monsterHrids = {};
  5222. const calculateHitChance = (accuracy, evasion) => {
  5223. const hitChance = (Math.pow(accuracy, 1.4) / (Math.pow(accuracy, 1.4) + Math.pow(evasion, 1.4))) * 100;
  5224. return hitChance;
  5225. };
  5226.  
  5227. const getStatisticsDom = () => {
  5228. const numPlayers = players.length;
  5229. const chartHeight = numPlayers * 35 + 20;
  5230.  
  5231. if (!document.querySelector(".script_dps_panel")) {
  5232. let panel = document.createElement("div");
  5233. panel.style.position = "fixed";
  5234. panel.style.top = "50px";
  5235. panel.style.left = "50px";
  5236. panel.style.zIndex = "9999";
  5237. panel.style.fontSize = "14px";
  5238. panel.style.padding = "10px";
  5239. panel.style.borderRadius = "16px";
  5240. panel.style.boxShadow = "0 4px 12px rgba(0, 0, 0, 0.3)";
  5241. panel.style.overflow = "auto";
  5242. panel.style.width = "auto";
  5243. panel.style.height = "auto";
  5244. panel.style.backdropFilter = "blur(8px)";
  5245. if (settingsMap.damageGraphTransparentBackground.isTrue) {
  5246. panel.style.background = "rgba(0, 0, 0, 0.5)";
  5247. panel.style.border = "1px solid rgba(255, 255, 255, 0.2)";
  5248. panel.style.boxShadow = "0 4px 12px rgba(0, 0, 0, 0.3)";
  5249. panel.style.backdropFilter = "blur(8px)";
  5250. } else {
  5251. panel.style.background = "rgba(0, 0, 0)";
  5252. panel.style.border = "1px solid rgba(255, 255, 255)";
  5253. panel.style.boxShadow = "0 4px 12px rgba(0, 0, 0)";
  5254. }
  5255.  
  5256. panel.innerHTML = `
  5257. <div id="panelHeader" style="display: flex; justify-content: space-between; align-items: center; cursor: move; width: auto; height: auto;">
  5258. <span style="font-weight: bold; font-size: 16px; color: #0078d4;">DPS</span>
  5259. <button id="script_toggleButton" style="background-color: #0078d4; color: white; border: none; padding: 5px 10px; margin-left: 10px; border-radius: 8px; cursor: pointer;">${lang.toggleButtonHide}</button>
  5260. </div>
  5261. <div id="script_panelContent">
  5262. <div id="script_dpsChart_div" style="width: 400px; height: ${chartHeight}px;">
  5263. <canvas id="script_dpsChart"></canvas></div>
  5264. <div id="script_dpsText"></div>
  5265. <div id="script_hitChanceTable" style="margin-top: 10px;"></div>
  5266. </div>`;
  5267. panel.className = "script_dps_panel";
  5268.  
  5269. let offsetX, offsetY;
  5270. let dragging = false;
  5271.  
  5272. const panelHeader = panel.querySelector("#panelHeader");
  5273.  
  5274. // 鼠标拖动面板
  5275. panelHeader.addEventListener("mousedown", function (e) {
  5276. const rect = panel.getBoundingClientRect();
  5277. const isResizing = e.clientX > rect.right - 10 || e.clientY > rect.bottom - 10;
  5278. if (isResizing || e.target.id === "script_toggleButton") return;
  5279. dragging = true;
  5280. offsetX = e.clientX - panel.offsetLeft;
  5281. offsetY = e.clientY - panel.offsetTop;
  5282. e.preventDefault(); // 阻止默认行为,防止选择文本
  5283. });
  5284.  
  5285. let dragStartTime = 0;
  5286.  
  5287. document.addEventListener("mousemove", function (e) {
  5288. if (dragging) {
  5289. const now = Date.now();
  5290. if (now - dragStartTime < 16) return; // 限制每16毫秒更新一次
  5291. dragStartTime = now;
  5292.  
  5293. var newX = e.clientX - offsetX;
  5294. var newY = e.clientY - offsetY;
  5295. panel.style.left = newX + "px";
  5296. panel.style.top = newY + "px";
  5297. }
  5298. });
  5299.  
  5300. document.addEventListener("mouseup", function () {
  5301. dragging = false;
  5302. });
  5303.  
  5304. panel.addEventListener("touchstart", function (e) {
  5305. const rect = panel.getBoundingClientRect();
  5306. const isResizing = e.clientX > rect.right - 10 || e.clientY > rect.bottom - 10;
  5307. if (isResizing || e.target.id === "script_toggleButton") return;
  5308. dragging = true;
  5309. let touch = e.touches[0];
  5310. offsetX = touch.clientX - panel.offsetLeft;
  5311. offsetY = touch.clientY - panel.offsetTop;
  5312. e.preventDefault();
  5313. });
  5314.  
  5315. document.addEventListener("touchmove", function (e) {
  5316. if (dragging) {
  5317. const now = Date.now();
  5318. if (now - dragStartTime < 16) return; // 限制每16毫秒更新一次
  5319. dragStartTime = now;
  5320.  
  5321. let touch = e.touches[0];
  5322. var newX = touch.clientX - offsetX;
  5323. var newY = touch.clientY - offsetY;
  5324. panel.style.left = newX + "px";
  5325. panel.style.top = newY + "px";
  5326. }
  5327. });
  5328.  
  5329. document.addEventListener("touchend", function () {
  5330. dragging = false;
  5331. });
  5332.  
  5333. document.body.appendChild(panel);
  5334.  
  5335. // Toggle button functionality
  5336. if (!localStorage.getItem("script_dpsPanel_isExpanded")) {
  5337. localStorage.setItem("script_dpsPanel_isExpanded", true);
  5338. }
  5339. if (localStorage.getItem("script_dpsPanel_isExpanded") !== "true") {
  5340. document.getElementById("script_panelContent").style.display = "none";
  5341. document.getElementById("script_toggleButton").textContent = lang.toggleButtonShow;
  5342. }
  5343.  
  5344. document.getElementById("script_toggleButton").addEventListener("click", function () {
  5345. let isExpanded = localStorage.getItem("script_dpsPanel_isExpanded") === "true";
  5346. isExpanded = !isExpanded;
  5347. localStorage.setItem("script_dpsPanel_isExpanded", isExpanded ? true : false);
  5348. this.textContent = isExpanded ? lang.toggleButtonHide : lang.toggleButtonShow;
  5349. const panelContent = document.getElementById("script_panelContent");
  5350. if (isExpanded) {
  5351. panelContent.style.display = "block";
  5352. this.textContent = lang.toggleButtonHide;
  5353. } else {
  5354. panelContent.style.display = "none";
  5355. this.textContent = lang.toggleButtonShow;
  5356. }
  5357. });
  5358.  
  5359. // Create chart
  5360. const ctx = document.getElementById("script_dpsChart").getContext("2d");
  5361. chart = new Chart(ctx, {
  5362. type: "bar",
  5363. data: {
  5364. labels: [],
  5365. datasets: [
  5366. {
  5367. data: [],
  5368. backgroundColor: [
  5369. "rgba(255, 99, 132, 0.6)", // 浅粉色
  5370. "rgba(54, 162, 235, 0.6)", // 浅蓝色
  5371. "rgba(255, 206, 86, 0.6)", // 浅黄色
  5372. "rgba(75, 192, 192, 0.6)", // 浅绿色
  5373. "rgba(153, 102, 255, 0.6)", // 浅紫色
  5374. "rgba(255, 159, 64, 0.6)", // 浅橙色
  5375. ],
  5376. borderColor: [
  5377. "rgba(255, 99, 132, 1)", // 浅粉色边框
  5378. "rgba(54, 162, 235, 1)", // 浅蓝色边框
  5379. "rgba(255, 206, 86, 1)", // 浅黄色边框
  5380. "rgba(75, 192, 192, 1)", // 浅绿色边框
  5381. "rgba(153, 102, 255, 1)", // 浅紫色边框
  5382. "rgba(255, 159, 64, 1)", // 浅橙色边框
  5383. ],
  5384. borderWidth: 1,
  5385. barPercentage: 0.9,
  5386. categoryPercentage: 1.0,
  5387. },
  5388. ],
  5389. },
  5390. options: {
  5391. responsive: true,
  5392. maintainAspectRatio: false,
  5393. indexAxis: "y",
  5394. scales: {
  5395. x: {
  5396. beginAtZero: true,
  5397. grace: "20%",
  5398. display: false,
  5399. grid: {
  5400. display: false,
  5401. },
  5402. },
  5403. y: {
  5404. grid: {
  5405. display: false,
  5406. },
  5407. ticks: {
  5408. font: {
  5409. size: 12, // 字体大小
  5410. weight: "bold", // 加粗字体
  5411. },
  5412. color: "rgba(255, 255, 255, 0.7)", // 浅色字体(你可以根据背景调整颜色)
  5413. },
  5414. },
  5415. },
  5416. layout: {
  5417. padding: {
  5418. left: 0,
  5419. right: 0,
  5420. top: 0,
  5421. bottom: 0,
  5422. },
  5423. },
  5424. plugins: {
  5425. legend: {
  5426. display: false,
  5427. },
  5428. tooltip: {
  5429. enabled: false,
  5430. },
  5431. datalabels: {
  5432. anchor: "end",
  5433. align: "right",
  5434. color: function (context) {
  5435. const value = context.dataset.data[context.dataIndex];
  5436. return value > 0 ? "white" : "transparent";
  5437. },
  5438. font: {
  5439. weight: "bold",
  5440. size: 12,
  5441. },
  5442. formatter: function (value) {
  5443. return `${value.toLocaleString()}`;
  5444. },
  5445. clip: false,
  5446. display: true,
  5447. },
  5448. },
  5449. },
  5450.  
  5451. plugins: [ChartDataLabels],
  5452. });
  5453. } else if (document.getElementById("script_dpsChart_div")) {
  5454. document.getElementById("script_dpsChart_div").style.height = `${chartHeight}px`;
  5455. }
  5456. return document.querySelector(".script_dps_panel");
  5457. };
  5458.  
  5459. const updateStatisticsPanel = () => {
  5460. const totalTime = totalDuration + (endTime - startTime) / 1000;
  5461. const dps = totalDamage.map((damage) => (totalTime ? Math.round(damage / totalTime) : 0));
  5462. const totalTeamDamage = totalDamage.reduce((acc, damage) => acc + damage, 0);
  5463. const totalTeamDPS = totalTime ? Math.round(totalTeamDamage / totalTime) : 0;
  5464.  
  5465. // 人物头像下方显示数字
  5466. const playersContainer = document.querySelector(".BattlePanel_combatUnitGrid__2hTAM");
  5467. if (playersContainer) {
  5468. players.forEach((player, index) => {
  5469. const playerElement = playersContainer.children[index];
  5470. if (playerElement) {
  5471. const statusElement = playerElement.querySelector(".CombatUnit_status__3bH7W");
  5472. if (statusElement) {
  5473. let dpsElement = statusElement.querySelector(".dps-info");
  5474. if (!dpsElement) {
  5475. dpsElement = document.createElement("div");
  5476. dpsElement.className = "dps-info";
  5477. statusElement.appendChild(dpsElement);
  5478. }
  5479. dpsElement.textContent = `DPS: ${dps[index].toLocaleString()} (${numberFormatter(totalDamage[index])})`;
  5480. }
  5481. }
  5482. });
  5483. }
  5484.  
  5485. // 显示图表
  5486. if (settingsMap.showDamageGraph.isTrue && !dragging) {
  5487. const panel = getStatisticsDom();
  5488. chart.data.labels = players.map((player) => player?.name);
  5489. chart.data.datasets[0].data = dps;
  5490. chart.update();
  5491.  
  5492. // Update text information
  5493. const days = Math.floor(totalTime / (24 * 3600));
  5494. const hours = Math.floor((totalTime % (24 * 3600)) / 3600);
  5495. const minutes = Math.floor((totalTime % 3600) / 60);
  5496. const seconds = Math.floor(totalTime % 60);
  5497. const formattedTime = `${days}d ${hours}h ${minutes}m ${seconds}s`;
  5498.  
  5499. const dpsText = document.getElementById("script_dpsText");
  5500. const playerRows = players
  5501. .map((player, index) => {
  5502. const dpsFormatted = dps[index].toLocaleString();
  5503. const totalDamageFormatted = totalDamage[index].toLocaleString();
  5504. const damagePercentage = totalTeamDamage ? ((totalDamage[index] / totalTeamDamage) * 100).toFixed(2) : 0;
  5505.  
  5506. // Get auraskill for the current player
  5507. let auraskill = "N/A";
  5508. let auraskillHrid = null;
  5509. if (player.combatAbilities && Array.isArray(player.combatAbilities)) {
  5510. const firstAbility = player.combatAbilities[0];
  5511. if (firstAbility && firstAbility.abilityHrid) {
  5512. auraskillHrid = firstAbility.abilityHrid;
  5513. auraskill = firstAbility.abilityHrid.split("/").pop().replace(/_/g, " ");
  5514. const validSkills = [
  5515. "revive",
  5516. "insanity",
  5517. "invincible",
  5518. "fierce aura",
  5519. "aqua aura",
  5520. "sylvan aura",
  5521. "flame aura",
  5522. "speed aura",
  5523. "critical aura",
  5524. ];
  5525. if (!validSkills.includes(auraskill)) {
  5526. auraskill = "N/A";
  5527. }
  5528. }
  5529. }
  5530.  
  5531. // Capitalize the first letter of each word in aura skill
  5532. auraskill = auraskill
  5533. .split(" ")
  5534. .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
  5535. .join(" ");
  5536.  
  5537. // Highlight the player with the highest DPS
  5538. const isHighestDPS = dps[index] === Math.max(...dps);
  5539. const dpsPrefix = isHighestDPS ? "🔥" : "";
  5540.  
  5541. return `
  5542. <tr style="color: white;">
  5543. <td style="font-weight: bold;">${dpsPrefix} ${player.name}</td>
  5544. <td>${isZH ? (auraskillHrid ? ZHOthersDic[auraskillHrid] : "无") : auraskill}</td>
  5545. <td>${dpsFormatted}</td>
  5546. <td>${totalDamageFormatted}</td>
  5547. <td>${damagePercentage}%</td>
  5548. </tr>`;
  5549. })
  5550. .join("");
  5551.  
  5552. dpsText.innerHTML = `
  5553. <table style="width: 100%; border-collapse: collapse; font-size: smaller;">
  5554. <thead>
  5555. <tr style="text-align: left; color: white;">
  5556. <th style="font-weight: bold;">${lang.players}</th>
  5557. <th style="font-weight: bold;">${lang.aura}</th>
  5558. <th style="font-weight: bold;">${lang.dpsTextDPS}</th>
  5559. <th style="font-weight: bold;">${lang.dpsTextTotalDamage}</th>
  5560. <th style="font-weight: bold;">${lang.damagePercentage}</th>
  5561. </tr>
  5562. </thead>
  5563. <tbody>
  5564. ${playerRows}
  5565. </tbody>
  5566. <tbody>
  5567. <tr style="border-top: 2px solid white; font-weight: bold; text-align: left; color: white;">
  5568. <td>${formattedTime}</td>
  5569. <td></td>
  5570. <td>${totalTeamDPS.toLocaleString()}</td>
  5571. <td>${totalTeamDamage.toLocaleString()}</td>
  5572. <td>100%</td>
  5573. </tr>
  5574. </tbody>
  5575. </table>`;
  5576.  
  5577. // Update hit chance table
  5578. const hitChanceTable = document.getElementById("script_hitChanceTable");
  5579. const hitChanceRows = players
  5580. .map((player) => {
  5581. const playerName = player.name;
  5582. const playerHitChances = Object.entries(monsterCounts)
  5583. .map(([monsterName, count]) => {
  5584. const combatStyle = player.combatDetails.combatStats.combatStyleHrids[0].split("/").pop(); // Assuming only one combat style for simplicity
  5585. const evasionRating = monsterEvasion[monsterName][`${player.name}-${combatStyle}`];
  5586. const accuracy = player.combatDetails[`${combatStyle}AccuracyRating`];
  5587. const hitChance = calculateHitChance(accuracy, evasionRating);
  5588. return `<td style="color: white;">${hitChance.toFixed(0)}%</td>`;
  5589. })
  5590. .join("");
  5591. return `<tr><td style="color: white;">${playerName}</td>${playerHitChances}</tr>`;
  5592. })
  5593. .join("");
  5594.  
  5595. hitChanceTable.innerHTML = `
  5596. <table style="width: 100%; border-collapse: collapse; font-size: smaller;">
  5597. <thead>
  5598. <tr>
  5599. <th style="font-size: smaller; white-space: normal; text-align: left; color: white;">${lang.hitChance}</th>
  5600. ${Object.entries(monsterCounts)
  5601. .map(
  5602. ([monsterName, count]) =>
  5603. `<th style="font-size: smaller; white-space: normal; text-align: left; color: white;">${
  5604. isZH ? ZHOthersDic[monsterHrids[monsterName]] : monsterName
  5605. } (${count})</th>`
  5606. )
  5607. .join("")}
  5608. </tr>
  5609. </thead>
  5610. <tbody>
  5611. ${hitChanceRows}
  5612. </tbody>
  5613. </table>`;
  5614. }
  5615. };
  5616.  
  5617. /* 为 https://amvoidguy.github.io/MWICombatSimulatorTest/ 添加导入按钮 */
  5618. // Parts of code regarding group export are by Ratatatata (https://greasyfork.org/en/scripts/507255).
  5619. function addImportButtonForAmvoidguy() {
  5620. const checkElem = () => {
  5621. const selectedElement = document.querySelector(`button#buttonImportExport`);
  5622. if (selectedElement) {
  5623. clearInterval(timer);
  5624. let button = document.createElement("button");
  5625. selectedElement.parentNode.parentElement.parentElement.insertBefore(button, selectedElement.parentElement.parentElement.nextSibling);
  5626. button.textContent = isZH
  5627. ? "单人/组队导入(刷新游戏网页更新人物数据)"
  5628. : "Import solo/group (Refresh game page to update character set)";
  5629. button.style.backgroundColor = SCRIPT_COLOR_MAIN;
  5630. button.style.padding = "5px";
  5631. button.onclick = function () {
  5632. console.log("Importer: Import button onclick");
  5633. const getPriceButton = document.querySelector(`button#buttonGetPrices`);
  5634. if (getPriceButton) {
  5635. console.log("Click getPriceButton");
  5636. getPriceButton.click();
  5637. }
  5638. importDataForAmvoidguy(button);
  5639. return false;
  5640. };
  5641. }
  5642. };
  5643. let timer = setInterval(checkElem, 200);
  5644. }
  5645.  
  5646. async function importDataForAmvoidguy(button) {
  5647. const [exportObj, playerIDs, importedPlayerPositions, zone, isZoneDungeon, isParty] = constructGroupExportObj();
  5648. console.log(exportObj);
  5649. console.log(playerIDs);
  5650.  
  5651. document.querySelector(`a#group-combat-tab`).click();
  5652. const importInputElem = document.querySelector(`input#inputSetGroupCombatAll`);
  5653. importInputElem.value = JSON.stringify(exportObj);
  5654. document.querySelector(`button#buttonImportSet`).click();
  5655.  
  5656. document.querySelector(`a#player1-tab`).textContent = playerIDs[0];
  5657. document.querySelector(`a#player2-tab`).textContent = playerIDs[1];
  5658. document.querySelector(`a#player3-tab`).textContent = playerIDs[2];
  5659. document.querySelector(`a#player4-tab`).textContent = playerIDs[3];
  5660. document.querySelector(`a#player5-tab`).textContent = playerIDs[4];
  5661.  
  5662. // Select zone or dungeon
  5663. if (zone) {
  5664. if (isZoneDungeon) {
  5665. document.querySelector(`input#simDungeonToggle`).checked = true;
  5666. document.querySelector(`input#simDungeonToggle`).dispatchEvent(new Event("change"));
  5667. const selectDungeon = document.querySelector(`select#selectDungeon`);
  5668. for (let i = 0; i < selectZone.options.length; i++) {
  5669. if (selectDungeon.options[i].value === zone) {
  5670. selectDungeon.options[i].selected = true;
  5671. break;
  5672. }
  5673. }
  5674. } else {
  5675. document.querySelector(`input#simDungeonToggle`).checked = false;
  5676. document.querySelector(`input#simDungeonToggle`).dispatchEvent(new Event("change"));
  5677. const selectZone = document.querySelector(`select#selectZone`);
  5678. for (let i = 0; i < selectZone.options.length; i++) {
  5679. if (selectZone.options[i].value === zone) {
  5680. selectZone.options[i].selected = true;
  5681. break;
  5682. }
  5683. }
  5684. }
  5685. }
  5686.  
  5687. // Select sim players
  5688. for (let i = 0; i < 5; i++) {
  5689. if (importedPlayerPositions[i]) {
  5690. if (document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`)) {
  5691. document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`).checked = true;
  5692. document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`).dispatchEvent(new Event("change"));
  5693. }
  5694. } else {
  5695. if (document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`)) {
  5696. document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`).checked = false;
  5697. document.querySelector(`input#player${i + 1}.form-check-input.player-checkbox`).dispatchEvent(new Event("change"));
  5698. }
  5699. }
  5700. }
  5701.  
  5702. // Input simulation time
  5703. document.querySelector(`input#inputSimulationTime`).value = 24;
  5704.  
  5705. button.textContent = isZH ? "已导入" : "Imported";
  5706. if (!isParty) {
  5707. setTimeout(() => {
  5708. document.querySelector(`button#buttonStartSimulation`).click();
  5709. }, 500);
  5710. }
  5711. }
  5712.  
  5713. /* 为 9战模拟网站 添加导入按钮 */
  5714. function addImportButtonFor9Battles() {
  5715. const checkElem = () => {
  5716. const selectedElement = document.querySelector(`button#buttonImportExport`);
  5717. if (selectedElement) {
  5718. clearInterval(timer);
  5719. let button = document.createElement("button");
  5720. selectedElement.parentNode.parentElement.parentElement.insertBefore(button, selectedElement.parentElement.parentElement.nextSibling);
  5721. button.textContent = isZH ? "导入自己(刷新游戏网页更新人物数据)" : "Import Self(Refresh game page to update character set)";
  5722. button.style.backgroundColor = SCRIPT_COLOR_MAIN;
  5723. button.style.padding = "5px";
  5724. button.onclick = function () {
  5725. console.log("Importer: Import button onclick");
  5726. const getPriceButton = document.querySelector(`button#buttonGetPrices`);
  5727. if (getPriceButton) {
  5728. console.log("Click getPriceButton");
  5729. getPriceButton.click();
  5730. }
  5731. importDataFor9Battles(button);
  5732. return false;
  5733. };
  5734. }
  5735. };
  5736. let timer = setInterval(checkElem, 200);
  5737. }
  5738.  
  5739. async function importDataFor9Battles(button) {
  5740. const characterObj = JSON.parse(GM_getValue("init_character_data", ""));
  5741. const clientObj = JSON.parse(GM_getValue("init_client_data", ""));
  5742. console.log(characterObj);
  5743. console.log(clientObj);
  5744.  
  5745. const json = constructSelfPlayerExportObjFromInitCharacterData(characterObj, clientObj);
  5746. console.log(json);
  5747.  
  5748. const importInputElem = document.querySelector(`input#inputSet`);
  5749. importInputElem.value = JSON.stringify(json);
  5750. document.querySelector(`button#buttonImportSet`).click();
  5751.  
  5752. button.textContent = isZH ? "已导入" : "Imported";
  5753. // setTimeout(() => {
  5754. // document.querySelector(`button#buttonStartSimulation`).click();
  5755. // }, 500);
  5756. }
  5757.  
  5758. function constructGroupExportObj() {
  5759. const characterObj = JSON.parse(GM_getValue("init_character_data", ""));
  5760. const clientObj = JSON.parse(GM_getValue("init_client_data", ""));
  5761. let battleObj = null;
  5762. if (GM_getValue("new_battle", "")) {
  5763. battleObj = JSON.parse(GM_getValue("new_battle", ""));
  5764. }
  5765. // console.log(battleObj);
  5766. const storedProfileList = JSON.parse(GM_getValue("profile_export_list", "[]"));
  5767. // console.log(storedProfileList);
  5768.  
  5769. const BLANK_PLAYER_JSON = `{\"player\":{\"attackLevel\":1,\"magicLevel\":1,\"powerLevel\":1,\"rangedLevel\":1,\"defenseLevel\":1,\"staminaLevel\":1,\"intelligenceLevel\":1,\"equipment\":[]},\"food\":{\"/action_types/combat\":[{\"itemHrid\":\"\"},{\"itemHrid\":\"\"},{\"itemHrid\":\"\"}]},\"drinks\":{\"/action_types/combat\":[{\"itemHrid\":\"\"},{\"itemHrid\":\"\"},{\"itemHrid\":\"\"}]},\"abilities\":[{\"abilityHrid\":\"\",\"level\":\"1\"},{\"abilityHrid\":\"\",\"level\":\"1\"},{\"abilityHrid\":\"\",\"level\":\"1\"},{\"abilityHrid\":\"\",\"level\":\"1\"},{\"abilityHrid\":\"\",\"level\":\"1\"}],\"triggerMap\":{},\"zone\":\"/actions/combat/fly\",\"simulationTime\":\"100\",\"houseRooms\":{\"/house_rooms/dairy_barn\":0,\"/house_rooms/garden\":0,\"/house_rooms/log_shed\":0,\"/house_rooms/forge\":0,\"/house_rooms/workshop\":0,\"/house_rooms/sewing_parlor\":0,\"/house_rooms/kitchen\":0,\"/house_rooms/brewery\":0,\"/house_rooms/laboratory\":0,\"/house_rooms/observatory\":0,\"/house_rooms/dining_room\":0,\"/house_rooms/library\":0,\"/house_rooms/dojo\":0,\"/house_rooms/gym\":0,\"/house_rooms/armory\":0,\"/house_rooms/archery_range\":0,\"/house_rooms/mystical_study\":0}}`;
  5770.  
  5771. const exportObj = {};
  5772. exportObj[1] = BLANK_PLAYER_JSON;
  5773. exportObj[2] = BLANK_PLAYER_JSON;
  5774. exportObj[3] = BLANK_PLAYER_JSON;
  5775. exportObj[4] = BLANK_PLAYER_JSON;
  5776. exportObj[5] = BLANK_PLAYER_JSON;
  5777.  
  5778. let isParty = false;
  5779. const playerIDs = ["Player 1", "Player 2", "Player 3", "Player 4", "Player 5"];
  5780. const importedPlayerPositions = [false, false, false, false, false];
  5781. let zone = "/actions/combat/fly";
  5782. let isZoneDungeon = false;
  5783.  
  5784. if (!characterObj?.partyInfo?.partySlotMap) {
  5785. exportObj[1] = JSON.stringify(constructSelfPlayerExportObjFromInitCharacterData(characterObj, clientObj));
  5786. playerIDs[0] = characterObj.character.name;
  5787. importedPlayerPositions[0] = true;
  5788. // Zone
  5789. for (const action of characterObj.characterActions) {
  5790. if (action && action.actionHrid.includes("/actions/combat/")) {
  5791. zone = action.actionHrid;
  5792. isZoneDungeon = clientObj.actionDetailMap[action.actionHrid]?.combatZoneInfo?.isDungeon;
  5793. break;
  5794. }
  5795. }
  5796. } else {
  5797. isParty = true;
  5798. let i = 1;
  5799. for (const member of Object.values(characterObj.partyInfo.partySlotMap)) {
  5800. if (member.characterID) {
  5801. if (member.characterID === characterObj.character.id) {
  5802. exportObj[i] = JSON.stringify(constructSelfPlayerExportObjFromInitCharacterData(characterObj, clientObj));
  5803. playerIDs[i - 1] = characterObj.character.name;
  5804. importedPlayerPositions[i - 1] = true;
  5805. } else {
  5806. const profileList = storedProfileList.filter((item) => item.characterID === member.characterID);
  5807. if (profileList.length !== 1) {
  5808. console.log("Can not find stored profile for " + member.characterID);
  5809. playerIDs[i - 1] = isZH ? "需要点开资料" : "Open profile in game";
  5810. i++;
  5811. continue;
  5812. }
  5813. const profile = profileList[0];
  5814.  
  5815. const battlePlayerList = battleObj.players.filter((item) => item.character.id === member.characterID);
  5816. let battlePlayer = null;
  5817. if (battlePlayerList.length === 1) {
  5818. battlePlayer = battlePlayerList[0];
  5819. }
  5820.  
  5821. exportObj[i] = JSON.stringify(constructPlayerExportObjFromStoredProfile(profile, clientObj, battlePlayer));
  5822. playerIDs[i - 1] = profile.characterName;
  5823. importedPlayerPositions[i - 1] = true;
  5824. }
  5825. }
  5826. i++;
  5827. }
  5828.  
  5829. // Zone
  5830. zone = characterObj.partyInfo?.party?.actionHrid;
  5831. isZoneDungeon = clientObj.actionDetailMap[zone]?.combatZoneInfo?.isDungeon;
  5832. }
  5833.  
  5834. return [exportObj, playerIDs, importedPlayerPositions, zone, isZoneDungeon, isParty];
  5835. }
  5836.  
  5837. function constructSelfPlayerExportObjFromInitCharacterData(characterObj, clientObj) {
  5838. const playerObj = {};
  5839. playerObj.player = {};
  5840.  
  5841. // Levels
  5842. for (const skill of characterObj.characterSkills) {
  5843. if (skill.skillHrid.includes("stamina")) {
  5844. playerObj.player.staminaLevel = skill.level;
  5845. } else if (skill.skillHrid.includes("intelligence")) {
  5846. playerObj.player.intelligenceLevel = skill.level;
  5847. } else if (skill.skillHrid.includes("attack")) {
  5848. playerObj.player.attackLevel = skill.level;
  5849. } else if (skill.skillHrid.includes("power")) {
  5850. playerObj.player.powerLevel = skill.level;
  5851. } else if (skill.skillHrid.includes("defense")) {
  5852. playerObj.player.defenseLevel = skill.level;
  5853. } else if (skill.skillHrid.includes("ranged")) {
  5854. playerObj.player.rangedLevel = skill.level;
  5855. } else if (skill.skillHrid.includes("magic")) {
  5856. playerObj.player.magicLevel = skill.level;
  5857. }
  5858. }
  5859.  
  5860. // Items
  5861. playerObj.player.equipment = [];
  5862. for (const item of characterObj.characterItems) {
  5863. if (!item.itemLocationHrid.includes("/item_locations/inventory")) {
  5864. playerObj.player.equipment.push({
  5865. itemLocationHrid: item.itemLocationHrid,
  5866. itemHrid: item.itemHrid,
  5867. enhancementLevel: item.enhancementLevel,
  5868. });
  5869. }
  5870. }
  5871.  
  5872. // Food
  5873. playerObj.food = {};
  5874. playerObj.food["/action_types/combat"] = [];
  5875. for (const food of characterObj.actionTypeFoodSlotsMap["/action_types/combat"]) {
  5876. if (food) {
  5877. playerObj.food["/action_types/combat"].push({
  5878. itemHrid: food.itemHrid,
  5879. });
  5880. } else {
  5881. playerObj.food["/action_types/combat"].push({
  5882. itemHrid: "",
  5883. });
  5884. }
  5885. }
  5886.  
  5887. // Drinks
  5888. playerObj.drinks = {};
  5889. playerObj.drinks["/action_types/combat"] = [];
  5890. for (const drink of characterObj.actionTypeDrinkSlotsMap["/action_types/combat"]) {
  5891. if (drink) {
  5892. playerObj.drinks["/action_types/combat"].push({
  5893. itemHrid: drink.itemHrid,
  5894. });
  5895. } else {
  5896. playerObj.drinks["/action_types/combat"].push({
  5897. itemHrid: "",
  5898. });
  5899. }
  5900. }
  5901.  
  5902. // Abilities
  5903. playerObj.abilities = [
  5904. {
  5905. abilityHrid: "",
  5906. level: "1",
  5907. },
  5908. {
  5909. abilityHrid: "",
  5910. level: "1",
  5911. },
  5912. {
  5913. abilityHrid: "",
  5914. level: "1",
  5915. },
  5916. {
  5917. abilityHrid: "",
  5918. level: "1",
  5919. },
  5920. {
  5921. abilityHrid: "",
  5922. level: "1",
  5923. },
  5924. ];
  5925. let normalAbillityIndex = 1;
  5926. for (const ability of characterObj.combatUnit.combatAbilities) {
  5927. if (ability && clientObj.abilityDetailMap[ability.abilityHrid].isSpecialAbility) {
  5928. playerObj.abilities[0] = {
  5929. abilityHrid: ability.abilityHrid,
  5930. level: ability.level,
  5931. };
  5932. } else if (ability) {
  5933. playerObj.abilities[normalAbillityIndex++] = {
  5934. abilityHrid: ability.abilityHrid,
  5935. level: ability.level,
  5936. };
  5937. }
  5938. }
  5939.  
  5940. // TriggerMap
  5941. playerObj.triggerMap = { ...characterObj.abilityCombatTriggersMap, ...characterObj.consumableCombatTriggersMap };
  5942.  
  5943. // HouseRooms
  5944. playerObj.houseRooms = {};
  5945. for (const house of Object.values(characterObj.characterHouseRoomMap)) {
  5946. playerObj.houseRooms[house.houseRoomHrid] = house.level;
  5947. }
  5948.  
  5949. return playerObj;
  5950. }
  5951.  
  5952. function constructPlayerExportObjFromStoredProfile(profile, clientObj, battlePlayer) {
  5953. const playerObj = {};
  5954. playerObj.player = {};
  5955.  
  5956. // Levels
  5957. for (const skill of profile.profile.characterSkills) {
  5958. if (skill.skillHrid.includes("stamina")) {
  5959. playerObj.player.staminaLevel = skill.level;
  5960. } else if (skill.skillHrid.includes("intelligence")) {
  5961. playerObj.player.intelligenceLevel = skill.level;
  5962. } else if (skill.skillHrid.includes("attack")) {
  5963. playerObj.player.attackLevel = skill.level;
  5964. } else if (skill.skillHrid.includes("power")) {
  5965. playerObj.player.powerLevel = skill.level;
  5966. } else if (skill.skillHrid.includes("defense")) {
  5967. playerObj.player.defenseLevel = skill.level;
  5968. } else if (skill.skillHrid.includes("ranged")) {
  5969. playerObj.player.rangedLevel = skill.level;
  5970. } else if (skill.skillHrid.includes("magic")) {
  5971. playerObj.player.magicLevel = skill.level;
  5972. }
  5973. }
  5974.  
  5975. // Items
  5976. playerObj.player.equipment = [];
  5977. if (profile.profile.wearableItemMap) {
  5978. for (const key in profile.profile.wearableItemMap) {
  5979. const item = profile.profile.wearableItemMap[key];
  5980. playerObj.player.equipment.push({
  5981. itemLocationHrid: item.itemLocationHrid,
  5982. itemHrid: item.itemHrid,
  5983. enhancementLevel: item.enhancementLevel,
  5984. });
  5985. }
  5986. }
  5987.  
  5988. // Food and drinks
  5989. playerObj.food = {};
  5990. playerObj.food["/action_types/combat"] = [];
  5991. playerObj.drinks = {};
  5992. playerObj.drinks["/action_types/combat"] = [];
  5993.  
  5994. if (battlePlayer?.combatConsumables) {
  5995. for (const foodOrDrink of battlePlayer.combatConsumables) {
  5996. if (foodOrDrink.itemHrid.includes("coffee")) {
  5997. playerObj.drinks["/action_types/combat"].push({
  5998. itemHrid: foodOrDrink.itemHrid,
  5999. });
  6000. } else {
  6001. playerObj.food["/action_types/combat"].push({
  6002. itemHrid: foodOrDrink.itemHrid,
  6003. });
  6004. }
  6005. }
  6006. } else {
  6007. // Assume food and drinks based on equipted weapon
  6008. const weapon =
  6009. profile.profile.wearableItemMap &&
  6010. (profile.profile.wearableItemMap["/item_locations/main_hand"]?.itemHrid ||
  6011. profile.profile.wearableItemMap["/item_locations/two_hand"]?.itemHrid);
  6012. if (weapon) {
  6013. if (weapon.includes("shooter") || weapon.includes("bow")) {
  6014. // 远程
  6015. // xp,超远,暴击
  6016. playerObj.drinks["/action_types/combat"].push({
  6017. itemHrid: "/items/wisdom_coffee",
  6018. });
  6019. playerObj.drinks["/action_types/combat"].push({
  6020. itemHrid: "/items/super_ranged_coffee",
  6021. });
  6022. playerObj.drinks["/action_types/combat"].push({
  6023. itemHrid: "/items/critical_coffee",
  6024. });
  6025. // 2红1蓝
  6026. playerObj.food["/action_types/combat"].push({
  6027. itemHrid: "/items/spaceberry_donut",
  6028. });
  6029. playerObj.food["/action_types/combat"].push({
  6030. itemHrid: "/items/spaceberry_cake",
  6031. });
  6032. playerObj.food["/action_types/combat"].push({
  6033. itemHrid: "/items/star_fruit_yogurt",
  6034. });
  6035. } else if (weapon.includes("boomstick") || weapon.includes("staff")) {
  6036. // 法师
  6037. // xp,超魔,吟唱
  6038. playerObj.drinks["/action_types/combat"].push({
  6039. itemHrid: "/items/wisdom_coffee",
  6040. });
  6041. playerObj.drinks["/action_types/combat"].push({
  6042. itemHrid: "/items/super_magic_coffee",
  6043. });
  6044. playerObj.drinks["/action_types/combat"].push({
  6045. itemHrid: "/items/channeling_coffee",
  6046. });
  6047. // 1红2蓝
  6048. playerObj.food["/action_types/combat"].push({
  6049. itemHrid: "/items/spaceberry_cake",
  6050. });
  6051. playerObj.food["/action_types/combat"].push({
  6052. itemHrid: "/items/star_fruit_gummy",
  6053. });
  6054. playerObj.food["/action_types/combat"].push({
  6055. itemHrid: "/items/star_fruit_yogurt",
  6056. });
  6057. } else if (weapon.includes("bulwark")) {
  6058. // 双手盾 精暮光
  6059. // xp,超防,超耐
  6060. playerObj.drinks["/action_types/combat"].push({
  6061. itemHrid: "/items/wisdom_coffee",
  6062. });
  6063. playerObj.drinks["/action_types/combat"].push({
  6064. itemHrid: "/items/super_defense_coffee",
  6065. });
  6066. playerObj.drinks["/action_types/combat"].push({
  6067. itemHrid: "/items/super_stamina_coffee",
  6068. });
  6069. // 2红1蓝
  6070. playerObj.food["/action_types/combat"].push({
  6071. itemHrid: "/items/spaceberry_donut",
  6072. });
  6073. playerObj.food["/action_types/combat"].push({
  6074. itemHrid: "/items/spaceberry_cake",
  6075. });
  6076. playerObj.food["/action_types/combat"].push({
  6077. itemHrid: "/items/star_fruit_yogurt",
  6078. });
  6079. } else {
  6080. // 战士
  6081. // xp,超力,迅捷
  6082. playerObj.drinks["/action_types/combat"].push({
  6083. itemHrid: "/items/wisdom_coffee",
  6084. });
  6085. playerObj.drinks["/action_types/combat"].push({
  6086. itemHrid: "/items/super_power_coffee",
  6087. });
  6088. playerObj.drinks["/action_types/combat"].push({
  6089. itemHrid: "/items/swiftness_coffee",
  6090. });
  6091. // 2红1蓝
  6092. playerObj.food["/action_types/combat"].push({
  6093. itemHrid: "/items/spaceberry_donut",
  6094. });
  6095. playerObj.food["/action_types/combat"].push({
  6096. itemHrid: "/items/spaceberry_cake",
  6097. });
  6098. playerObj.food["/action_types/combat"].push({
  6099. itemHrid: "/items/star_fruit_yogurt",
  6100. });
  6101. }
  6102. }
  6103. }
  6104.  
  6105. // Abilities
  6106. playerObj.abilities = [
  6107. {
  6108. abilityHrid: "",
  6109. level: "1",
  6110. },
  6111. {
  6112. abilityHrid: "",
  6113. level: "1",
  6114. },
  6115. {
  6116. abilityHrid: "",
  6117. level: "1",
  6118. },
  6119. {
  6120. abilityHrid: "",
  6121. level: "1",
  6122. },
  6123. {
  6124. abilityHrid: "",
  6125. level: "1",
  6126. },
  6127. ];
  6128. if (profile.profile.equippedAbilities) {
  6129. let normalAbillityIndex = 1;
  6130. for (const ability of profile.profile.equippedAbilities) {
  6131. if (ability && clientObj.abilityDetailMap[ability.abilityHrid].isSpecialAbility) {
  6132. playerObj.abilities[0] = {
  6133. abilityHrid: ability.abilityHrid,
  6134. level: ability.level,
  6135. };
  6136. } else if (ability) {
  6137. playerObj.abilities[normalAbillityIndex++] = {
  6138. abilityHrid: ability.abilityHrid,
  6139. level: ability.level,
  6140. };
  6141. }
  6142. }
  6143. }
  6144.  
  6145. // TriggerMap
  6146. // Ignored. The game does not provide access to other players' trigger settings.
  6147.  
  6148. // HouseRooms
  6149. playerObj.houseRooms = {};
  6150. for (const house of Object.values(profile.profile.characterHouseRoomMap)) {
  6151. playerObj.houseRooms[house.houseRoomHrid] = house.level;
  6152. }
  6153.  
  6154. return playerObj;
  6155. }
  6156.  
  6157. async function observeResultsForAmvoidguy() {
  6158. let resultDiv = document.querySelector(`div.row`)?.querySelectorAll(`div.col-md-5`)?.[2]?.querySelector(`div.row > div.col-md-5`);
  6159. while (!resultDiv) {
  6160. await new Promise((resolve) => setTimeout(resolve, 100));
  6161. resultDiv = document.querySelector(`div.row`)?.querySelectorAll(`div.col-md-5`)?.[2]?.querySelector(`div.row > div.col-md-5`);
  6162. }
  6163.  
  6164. const deathDiv = document.querySelector(`div#simulationResultPlayerDeaths`);
  6165. const expDiv = document.querySelector(`div#simulationResultExperienceGain`);
  6166. const consumeDiv = document.querySelector(`div#simulationResultConsumablesUsed`);
  6167. deathDiv.style.backgroundColor = "#FFEAE9";
  6168. deathDiv.style.color = "black";
  6169. expDiv.style.backgroundColor = "#CDFFDD";
  6170. expDiv.style.color = "black";
  6171. consumeDiv.style.backgroundColor = "#F0F8FF";
  6172. consumeDiv.style.color = "black";
  6173.  
  6174. let div = document.createElement("div");
  6175. div.id = "tillLevel";
  6176. div.style.backgroundColor = "#FFFFE0";
  6177. div.style.color = "black";
  6178. div.textContent = "";
  6179. resultDiv.append(div);
  6180.  
  6181. new MutationObserver((mutationsList) => {
  6182. mutationsList.forEach((mutation) => {
  6183. if (mutation.addedNodes.length >= 3) {
  6184. handleResultForAmvoidguy(mutation.addedNodes, div);
  6185. }
  6186. });
  6187. }).observe(expDiv, { childList: true, subtree: true });
  6188. }
  6189.  
  6190. function handleResultForAmvoidguy(expNodes, parentDiv) {
  6191. const isZHIn3rdPartyWebsites = localStorage.getItem("i18nextLng")?.toLowerCase()?.startsWith("zh");
  6192.  
  6193. let perHourGainExp = {
  6194. stamina: 0,
  6195. intelligence: 0,
  6196. attack: 0,
  6197. power: 0,
  6198. defense: 0,
  6199. ranged: 0,
  6200. magic: 0,
  6201. };
  6202.  
  6203. expNodes.forEach((expNode) => {
  6204. if (getOriTextFromElement(expNode.children[0]).includes("Stamina") || getOriTextFromElement(expNode.children[0]).includes("耐力")) {
  6205. perHourGainExp.stamina = Number(expNode.children[1].textContent);
  6206. } else if (
  6207. getOriTextFromElement(expNode.children[0]).includes("Intelligence") ||
  6208. getOriTextFromElement(expNode.children[0]).includes("智力")
  6209. ) {
  6210. perHourGainExp.intelligence = Number(expNode.children[1].textContent);
  6211. } else if (getOriTextFromElement(expNode.children[0]).includes("Attack") || getOriTextFromElement(expNode.children[0]).includes("攻击")) {
  6212. perHourGainExp.attack = Number(expNode.children[1].textContent);
  6213. } else if (getOriTextFromElement(expNode.children[0]).includes("Power") || getOriTextFromElement(expNode.children[0]).includes("力量")) {
  6214. perHourGainExp.power = Number(expNode.children[1].textContent);
  6215. } else if (
  6216. getOriTextFromElement(expNode.children[0]).includes("Defense") ||
  6217. getOriTextFromElement(expNode.children[0]).includes("防御")
  6218. ) {
  6219. perHourGainExp.defense = Number(expNode.children[1].textContent);
  6220. } else if (getOriTextFromElement(expNode.children[0]).includes("Ranged") || getOriTextFromElement(expNode.children[0]).includes("远程")) {
  6221. perHourGainExp.ranged = Number(expNode.children[1].textContent);
  6222. } else if (getOriTextFromElement(expNode.children[0]).includes("Magic") || getOriTextFromElement(expNode.children[0]).includes("魔法")) {
  6223. perHourGainExp.magic = Number(expNode.children[1].textContent);
  6224. }
  6225. });
  6226.  
  6227. let data = GM_getValue("init_character_data", null);
  6228. let obj = JSON.parse(data);
  6229. if (!obj || !obj.characterSkills || !obj.currentTimestamp) {
  6230. console.error("handleResult no character localstorage");
  6231. return;
  6232. }
  6233.  
  6234. let skillLevels = {};
  6235. for (const skill of obj.characterSkills) {
  6236. if (skill.skillHrid.includes("stamina")) {
  6237. skillLevels.stamina = {};
  6238. skillLevels.stamina.skillName = "Stamina";
  6239. skillLevels.stamina.skillZhName = "耐力";
  6240. skillLevels.stamina.currentLevel = skill.level;
  6241. skillLevels.stamina.currentExp = skill.experience;
  6242. } else if (skill.skillHrid.includes("intelligence")) {
  6243. skillLevels.intelligence = {};
  6244. skillLevels.intelligence.skillName = "Intelligence";
  6245. skillLevels.intelligence.skillZhName = "智力";
  6246. skillLevels.intelligence.currentLevel = skill.level;
  6247. skillLevels.intelligence.currentExp = skill.experience;
  6248. } else if (skill.skillHrid.includes("attack")) {
  6249. skillLevels.attack = {};
  6250. skillLevels.attack.skillName = "Attack";
  6251. skillLevels.attack.skillZhName = "攻击";
  6252. skillLevels.attack.currentLevel = skill.level;
  6253. skillLevels.attack.currentExp = skill.experience;
  6254. } else if (skill.skillHrid.includes("power")) {
  6255. skillLevels.power = {};
  6256. skillLevels.power.skillName = "Power";
  6257. skillLevels.power.skillZhName = "力量";
  6258. skillLevels.power.currentLevel = skill.level;
  6259. skillLevels.power.currentExp = skill.experience;
  6260. } else if (skill.skillHrid.includes("defense")) {
  6261. skillLevels.defense = {};
  6262. skillLevels.defense.skillName = "Defense";
  6263. skillLevels.defense.skillZhName = "防御";
  6264. skillLevels.defense.currentLevel = skill.level;
  6265. skillLevels.defense.currentExp = skill.experience;
  6266. } else if (skill.skillHrid.includes("ranged")) {
  6267. skillLevels.ranged = {};
  6268. skillLevels.ranged.skillName = "Ranged";
  6269. skillLevels.ranged.skillZhName = "远程";
  6270. skillLevels.ranged.currentLevel = skill.level;
  6271. skillLevels.ranged.currentExp = skill.experience;
  6272. } else if (skill.skillHrid.includes("magic")) {
  6273. skillLevels.magic = {};
  6274. skillLevels.magic.skillName = "Magic";
  6275. skillLevels.magic.skillZhName = "魔法";
  6276. skillLevels.magic.currentLevel = skill.level;
  6277. skillLevels.magic.currentExp = skill.experience;
  6278. }
  6279. }
  6280.  
  6281. const skillNamesInOrder = ["stamina", "intelligence", "attack", "power", "defense", "ranged", "magic"];
  6282. let hTMLStr = "";
  6283. for (const skill of skillNamesInOrder) {
  6284. hTMLStr += `<div id="${"inputDiv_" + skill}" style="display: flex; justify-content: flex-end">${
  6285. isZHIn3rdPartyWebsites ? skillLevels[skill].skillZhName : skillLevels[skill].skillName
  6286. }${isZHIn3rdPartyWebsites ? "到" : " to level "}<input id="${"input_" + skill}" type="number" value="${
  6287. skillLevels[skill].currentLevel + 1
  6288. }" min="${skillLevels[skill].currentLevel + 1}" max="200">${isZHIn3rdPartyWebsites ? "" : ""}</div>`;
  6289. }
  6290.  
  6291. hTMLStr += `<div id="script_afterDays" style="display: flex; justify-content: flex-end"><input id="script_afterDays_input" type="number" value="1" min="0" max="200">${
  6292. isZHIn3rdPartyWebsites ? "天后" : "days after"
  6293. }</div>`;
  6294.  
  6295. hTMLStr += `<div id="needDiv"></div>`;
  6296. hTMLStr += `<div id="needListDiv"></div>`;
  6297. parentDiv.innerHTML = hTMLStr;
  6298.  
  6299. for (const skill of skillNamesInOrder) {
  6300. const skillDiv = parentDiv.querySelector(`div#${"inputDiv_" + skill}`);
  6301. const skillInput = parentDiv.querySelector(`input#${"input_" + skill}`);
  6302. skillInput.onchange = () => {
  6303. calculateTill(skill, skillInput, skillLevels, parentDiv, perHourGainExp, isZHIn3rdPartyWebsites);
  6304. };
  6305. skillInput.addEventListener("keyup", function (evt) {
  6306. calculateTill(skill, skillInput, skillLevels, parentDiv, perHourGainExp, isZHIn3rdPartyWebsites);
  6307. });
  6308. skillDiv.onclick = () => {
  6309. calculateTill(skill, skillInput, skillLevels, parentDiv, perHourGainExp, isZHIn3rdPartyWebsites);
  6310. };
  6311. }
  6312.  
  6313. const daysAfterDiv = parentDiv.querySelector(`div#script_afterDays`);
  6314. const daysAfterInput = parentDiv.querySelector(`input#script_afterDays_input`);
  6315. daysAfterInput.onchange = () => {
  6316. calculateAfterDays(daysAfterInput, skillLevels, parentDiv, perHourGainExp, skillNamesInOrder, isZHIn3rdPartyWebsites);
  6317. };
  6318. daysAfterInput.addEventListener("keyup", function (evt) {
  6319. calculateAfterDays(daysAfterInput, skillLevels, parentDiv, perHourGainExp, skillNamesInOrder, isZHIn3rdPartyWebsites);
  6320. });
  6321. daysAfterDiv.onclick = () => {
  6322. calculateAfterDays(daysAfterInput, skillLevels, parentDiv, perHourGainExp, skillNamesInOrder, isZHIn3rdPartyWebsites);
  6323. };
  6324.  
  6325. // 提取成本和收益
  6326. const expensesSpan = document.querySelector(`span#expensesSpan`);
  6327. const revenueSpan = document.querySelector(`span#revenueSpan`);
  6328. const profitSpan = document.querySelector(`span#profitPreview`);
  6329. const expenseDiv = document.querySelector(`div#script_expense`);
  6330. const revenueDiv = document.querySelector(`div#script_revenue`);
  6331. if (expenseDiv && expenseDiv) {
  6332. expenseDiv.textContent = expensesSpan.parentNode.textContent;
  6333. revenueDiv.textContent = revenueSpan.parentNode.textContent;
  6334. } else {
  6335. profitSpan.parentNode.insertAdjacentHTML(
  6336. "beforeend",
  6337. `<div id="script_expense" style="background-color: #DCDCDC; color: black;">${expensesSpan.parentNode.textContent}</div><div id="script_revenue" style="background-color: #DCDCDC; color: black;">${revenueSpan.parentNode.textContent}</div>`
  6338. );
  6339. }
  6340. }
  6341.  
  6342. function calculateAfterDays(daysAfterInput, skillLevels, parentDiv, perHourGainExp, skillNamesInOrder, isZHIn3rdPartyWebsites) {
  6343. const initData_levelExperienceTable = JSON.parse(GM_getValue("init_client_data", null)).levelExperienceTable;
  6344. const days = Number(daysAfterInput.value);
  6345. parentDiv.querySelector(`div#needDiv`).textContent = `${isZHIn3rdPartyWebsites ? "" : "After"} ${days} ${
  6346. isZHIn3rdPartyWebsites ? "天后:" : "days: "
  6347. }`;
  6348. const listDiv = parentDiv.querySelector(`div#needListDiv`);
  6349.  
  6350. let html = "";
  6351. let resultLevels = {};
  6352. for (const skillName of skillNamesInOrder) {
  6353. for (const skill of Object.values(skillLevels)) {
  6354. if (skill.skillName.toLowerCase() === skillName.toLowerCase()) {
  6355. const exp = skill.currentExp + perHourGainExp[skill.skillName.toLowerCase()] * days * 24;
  6356. let level = 1;
  6357. while (initData_levelExperienceTable[level] < exp) {
  6358. level++;
  6359. }
  6360. level--;
  6361. const minExpAtLevel = initData_levelExperienceTable[level];
  6362. const maxExpAtLevel = initData_levelExperienceTable[level + 1] - 1;
  6363. const expSpanInLevel = maxExpAtLevel - minExpAtLevel;
  6364. const levelPercentage = Number(((exp - minExpAtLevel) / expSpanInLevel) * 100).toFixed(1);
  6365. resultLevels[skillName.toLowerCase()] = level;
  6366. html += `<div>${isZHIn3rdPartyWebsites ? skill.skillZhName : skill.skillName} ${isZHIn3rdPartyWebsites ? "" : "level"} ${level} ${
  6367. isZHIn3rdPartyWebsites ? "级" : ""
  6368. } ${levelPercentage}%</div>`;
  6369. break;
  6370. }
  6371. }
  6372. }
  6373. const combatLevel =
  6374. 0.2 * (resultLevels.stamina + resultLevels.intelligence + resultLevels.defense) +
  6375. 0.4 * Math.max(0.5 * (resultLevels.attack + resultLevels.power), resultLevels.ranged, resultLevels.magic);
  6376. html += `<div>${isZHIn3rdPartyWebsites ? "战斗等级:" : "Combat level: "} ${combatLevel.toFixed(1)}</div>`;
  6377. listDiv.innerHTML = html;
  6378. }
  6379.  
  6380. function calculateTill(skillName, skillInputElem, skillLevels, parentDiv, perHourGainExp, isZHIn3rdPartyWebsites) {
  6381. const initData_levelExperienceTable = JSON.parse(GM_getValue("init_client_data", null)).levelExperienceTable;
  6382. const targetLevel = Number(skillInputElem.value);
  6383. parentDiv.querySelector(`div#needDiv`).textContent = `${
  6384. isZHIn3rdPartyWebsites ? skillLevels[skillName].skillZhName : skillLevels[skillName].skillName
  6385. } ${isZHIn3rdPartyWebsites ? "到" : "to level"} ${targetLevel} ${isZHIn3rdPartyWebsites ? "级 还需:" : " takes: "}`;
  6386. const listDiv = parentDiv.querySelector(`div#needListDiv`);
  6387.  
  6388. const currentLevel = Number(skillLevels[skillName].currentLevel);
  6389. const currentExp = Number(skillLevels[skillName].currentExp);
  6390. if (targetLevel > currentLevel && targetLevel <= 200) {
  6391. if (perHourGainExp[skillName] === 0) {
  6392. listDiv.innerHTML = isZHIn3rdPartyWebsites ? "永远" : "Forever";
  6393. } else {
  6394. let needExp = initData_levelExperienceTable[targetLevel] - currentExp;
  6395. let needHours = needExp / perHourGainExp[skillName];
  6396. let html = "";
  6397. html += `<div>[${hoursToReadableString(needHours)}]</div>`;
  6398.  
  6399. const consumeDivs = document.querySelectorAll(`div#simulationResultConsumablesUsed div.row`);
  6400. for (const elem of consumeDivs) {
  6401. const conName = elem.children[0].textContent;
  6402. const conPerHour = Number(elem.children[1].textContent);
  6403. html += `<div>${conName} ${Number(conPerHour * needHours).toFixed(0)}</div>`;
  6404. }
  6405.  
  6406. listDiv.innerHTML = html;
  6407. }
  6408. } else {
  6409. listDiv.innerHTML = isZHIn3rdPartyWebsites ? "输入错误" : "Input error";
  6410. }
  6411. }
  6412.  
  6413. function addImportButtonForMooneycalc() {
  6414. const checkElem = () => {
  6415. const selectedElement = document.querySelector(`div[role="tablist"]`);
  6416. if (selectedElement) {
  6417. clearInterval(timer);
  6418. const button = document.createElement("button");
  6419. selectedElement.parentNode.insertBefore(button, selectedElement.nextSibling);
  6420. button.textContent = isZH
  6421. ? "导入人物数据 (刷新游戏网页更新人物数据)"
  6422. : "Import character settings (Refresh game page to update character settings)";
  6423. button.style.backgroundColor = SCRIPT_COLOR_MAIN;
  6424. button.style.color = "black";
  6425. button.style.padding = "5px";
  6426. button.onclick = function () {
  6427. console.log("Mooneycalc-Importer: Button onclick");
  6428. importDataForMooneycalc(button);
  6429. return false;
  6430. };
  6431. }
  6432. };
  6433. let timer = setInterval(checkElem, 200);
  6434. }
  6435.  
  6436. async function importDataForMooneycalc(button) {
  6437. const characterData = JSON.parse(GM_getValue("init_character_data", ""));
  6438. console.log(characterData);
  6439. if (!characterData || !characterData.characterSkills || !characterData.currentTimestamp) {
  6440. button.textContent = isZH ? "错误:没有人物数据" : "Error: no character settings found";
  6441. return;
  6442. }
  6443.  
  6444. const ls = constructMooneycalcLocalStorage(characterData);
  6445. localStorage.setItem("settings", ls);
  6446.  
  6447. button.textContent = isZH ? "已导入" : "Imported";
  6448. await new Promise((r) => setTimeout(r, 500));
  6449. location.reload();
  6450. }
  6451.  
  6452. function constructMooneycalcLocalStorage(characterData) {
  6453. const ls = localStorage.getItem("settings");
  6454. let lsObj = JSON.parse(ls);
  6455.  
  6456. // 人物技能等级
  6457. lsObj.state.settings.levels = {};
  6458. for (const skill of characterData.characterSkills) {
  6459. lsObj.state.settings.levels[skill.skillHrid] = skill.level;
  6460. }
  6461.  
  6462. // 社区全局buff
  6463. lsObj.state.settings.communityBuffs = {};
  6464. for (const buff of characterData.communityBuffs) {
  6465. lsObj.state.settings.communityBuffs[buff.hrid] = buff.level;
  6466. }
  6467.  
  6468. // 装备 & 装备强化等级
  6469. lsObj.state.settings.equipment = {};
  6470. lsObj.state.settings.equipmentLevels = {};
  6471. for (const item of characterData.characterItems) {
  6472. if (item.itemLocationHrid !== "/item_locations/inventory") {
  6473. lsObj.state.settings.equipment[item.itemLocationHrid.replace("item_locations", "equipment_types")] = item.itemHrid;
  6474. lsObj.state.settings.equipmentLevels[item.itemLocationHrid.replace("item_locations", "equipment_types")] = item.enhancementLevel;
  6475. }
  6476. }
  6477.  
  6478. // 房子
  6479. lsObj.state.settings.houseRooms = {};
  6480. for (const house of Object.values(characterData.characterHouseRoomMap)) {
  6481. lsObj.state.settings.houseRooms[house.houseRoomHrid] = house.level;
  6482. }
  6483.  
  6484. return JSON.stringify(lsObj);
  6485. }
  6486.  
  6487. function hoursToReadableString(hours) {
  6488. const sec = hours * 60 * 60;
  6489. if (sec >= 86400) {
  6490. return Number(sec / 86400).toFixed(1) + (isZH ? " 天" : " days");
  6491. }
  6492. const d = new Date(Math.round(sec * 1000));
  6493. function pad(i) {
  6494. return ("0" + i).slice(-2);
  6495. }
  6496. let str = d.getUTCHours() + "h " + pad(d.getUTCMinutes()) + "m " + pad(d.getUTCSeconds()) + "s";
  6497. return str;
  6498. }
  6499.  
  6500. function addExportButton(obj) {
  6501. const checkElem = () => {
  6502. const selectedElement = document.querySelector(`div.SharableProfile_overviewTab__W4dCV`);
  6503. if (selectedElement) {
  6504. clearInterval(timer);
  6505.  
  6506. const button = document.createElement("button");
  6507. selectedElement.appendChild(button);
  6508. button.textContent = isZH ? "导出人物到剪贴板" : "Export to clipboard";
  6509. button.style.borderRadius = "5px";
  6510. button.style.height = "30px";
  6511. button.style.backgroundColor = SCRIPT_COLOR_MAIN;
  6512. button.style.color = "black";
  6513. button.style.boxShadow = "none";
  6514. button.style.border = "0px";
  6515. button.onclick = function () {
  6516. let exportString = "";
  6517. const playerID = obj.profile.characterSkills[0].characterID;
  6518. const clientObj = JSON.parse(GM_getValue("init_client_data", ""));
  6519. const characterObj = JSON.parse(GM_getValue("init_character_data", ""));
  6520.  
  6521. if (playerID === characterObj.character.id) {
  6522. exportString = JSON.stringify(constructSelfPlayerExportObjFromInitCharacterData(characterObj, clientObj));
  6523. } else {
  6524. const storedProfileList = JSON.parse(GM_getValue("profile_export_list", "[]"));
  6525. const profileList = storedProfileList.filter((item) => item.characterID === playerID);
  6526. let profile = null;
  6527. if (profileList.length !== 1) {
  6528. console.log("Can not find stored profile for " + playerID);
  6529. return;
  6530. }
  6531. profile = profileList[0];
  6532.  
  6533. let battlePlayer = null;
  6534. if (GM_getValue("new_battle", "")) {
  6535. const battleObj = JSON.parse(GM_getValue("new_battle", ""));
  6536. const battlePlayerList = battleObj.players.filter((item) => item.character.id === playerID);
  6537. if (battlePlayerList.length === 1) {
  6538. battlePlayer = battlePlayerList[0];
  6539. }
  6540. }
  6541.  
  6542. exportString = JSON.stringify(constructPlayerExportObjFromStoredProfile(profile, clientObj, battlePlayer));
  6543. }
  6544.  
  6545. console.log(exportString);
  6546. navigator.clipboard.writeText(exportString);
  6547. button.textContent = isZH ? "已复制" : "Copied";
  6548. return false;
  6549. };
  6550. return false;
  6551. }
  6552. };
  6553. let timer = setInterval(checkElem, 200);
  6554. }
  6555. })();