koishi-plugin-ggcevo-game 1.2.1 → 1.2.3

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 +3 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1628,7 +1628,7 @@ ${achievementList.join("\n")}`;
1628
1628
  const processedLobbies = /* @__PURE__ */ new Set();
1629
1629
  ctx.setInterval(async () => {
1630
1630
  try {
1631
- const response = await ctx.http("get", "API_URL");
1631
+ const response = await ctx.http("get", "https://api.sc2arcade.com/lobbies/history?regionId=3&mapId=165561&orderDirection=desc&includeMapInfo=false&includeSlots=true&includeSlotsProfile=true&includeSlotsJoinInfo=false&includeJoinHistory=false&includeMatchResult=false&includeMatchPlayers=false");
1632
1632
  const data = response.data;
1633
1633
  const openLobbies = data.results.filter(
1634
1634
  (lobby) => lobby.status === "open" && !processedLobbies.has(lobby.id)
@@ -1972,7 +1972,7 @@ ${achievementList.join("\n")}`;
1972
1972
  return [
1973
1973
  `${statusIcon} ${weaponName} ${statusText}`,
1974
1974
  `等级:Lv.${w.level} | 改装槽:${w.modificationSlots}`,
1975
- `伤害:${config2.damage} → ${currentDamage.toFixed(1)}`,
1975
+ `伤害:${currentDamage.toFixed(1)}`,
1976
1976
  `改装:${mods}`
1977
1977
  ].join("\n");
1978
1978
  }));
@@ -2336,6 +2336,7 @@ ${achievementList.join("\n")}`;
2336
2336
  return [
2337
2337
  `🔥 对 ${targetBoss.name} 发起攻击!`,
2338
2338
  `造成伤害:${damage}`,
2339
+ `获得金币:${damage}`,
2339
2340
  `目标剩余HP:${isDefeated ? 0 : updatedHP}/${targetBoss.type === "主宰" ? bossGroup.main.maxHP : bossGroup.minions[0].maxHP}`,
2340
2341
  isDefeated ? `🎉 成功击败 ${targetBoss.name}!` : ""
2341
2342
  ].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.2.1",
4
+ "version": "1.2.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [