koishi-plugin-ggcevo-game 1.4.17 → 1.4.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 +20 -13
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4100,12 +4100,17 @@ ${scatterResult.scatterEffectMessages.map((m) => `▸ ${m}`).join("\n")}`,
|
|
|
4100
4100
|
redcrystalMessage ? `▸ ${redcrystalMessage}` : ""
|
|
4101
4101
|
].filter((msg) => msg);
|
|
4102
4102
|
messages.push(
|
|
4103
|
-
`获得金币:${finalReward}
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4103
|
+
`获得金币:${finalReward}`
|
|
4104
|
+
);
|
|
4105
|
+
if (bonusMessages.length > 0) {
|
|
4106
|
+
messages.push(
|
|
4107
|
+
`⚡ 加成效果:`,
|
|
4108
|
+
...bonusMessages
|
|
4109
|
+
);
|
|
4110
|
+
}
|
|
4111
|
+
messages.push(
|
|
4107
4112
|
`目标剩余HP:${Math.max(primaryResult.currentHP, 0)}/${maxHP}`,
|
|
4108
|
-
primaryResult.isDefeated ? `🎉
|
|
4113
|
+
primaryResult.isDefeated ? `🎉 恭喜,您已成功击败 ${targetBoss.name}!` : ""
|
|
4109
4114
|
);
|
|
4110
4115
|
return messages.filter((line) => line).join("\n");
|
|
4111
4116
|
}
|
|
@@ -6006,10 +6011,8 @@ ${items.join("、")}
|
|
|
6006
6011
|
`⚔️【对战结果】${isWin ? "胜利" : "失败"}`,
|
|
6007
6012
|
`🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
|
|
6008
6013
|
`💼 职业:${initiatorCareer?.career || "无"}`,
|
|
6009
|
-
// 显示职业
|
|
6010
6014
|
`🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
|
|
6011
6015
|
`💼 职业:${targetCareer?.career || "无"}`,
|
|
6012
|
-
// 显示职业
|
|
6013
6016
|
`📊 胜率预测:${winRate.toFixed(1)}%`,
|
|
6014
6017
|
`🎰 金币变动:${stealPercentage}%`
|
|
6015
6018
|
];
|
|
@@ -6020,21 +6023,25 @@ ${items.join("、")}
|
|
|
6020
6023
|
} else {
|
|
6021
6024
|
result.push(`💸 您从口袋里拿出了${goldTransfer}枚金币上交给对方`);
|
|
6022
6025
|
}
|
|
6023
|
-
|
|
6026
|
+
const bonusEffects = [];
|
|
6024
6027
|
if (targetCareer.group === "人类联盟" && isWin) {
|
|
6025
|
-
|
|
6028
|
+
bonusEffects.push(`▸ 🛡️ 人类联盟:应战者PK失败时仅损失1%的金币`);
|
|
6026
6029
|
}
|
|
6027
6030
|
if (mp3Effect) {
|
|
6028
|
-
|
|
6031
|
+
bonusEffects.push(`▸ 💿 MP3播放器生效:挑战者PK失败时上交的金币减少50%`);
|
|
6029
6032
|
}
|
|
6030
6033
|
if (hornEffect) {
|
|
6031
|
-
|
|
6034
|
+
bonusEffects.push(`▸ 📯 气喇叭生效:辛迪加海盗总部为您发放了额外${extraGold}金币奖励!`);
|
|
6032
6035
|
}
|
|
6033
6036
|
if (initiatorCareer?.group === "辛迪加海盗") {
|
|
6034
|
-
|
|
6037
|
+
bonusEffects.push(`▸ 🔴 辛迪加海盗阵营:+1枚红晶`);
|
|
6035
6038
|
}
|
|
6036
6039
|
if (isWin && initiatorCareer?.career === "辛迪加财务经理") {
|
|
6037
|
-
|
|
6040
|
+
bonusEffects.push(`▸ 🎖️ 辛迪加财务经理职业:+1枚红晶`);
|
|
6041
|
+
}
|
|
6042
|
+
if (bonusEffects.length > 0) {
|
|
6043
|
+
result.push(`⚡ 加成效果:`);
|
|
6044
|
+
result.push(...bonusEffects);
|
|
6038
6045
|
}
|
|
6039
6046
|
result.push(`📅 剩余挑战次数:${config.dailyPKLimit - (initiatorPK.todayCount + 1)}`);
|
|
6040
6047
|
return result.join("\n");
|