koishi-plugin-ggcevo-game 1.6.50 → 1.6.52

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 +5 -6
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -4894,7 +4894,7 @@ var passiveConfig = {
4894
4894
  derivedSkills: []
4895
4895
  },
4896
4896
  "电能立场": {
4897
- description: "能量值≥30%时,55%概率免疫非热能伤害(每层寒冷降低5%触发概率)",
4897
+ description: "能量值≥30%时,55%概率免疫非热能伤害(每层寒冷降低5%触发概率,最多降低50%)",
4898
4898
  belong: ["亚电主宰者"],
4899
4899
  derivedSkills: []
4900
4900
  },
@@ -4904,7 +4904,7 @@ var passiveConfig = {
4904
4904
  derivedSkills: []
4905
4905
  },
4906
4906
  "脉冲": {
4907
- description: "能量值≥30%时,60%概率为所有存活异形回复100点生命(每层寒冷降低5%触发概率)",
4907
+ description: "能量值≥30%时,60%概率为所有存活异形回复100点生命(每层寒冷降低5%触发概率,最多降低50%)",
4908
4908
  belong: ["亚电主宰者"],
4909
4909
  derivedSkills: []
4910
4910
  },
@@ -5563,11 +5563,10 @@ async function updatePityCounter(ctx, handle, isWin) {
5563
5563
  __name(updatePityCounter, "updatePityCounter");
5564
5564
  async function checkSensitiveWord(ctx, content) {
5565
5565
  try {
5566
- const response = await ctx.http("get", `https://v.api.aa1.cn/api/api-mgc/index.php?msg=${encodeURIComponent(content)}`);
5567
- return response.data.num !== "1";
5566
+ const response = await ctx.http.get(`https://v.api.aa1.cn/api/api-mgc/index.php?msg=${encodeURIComponent(content)}`);
5567
+ return response.num === "1";
5568
5568
  } catch (error) {
5569
- console.error("敏感词查询失败:", error);
5570
- return false;
5569
+ return true;
5571
5570
  }
5572
5571
  }
5573
5572
  __name(checkSensitiveWord, "checkSensitiveWord");
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.6.50",
4
+ "version": "1.6.52",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [