koishi-plugin-ggcevo-game 1.3.21 → 1.3.23
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 +7 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1671,8 +1671,8 @@ function apply(ctx, config) {
|
|
|
1671
1671
|
return { updatedHP, messages };
|
|
1672
1672
|
}, "handleBloodCount"),
|
|
1673
1673
|
// 修改后的伽马枪辐射处理
|
|
1674
|
-
handleGammaRadiation: /* @__PURE__ */ __name(async (ctx2, targetBoss,
|
|
1675
|
-
if (
|
|
1674
|
+
handleGammaRadiation: /* @__PURE__ */ __name(async (ctx2, targetBoss, weaponName) => {
|
|
1675
|
+
if (weaponName !== "伽马枪" || targetBoss.tags.includes("机械") || !targetBoss.tags.includes("生物")) {
|
|
1676
1676
|
return null;
|
|
1677
1677
|
}
|
|
1678
1678
|
const messages = [];
|
|
@@ -1687,7 +1687,7 @@ function apply(ctx, config) {
|
|
|
1687
1687
|
} else if (newLayers === currentLayers) {
|
|
1688
1688
|
layerMsg = `☢️ 辐射层数已达上限(100层)`;
|
|
1689
1689
|
} else {
|
|
1690
|
-
layerMsg = `☢️
|
|
1690
|
+
layerMsg = `☢️ 辐射层数+1`;
|
|
1691
1691
|
}
|
|
1692
1692
|
await ctx2.database.set(
|
|
1693
1693
|
"ggcevo_boss",
|
|
@@ -1809,12 +1809,7 @@ function apply(ctx, config) {
|
|
|
1809
1809
|
if (sentryResult) {
|
|
1810
1810
|
messages.push(...sentryResult.messages);
|
|
1811
1811
|
}
|
|
1812
|
-
const gammaRadResult = await this.handleGammaRadiation(
|
|
1813
|
-
ctx2,
|
|
1814
|
-
targetBoss,
|
|
1815
|
-
weaponData
|
|
1816
|
-
// 传入武器数据对象
|
|
1817
|
-
);
|
|
1812
|
+
const gammaRadResult = await this.handleGammaRadiation(ctx2, targetBoss, weaponName);
|
|
1818
1813
|
if (gammaRadResult) {
|
|
1819
1814
|
messages.push(...gammaRadResult.messages);
|
|
1820
1815
|
}
|
|
@@ -3946,7 +3941,7 @@ ${achievementList.join("\n")}`;
|
|
|
3946
3941
|
if (initiatorGold < 100) return "发起者需要至少100金币才能发起挑战。";
|
|
3947
3942
|
if (targetGold < 100) return "对方金币不足100,无法应战。";
|
|
3948
3943
|
const powerDiff = initiatorPower - targetPower;
|
|
3949
|
-
let winRate = 50 + powerDiff /
|
|
3944
|
+
let winRate = 50 + powerDiff / 50 * 0.1;
|
|
3950
3945
|
winRate = Math.min(Math.max(winRate, 5), 95);
|
|
3951
3946
|
const isWin = Math.random() * 100 < winRate;
|
|
3952
3947
|
const stealPercentage = getRandomInt(1, 5);
|
|
@@ -5434,7 +5429,7 @@ ${passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
5434
5429
|
// 从warehouse表读取实际数量
|
|
5435
5430
|
`特效:${itemData.effects}`,
|
|
5436
5431
|
`描述:${itemData.description}`,
|
|
5437
|
-
"
|
|
5432
|
+
"――――――――――――――"
|
|
5438
5433
|
].join("\n");
|
|
5439
5434
|
}).join("\n\n")
|
|
5440
5435
|
);
|
|
@@ -5475,7 +5470,7 @@ ${passiveMessages.map((m) => `▸ ${m}`).join("\n")}`
|
|
|
5475
5470
|
`✅ 成功使用 ${itemNameConfirmed}`,
|
|
5476
5471
|
`├ 剩余数量:${newQuantity}`,
|
|
5477
5472
|
`└ 效果触发:${effectResult.message}`,
|
|
5478
|
-
"─".repeat(
|
|
5473
|
+
"─".repeat(14)
|
|
5479
5474
|
].join("\n");
|
|
5480
5475
|
} catch (error) {
|
|
5481
5476
|
ctx.logger("GGCEVO").error(error);
|