koishi-plugin-ggcevo-game 1.3.58 → 1.3.59
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 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -556,11 +556,11 @@ function apply(ctx, config) {
|
|
|
556
556
|
common: [
|
|
557
557
|
{
|
|
558
558
|
name: "蚱蜢优购",
|
|
559
|
-
effect: "
|
|
559
|
+
effect: "下一次购买武器享有20%的折扣"
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
name: "灵狐升运",
|
|
563
|
-
effect: "
|
|
563
|
+
effect: "下一次升级武器享有20%的折扣"
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
name: "王权增幅",
|
|
@@ -4492,7 +4492,7 @@ ${items.join("、")}
|
|
|
4492
4492
|
const initiatorPower = await calculateTotalPower(initiatorHandle);
|
|
4493
4493
|
const targetPower = await calculateTotalPower(targetHandle);
|
|
4494
4494
|
const initiatorRankname = session.username;
|
|
4495
|
-
const targetRankname = targetUsername.nick || targetUsername.name;
|
|
4495
|
+
const targetRankname = targetUsername.nick || targetUsername.user.name;
|
|
4496
4496
|
const [initiatorCareer] = await ctx.database.get("ggcevo_careers", {
|
|
4497
4497
|
handle: initiatorHandle
|
|
4498
4498
|
});
|
|
@@ -4707,10 +4707,10 @@ ${items.join("、")}
|
|
|
4707
4707
|
const result = [
|
|
4708
4708
|
`⚔️【对战结果】${isWin ? "胜利" : "失败"}`,
|
|
4709
4709
|
`🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
|
|
4710
|
-
|
|
4710
|
+
`💼 职业:${initiatorCareer?.career || "无"}`,
|
|
4711
4711
|
// 显示职业
|
|
4712
4712
|
`🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
|
|
4713
|
-
|
|
4713
|
+
`💼 职业:${targetCareer?.career || "无"}`,
|
|
4714
4714
|
// 显示职业
|
|
4715
4715
|
`📊 胜率预测:${winRate.toFixed(1)}%`,
|
|
4716
4716
|
`🎰 金币变动:${stealPercentage}%`
|