Florr.io 汉化

全面汉化 Florr.io

  1. // ==UserScript==
  2. // @name Florr.io 汉化
  3. // @namespace A florr.io userjs
  4. // @description 全面汉化 Florr.io
  5. // @version 1.1.2
  6. // @author -lexiyvv, flo修仙传, Tinhone, squid233, Lucker
  7. // @license GPL-3.0
  8. // @match *://florr.io/*
  9. // @grant GM_setValue
  10. // @grant GM_getValue
  11. // @compatible firefox V50+
  12. // @compatible edge V50+
  13. // @compatible chrome V50+
  14. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAB2lBMVEUAAADTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbSvEbTvUbSvUbTvUbSvEbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbTvUbSvEbTvUbSvEbUvkfWwEjYwUnVv0fex03p0lXy21r331754V/y2lrp0lTdx03UvkbgyU/y21v95WL/6GP/52P95WHgyU7XwUns1Vfs1VbXwUjZwkrYwkn03mLm0mH85WLm0mL03mHfyU7742HYzZHU0cLhz2z/6GLj0m7W08TUyY3742DVvkfp1WHe28r8/f/Yz5f85GD85F/Rx4/8/P/j4NDu2WX85WHTvUb/6mTNu1erqqX7/P7c1rT332D13l6Ykm/n6Oru7ejl02/o0lTSvEbAr1A0MzBoaGp+eFvz3F/03WBUTzJPT1FvbmvHtlfx2lrOu1UsKyQaGx1eWDL54mFgWTQbHB4qKCLNu1T2313q1V1GQy0bHCCMgUH/6WSjlUhcVjPbx1j75WL03mDo0VT+6WT65GL+5mPdxk21pEaqmkL03V/75GLCsEuQgjj34GDjzliEeDNuYyuGeTSLfjZ2ay5zaC3Pu1D/6GT85mPgy1fDsUy+rErSvlL34WDr1Fb////IkFdGAAAAH3RSTlMAAAEHDAo0api0wQ9buO7+/j35BmjnefVpPua37Zf+dLW/BwAAAAFiS0dEnQa78rEAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfkAQgDJRPX3t0LAAACLUlEQVQ4y4VTB3cSQRC+pYYWDSkkgeQOkuMOCLdrLmAUxULU2Mt59t4LllhIuVQ1lth7y491mV1CAH3Oe/fm7cx3U78RhFWCbHaHw25Dwt8EIafL3eTxej1NbpcToQa3zx9oXiNK0agkrm0O+H21EGRrCQRjff1yXFHiaiIZCwZaVmdCrW3tqYG0hjGhgvE6eTDV3taKqv6OkD6kgZcJ1jLZUEcFgVBnaH2a1Ik8HOpkdSDU1a2ncT0Ay9nuLkAgXzg1xGwcxXUmFfahcgB/cEAD+4aNubLObdoMiFw+6KchkDMcYwm2bN22vUBIYWTHzl3wgzoadlKAK9LHAuzes3fffkIOHDx0+Aj8YSQjLgpwH+2Hp3ns+ImTpwg5febsufMFqOLCRTcF9IgyA1y6fOXqNYyv37h567YJMYtiDxLsHikOcPPO3Xv3xwgZe/Dw0WMGKEkeu+DwRhXW3PjE5JRFiDU1OTHOGlV0r6MKIGR6ZrYMmJ2Z5gYArKQgZG6e6fk5PjBIQYtUK3PGNYoXSdtMNCyCywK06YokDW7QnpSh1tNn7GkswqDoqNkgiPX8xUvLfLX0+k0lA4yaLmtQY5a3795/+Pjp8xcegC0L1p1hpq/fvv/4+eu3xV7LbN1AmCxPQizT5G6iSpwwQLlhub4DdYVyjLTZTA1pjWWpSlpO+7xqANnoZxTzNbTnhzOaTBRLilIqLiyKdYdTOb1eUdJ1SextPL3/H++/z/8P7nmbVKvpGgUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMTItMzFUMjA6MDg6NTMtMDg6MDCgb7H/AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTAxLTA4VDExOjM3OjE5LTA4OjAwqEgKbQAAAABJRU5ErkJggg==
  15. // ==/UserScript==
  16.  
  17. (function () {
  18. 'use strict';
  19.  
  20. if (typeof (GM_getValue("customFont")) == "undefined") { //可在 储存 选项卡中更改字体与字重
  21. const defaultCustomFont = {
  22. fontFamily: 'Microsoft YaHei',
  23. fontWeight: '',
  24. fontSizeMin: 14
  25. }
  26. GM_setValue("customFont", defaultCustomFont)
  27. }
  28. const customFont = GM_getValue("customFont")
  29. if (typeof (GM_getValue("openCustomReloadAnimation")) == "undefined") { //可在 储存 选项卡中更改是否打开自定义再装填动画
  30. GM_setValue("openCustomReloadAnimation", true)
  31. }
  32. const openCustomReloadAnimation = GM_getValue("openCustomReloadAnimation")
  33.  
  34. const size1 = 80;
  35. const size2 = 80;
  36. const size3 = (size2 - 30) / 2;
  37. const size4 = -(size2 - 30) / 2;
  38. const size1db2 = size1 / 2;
  39. const size2db2 = size2 / 2;
  40. const reloadMainImg = document.createElement('img');
  41. reloadMainImg.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHsAAAB8CAMAAAB+HD/1AAAAAXNSR0IArs4c6QAAAqZQTFRFAAAA///////////////M//8z//+2//////85/////+tO//////+q///f//AP//KG//////+////c//OX//////WF/+sU//+q/+5d///3//Bi//iV/+s8//Jz///g/+EA/+6A/+MG//q4/+9H/+QL/////+UQ/+AA//Bm//WH/+cd//GA/+gp//a3/+k1/+5o/+Y2//OA//MM///v/+tL//Bb//CD//QZ/+MA//////+Q/+9s//////af/+YP//CA//Sf//////GK/P8I/+pE/+IA//KG//rZ//Bv/+YK///9//WT/+QR/f8C//GB//jC//aa/+pE/+9s/+Yg//ad//SN/f8U/+1h/+UL//J7//Sk/+gx///s//////eN//B4/+5f/+9t//Wn/+QG/f8Q/+s9//e7//eW/+QZ//B5//iw/+EH/+kz//vW//F9/+UJ/+9F/+kr/P8A/+1K/+s///KL/+MD/+o7/+UV/+s0/+5k/+MA//ST/+k3/f8A/+ci//Nh/+kw/+o2/+gn/+ow/+1c/+o6/+QE/P9w/+YW/+tL/+ck/+o//+Ya/+QA//ul//GE/+ky/+cj/v9B/+QF/v8J/+xI/+ch/+s//+tH/+QE/+k0/+cg/+QA/+US/+xK/v9T/+Y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/GPsXxvuOyutXdj0lP5f+dCJiadbyVqb7hz5UA07NlN6SEAXG3e8sO3e/Zs37px1dJ5s2f8ShIJG5dt3Lh16/bte/b89+dXJPLq1ZMHpcVXCgtyT2fKXCEqyLTnAu/7GvUHUXCH4HRrMtTZzeTgmhNcaN0PNZKVDdcc70KWo3odVGiA5ijZWbJK8OwQ9CMhhdbdcMwua1EI+hVDETsGRxxmRQb0MyHZwm5HUwtn5ak9nn2nFNwDGK+zY3bBrxvhCaTsyT03XAnugey028PBFYy36JgS3HrLDx5kcLawC/KGmz0UXJEX0E45eOEQeAol+2EA31hvGeFxAk6Yd2Gn+YQJA4BfJrvLMv0wMFygCzoMFDPc+gfW/wOS8RaqhhzFSgAAAABJRU5ErkJggg==';
  42. const reloadProcessBarImg = document.createElement("img");
  43. reloadProcessBarImg.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAABlJREFUKFNj/Puf4T8DEYBxVCG+UKJ+8AAABz4d2ZbeQwkAAAAASUVORK5CYII=';
  44.  
  45. let timestampForDebug = performance.timeOrigin + performance.now();
  46.  
  47. const translate = {
  48. //特殊判定
  49. 'vvyixel': 'lexiyvv',
  50. 'floxxz': 'flo修仙传',
  51.  
  52.  
  53.  
  54.  
  55.  
  56. //用户界面-开始
  57. 'florr.io': 'florr.io',
  58. 'Ready': '开始',
  59. 'Connecting...': '正在连接...',
  60. 'Logging in...': '正在登录...',
  61. 'Loading...': '加载中...',
  62. 'Account': '账号',
  63. 'Changelog': '更新日志',
  64. 'Join our Discord community!': '加入我们的Discord社区!',
  65. '加入我们的QQ群!': '加入我们的QQ群!',
  66.  
  67.  
  68.  
  69.  
  70.  
  71. //用户界面-设置
  72. 'Settings': '设置',
  73. 'Keyboard movement': '使用键盘操作',
  74. 'Movement helper': '移动辅助箭头',
  75. 'Show damage numbers': '显示伤害数值',
  76. 'Chat': '聊天',
  77. 'Hide common drops': '隐藏常见掉落',
  78. 'Hide unusual drops': '隐藏少见掉落',
  79. 'Screen shake': '画面抖动',
  80.  
  81. 'Credits': '荣誉墙',
  82. 'Special Thanks': '特别鸣谢',
  83. 'Made by Matheus Valadares': '制作: Matheus Valadares',
  84. 'Some icons by Lorc & Skoll from game-': '部分图标: Lorc & Skoll 来自',
  85. 'icons.net': 'game-icons.net',
  86. 'Some icons from twemoji.twitter.com': '部分图标: twemoji.twitter.com',
  87. 'Some tiles by kenney.nl': '部分纹理贴图: kenney.nl',
  88.  
  89. 'Privacy Policy': '隐私策略',
  90.  
  91. 'Terms of Service': '服务条款',
  92.  
  93.  
  94.  
  95.  
  96.  
  97. //用户界面-商店
  98. 'Shop': '商店',
  99. 'Today\'s offers:': '今日售卖',
  100. 'You gain stars as you watch ads, or you can': '您可以在看广告时获得星星,',
  101. 'You gain stars as you watch ads as soon as you': '只要您获得第一个传奇花瓣,',
  102. 'collect your first legendary petal, or you can': '您就可以在看广告时获得星星;',
  103. 'buy some by clicking the number on the right.': '也可以点击右边的数字购买一些。',
  104. 'I have too much money': '我有超级多的钱',
  105. 'In case of any issues with your purchase,': '如果您的购买过程出现任何问题,',
  106. 'please contact support@m28.io': '请联系 support@m28.io',
  107.  
  108. 'hour': '小时',
  109. 'hours': '小时',
  110. 'minute': '分钟',
  111. 'minutes': '分钟',
  112. 'second': '秒',
  113. 'seconds': '秒',
  114.  
  115.  
  116.  
  117.  
  118.  
  119. //用户界面-退出游戏
  120. 'Abandon game': '退出游戏',
  121. 'You were destroyed by:': '您被这个生物打败了',
  122. 'A mysterious entity': '未知生物',
  123. 'Continue': '继续',
  124. 'GAME OVER': '游戏结束',
  125.  
  126.  
  127.  
  128.  
  129.  
  130. //用户界面-消息栏
  131. 'Press [ENTER] or click here to chat': '按 [ENTER] 键或点击这里聊天',
  132. 'No one is around to hear you.': '抱歉,附近没有玩家能听到您说话',
  133. 'You\'re doing that too much.': '您发消息的速度过于快了',
  134.  
  135.  
  136.  
  137.  
  138.  
  139. //用户界面-挂机检查
  140. 'AFK Check': '挂机检查',
  141. 'Are you here?': '您还在这里吗?',
  142. 'I\'m here': '我在',
  143.  
  144.  
  145.  
  146.  
  147.  
  148. //用户界面-地图名称
  149. 'Centralia': '中心之地',
  150. 'Centralia Fields 1': '后花园 1 (石头)',
  151. 'Centralia Fields 2': '后花园 2',
  152. 'Centralia Fields 3': '后花园 3 (瓢虫)',
  153. 'Centralia Fields 4': '后花园 4',
  154. 'Centralia Fields 5': '后花园 5 (蜈蚣)',
  155. 'Centralia Fields 6': '后花园 6 (黄蜂)',
  156. 'Centralia Fields 7': '后花园 7 (蒲公英)',
  157. 'Centralia Maze': '后花园迷宫',
  158.  
  159. 'Centralia Sewers 1': '后花园下水道 1 (飞蛾)',
  160. 'Centralia Sewers 2': '后花园下水道 2 (蟑螂)',
  161. 'Centralia Sewers 3': '后花园下水道 3 (苍蝇)',
  162. 'Centralia Sewers 4': '后花园下水道 4 (蜘蛛)',
  163.  
  164. 'Centralia Beach': '后花园海滩',
  165. 'East Waters 1': '东部水域 1',
  166. 'East Waters 2': '东部水域 2',
  167. 'East Waters 3': '东部水域 3',
  168. 'East Waters 4': '东部水域 4 (贝壳)',
  169. 'East Waters 6': '东部水域 6 (水蛭)',
  170. 'Jellyfish Fields': '水母之地 (水母)',
  171. 'Crab Kingdom': '螃蟹王国 (泡泡&螃蟹)',
  172.  
  173. 'South Desert 1': '南部沙漠 1 (沙尘暴)',
  174. 'South Desert 2': '南部沙漠 2',
  175. 'South Desert 3': '南部沙漠 3 (仙人掌)',
  176. 'South Desert 4': '南部沙漠 4 (闪亮瓢虫)',
  177. 'South Desert 5': '南部沙漠 5 (甲虫)',
  178.  
  179. 'Ant Hell 1': '火蚁地狱 (火蚁后)',
  180. 'Ant Hell 2': '黑蚁地狱 (黑蚁后)',
  181. 'Ant Hell 3': '白蚁地狱 (白蚁领主)',
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188. //用户界面-仓库
  189. 'Inventory': '仓库',
  190. 'Drag a petal to equip it': '把花瓣拖到装备栏上来使用它',
  191. 'Stack': '按花瓣种类排序(默认按稀有度排序)',
  192.  
  193.  
  194.  
  195.  
  196.  
  197. //花瓣详细介绍
  198. 'Air': '空气',
  199. 'It\'s literally nothing.': '空白,可占据卡槽。',
  200.  
  201.  
  202.  
  203. 'Antennae': '触角',
  204. 'Allows your flower to sense foes farther away. Does not stack.': '让视野更宽广。此花瓣的效果不能叠加。',
  205. 'Extra vision: ': '额外视野:',
  206.  
  207.  
  208.  
  209. 'Basic': '基本',
  210. 'A nice petal, not too strong but not too weak.': '一个中庸花瓣,不是很强,也不是很弱。',
  211. 'Damage: ': '伤害:',
  212. 'Health: ': '血量:',
  213.  
  214.  
  215.  
  216. 'Basil': '罗勒',
  217. 'Increases all healing received.': '增加所有治疗效果。',
  218. 'Healing bonus: ': '治疗加成:',
  219.  
  220.  
  221.  
  222. 'Bone': '骨头',
  223. 'Sturdy.': '硬骨头。',
  224. 'Armor: ': '护甲:',
  225.  
  226.  
  227.  
  228. 'Bubble': '泡泡',
  229. 'Physics are for the weak.': '加速推进,跑图利器。',
  230.  
  231.  
  232.  
  233. 'Bulb': '灯泡',
  234. 'Light Bulb': '灯泡',
  235. 'A shiny lightbulb. Draws aggro from mobs.': '吸引范围内敌对和中立生物。',
  236. 'Radius: ': '半径:',
  237.  
  238.  
  239.  
  240. 'Cactus': '仙人掌',
  241. 'Not very strong, but somehow increases your maximum health.': '花瓣本身强度不是很高,但可以增加本体血量上限。',
  242. 'Flower Health: ': '本体血量:',
  243.  
  244.  
  245.  
  246. 'Carrot': '胡萝卜',
  247. 'Sturdy and reliable. Can be shot and bounces off walls.': '牢固且可靠,发射后碰到墙壁会反弹。',
  248.  
  249.  
  250.  
  251. 'Claw': '爪子',
  252. 'Deals extra damage if the victim is above 80% health.': '目标血量高于 80% 时,造成额外伤害。',
  253. '-50% damage vs other flowers.': '对其他玩家造成的伤害 -50%。',
  254. 'Extra Damage: ': '额外伤害:',
  255.  
  256.  
  257.  
  258. 'Clover': '幸运草',
  259. 'Increases your luck. Does not stack with itself.': '提高幸运值,单人不叠加,多人上限为 4.0 幸运值。',
  260. 'Higher luck increases the chances of finding rarer mobs.': '更高的幸运值可以提高更稀有的生物出现的概率。',
  261. 'Luck: ': '幸运:',
  262.  
  263.  
  264.  
  265. 'Corn': '玉米',
  266. 'Takes a long time to spawn, but has a lot of health.': '冷却时间比较长,但是花瓣血量很高。',
  267.  
  268.  
  269.  
  270. 'Cotton': '棉花',
  271. 'Absorbs damage taken by the flower.': '吸收玩家受到的伤害。(效果不明)',
  272.  
  273.  
  274.  
  275. 'Cutter': '齿轮',
  276. 'A friend used to own this... now it\'s time for revenge.': '一位朋友曾经拥有这个,现在是时候为它报仇了。',
  277. 'Increases body damage. Does not stack.': '增加体伤,不叠加。',
  278. 'Body Damage: ': '体伤:',
  279.  
  280.  
  281.  
  282. 'Dahlia': '大丽花',
  283. 'A small amount of heal but fairly consistent.': '回血量较少,但是有三份,回复过程比较平滑。',
  284. 'Heal: ': '治疗:',
  285.  
  286.  
  287.  
  288. 'Dandelion': '蒲公英',
  289. 'Its interesting properties inhibits healing effects on affected units.': '击中后可降低目标生物的治疗效果。',
  290. 'Affected units have their healing reduced by 20%. Stacks with itself.': '目标生物治疗效果减少 20%,可叠加。',
  291. 'Duration: ': '持续时间:',
  292.  
  293.  
  294.  
  295. 'Egg': '蛋',
  296. 'Beetle Egg': '甲虫蛋',
  297. 'Ant Egg': '蚂蚁蛋',
  298. 'Something interesting might pop out of this.': '生成一只(或一些)生物。',
  299. 'Contents: ': '孵化物:',
  300.  
  301.  
  302.  
  303. 'Fangs': '血牙',
  304. 'Heals based on damage dealt by this petal.': '将该花瓣造成的伤害按比例获得治疗量。',
  305. 'Damage Healed: ': '伤害吸血比例:',
  306.  
  307.  
  308.  
  309. 'Faster': '加速',
  310. 'It\'s so light it makes your other petals spin faster.': '装备后可提高花瓣旋转速度。',
  311. 'Rotation Speed:': '旋转速度增幅:',
  312.  
  313.  
  314.  
  315. 'Grapes': '葡萄',
  316. '4 in 1 deal. Now with a secret ingredient: poison.': '分为四份,造成伤害和毒伤,整个打出按一份算。',
  317. 'Poison: ': '毒伤:',
  318.  
  319.  
  320.  
  321. 'Heavy': '重',
  322. 'This thing is so heavy that nothing gets in the way.': '这个花瓣能推动生物。',
  323. 'Slows down petal rotation speed when equipped.': '装备后且加载完成时,会减慢花瓣的旋转速度。',
  324.  
  325.  
  326.  
  327. 'Honey': '蜂蜜',
  328. 'Mobs love this. Attracts them in a large radius.': '吸引范围内生物,丢出使用。',
  329. 'Mobs will prioritize this over flowers.': '生物会优先追逐这个花瓣。',
  330. 'Affected units develop immunity to its effects after some time.': '被影响的生物一段时间后效果解除。',
  331. 'Max Mob Rarity: ': '最高生物稀有度:',
  332.  
  333.  
  334.  
  335. 'Iris': '鸢尾',
  336. 'Very poisonous, but takes a little while to do its work.': '造成毒伤,毒伤不可叠加。',
  337.  
  338.  
  339.  
  340. 'Jelly': '果冻',
  341. 'No one likes touching this.': '弹开其他生物。',
  342. 'Knockback: ': '击退:',
  343.  
  344.  
  345.  
  346. 'Leaf': '叶子',
  347. 'Gathers energy from the sun to heal your flower passively.': '从阳光中收集能量来持续回复血量,冷却期间亦生效。',
  348. 'Can be eaten by friendly mobs to heal.': '也可以帮助除挖掘者外的友方生物回血。',
  349. 'Mob Heal: ': '治疗生物:',
  350.  
  351.  
  352.  
  353. 'Light': '轻',
  354. 'Weaker than most petals, but recharges very quickly.': '比大部分花瓣脆弱(伤害、血量),但是冷却时间短。',
  355.  
  356.  
  357.  
  358. 'Lightning': '闪电',
  359. 'Strikes several nearby enemies.': '可以导电多个邻近的生物。',
  360. 'Lightning: ': '闪电伤害:',
  361. 'Bounces:': '导电数量:',
  362.  
  363.  
  364.  
  365. 'Lotus': '莲花',
  366. 'Absorbs poison damage taken by the flower.': '可以吸收玩家受到的毒伤。',
  367.  
  368.  
  369.  
  370. 'Magnet': '磁铁',
  371. 'Increases drop pickup range.': '扩大拾取掉落物的范围。',
  372. 'Does not stack with itself.': '拾取效果不叠加。',
  373. 'Pickup range: ': '拾取范围:',
  374.  
  375.  
  376.  
  377. 'Missile': '导弹',
  378. 'You can actually shoot this one.': '您可以把这个花瓣发射出去。',
  379.  
  380.  
  381.  
  382. 'Orange': '橘子',
  383. 'A sweet citrus fruit.': '站在此地,不要走动。',
  384.  
  385.  
  386.  
  387. 'Pearl': '珍珠',
  388. 'Just drop it off somewhere and use your kinetic powers so you don\'t lose it.': '抛出去可以随时收回来,不收回来的话,可以推着走,也可以拖着走。',
  389.  
  390.  
  391.  
  392. 'Peas': '豌豆',
  393. '4 in 1 deal.': '分 4 份,整体打出算 1 份。',
  394.  
  395.  
  396.  
  397. 'Pincer': '毒螫',
  398. 'Debilitates enemies temporarily, reducing their movement speed.': '可以短时间麻痹敌人,降低敌人的移动速度,对贝壳也有效。',
  399.  
  400.  
  401.  
  402. 'Plank': '木板',
  403. 'Does 5x damage vs projectiles and petals.': '对花瓣和飞行道具造成 5 倍伤害。',
  404.  
  405.  
  406.  
  407. 'Pollen': '花粉',
  408. 'Asthmatics beware.': '当心过敏。',
  409.  
  410.  
  411.  
  412. 'Poo': '便便',
  413. 'Makes mobs less likely to want to attack you. Does not stack.': '减少生物发现你的范围,效果不叠加。',
  414. 'Mob aggro range: ': '生物发现范围:',
  415.  
  416.  
  417.  
  418. 'Powder': '粉末',
  419. 'Mysterious Powder': '神秘的粉末',
  420. 'Increases movement speed. Does not stack.': '提高移动速度,效果不叠加。',
  421. 'Movement Speed: ': '移动速度增幅:',
  422.  
  423.  
  424.  
  425. 'Relic': '遗物',
  426. 'Mysterious Relic': '神秘的遗物',
  427. 'A strange relic. Damage taken is spread among other wearers.': '奇怪的遗物,特定范围内同时佩戴它的玩家会共享部分伤害。',
  428. '% distributed: ': '受伤分摊比例:',
  429.  
  430.  
  431.  
  432. 'Rice': '米',
  433. 'Spawns instantly, but not very strong.': '生成速度非常快,但是很脆弱。',
  434.  
  435.  
  436.  
  437. 'Rock': '石头',
  438. 'Extremely durable, but takes a bit longer to recharge.': '非常耐用,稍微需要一些时间来装载。',
  439.  
  440.  
  441.  
  442. 'Rose': '玫瑰',
  443. 'Its healing properties are amazing. Not so good at combat though.': '回血效果惊艳,但战斗过程中容易被损坏。',
  444.  
  445.  
  446.  
  447. 'Salt': '盐',
  448. 'Reflects some of the damage you take back to the enemy that dealt it.': '以特定比例反弹敌方单位对我方造成的伤害。',
  449. 'Reflected damage is reduced by 75% against flowers.': '伤害反弹效果对其他玩家 -75%。',
  450. 'Damage Reflection: ': '伤害反弹比例:',
  451.  
  452.  
  453.  
  454. 'Sand': '沙子',
  455. 'A bunch of sand particles.': '一团沙子(4 颗沙粒)。',
  456.  
  457.  
  458.  
  459. 'Shell': '贝壳',
  460. 'Adds a temporary shield to yourself or allies.': '给自己和其他玩家施加缓慢衰减的临时护盾。',
  461. 'Shield: ': '护盾:',
  462.  
  463.  
  464.  
  465. 'Soil': '土',
  466. 'Increases health, but also increases flower size and decreases movement speed.': '增加本体血量上限,增大花朵,但是会减慢移动速度,效果均可叠加。',
  467.  
  468.  
  469.  
  470. 'Sponge': '海绵',
  471. 'Spreads damage taken by the flower over a period of time.': '把玩家受到的伤害分摊到一段时间内缓慢扣除。',
  472. 'If destroyed, deals remaining damage all at once.': '如果被打破了,储存的伤害将一次性结算。',
  473. 'Period: ': '周期:',
  474.  
  475.  
  476.  
  477. 'Square': '方块',
  478.  
  479.  
  480.  
  481. 'Starfish': '海星',
  482. 'Increases health regen while below 75% health.': '生命值低于75%时开始恢复血量,冷却期间亦生效。',
  483.  
  484.  
  485.  
  486. 'Stick': '树枝',
  487. 'Mysterious Stick': '神秘的树枝',
  488. 'A mysterious stick that summons the forces of the wind.': '这个神秘的树枝可以召唤风的力量来生成沙尘暴。',
  489. 'Spawn: ': '生成:',
  490.  
  491.  
  492.  
  493. 'Stinger': '刺',
  494. 'It really hurts, but it\'s very fragile.': '伤害非常高,但是也非常脆弱。',
  495.  
  496.  
  497.  
  498. 'Third Eye': '第三只眼',
  499. 'Allows your flower to expand your petals further out.': '能使装备的花瓣进一步张开,攻击距离更远。',
  500. 'Does not stack.': '花瓣效果不叠加。',
  501. 'Extra range: ': '距离加成:',
  502.  
  503.  
  504.  
  505. 'Tomato': '番茄',
  506. 'Gets stronger over time, but then spoils.': '成熟度越高伤害越高,但是容易腐烂。',
  507.  
  508.  
  509.  
  510. 'Uranium': '铀',
  511. 'Periodically releases radiation in a large radius.': '周期性地释放辐射伤害,可叠加,但对自身的毒伤不叠加。',
  512. 'Causes even the most passive mobs to become very aggressive.': '使所有可移动生物变为主动敌对生物。',
  513. 'Stronger the closer the victim is to the source.': '生物离辐射源越近,受到的伤害越高。',
  514. '-75% damage versus other flowers.': '对其他玩家的伤害-75%。',
  515.  
  516.  
  517.  
  518. 'Web': '网',
  519. 'It\'s really sticky.': '黏糊糊的,用于减速敌人。',
  520.  
  521.  
  522.  
  523. 'Wing': '翅膀',
  524. 'It comes and goes.': '像回旋镖一样的翅膀。',
  525.  
  526.  
  527.  
  528. 'Yggdrasil': '世界树之叶',
  529. 'A dried leaf from the Yggdrasil tree.': '从世界树上掉落的枯叶。',
  530. 'Rumored to be able to bring the fallen back to life.': '据说能够让死亡的花朵复活。',
  531. 'Revive Heal: ': '复活后血量:',
  532.  
  533.  
  534.  
  535. 'Yin Yang': '阴阳',
  536. 'This mysterious petal affects the rotation of your petals in unpredictable ways.': '这个神秘的花瓣能以特殊的方式改变其它花瓣的转动方式或分布形态。',
  537.  
  538.  
  539.  
  540. 'Yucca': '丝兰',
  541. 'Heals your flower but only while in the defensive position.': '花朵处于防守形态时才能产生治疗效果。',
  542.  
  543.  
  544.  
  545.  
  546.  
  547. //用户界面-技能
  548. 'Skills': '技能',
  549. 'SP': '技能点',
  550. 'Acquire more SP by ': '您可以通过',
  551. 'absorbing': '吸收',
  552. ' petals to gain levels': '花瓣来提升等级,从而获得技能点',
  553. 'HOLD to upgrade': '长按升级',
  554. 'Reset': '重置技能',
  555. 'This will refund all your SP points.': '将返还您全部技能点。',
  556. 'WARNING:': '警告',
  557. 'It will cost you 5 levels.': '这将使您降低5级。',
  558. 'Cancel': '取消',
  559.  
  560.  
  561.  
  562.  
  563.  
  564. //技能详细描述
  565. 'Salvaging': '回收',
  566.  
  567. 'Petals destroyed during crafting will be absorbed for 1% of their XP.': '合成中消耗的花瓣会被吸收1%的经验。',
  568.  
  569. 'Increases the absorbed XP from petals destroyed during crafting from 1% to 2%.': '将合成中消耗花瓣被吸收经验的比例从1%提升到2%。',
  570.  
  571. 'Increases the absorbed XP from petals destroyed during crafting from 2% to 3%.': '将合成中消耗花瓣被吸收经验的比例从2%提升到3%。',
  572.  
  573. 'Increases the absorbed XP from petals destroyed during crafting from 3% to 4%.': '将合成中消耗花瓣被吸收经验的比例从3%提升到4%。',
  574.  
  575. 'Increases the absorbed XP from petals destroyed during crafting from 4% to 5%.': '将合成中消耗花瓣被吸收经验的比例从4%提升到5%。',
  576.  
  577.  
  578.  
  579. 'Skilled Crafting': '合成概率',
  580.  
  581. 'Increases ': '提高',
  582. ' to ': '→',
  583.  
  584. ' crafting chance from 40% to 44%.': '的合成概率:40% → 44%',
  585. ' crafting chance from 30% to 33%.': '的合成概率:30% → 33%',
  586. ' crafting chance from 20% to 22%.': '的合成概率:20% → 22%',
  587. ' crafting chance from 10% to 11%.': '的合成概率:10% → 11%',
  588. ' crafting chance from 3% to 3.3%.': '的合成概率:3% → 3.3%',
  589. ' crafting chance from 2% to 2.2%.': '的合成概率:2% → 2.2%',
  590. ' crafting chance from 1% to 1.1%.': '的合成概率:1% → 1.1%',
  591.  
  592. ' crafting chance 44% to 48%.': '的合成概率:44% → 48%',
  593. ' crafting chance 33% to 36%.': '的合成概率:33% → 36%',
  594. ' crafting chance 22% to 24%.': '的合成概率:22% → 24%',
  595. ' crafting chance 11% to 12%.': '的合成概率:11% → 12%',
  596. ' crafting chance 3.3% to 3.6%.': '的合成概率:3.3% → 3.6%',
  597. ' crafting chance 2.2% to 2.4%.': '的合成概率:2.2% → 2.4%',
  598. ' crafting chance 1.1% to 1.2%.': '的合成概率:1.1% → 1.2%',
  599.  
  600.  
  601.  
  602. 'Crafting': '合成能力',
  603. 'Unlocks the ability to craft ': '解锁合成花瓣稀有度等级',
  604. ' petals.': '',
  605.  
  606.  
  607.  
  608. 'Loadout': '卡槽',
  609.  
  610. 'Enables a 6th loadout slot to equip petals.': '解锁第 6 个用于装备花瓣的卡槽',
  611.  
  612. 'Enables a 7th loadout slot to equip petals.': '解锁第 7 个用于装备花瓣的卡槽',
  613.  
  614. 'Enables a 8th loadout slot to equip petals.': '解锁第 8 个用于装备花瓣的卡槽',
  615.  
  616. 'Enables a 9th loadout slot to equip petals.': '解锁第 9 个用于装备花瓣的卡槽',
  617.  
  618. 'Enables a 10th loadout slot to equip petals.': '解锁第 10 个用于装备花瓣的卡槽',
  619.  
  620.  
  621.  
  622. 'Reload': '花瓣冷却',
  623.  
  624. 'Decreases the reload time for petals by -7%.': '降低花瓣冷却时间:-7%',
  625. 'Decreases minimum reload time when swapping petals from 2.5s to 2.0s.': '花瓣切槽装载时间:2.5s → 2.0s',
  626.  
  627. 'Decreases the reload time for petals from -7% to -14%.': '降低花瓣冷却时间:-7% → -14%',
  628. 'Decreases minimum reload time when swapping petals from 2.0s to 1.5s.': '花瓣切槽装载时间:2.0s → 1.5s',
  629.  
  630. 'Decreases the reload time for petals from -14% to -20%.': '降低花瓣冷却时间:-14% → -20%',
  631. 'Decreases minimum reload time when swapping petals from 1.5s to 1.0s.': '花瓣切槽装载时间:1.5s → 1.0s',
  632.  
  633. 'Decreases the reload time for petals from -20% to -25%.': '降低花瓣冷却时间:-20% → -25%',
  634. 'Decreases minimum reload time when swapping petals from 1.0s to 0.5s.': '花瓣切槽装载时间:1.0s → 0.5s',
  635.  
  636. 'Decreases the reload time for petals from -25% to -31%.': '降低花瓣冷却时间:-25% → -31%',
  637. 'Decreases minimum reload time when swapping petals from 0.5s to 0.0s.': '花瓣切槽装载时间:0.5s → 0.0s',
  638.  
  639. 'Decreases the reload time for petals from -31% to -35%.': '降低花瓣冷却时间:-31% → -35%',
  640.  
  641. 'Decreases the reload time for petals from -35% to -40%.': '降低花瓣冷却时间:-35% → -40%',
  642.  
  643.  
  644.  
  645. 'Petal Rotation': '转速',
  646.  
  647. 'Increases petal ': '花瓣的',
  648. 'Rotation Speed': '旋转速度',
  649.  
  650. ' from 2.5 to 2.8 rad/s.': ' :2.5 → 2.8 rad/s',
  651.  
  652. ' from 2.8 to 3.1 rad/s.': ' :2.8 → 3.1 rad/s',
  653.  
  654. ' from 3.1 to 3.4 rad/s.': ' :3.1 → 3.4 rad/s',
  655.  
  656. ' from 3.4 to 3.7 rad/s.': ' :3.4 → 3.7 rad/s',
  657.  
  658. ' from 3.7 to 4 rad/s.': ' :3.7 → 4.0 rad/s',
  659.  
  660.  
  661.  
  662. 'Health': '生命值',
  663.  
  664. 'Increases base ': '提高基础',
  665. 'Flower Health': '本体血量',
  666. ' by 25%.': ':+25%',
  667.  
  668.  
  669.  
  670. 'Medic': '治疗增幅',
  671.  
  672. 'healing': '基础治疗效果',
  673. ' from your petals by 10%.': ':+10%',
  674. 'Affects allies healed by your petals.': '治疗其他玩家时,此效果亦生效',
  675.  
  676.  
  677.  
  678. 'Summoner': '召唤物血量',
  679.  
  680. ' of summoned mobs by 10%.': ':+10%,基于召唤物基础血量',
  681.  
  682.  
  683.  
  684. 'Sharp Edges': '体伤',
  685.  
  686. 'Body Damage': '体伤',
  687. ' by 20%.': ':+20%',
  688.  
  689.  
  690.  
  691.  
  692.  
  693. //用户界面-吸收
  694. 'Absorb': '吸收',
  695. 'Switch': '切换',
  696. 'Next level: +1 SP': '达到下一级:+1 技能点',
  697. 'Absorb petals to gain XP': '吸收花瓣可获得XP',
  698. 'WARNING: The petals will be destroyed in the process': '警告:此过程将摧毁花瓣',
  699.  
  700.  
  701.  
  702.  
  703.  
  704. //用户界面-合成
  705. 'Craft': '合成',
  706. 'Combine 5 of the same petal to craft an upgrade': '合成高一级花瓣至少需要 5 个相同花瓣',
  707. 'Failure will destroy 1-4 petals': '失败将随机摧毁 1~4 个花瓣',
  708.  
  709.  
  710.  
  711.  
  712.  
  713. //用户界面-生物图鉴
  714. 'Mob Gallery': '生物图鉴',
  715.  
  716.  
  717.  
  718.  
  719.  
  720. //生物详细介绍
  721. 'Ant Egg': '蚂蚁蛋',
  722. 'Not yet an ant but perhaps soon': '在不久后会变成蚂蚁。',
  723.  
  724.  
  725.  
  726. 'Ant Hole': '蚂蚁洞',
  727. 'Ants go in, and come out. Can\'t explain that.': '一窝蚂蚁。',
  728.  
  729.  
  730.  
  731. 'Baby Ant': '幼蚁',
  732. 'Weak and defenseless, but big dreams.': '小小的蚂蚁,大大的梦想。',
  733.  
  734.  
  735.  
  736. 'Baby Fire Ant': '幼火蚁',
  737. 'This ant is on fireeeeeeeeeeeeee': '这类蚂蚁脾气比较暴躁。',
  738.  
  739.  
  740.  
  741. 'Baby Termite': '幼白蚁',
  742. 'These creatures appear to be connected somehow.': '这类蚂蚁似乎存在某种关联。',
  743. 'Psyonic Connection': '命运共同体',
  744.  
  745.  
  746.  
  747. 'Bee': '蜜蜂',
  748. 'It stings. Don\'t touch it.': '别碰,会蛰。',
  749.  
  750.  
  751.  
  752. 'Beetle': '甲虫',
  753. 'It\'s hungry and flowers are its favorite meal.': '这种饿货最喜欢吃花花。',
  754.  
  755. 'Bubble': '泡泡',
  756. 'Pop': '吹弹可破。',
  757.  
  758. 'Bumble Bee': '熊蜂',
  759. 'GOTTA RUN.': '溜了溜了。',
  760. 'Missile health: ': '自身刺血量:',
  761. 'Missile damage: ': '自身刺伤害:',
  762.  
  763.  
  764.  
  765. 'Cactus': '仙人掌',
  766. 'Avoid touching it, it hurts.': '撞上它真的很疼。',
  767.  
  768.  
  769.  
  770. 'Centipede': '蜈蚣',
  771. 'It\'s just there doing its thing.': '花不犯它,它不犯花。',
  772.  
  773.  
  774.  
  775. 'Roach': '蟑螂',
  776. 'Gotta go FAST... until they get tired.': '速度非常快,除非它们累了。',
  777.  
  778.  
  779.  
  780. 'Crab': '螃蟹',
  781. 'Mr. Crab': 'Mr. Crab ♂',
  782.  
  783.  
  784.  
  785. 'Dandelion': '蒲公英',
  786. 'Puffy': '蓬松的花伞。',
  787.  
  788.  
  789.  
  790. 'Desert Centipede': '沙漠蜈蚣',
  791. 'Gotta go fast.': '身上粉尘多,俗称泥头车。',
  792.  
  793.  
  794.  
  795. 'Digger': '挖掘者',
  796. 'Wrong game, bud': '似乎喜欢挖蚁穴?',
  797.  
  798.  
  799.  
  800. 'Evil Centipede': '邪恶蜈蚣',
  801. 'This one loves flowers.': '这货喜欢(吃)花花。',
  802.  
  803.  
  804.  
  805. 'Fire Ant Burrow': '火蚁穴',
  806. 'What could be in here?': '里面有什么呢?',
  807.  
  808.  
  809.  
  810. 'Fire Ant Egg': '火蚁蛋',
  811. 'This ant is not yet on fire': '此时的火蚁尚未开始躁动。',
  812.  
  813.  
  814.  
  815. 'Fly': '苍蝇',
  816. 'Hzzzzzzzzzzzz': '围着 M28 乱飞。',
  817.  
  818.  
  819.  
  820. 'Hornet': '黄蜂',
  821. 'These aren\'t quite as nice as the little bees.': '这种生物可没有小蜜蜂那么友好。',
  822.  
  823.  
  824.  
  825. 'Jellyfish': '水母',
  826. 'Makes the most delicious jam': '可制作最美味的jam。',
  827.  
  828.  
  829.  
  830. 'Ladybug': '瓢虫',
  831. 'Shiny, cute and mostly harmless.': '长大后会去找世界树的闪亮瓢虫。',
  832. 'Cute and harmless.': '可爱且无邪。',
  833. 'Cute and harmless... if left unprovoked.': '可爱且无邪(无端',
  834.  
  835.  
  836.  
  837. 'Leech': '水蛭',
  838. 'Slurp slurp': '嘬一口。',
  839. 'Lifesteal: ': '吸血量:',
  840.  
  841.  
  842.  
  843. 'Moth': '飞蛾',
  844. 'Easily scared, be nice.': '很容易受到惊吓。',
  845.  
  846.  
  847.  
  848. 'Queen Ant': '蚁后',
  849. 'You must have done something really bad if she\'s chasing you.': '如果她追赶你,那一定是你干坏事惹到她了。',
  850.  
  851.  
  852.  
  853. 'Queen Fire Ant': '火蚁后',
  854.  
  855.  
  856.  
  857. 'Rock': '石头',
  858. 'A rock. It doesn\'t do much.': '一块石头,里边没有猴子。',
  859.  
  860.  
  861.  
  862. 'Sandstorm': '沙尘暴',
  863. 'Darude (1999)': '伤心 (1999)',
  864.  
  865.  
  866.  
  867. 'Scorpion': '蝎子',
  868. 'IT STINGS': '它的螫带毒。',
  869. 'Missile Poison: ': '发射的螫毒伤:',
  870.  
  871.  
  872.  
  873. 'Shell': '贝壳',
  874. 'Not an advertisement': '自带吸铁石的珠宝批发商。',
  875.  
  876.  
  877.  
  878. 'Soldier Ant': '兵蚁',
  879. 'It\'s got wings and it\'s ready to use them.': '翅膀硬了,随时准备搞事情。',
  880.  
  881.  
  882.  
  883. 'Soldier Fire Ant': '兵火蚁',
  884.  
  885.  
  886.  
  887. 'Soldier Termite': '兵白蚁',
  888.  
  889.  
  890.  
  891. 'Spider': '蜘蛛',
  892. 'Spooky.': '阴森森的。',
  893.  
  894.  
  895.  
  896. 'Sponge': '海绵',
  897. 'Bob': '不是 Pizza。',
  898.  
  899.  
  900.  
  901. 'Square': '方块',
  902. 'This shape... it looks familiar...': '这个外形看着很熟悉...',
  903.  
  904.  
  905.  
  906. 'Starfish': '海星',
  907. 'His name is Patrick': '它的名字叫派大星。',
  908.  
  909.  
  910.  
  911. 'Termite Overmind': '白蚁领主',
  912. 'The one who sees all.': '原来这就是大大的梦想。',
  913.  
  914.  
  915.  
  916. 'Worker Ant': '工蚁',
  917. 'It\'s a bit temperamental, probably from working all the time.': '有点喜怒无常,估计是因为一直搬砖干活。',
  918.  
  919.  
  920.  
  921. 'Worker Fire Ant': '工火蚁',
  922.  
  923.  
  924.  
  925. 'Worker Termite': '工白蚁',
  926.  
  927.  
  928.  
  929.  
  930.  
  931. //稀有度
  932. 'Common': '常见',
  933. 'Unusual': '少见',
  934. 'Rare': '稀有',
  935. 'Epic': '史诗',
  936. 'Legendary': '传奇',
  937. 'Mythic': '神话',
  938. 'Ultra': '究极',
  939. 'Super': '至臻',
  940.  
  941. ' (Common)': '(常见)',
  942. ' (Unusual)': '(少见)',
  943. ' (Rare)': '(稀有)',
  944. ' (Epic)': '(史诗)',
  945. ' (Legendary)': '(传奇)',
  946. ' (Mythic)': '(神话)',
  947. ' (Ultra)': '(究极)',
  948. ' (Super)': '(至臻)',
  949. }
  950.  
  951.  
  952.  
  953.  
  954.  
  955. //获取翻译
  956. function getTranslate(text) {
  957. if (typeof (translate[text]) == 'string') { return translate[text] }
  958. switch (true) {
  959. //1.2% success chance
  960. case (/\S+% success chance/.test(text)): {
  961. const probability = text.match(/\S+(?=% success chance)/);
  962. return `成功率 ${probability}%`;
  963. }
  964.  
  965. //Store will change in 10 hours.
  966. case (/Store will change in [0-9][0-9]?[0-9]? \w\w\w\w\w?\w?\w?\./.test(text)): {
  967. const timeNum = text.match(/(?<=Store will change in )[0-9]?[0-9]?[0-9]?(?=\s\w\w\w\w\w?\w?\w?\.)/);
  968. const timeUnit = text.match(/(?<=Store will change in [0-9]?[0-9]?[0-9]?\s)\w\w\w\w\w?\w?\w?(?=\.)/);
  969. return `货架将在 ${timeNum} ${getTranslate(timeUnit)}后刷新`;
  970. }
  971.  
  972. //The Super Termite Overmind was defeated by you!
  973. case (/The \w\w\w\w\w?\w?\w?\w?\w? .+ was defeated by .+!/.test(text)): {
  974. const mobLevel = text.match(/(?<=The\s)\w\w\w\w\w?\w?\w?\w?\w?(?=\s)/);
  975. const mobName = text.match(/(?<=The\s\w\w\w\w\w?\w?\w?\w?\w?\s).+(?=\swas)/);
  976. const playerName = text.match(/(?<=was defeated by ).+(?=!)/);
  977. return `${getTranslate(mobLevel)} ${getTranslate(mobName)} 已被 ${playerName} 击败!`;
  978. }
  979.  
  980. //A Super Termite Overmind has spawned!
  981. case (/An? \w\w\w\w\w .+ has spawned!/.test(text)): {
  982. const mobLevel = text.match(/(?<=An?\s)\w\w\w\w\w(?=\s)/);
  983. const mobName = text.match(/(?<=An?\s\w\w\w\w\w\s).+(?= has spawned!)/);
  984. return `${getTranslate(mobLevel)} ${getTranslate(mobName)} 已在地图中生成!`;
  985. }
  986.  
  987. //A Super Termite Overmind has spawned somewhere!
  988. case (/An? \w\w\w\w\w .+ has spawned somewhere!/.test(text)): {
  989. const mobLevel = text.match(/(?<=An?\s)\w\w\w\w\w(?=\s)/);
  990. const mobName = text.match(/(?<=An?\s\w\w\w\w\w\s).+(?= has spawned somewhere!)/);
  991. return `${getTranslate(mobLevel)} ${getTranslate(mobName)} 已在某个地图中生成!`;
  992. }
  993. }
  994. return text;
  995. }
  996.  
  997.  
  998. //获取可操作的 Canvas,避免出现浏览器不兼容情况
  999. function getCompatibleCanvas() {
  1000. if (typeof (OffscreenCanvasRenderingContext2D) == 'undefined') { return [CanvasRenderingContext2D] }
  1001. return [OffscreenCanvasRenderingContext2D, CanvasRenderingContext2D];
  1002. }
  1003.  
  1004.  
  1005. //普通的日志输出,但加入了防止过快输出的措施
  1006. function consoleTextInfoLog(string) {
  1007. if ((performance.timeOrigin + performance.now()) - timestampForDebug >= 2333) {
  1008. timestampForDebug = performance.timeOrigin + performance.now();
  1009. console.log(string);
  1010. }
  1011. }
  1012.  
  1013.  
  1014. //当被查找的字符串中含有目标字符串,弹出警告
  1015. function alertTargetStr(searchStr, targetStr) {
  1016. if (searchStr.search(targetStr) > -1) {
  1017. alert(searchStr);
  1018. }
  1019. }
  1020.  
  1021.  
  1022. //获取模糊化的字体大小 | 主要用来避免花瓣上小字的字体大小会在小幅度内变动的情况,让它好看一点
  1023. function getBlurFontSize(str) {
  1024. return ~~((~~(str.match(/(?<!.)[0-9][0-9]?[0-9]?[0-9]?/)) + 3.5) / 5) * 5 - 1; //正则表达式需要注意存在小数情况
  1025. }
  1026.  
  1027.  
  1028. //获取可应用的字体字符串
  1029. function getApplicableFontStr(fontSize) {
  1030. return `${customFont.fontWeight} ${(fontSize > customFont.fontSizeMin ? fontSize : customFont.fontSizeMin)}px ${customFont.fontFamily}`;
  1031. }
  1032.  
  1033.  
  1034. //初始化
  1035. for (const { prototype } of getCompatibleCanvas()) {
  1036. if (prototype.fyu8d71gf6kv == undefined) {
  1037. if (openCustomReloadAnimation) { prototype.rewriteArc = prototype.arc }
  1038. prototype.fyu8d71gf6kv = prototype.strokeText;
  1039. prototype.fyu8d71gf6kf = prototype.fillText;
  1040. prototype.fyu8d71gf6kt = prototype.measureText;
  1041. }
  1042. else { break }
  1043. }
  1044.  
  1045.  
  1046. //函数重写
  1047. for (const { prototype } of getCompatibleCanvas()) {
  1048. if (openCustomReloadAnimation) {
  1049. //重写绘制圆弧路径函数 | 将花瓣再装填动画改为自定义,这里貌似是 Phigros 中的打击效果
  1050. prototype.arc = function (x, y, radius, startAngle, endAngle, anticlockwise) {
  1051. if (x == 0 && y == -5 && radius == 120 && anticlockwise == false) {
  1052. y = y + 5;
  1053. const progress = ~~(Math.sqrt(startAngle / 35.81371) * 10000);
  1054. const size3tProgress = size3 * progress / 10000;
  1055. const size4tProgress = size4 * progress / 10000;
  1056. const XmSize2db2p15 = x - size2db2 + 15;
  1057. const XpSize2db2m15 = x + size2db2 - 15;
  1058. const YmSize2db2p11 = y - size1db2 + 11.25;
  1059. const YpSize2db2m11 = y + size1db2 - 11.25;
  1060. const originalGlobalAlpha = this.globalAlpha;
  1061. if (progress >= 9950) { this.globalAlpha = (50 - (progress - 9950)) / 50; } //最后的降低透明度动画 | 注意 js 小数运算精度问题
  1062. this.drawImage(reloadProcessBarImg, XmSize2db2p15, YmSize2db2p11, size3tProgress, 5);
  1063. this.drawImage(reloadProcessBarImg, XpSize2db2m15, YmSize2db2p11, size4tProgress, 5);
  1064. this.drawImage(reloadProcessBarImg, XmSize2db2p15, YpSize2db2m11, size3tProgress, -5);
  1065. this.drawImage(reloadProcessBarImg, XpSize2db2m15, YpSize2db2m11, size4tProgress, -5);
  1066. this.drawImage(reloadProcessBarImg, YmSize2db2p11, XmSize2db2p15, 5, size3tProgress);
  1067. this.drawImage(reloadProcessBarImg, YmSize2db2p11, XpSize2db2m15, 5, size4tProgress);
  1068. this.drawImage(reloadProcessBarImg, YpSize2db2m11, XmSize2db2p15, -5, size3tProgress);
  1069. this.drawImage(reloadProcessBarImg, YpSize2db2m11, XpSize2db2m15, -5, size4tProgress);
  1070. y = y - 5;
  1071.  
  1072. this.drawImage(reloadMainImg, x - size2db2, y - size1db2 + 5, size2, size1);
  1073. this.globalAlpha = originalGlobalAlpha
  1074. return;
  1075. }
  1076. return this.rewriteArc(x, y, radius, startAngle, endAngle, anticlockwise);
  1077. }
  1078. }
  1079.  
  1080. //重写字符描边函数
  1081. prototype.strokeText = function (text, x, y) {
  1082. const newFontSize = getBlurFontSize(this.font);
  1083. this.font = getApplicableFontStr(newFontSize);
  1084. //alertTargetStr(text, "Flower Health");
  1085. //consoleTextInfoLog(text, x, y);
  1086. return this.fyu8d71gf6kv(getTranslate(text), x, y);
  1087. }
  1088.  
  1089. //重写字符填充函数 | 它会随着 strokeText 自适应填充,不需要更多设置
  1090. prototype.fillText = function (text, x, y) {
  1091. return this.fyu8d71gf6kf(getTranslate(text), x, y);
  1092. }
  1093.  
  1094. //重写字符尺寸度量函数
  1095. prototype.measureText = function (text) {
  1096. const newFontSize = getBlurFontSize(this.font);
  1097. this.font = getApplicableFontStr(newFontSize);
  1098. return this.fyu8d71gf6kt(getTranslate(text));
  1099. }
  1100. }
  1101. })();