koishi-plugin-ggcevo-game 1.6.8 → 1.6.10
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 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6780,7 +6780,7 @@ async function updateDatabaseWithStats(ctx, stats) {
|
|
|
6780
6780
|
}
|
|
6781
6781
|
if (stats.armorChange !== 0) {
|
|
6782
6782
|
const newarmor = boss.armorReductionLayers + stats.armorChange;
|
|
6783
|
-
updateData.armorReductionLayers = newarmor;
|
|
6783
|
+
updateData.armorReductionLayers = Math.max(0, newarmor);
|
|
6784
6784
|
}
|
|
6785
6785
|
if (stats.skillStacksChanged !== 0) {
|
|
6786
6786
|
const newStacks = boss.skillStacks + stats.skillStacksChanged;
|
|
@@ -9809,7 +9809,7 @@ ${validTypes.join("、")}`;
|
|
|
9809
9809
|
cleanerRewardBroadcast
|
|
9810
9810
|
);
|
|
9811
9811
|
});
|
|
9812
|
-
ctx.command("ggcevo/攻击假人 [name]").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("
|
|
9812
|
+
ctx.command("ggcevo/攻击假人 [name]").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("cold", "-c <cold:number> 寒冷层数").option("status", "-a <status:number> 状态层数").option("armor", "-d <armor:number> 护甲").option("burn", "-b <burn:number> 燃烧层数").action(async (argv, name2) => {
|
|
9813
9813
|
const session = argv.session;
|
|
9814
9814
|
const { options } = argv;
|
|
9815
9815
|
if (!name2) {
|
|
@@ -9825,11 +9825,10 @@ ${validTypes.join("、")}`;
|
|
|
9825
9825
|
}
|
|
9826
9826
|
let armor = 0;
|
|
9827
9827
|
if (typeof options.armor === "number") {
|
|
9828
|
-
armor = Math.max(
|
|
9828
|
+
armor = Math.max(-100, Math.min(options.armor, 100));
|
|
9829
9829
|
}
|
|
9830
9830
|
const clampLayer = /* @__PURE__ */ __name((value, max = 100) => typeof value === "number" ? Math.max(0, Math.min(value, max)) : 0, "clampLayer");
|
|
9831
9831
|
const skillStacks = clampLayer(options.skillStacks);
|
|
9832
|
-
const radiationLayers = clampLayer(options.radiation);
|
|
9833
9832
|
const coldLayers = clampLayer(options.cold);
|
|
9834
9833
|
const skillStatus = clampLayer(options.status);
|
|
9835
9834
|
const burnLayers = clampLayer(options.burn);
|
|
@@ -9855,7 +9854,7 @@ ${validTypes.join("、")}`;
|
|
|
9855
9854
|
skills: passives || [],
|
|
9856
9855
|
skillStacks,
|
|
9857
9856
|
skillStatus,
|
|
9858
|
-
radiationLayers,
|
|
9857
|
+
radiationLayers: 0,
|
|
9859
9858
|
coldLayers,
|
|
9860
9859
|
// 添加燃烧层数
|
|
9861
9860
|
burnLayers,
|
|
@@ -9883,7 +9882,6 @@ ${validTypes.join("、")}`;
|
|
|
9883
9882
|
);
|
|
9884
9883
|
const layerInfo = [];
|
|
9885
9884
|
if (skillStacks > 0) layerInfo.push(`技能层数: ${skillStacks}`);
|
|
9886
|
-
if (radiationLayers > 0) layerInfo.push(`辐射层数: ${radiationLayers}`);
|
|
9887
9885
|
if (coldLayers > 0) layerInfo.push(`寒冷层数: ${coldLayers}`);
|
|
9888
9886
|
if (skillStatus > 0) layerInfo.push(`状态层数: ${skillStatus}`);
|
|
9889
9887
|
if (burnLayers > 0) layerInfo.push(`燃烧层数: ${burnLayers}`);
|
|
@@ -11339,7 +11337,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11339
11337
|
`📖 描述:${awardedWeapon.description}`
|
|
11340
11338
|
].join("\n");
|
|
11341
11339
|
});
|
|
11342
|
-
ctx.command("
|
|
11340
|
+
ctx.command("ggcevo/技能 [异形名称]").usage('查询异形技能,输入"技能"查看所有异形,输入"技能 异形名称"查询详细技能').action(async ({ session }, unitName) => {
|
|
11343
11341
|
const allUnits = /* @__PURE__ */ new Set();
|
|
11344
11342
|
bossPool.forEach((boss) => {
|
|
11345
11343
|
allUnits.add(boss.main.name);
|