koishi-plugin-ggcevo-game 1.4.18 → 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.
Files changed (2) hide show
  1. package/lib/index.js +10 -8
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -6011,10 +6011,8 @@ ${items.join("、")}
6011
6011
  `⚔️【对战结果】${isWin ? "胜利" : "失败"}`,
6012
6012
  `🏅 挑战者:${initiatorRankname}(战斗力 ${initiatorPower})`,
6013
6013
  `💼 职业:${initiatorCareer?.career || "无"}`,
6014
- // 显示职业
6015
6014
  `🛡️ 应战者:${targetRankname}(战斗力 ${targetPower})`,
6016
6015
  `💼 职业:${targetCareer?.career || "无"}`,
6017
- // 显示职业
6018
6016
  `📊 胜率预测:${winRate.toFixed(1)}%`,
6019
6017
  `🎰 金币变动:${stealPercentage}%`
6020
6018
  ];
@@ -6025,21 +6023,25 @@ ${items.join("、")}
6025
6023
  } else {
6026
6024
  result.push(`💸 您从口袋里拿出了${goldTransfer}枚金币上交给对方`);
6027
6025
  }
6028
- result.push(`⚡ 加成效果:`);
6026
+ const bonusEffects = [];
6029
6027
  if (targetCareer.group === "人类联盟" && isWin) {
6030
- result.push(`▸ 🛡️ 人类联盟:应战者PK失败时仅损失1%的金币`);
6028
+ bonusEffects.push(`▸ 🛡️ 人类联盟:应战者PK失败时仅损失1%的金币`);
6031
6029
  }
6032
6030
  if (mp3Effect) {
6033
- result.push(`▸ 💿 MP3播放器生效:挑战者PK失败时上交的金币减少50%`);
6031
+ bonusEffects.push(`▸ 💿 MP3播放器生效:挑战者PK失败时上交的金币减少50%`);
6034
6032
  }
6035
6033
  if (hornEffect) {
6036
- result.push(`▸ 📯 气喇叭生效:辛迪加海盗总部为您发放了额外${extraGold}金币奖励!`);
6034
+ bonusEffects.push(`▸ 📯 气喇叭生效:辛迪加海盗总部为您发放了额外${extraGold}金币奖励!`);
6037
6035
  }
6038
6036
  if (initiatorCareer?.group === "辛迪加海盗") {
6039
- result.push(`▸ 🔴 辛迪加海盗阵营:+1枚红晶`);
6037
+ bonusEffects.push(`▸ 🔴 辛迪加海盗阵营:+1枚红晶`);
6040
6038
  }
6041
6039
  if (isWin && initiatorCareer?.career === "辛迪加财务经理") {
6042
- result.push(`▸ 🎖️ 辛迪加财务经理职业:+1枚红晶`);
6040
+ bonusEffects.push(`▸ 🎖️ 辛迪加财务经理职业:+1枚红晶`);
6041
+ }
6042
+ if (bonusEffects.length > 0) {
6043
+ result.push(`⚡ 加成效果:`);
6044
+ result.push(...bonusEffects);
6043
6045
  }
6044
6046
  result.push(`📅 剩余挑战次数:${config.dailyPKLimit - (initiatorPK.todayCount + 1)}`);
6045
6047
  return result.join("\n");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.4.18",
4
+ "version": "1.4.19",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [