koishi-plugin-resonance-columba-bot 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -4330,7 +4330,7 @@ function apply(ctx, config) {
4330
4330
  var price = Math.round(sellPrice * 1.2 - buyPrice * 0.75 * 0.8);
4331
4331
  var needNum = Math.ceil(1e7 / (sellPrice * 1.2 - buyPrice * 0.75 * 0.8));
4332
4332
  var outputStr = "点石成金成就计算\n三级制造台 满抬满砍 未计算副产 未计算垃圾\n\n";
4333
- if (needNum <= 1016) {
4333
+ if (needNum <= 1016 && +num >= needNum) {
4334
4334
  outputStr = outputStr + "当前最低沙金 淘金乐园 " + buyVariation + buyTrend_updown + " " + buyPrice + "\n";
4335
4335
  outputStr = outputStr + "当前最高金线 " + sellCity + " " + sellVariation + sellTrend_updown + " 利润:" + price + "\n";
4336
4336
  outputStr = outputStr + "当前行情可以直接完成点石成金成就\n";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-resonance-columba-bot",
3
3
  "description": "雷索纳斯科伦巴商会市场查询",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [