koishi-plugin-ggcevo-game 1.6.51 → 1.6.53

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 +11 -6
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -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");
@@ -8087,6 +8086,12 @@ ${itemDetails.join("\n")}`;
8087
8086
  let totalBonus = 0;
8088
8087
  let baseTickets = 0;
8089
8088
  if (!config2.enablePlayRequirement || hasRecentPlay) {
8089
+ if (monthlyDays < 7) baseTickets = 3;
8090
+ else if (monthlyDays === 7) baseTickets = 4;
8091
+ else if (monthlyDays === 14) baseTickets = 5;
8092
+ else if (monthlyDays === 21) baseTickets = 6;
8093
+ else if (monthlyDays === 28) baseTickets = 7;
8094
+ else baseTickets = 3;
8090
8095
  }
8091
8096
  const basePoints = getRandomInt(50, 100);
8092
8097
  const [careerData] = await ctx.database.get("ggcevo_careers", { handle });
@@ -8129,7 +8134,7 @@ ${itemDetails.join("\n")}`;
8129
8134
  let multiplier = 1;
8130
8135
  if (meowEffect) {
8131
8136
  multiplier = 2;
8132
- messages.push("🐾 喵喵财源祈愿:金币×2");
8137
+ messages.push("🐾 喵喵财源祈愿:金币×2,咕咕币x2");
8133
8138
  }
8134
8139
  const finalPoints = Math.round(baseFinalPoints * multiplier);
8135
8140
  const finalTickets = Math.round(baseFinalTickets * multiplier);
@@ -12867,7 +12872,7 @@ PK同玩家限战:1次/日
12867
12872
  🔮 ​​稀有祈愿池(5%概率)​​
12868
12873
  🗡️ ​​悲鸣之锋​​:攻击伤害提高10%,武器每等级提高5%伤害
12869
12874
  🧚 ​​精灵双倍​​:下一次击败主宰时可获得双倍的资源兑换券
12870
- 🐾 ​​喵喵财源​​:签到获得双倍的金币
12875
+ 🐾 ​​喵喵财源​​:签到获得双倍的金币和咕咕币
12871
12876
  🎵 ​​暴击韵律​​:攻击暴击率提高20%
12872
12877
  ⚠️ ​​酥手空空​​:立即失去50枚金币(可触发彩蛋)
12873
12878
  `.trim();
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.51",
4
+ "version": "1.6.53",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [