koishi-plugin-ggcevo 1.3.7 → 1.3.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.
package/lib/index.d.ts CHANGED
@@ -148,6 +148,8 @@ export interface GgcEvoExploreStat {
148
148
  success_count: number;
149
149
  /** 累计失败次数 */
150
150
  fail_count: number;
151
+ /** 累计获得道具的探索次数(一次探索无论获得多少个道具均计1次) */
152
+ item_count: number;
151
153
  /** 累计获得金币数(含失败安慰奖) */
152
154
  total_coins: number;
153
155
  /** 最近一次更新/领取时间 */
package/lib/index.js CHANGED
@@ -334,6 +334,7 @@ function apply(ctx, config) {
334
334
  total_count: "unsigned",
335
335
  success_count: "unsigned",
336
336
  fail_count: "unsigned",
337
+ item_count: "unsigned",
337
338
  total_coins: "unsigned",
338
339
  update_time: "timestamp"
339
340
  }, {
@@ -1020,6 +1021,7 @@ ${galaxyList}
1020
1021
  total_count: (stat?.total_count || 0) + 1,
1021
1022
  success_count: (stat?.success_count || 0) + (isSuccess ? 1 : 0),
1022
1023
  fail_count: (stat?.fail_count || 0) + (isSuccess ? 0 : 1),
1024
+ item_count: (stat?.item_count || 0) + (droppedItems.length > 0 ? 1 : 0),
1023
1025
  total_coins: (stat?.total_coins || 0) + gold,
1024
1026
  update_time: now
1025
1027
  };
@@ -1033,7 +1035,7 @@ ${galaxyList}
1033
1035
  const body = rewardLines.length ? `
1034
1036
  ${rewardLines.join("\n")}` : "";
1035
1037
  return `<quote id="${session.messageId}"/>${resultMsg}${body}
1036
- 📊 该星系累计探索 ${newStat.total_count} 次,成功 ${newStat.success_count} 次,累计获得 ${newStat.total_coins} 金币
1038
+ 📊 该星系累计探索 ${newStat.total_count} 次,成功 ${newStat.success_count} 次,获得道具 ${newStat.item_count} 次,累计获得 ${newStat.total_coins} 金币
1037
1039
  🛸 可再次使用 探索 命令选择星系开启新的探索。`;
1038
1040
  });
1039
1041
  ctx.command("ggcevo/兑换 <name:string>").action(async (argv, name2) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo",
3
3
  "description": "GGCEVO 综合插件:星际争霸2游戏句柄绑定 + 签到/抽奖/兑换/背包/活动系统等虚拟物品玩法",
4
- "version": "1.3.7",
4
+ "version": "1.3.8",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -175,10 +175,16 @@ npm install koishi-plugin-ggcevo
175
175
  - `ggcevo_admin_welfare` — 管理员福利(主键 `id` 自增,对应文档行号 `id+1`,每小时全量同步;A列QQ号/B列句柄)
176
176
  - `ggcevo_mining` — 挖矿状态与累计统计(主键 `user_id`,复用句柄标识;含本轮开始时间 `start_time`、累计挖矿时长 `total_minutes`、累计收益金币 `total_coins`)
177
177
  - `ggcevo_explore` — 探索状态(主键 `user_id`,复用句柄标识;含当前星系 `galaxy_id`、本轮开始时间 `start_time`)
178
- - `ggcevo_explore_stats` — 探索统计(复合主键 `user_id` + `galaxy_id`;含探索次数 `total_count`、成功次数 `success_count`、失败次数 `fail_count`、累计获得金币 `total_coins`)
178
+ - `ggcevo_explore_stats` — 探索统计(复合主键 `user_id` + `galaxy_id`;含探索次数 `total_count`、成功次数 `success_count`、失败次数 `fail_count`、获得道具的探索次数 `item_count`、累计获得金币 `total_coins`)
179
179
 
180
180
  ## 更新日志
181
181
 
182
+ ### v1.3.8
183
+
184
+ 探索统计新增获得道具次数。
185
+
186
+ - **探索统计新增 `item_count`**:`ggcevo_explore_stats` 表新增"获得道具的探索次数"字段,一次探索无论获得多少个道具均计 1 次;结算消息同步展示 `获得道具 X 次`(目前仅千帆星系有道具掉落)
187
+
182
188
  ### v1.3.7
183
189
 
184
190
  图片菜单改为双列均衡排版。