Sts2 Combat Information Dimensions

未分类 · 2026-06-17 23:14

STS2 战斗信息点

2026-06-17 | 桃儿 | 数据来源:STS2 BuildBattleState / BuildPlayerState / BuildEnemyState

战斗阶段 AI 可观测的全部信息。按信息源分类。


1. 👤 我方状态

字段 说明
hp / max_hp 当前血量 / 最大血量
block 当前格挡值
energy 当前回合可用能量
max_energy 基础最大能量(受遗物影响)
stars 星力(The Regent 专属资源)
status 所有 Buff/Debuff 列表,每项含 name/amount/回合

常⻅ Status 效果(来自 291 种 powers):

效果 方向 说明
Vulnerable Debuff 受到攻击伤害 +50%
Weak Debuff 造成攻击伤害 -25%
Frail Debuff 获得格挡 -25%
Poison Debuff 每回合扣血
Strength ± Buff/Debuff 攻击力增减
Dexterity ± Buff/Debuff 格挡增减
Artifact Buff 抵消 1 次 debuff
Intangible Buff 所有伤害降至 1
Thorns Buff 反弹伤害
Ritual Buff 每回合获得力量
Buffer Buff 抵消 1 次伤害
Barricade Buff 格挡不消失

2. 🃏 手牌

每张牌独立观测(BuildCardState):

字段 说明
name 卡名
id 卡牌注册 ID
cost 当前费用("X" 或数字,受 Snecko Eye 等影响)
star_cost 星力费用(The Regent 专属)
type Attack / Skill / Power
rarity Basic / Common / Uncommon / Rare
is_upgraded 是否已升级
can_play 当前能否打出
unplayable_reason 不能打出的原因
target_type 目标类型(Enemy / Player / None 等)
description 效果描述文本
keywords 关键词列表(Ethereal/Exhaust/Retain/Innate/Sly/Eternal/Unplayable)
index 手牌位置(0-based)

3. 🎴 牌堆信息

字段 说明
draw_pile_count 抽牌堆剩余张数
discard_pile_count 弃牌堆张数
exhaust_pile_count 已消耗张数
draw_pile 抽牌堆内容(name + cost + description)
discard_pile 弃牌堆内容
exhaust_pile 已消耗牌列表

4. 👹 敌人信息

每个敌人独立观测(BuildEnemyState):

字段 说明
entity_id 唯一标识(如 jaw_worm_0)
name 敌人名
hp / max_hp 当前血量 / 最大血量
block 当前格挡值
intents 下回合行动列表,每项含:
- type(Attack/Defend/Buff/Debuff 等)
- label(人类可读描述)
- description(详细效果)
status Buff/Debuff 列表(同我方结构)

5. ⚡ 充能球 — Defect 专属

字段 说明
orbs 球列表,每个:id/name/passive_val/evoke_val
orb_slots 槽位总数
orb_empty_slots 空槽位数
球类型 Lightning / Frost / Dark / Plasma / Glass(新)

6. 🐾 宠物 — Necrobinder 专属

字段 说明
pets Osty 的信息(necrobinder 的左手伙伴)

7. 🧪 药水

字段 说明
slot 槽位编号
name 药水名
description 效果描述
can_use_in_combat 战斗中是否可用
target_type 目标类型
max_potion_slots 药水槽上限

8. 🏆 遗物

字段 说明
name 遗物名
description 效果描述
counter 计数值(部分遗物有,如 Pen Nib)
keywords 关键词

9. ⏱️ 回合信息

字段 说明
round 当前回合数
turn 当前回合方(player/enemy)
is_play_phase 是否在出牌阶段
pending_selection 是否有卡片选择提示

汇总

信息源 条目数 动态性
我方状态 ~20 字段 + N 个 status 每回合/每出牌变化
手牌 N × ~14 字段 每张牌打出后变化
牌堆 ~6 指标 + 内容列表 每次抽/弃牌变化
敌人 M × ~10 字段 每回合/受攻击变化
充能球 K × ~4 字段(Defect) 每回合变化
宠物 1 × ? 字段(Necrobinder) 每回合变化
药水 0-N × ~5 字段 使用后变化
遗物 K × ~4 字段 计数器变化
回合信息 ~3 字段 回合切换

全部压成观测向量喂给 PPO 网络。STS2 比 STS1 多了 Stars 资源、Sly/Eternal 关键词、Glass 球、宠物系统,观测空间更大。