koishi-plugin-ggcevo-game 1.4.67 → 1.4.68
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 +12 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -279,7 +279,7 @@ var weaponConfig = {
|
|
|
279
279
|
redCrystalCost: 17,
|
|
280
280
|
isantiair: true,
|
|
281
281
|
tagEffects: {
|
|
282
|
-
"生物": 1.
|
|
282
|
+
"生物": 1.2,
|
|
283
283
|
"护盾": 0.5
|
|
284
284
|
}
|
|
285
285
|
},
|
|
@@ -351,7 +351,7 @@ var weaponConfig = {
|
|
|
351
351
|
damage: 75,
|
|
352
352
|
armorDamageReduction: -1,
|
|
353
353
|
description: "一件传奇武器",
|
|
354
|
-
specialeffect: "暴击率+25
|
|
354
|
+
specialeffect: "暴击率+25%;若连续3次攻击没暴击,则第四次攻击必定暴击",
|
|
355
355
|
price: 6400,
|
|
356
356
|
redCrystalCost: 200,
|
|
357
357
|
isantiair: true,
|
|
@@ -423,15 +423,15 @@ var weaponConfig = {
|
|
|
423
423
|
id: 107,
|
|
424
424
|
type: "能量武器",
|
|
425
425
|
category: "传奇武器",
|
|
426
|
-
damage:
|
|
426
|
+
damage: 70,
|
|
427
427
|
armorDamageReduction: 0,
|
|
428
428
|
description: "一件传奇武器",
|
|
429
|
-
specialeffect: "
|
|
429
|
+
specialeffect: "每连续攻击三次将使用特殊榴弹对目标额外造成50%伤害并降低目标1点护甲",
|
|
430
430
|
price: 6400,
|
|
431
431
|
redCrystalCost: 200,
|
|
432
432
|
isantiair: true,
|
|
433
433
|
tagEffects: {
|
|
434
|
-
"重甲":
|
|
434
|
+
"重甲": 1.5
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
437
|
"核聚变重炮": {
|
|
@@ -8105,7 +8105,7 @@ ${validTypes.join("、")}`;
|
|
|
8105
8105
|
cleanerRewardBroadcast
|
|
8106
8106
|
);
|
|
8107
8107
|
});
|
|
8108
|
-
ctx.command("ggcevo/攻击假人").option("tags", "-t <tags:string> 添加BOSS标签(逗号分隔)").option("passives", "-p <passives:string> 添加被动技能(逗号分隔)").option("hp", "-l <hp:number> 模拟假人血量").option("energy", "-e <energy:number> 模拟假人能量").option("skillStacks", "-s <stacks:number> 技能层数").option("radiation", "-r <rad:number> 辐射层数").option("cold", "-c <cold:number> 寒冷层数").option("status", "-a <status:number> 状态层数").action(async (argv) => {
|
|
8108
|
+
ctx.command("ggcevo/攻击假人").option("tags", "-t <tags:string> 添加BOSS标签(逗号分隔)").option("passives", "-p <passives:string> 添加被动技能(逗号分隔)").option("hp", "-l <hp:number> 模拟假人血量").option("energy", "-e <energy:number> 模拟假人能量").option("skillStacks", "-s <stacks:number> 技能层数").option("radiation", "-r <rad:number> 辐射层数").option("cold", "-c <cold:number> 寒冷层数").option("status", "-a <status:number> 状态层数").option("armor", "-d <armor:number> 护甲").action(async (argv) => {
|
|
8109
8109
|
const session = argv.session;
|
|
8110
8110
|
const { options } = argv;
|
|
8111
8111
|
let hp = 1e4;
|
|
@@ -8116,6 +8116,10 @@ ${validTypes.join("、")}`;
|
|
|
8116
8116
|
if (typeof options.energy === "number") {
|
|
8117
8117
|
energy = Math.max(0, Math.min(options.energy, 1e3));
|
|
8118
8118
|
}
|
|
8119
|
+
let armor = 0;
|
|
8120
|
+
if (typeof options.armor === "number") {
|
|
8121
|
+
armor = Math.max(0, Math.min(options.armor, 100));
|
|
8122
|
+
}
|
|
8119
8123
|
const clampLayer = /* @__PURE__ */ __name((value, max = 100) => typeof value === "number" ? Math.max(0, Math.min(value, max)) : 0, "clampLayer");
|
|
8120
8124
|
const skillStacks = clampLayer(options.skillStacks);
|
|
8121
8125
|
const radiationLayers = clampLayer(options.radiation);
|
|
@@ -8149,6 +8153,7 @@ ${validTypes.join("、")}`;
|
|
|
8149
8153
|
coldLayers,
|
|
8150
8154
|
// 使用自定义寒冷层数
|
|
8151
8155
|
energy,
|
|
8156
|
+
armor,
|
|
8152
8157
|
isActive: true,
|
|
8153
8158
|
lastWeaponName: ""
|
|
8154
8159
|
};
|
|
@@ -8178,6 +8183,7 @@ ${validTypes.join("、")}`;
|
|
|
8178
8183
|
`🎯 使用武器 ${weaponName} 攻击 ${dummyBoss.name}`,
|
|
8179
8184
|
`❤️ 假人血量:${dummyBoss.HP}/10000`,
|
|
8180
8185
|
`🔋 假人能量:${dummyBoss.energy}/1000`,
|
|
8186
|
+
`🛡️ 假人护甲:${dummyBoss.armor}`,
|
|
8181
8187
|
options.tags?.length && `🏷️ 模拟标签:${tags.join(", ")}`,
|
|
8182
8188
|
options.passives?.length && `✨ 模拟被动:${passives.join(", ")}`,
|
|
8183
8189
|
layerDisplay,
|