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 +1 -1
- package/package.json +1 -1
- package/readme.md +6 -0
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 -
|
|
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