koishi-plugin-ggcevo-game 1.4.12 → 1.4.13

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 +5 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -5938,11 +5938,14 @@ ${items.join("、")}
5938
5938
  redcrystal: (initiatorCareer?.redcrystal || 0) + redcrystalAdd
5939
5939
  }], ["handle"]);
5940
5940
  }
5941
- if (hornEffect) {
5941
+ if (computerExpertProtection) {
5942
+ } else if (hornEffect) {
5943
+ await ctx.database.set("ggcevo_sign", targetHandle, {
5944
+ totalRewards: targetGold - goldTransfer
5945
+ });
5942
5946
  await ctx.database.set("ggcevo_sign", initiatorHandle, {
5943
5947
  totalRewards: initiatorGold + goldTransfer + extraGold
5944
5948
  });
5945
- } else if (computerExpertProtection) {
5946
5949
  } else {
5947
5950
  if (isWin) {
5948
5951
  await ctx.database.set("ggcevo_sign", targetHandle, {
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.4.12",
4
+ "version": "1.4.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [