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.
- package/lib/index.js +3 -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", "
|
|
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
|
-
`伤害:${
|
|
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");
|