koishi-plugin-ggcevo-game 1.3.17 → 1.3.19
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 +10 -8
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -516,15 +516,15 @@ function apply(ctx, config) {
|
|
|
516
516
|
rare: [
|
|
517
517
|
{
|
|
518
518
|
name: "悲鸣之锋",
|
|
519
|
-
effect: "
|
|
519
|
+
effect: "获得基于武器等级的伤害加成(0级为10%,每等级增加10%)"
|
|
520
520
|
},
|
|
521
521
|
{
|
|
522
522
|
name: "精灵双倍",
|
|
523
|
-
effect: "
|
|
523
|
+
effect: "下一次击败首领时可获得双倍金币和咕咕币奖励"
|
|
524
524
|
},
|
|
525
525
|
{
|
|
526
526
|
name: "喵喵财源",
|
|
527
|
-
effect: "
|
|
527
|
+
effect: "签到金币和咕咕币奖励翻倍"
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
name: "暴击韵律",
|
|
@@ -1626,7 +1626,9 @@ function apply(ctx, config) {
|
|
|
1626
1626
|
if (targetBoss.skills.includes("吸血唾液")) {
|
|
1627
1627
|
const reduction = bloodStacks * 0.05;
|
|
1628
1628
|
damageMultiplier -= reduction;
|
|
1629
|
-
|
|
1629
|
+
if (bloodStacks > 0) {
|
|
1630
|
+
messages.push(`🩸 【吸血唾液】生效:受到的伤害-${bloodStacks * 5}%`);
|
|
1631
|
+
}
|
|
1630
1632
|
}
|
|
1631
1633
|
if (targetBoss.skills.includes("嗜血狂暴") && currentHP / maxHP < 0.5) {
|
|
1632
1634
|
damageMultiplier -= 0.2;
|
|
@@ -3944,7 +3946,7 @@ ${achievementList.join("\n")}`;
|
|
|
3944
3946
|
if (initiatorGold < 100) return "发起者需要至少100金币才能发起挑战。";
|
|
3945
3947
|
if (targetGold < 100) return "对方金币不足100,无法应战。";
|
|
3946
3948
|
const powerDiff = initiatorPower - targetPower;
|
|
3947
|
-
let winRate = 50 + powerDiff /
|
|
3949
|
+
let winRate = 50 + powerDiff / 200 * 0.1;
|
|
3948
3950
|
winRate = Math.min(Math.max(winRate, 5), 95);
|
|
3949
3951
|
const isWin = Math.random() * 100 < winRate;
|
|
3950
3952
|
const stealPercentage = getRandomInt(1, 5);
|
|
@@ -4013,8 +4015,8 @@ ${achievementList.join("\n")}`;
|
|
|
4013
4015
|
});
|
|
4014
4016
|
const result = [
|
|
4015
4017
|
`⚔️【对战结果】${isWin ? "胜利" : "失败"}`,
|
|
4016
|
-
`🏅 挑战者:${initiatorRankname}(战斗力 ${
|
|
4017
|
-
`🛡️ 应战者:${targetRankname}(战斗力 ${
|
|
4018
|
+
`🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
|
|
4019
|
+
`🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
|
|
4018
4020
|
`📊 胜率预测:${winRate.toFixed(1)}%`,
|
|
4019
4021
|
`🎰 金币变动:${stealPercentage}%`
|
|
4020
4022
|
];
|
|
@@ -4085,7 +4087,7 @@ ${achievementList.join("\n")}`;
|
|
|
4085
4087
|
return `状态切换冷却中,${remaining}天后再试(下次可切换时间:${new Date(lastToggle.getTime() + 3 * 864e5).toLocaleDateString("zh-CN")})。`;
|
|
4086
4088
|
}
|
|
4087
4089
|
const [careers] = await ctx.database.get("ggcevo_careers", { handle });
|
|
4088
|
-
if (careers?.group === "辛迪加海盗") return "
|
|
4090
|
+
if (careers?.group === "辛迪加海盗") return "您已经加入了辛迪加海盗阵营,无法切换PK状态!";
|
|
4089
4091
|
const action = currentState ? "关闭" : "开启";
|
|
4090
4092
|
await session.send(`您当前的PK状态为【${currentState ? "开启" : "关闭"}】,确认要${action}吗?(请在30秒内回复“是”确认)`);
|
|
4091
4093
|
const confirm = await session.prompt(3e4);
|