koishi-plugin-ggcevo-game 1.2.66 → 1.2.67
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 +5 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -569,7 +569,7 @@ function apply(ctx, config) {
|
|
|
569
569
|
},
|
|
570
570
|
"结构装甲": {
|
|
571
571
|
effect: 0,
|
|
572
|
-
description: "拥有结构装甲,受到的伤害-20
|
|
572
|
+
description: "拥有结构装甲,受到的伤害-20%; 若伤害来源于热能武器,则受到的伤害-40%"
|
|
573
573
|
}
|
|
574
574
|
};
|
|
575
575
|
const bossPool = [
|
|
@@ -3491,6 +3491,10 @@ ${validTypes.join("、")}`;
|
|
|
3491
3491
|
if (!weapon) return "如果您想购买武器,请输入“购买武器 武器名称”。";
|
|
3492
3492
|
if (!weaponConfig[weapon]) return "无效的武器名称,请重新输入。";
|
|
3493
3493
|
const config2 = weaponConfig[weapon];
|
|
3494
|
+
const allowedTypes = ["能量武器", "热能武器", "实弹武器"];
|
|
3495
|
+
if (!allowedTypes.includes(config2.type)) {
|
|
3496
|
+
return `❌ 无法购买该类型武器,仅支持:${allowedTypes.join("、")}`;
|
|
3497
|
+
}
|
|
3494
3498
|
const existingWeapons = await ctx.database.get("ggcevo_equipment", {
|
|
3495
3499
|
handle,
|
|
3496
3500
|
weaponId: config2.id
|