koishi-plugin-ggcevo-game 1.3.70 → 1.3.71

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 +4 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -5939,7 +5939,7 @@ ${validTypes.join("、")}`;
5939
5939
  "🏆 伤害排行榜奖励:",
5940
5940
  ...rewardMessages
5941
5941
  ];
5942
- if (!(equippedWeapon.installedMods?.includes("光束曲射晶片") && weaponName === "碎骨步枪") && !(weaponName === "中子步枪")) {
5942
+ if (isDefeated) {
5943
5943
  cleanerRewardBroadcast = await getCleanerRewardBroadcast(
5944
5944
  ctx,
5945
5945
  targetBoss,
@@ -5992,7 +5992,7 @@ ${validTypes.join("、")}`;
5992
5992
  }
5993
5993
  }
5994
5994
  bossEventBroadcast = broadcastMessages2;
5995
- if (!(equippedWeapon.installedMods?.includes("光束曲射晶片") && weaponName === "碎骨步枪") && !(weaponName === "中子步枪")) {
5995
+ if (isDefeated) {
5996
5996
  cleanerRewardBroadcast = await getCleanerRewardBroadcast(
5997
5997
  ctx,
5998
5998
  targetBoss,
@@ -7093,13 +7093,13 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
7093
7093
  handle,
7094
7094
  taskId: task2.id
7095
7095
  }).catch(() => [null]);
7096
- const completionStatus = playerTask2 ? `${playerTask2.progress}/${task2.target}` : "尚未开始";
7096
+ const completionStatus = playerTask2?.progress || 0;
7097
7097
  taskList.push([
7098
7098
  `▸ 【${taskName}】`,
7099
7099
  `类型: ${task2.type}`,
7100
7100
  `目标: ${task2.target}次`,
7101
7101
  `奖励: ${task2.price}金币`,
7102
- `进度: ${completionStatus}`,
7102
+ `进度: ${completionStatus}/${task2.target}`,
7103
7103
  "------------------"
7104
7104
  ].join("\n"));
7105
7105
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.3.70",
4
+ "version": "1.3.71",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [