koishi-plugin-ggcevo-game 1.3.11 → 1.3.12

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 +6 -9
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1656,8 +1656,7 @@ function apply(ctx, config) {
1656
1656
  skills: isNewRadiation ? [...targetBoss.skills, "辐射"] : targetBoss.skills,
1657
1657
  Vulnerability: isNewRadiation ? 1 : targetBoss.Vulnerability + 1
1658
1658
  });
1659
- const [updatedBoss] = await ctx2.database.get("ggcevo_boss", { name: targetBoss.name });
1660
- const layerMsg = isNewRadiation ? `☢️ 获得【辐射】效果(当前层数1)` : `☢️ 辐射层数+1`;
1659
+ const layerMsg = isNewRadiation ? `☢️ 获得【辐射】效果` : `☢️ 辐射层数+1`;
1661
1660
  messages.push(`${targetBoss.name} ${layerMsg}`);
1662
1661
  return { messages };
1663
1662
  }, "handleGammaRadiation"),
@@ -1686,12 +1685,10 @@ function apply(ctx, config) {
1686
1685
  if (currentHP <= 0 && !targetBoss.skills.includes("求生本能I") && !targetBoss.skills.includes("求生本能II")) {
1687
1686
  return { currentHP, messages: [], skillUpdates: [], initialDamage };
1688
1687
  }
1689
- if (weaponName === "伽马枪" && targetBoss.tags.includes("生物") && !targetBoss.tags.includes("机械")) {
1690
- const radiationCalc = this.calculateRadiationDamage(targetBoss, initialDamage);
1691
- if (radiationCalc.messages.length > 0) {
1692
- messages.push(...radiationCalc.messages);
1693
- initialDamage = radiationCalc.damage;
1694
- }
1688
+ const radiationCalc = this.calculateRadiationDamage(targetBoss, initialDamage);
1689
+ if (radiationCalc.messages.length > 0) {
1690
+ messages.push(...radiationCalc.messages);
1691
+ initialDamage = radiationCalc.damage;
1695
1692
  }
1696
1693
  const bloodEffectResult = this.handleBloodEffects(targetBoss, initialDamage, currentHP, maxHP);
1697
1694
  if (bloodEffectResult) {
@@ -3982,7 +3979,7 @@ ${achievementList.join("\n")}`;
3982
3979
  pageNum < totalPages ? `输入 pk榜 ${pageNum + 1} 查看下一页` : "已是最后一页"
3983
3980
  ].join("\n");
3984
3981
  });
3985
- ctx.command("ggcevo/切换pk", "切换玩家对战状态").action(async ({ session }) => {
3982
+ ctx.command("ggcevo/切换pk", "切换玩家对战状态").alias("切换pk状态").action(async ({ session }) => {
3986
3983
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
3987
3984
  if (!profile) return "您暂未绑定句柄。";
3988
3985
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
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.11",
4
+ "version": "1.3.12",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [