koishi-plugin-ggcevo-game 1.0.7 → 1.0.8

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 +4 -8
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -195,16 +195,12 @@ function apply(ctx, config) {
195
195
  async function gachaWithHiddenAward(handle) {
196
196
  const backpackItems = await ctx.database.get("ggcevo_backpack", {
197
197
  handle,
198
- itemId: { $in: [1, 2, 3] }
198
+ itemId: { $in: [2, 3] }
199
199
  });
200
200
  const itemMap = new Map(backpackItems.map((item) => [item.itemId, item]));
201
201
  const isWin = HiddenAward();
202
202
  if (isWin) {
203
203
  const updates = [
204
- {
205
- itemId: 1,
206
- addAmount: 100
207
- },
208
204
  {
209
205
  itemId: 2,
210
206
  addAmount: 1
@@ -293,7 +289,7 @@ function apply(ctx, config) {
293
289
  `🎰 您使用了 ${quantity} 枚咕咕币`,
294
290
  winCount > 0 ? `🎉 其中获得 ${winCount} 张兑换券!` : "💔 本次未获得任何兑换券",
295
291
  `📊 当前保底进度:${record.pityCounter}/90`,
296
- ...hiddenWinCount > 0 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 ${hiddenWinCount * 100} 枚咕咕币, ${hiddenWinCount} 张兑换券,以及 ${hiddenWinCount} 枚扭蛋币!`] : []
292
+ ...hiddenWinCount > 0 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 ${hiddenWinCount} 张兑换券和 ${hiddenWinCount} 枚扭蛋币!`] : []
297
293
  ].join("\n");
298
294
  });
299
295
  ctx.command("ggcevo/单抽").action(async (argv) => {
@@ -325,7 +321,7 @@ function apply(ctx, config) {
325
321
  const [record] = await ctx.database.get("ggcevo_records", { handle });
326
322
  return [
327
323
  `${result ? "🎉 获得兑换券!" : "❌ 未中奖"} 保底进度:${record.pityCounter}/90`,
328
- ...HiddenAward2 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 100 枚咕咕币, 1 张兑换券,以及 1 枚扭蛋币!`] : []
324
+ ...HiddenAward2 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 1 张兑换券和 1 枚扭蛋币!`] : []
329
325
  ].join("\n");
330
326
  });
331
327
  ctx.command("ggcevo/十连抽").action(async (argv) => {
@@ -364,7 +360,7 @@ function apply(ctx, config) {
364
360
  "十连抽结果:",
365
361
  ...results.map((r) => r ? "⭐获得兑换券" : "❌未中奖"),
366
362
  `保底进度:${record.pityCounter}/90`,
367
- ...hiddenWinCount > 0 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 ${hiddenWinCount * 100} 枚咕咕币, ${hiddenWinCount} 张兑换券,以及 ${hiddenWinCount} 枚扭蛋币!`] : []
363
+ ...hiddenWinCount > 0 ? [`🎉 恭喜你抽中隐藏奖励,额外获得 ${hiddenWinCount} 张兑换券和 ${hiddenWinCount} 枚扭蛋币!`] : []
368
364
  ].join("\n");
369
365
  });
370
366
  ctx.command("ggcevo/抽奖记录").action(async (argv) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "星际争霸2游戏大厅咕咕虫-Evo地图专属插件",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [