koishi-plugin-toram 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -303,7 +303,7 @@ async function apply(ctx, config) {
303
303
  .map(([, i]) => i);
304
304
  const WildBoss = MaxExpFixedWildBossIndex.map(index => {
305
305
  const boss = FitLevelWildBoss[index];
306
- x = PlayerExpRate[Math.abs(PlayerLevel - WildBoss.level)] || 0;
306
+ x = PlayerExpRate[Math.abs(PlayerLevel - boss?.level)] || 0;
307
307
  return `${boss?.name} 等级${boss?.level} ${boss?.map} 经验值${boss?.baseEXP * x} ${boss?.element}属性`;
308
308
  }).join('\n');
309
309
  text += WildBoss;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-toram",
3
3
  "description": "托拉姆物语小工具",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "contributors": [
6
6
  "青灯 <1874053520@qq.com>"
7
7
  ],
package/readme.md CHANGED
@@ -18,6 +18,12 @@ QQ:1874053520
18
18
 
19
19
  ————————————
20
20
 
21
+ 0.4.2
22
+
23
+ 修复了升级指令错误的bug
24
+
25
+ ————————————
26
+
21
27
  0.4.1
22
28
 
23
29
  修复了数据文件写入无效的bug