koishi-plugin-ggcevo-game 1.3.10 → 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 +10 -13
  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"),
@@ -1675,7 +1674,7 @@ function apply(ctx, config) {
1675
1674
  return {
1676
1675
  damage: amplifiedDamage,
1677
1676
  messages: radiationLayers > 0 ? [
1678
- `☢️ 【辐射】生效:当前${radiationLayers}层辐射,受到伤害+${radiationLayers}%`
1677
+ `☢️ 【辐射】生效:当前${radiationLayers}层辐射,本次攻击受到伤害+${radiationLayers}%`
1679
1678
  ] : []
1680
1679
  };
1681
1680
  }, "calculateRadiationDamage"),
@@ -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) {
@@ -2179,8 +2176,8 @@ function apply(ctx, config) {
2179
2176
  const baseCost = BASE_COST[equipment.level];
2180
2177
  const weaponTechConfig = Spacestationtechnology.find((t) => t.techId === 2);
2181
2178
  const [careerData] = await ctx.database.get("ggcevo_careers", { handle });
2182
- let discountedCost;
2183
- let weaponDiscount;
2179
+ let discountedCost = baseCost;
2180
+ let weaponDiscount = 0;
2184
2181
  let techLevel;
2185
2182
  let baseDiscount;
2186
2183
  let careerDiscount;
@@ -2233,7 +2230,7 @@ function apply(ctx, config) {
2233
2230
  msg += priceInfo;
2234
2231
  let discountDetails = [];
2235
2232
  if (weaponDiscount > 0) {
2236
- discountDetails.push(`武器系统 Lv${techLevel} 折扣:${Math.max(baseDiscount, careerDiscount)}%`);
2233
+ discountDetails.push(`武器系统 Lv${techLevel} 折扣:${Math.round(weaponDiscount * 100)}%`);
2237
2234
  }
2238
2235
  if (activeWish) {
2239
2236
  discountDetails.push("灵狐升运折扣:20%");
@@ -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.10",
4
+ "version": "1.3.12",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [