koishi-plugin-ggcevo-game 1.2.62 → 1.2.63

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 +14 -16
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -712,7 +712,7 @@ function apply(ctx, config) {
712
712
  requirements: "拥有一把武器等级为6的能量武器",
713
713
  Jobtransfer: true,
714
714
  costcoins: 0,
715
- costredcrystal: 40
715
+ costredcrystal: 20
716
716
  },
717
717
  {
718
718
  professionName: "清洁工",
@@ -720,7 +720,7 @@ function apply(ctx, config) {
720
720
  requirements: "当期伤害榜排名前3",
721
721
  Jobtransfer: true,
722
722
  costcoins: 0,
723
- costredcrystal: 40
723
+ costredcrystal: 20
724
724
  },
725
725
  {
726
726
  professionName: "枪手",
@@ -752,7 +752,7 @@ function apply(ctx, config) {
752
752
  requirements: "当月累计签到28天",
753
753
  Jobtransfer: true,
754
754
  costcoins: 0,
755
- costredcrystal: 60
755
+ costredcrystal: 40
756
756
  },
757
757
  {
758
758
  professionName: "计算机专家",
@@ -3259,16 +3259,14 @@ ${achievementList.join("\n")}`;
3259
3259
  await ctx.database.set("ggcevo_sign", initiatorHandle, { totalRewards: initiatorGold - goldTransfer });
3260
3260
  await ctx.database.set("ggcevo_sign", targetHandle, { totalRewards: targetGold + goldTransfer });
3261
3261
  }
3262
- if (isWin) {
3263
- const [initiatorCareer2] = await ctx.database.get("ggcevo_careers", {
3264
- handle: initiatorHandle
3265
- });
3266
- if (initiatorCareer2?.group === "辛迪加海盗") {
3267
- await ctx.database.upsert("ggcevo_careers", [{
3268
- handle: initiatorHandle,
3269
- redcrystal: (initiatorCareer2.redcrystal || 0) + 1
3270
- }], ["handle"]);
3271
- }
3262
+ const [initiatorCareer2] = await ctx.database.get("ggcevo_careers", {
3263
+ handle: initiatorHandle
3264
+ });
3265
+ if (initiatorCareer2?.group === "辛迪加海盗") {
3266
+ await ctx.database.upsert("ggcevo_careers", [{
3267
+ handle: initiatorHandle,
3268
+ redcrystal: (initiatorCareer2.redcrystal || 0) + 1
3269
+ }], ["handle"]);
3272
3270
  }
3273
3271
  });
3274
3272
  const [initiatorCareer] = await ctx.database.get("ggcevo_careers", {
@@ -3282,7 +3280,7 @@ ${achievementList.join("\n")}`;
3282
3280
  `🎰 金币变动:${stealPercentage}%`
3283
3281
  ];
3284
3282
  isWin ? result.push(`💰 您从对方的口袋里抢夺了${goldTransfer}枚金币`) : result.push(`💸 您从口袋里拿出了${goldTransfer}枚金币上交给对方`);
3285
- isWin && initiatorCareer?.group === "辛迪加海盗" ? result.push(`🔴 海盗阵营奖励:获得1红晶`) : "";
3283
+ initiatorCareer?.group === "辛迪加海盗" ? result.push(`🔴 海盗阵营奖励:获得1红晶`) : "";
3286
3284
  result.push(`📅 剩余挑战次数:${config.dailyPKLimit - (initiatorPK.todayCount + 1)}`);
3287
3285
  return result.join("\n");
3288
3286
  } catch (error) {
@@ -4140,7 +4138,7 @@ ${validTypes.join("、")}`;
4140
4138
  date: /* @__PURE__ */ new Date()
4141
4139
  });
4142
4140
  }
4143
- return `花费了${faction === "人类联盟" ? "1000金币" : "2000金币"}成功加入${faction}!${faction === "人类联盟" ? "" : "获得5枚红晶,"}初始职业:${faction === "人类联盟" ? "联盟新兵" : "辛迪加炮灰新兵"}`;
4141
+ return `花费了${faction === "人类联盟" ? "1000金币" : "2000金币"}成功加入${faction}!${faction === "人类联盟" ? "" : "获得5枚红晶,"}初始职业:${faction === "人类联盟" ? "联盟新兵" : "辛迪加炮灰新兵"}`;
4144
4142
  } catch (err) {
4145
4143
  ctx.logger.error("加入阵营失败:", err);
4146
4144
  return "加入阵营时发生错误,请稍后再试";
@@ -4248,7 +4246,7 @@ ${validTypes.join("、")}`;
4248
4246
  ];
4249
4247
  if (careerData.group === "辛迪加海盗") {
4250
4248
  infoCard.push(`🔴 持有红晶:${careerData.redcrystal || 0} 个`);
4251
- infoCard.push("💡 提示:红晶可通过主动PK胜利获得");
4249
+ infoCard.push("💡 提示:红晶可通过主动PK获得(无论胜负)");
4252
4250
  } else {
4253
4251
  infoCard.push("💡 提示:使用「转职」命令可变更职业");
4254
4252
  }
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.2.62",
4
+ "version": "1.2.63",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [