Files
bl/docs/peak-tianxuan-current-design-2026-04-25.md
昔念 c07e521e4e
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-04-26 02:33:06 +08:00

82 lines
1.9 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 巅峰之战天选池当前逻辑说明
更新时间2026-04-26
## 1. 入口职责
- `point_1`巅峰之战主页面展示当前玩家已配置的天选精灵
- `point_2`天选池投票页面只保存玩家本周投票
- `point_3`天选精灵配置页面配置玩家自己的天选精灵属性
## 2. 投票数据
投票表是 `config_peak_tianxuan_vote`
字段口径
- `week_index`日期周格式为 ISO 年周例如 `202617`
- `player_id`投票玩家
- `pet_id`投票精灵
约束口径
- 每个玩家每个日期周只能投 1 只精灵
- 同周重复投票时更新原记录
- 票数统计按 `week_index + pet_id` 聚合
## 3. 投票池
`point_2` 的候选池来自乱斗精灵池 `config_boss_melee` `mon_id` 去重
当前不再因为上周出现过就从候选池移除上周投票结果只作为展示和后续配置参考
页面会展示
- 当前日期周投票池
- 上一日期周投票统计
- 当前玩家本周已投的精灵
## 4. 天选配置
天选配置表是 `config_peak_tianxuan`
这张表现在表示玩家额外拥有的天选精灵配置参考 `player_pet` 的归属思路不再按周保存
核心字段
- `player_id`
- `pet_id`
- `display_order`
- `preset_name`
- `level`
- `nature`
- `hp`
- `max_hp`
- `attack`
- `defence`
- `sp_attack`
- `sp_defence`
- `speed`
- `skin_id`
- `effect_ids`
- `skill_ids`
- `remark`
- `is_enable`
约束口径
- 同一玩家不能重复配置同一只天选精灵
- 不再校验本周不能和上周重复
- 不再要求 `week_index`
## 5. BP 使用
BP 不直接读取投票记录
进入 BP 时读取双方各自的 `config_peak_tianxuan` 配置
- 我方看到自己的天选配置
- 对方看到对方自己的天选配置
投票结果后续可用于决定哪些精灵开放给玩家配置但配置本身是玩家维度的数据