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.
- package/lib/index.js +4 -4
- 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}
|
|
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.
|
|
2236
|
+
discountDetails.push(`武器系统 Lv${techLevel} 折扣:${Math.round(weaponDiscount * 100)}%`);
|
|
2237
2237
|
}
|
|
2238
2238
|
if (activeWish) {
|
|
2239
2239
|
discountDetails.push("灵狐升运折扣:20%");
|