koishi-plugin-ggcevo 1.3.6 → 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) => {
@@ -2951,8 +2953,9 @@ ${rewardLines.join("\n")}` : "";
2951
2953
  .header { text-align: center; padding-bottom: 18px; border-bottom: 2px solid rgba(120,160,255,0.35); }
2952
2954
  .title { font-size: 32px; font-weight: bold; letter-spacing: 6px; color: #8fc0ff; text-shadow: 0 0 18px rgba(90,140,255,0.45); }
2953
2955
  .subtitle { margin-top: 8px; font-size: 14px; color: #93a6c8; }
2954
- .group { margin-top: 22px; }
2956
+ .group { margin-top: 22px; break-inside: avoid; }
2955
2957
  .group-title { font-size: 15px; font-weight: bold; color: #ffd98a; letter-spacing: 3px; margin-bottom: 10px; padding-left: 10px; border-left: 3px solid #ffd98a; }
2958
+ .groups { column-count: 2; column-gap: 24px; }
2956
2959
  .list { display: flex; flex-direction: column; gap: 12px; }
2957
2960
  .item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(140,170,255,0.22); border-radius: 12px; padding: 12px 16px; }
2958
2961
  .icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: bold; color: #fff; flex-shrink: 0; }
@@ -2967,7 +2970,7 @@ ${rewardLines.join("\n")}` : "";
2967
2970
  <div class="title">${title}</div>
2968
2971
  <div class="subtitle">${subtitle}</div>
2969
2972
  </div>
2970
- ${groupHtml}
2973
+ <div class="groups">${groupHtml}</div>
2971
2974
  <div class="footer">输入上方指令名即可使用对应功能</div>
2972
2975
  </body>
2973
2976
  </html>`;
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.6",
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,22 @@ 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
+
188
+ ### v1.3.7
189
+
190
+ 图片菜单改为双列均衡排版。
191
+
192
+ - **双列布局**:`咕咕之战` 图片菜单由单列长图改为双列均衡排版(`column-count: 2`),指令变多时图片高度大幅缩短,更便于观看;分类保持原有顺序,单个分类不会被拆散跨列
193
+
182
194
  ### v1.3.6
183
195
 
184
196
  优化文字版菜单输出。