koishi-plugin-ggcevo-game 1.3.10 → 1.3.11

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