ctan
a9ccdd3a56
feat(combat): add activate_power_attack action and consume Up Close and Deadly deed
...
- New Action kind activate_power_attack: free action that sets
state.power_attack = True when the combatant has the Power Attack feat;
logged no-op otherwise. Routed via _execute_movement (free-action branch)
to keep _execute under the C901 complexity ceiling.
- Consume deed_up_close_and_deadly in resolve_attack: the first attack
resolved while the flag is set gains +1d6 if it is a ranged attack within
30 ft; the flag is reset in all cases (benefit lost if out of range or
not ranged). Extracted into _consume_up_close_and_deadly helper.
- Document activate_power_attack, corrected deed semantics, and the
power_attack snapshot key in README.
- Add tests/test_engine_fixes.py (5 tests): PA activation, no-feat no-op,
deed+ranged within 30ft, deed out-of-range, deed melee.
2026-09-06 18:37:58 +02:00
ctan
e29c472a67
feat(combat): expose DR, conditions, creature type, features, and spell save semantics in observation
2026-09-06 18:18:13 +02:00
ctan
d2cd6f0702
docs: document enriched observation snapshot and add LLM demo test
2026-09-06 16:50:42 +02:00
ctan
bfb8d0a30c
feat(combat): expose threat grid and terrain semantics in observation
2026-09-06 14:10:16 +02:00
ctan
cfeb28e336
feat(combat): expose per-pair movement and threat info in observation
2026-09-06 14:01:34 +02:00
ctan
90c71bbeb0
feat(combat): expose class features and spell data in observation snapshot
2026-09-06 13:54:26 +02:00
ctan
f3d874790a
feat(combat): expose weapon reference in observation snapshot
2026-09-06 13:46:12 +02:00
ctan
cd8051f2c4
feat(combat): expose combat stats in observation snapshot
2026-09-06 13:38:53 +02:00
ctan
e75ab58055
feat(combat): add serializable Observation snapshot and LLMPolicy adapter
2026-09-06 11:07:30 +02:00
ctan
7843756de2
feat(combat): expose charge failure reasons via ChargeResult
2026-09-06 10:47:36 +02:00
ctan
56c8970d5b
feat(combat): expose threatened squares and movement cost fields for LLM policy
...
Rename _threatened_squares -> threatened_squares and
_enemies_threatening -> enemies_threatening (public read-only API for a
future LLM policy), and add reachable_ft(state, budget) and
movement_cost_ft(state, target) accessors returning movement costs in
feet. Pure exposure: no behavior change, resolution engine untouched,
goldens bit-identical.
2026-09-06 10:36:48 +02:00
ctan
9c49f85af8
feat(combat): resolve all natural melee weapons in full_attack
2026-09-06 10:22:58 +02:00
ctan
fdcd103e8a
feat(combat): add repair_weapon action to fix broken weapons
2026-09-06 10:05:55 +02:00
ctan
8e957c9fac
feat(combat): add retrieve_weapon action to recover stolen weapons
2026-09-06 10:01:07 +02:00
ctan
b640e29a91
feat(combat): add trick_condition field to Action for dirty trick
2026-09-05 18:49:56 +02:00
ctan
7fbf3988e9
feat(combat): add direction field to Action for directional maneuvers
2026-09-05 18:37:26 +02:00
ctan
66b6d1f387
feat(combat): support off-turn immediate actions via reaction policy
2026-09-05 17:03:51 +02:00
ctan
ab99ab67e3
feat(grid): apply elevation to movement cost and high ground
2026-09-05 16:18:56 +02:00
ctan
30f8905a3e
feat(combat): support multi-cell occupancy for large and larger creatures
2026-09-05 16:01:28 +02:00
ctan
7f57df16a6
feat(combat): support variable melee reach for weapons and creature size
2026-09-05 15:10:21 +02:00
ctan
7cb3653750
fix(combat): apply save negates to targeted spell damage effects
2026-09-05 12:52:58 +02:00
ctan
cd75a4f2bf
feat(combat): implement overrun, dirty trick, steal, reposition and drag maneuvers
2026-09-05 12:37:06 +02:00
ctan
2f2acd992f
fix(combat): evaluate conditional stat modifiers with action context
2026-09-05 12:17:58 +02:00
ctan
31d970dd5f
fix(combat): resolve touch attacks against touch AC and firearms
2026-09-05 11:28:46 +02:00
ctan
22d76e9677
fix(combat): channel energy targets living vs undead
2026-09-05 00:16:17 +02:00
ctan
7591614460
feat(cli): add --transcript option
2026-09-04 23:34:12 +02:00
ctan
83a5250ca6
fix(combat): deed range gating
2026-09-04 23:02:27 +02:00
ctan
c5f31c30d1
fix(combat): summon spawns only on passable cells
2026-09-04 23:02:27 +02:00
ctan
0dcb967033
test(combat): pin ScriptedRng transcripts, unique per scenario
2026-09-04 23:02:26 +02:00
ctan
6e08df6eb6
feat(combat): class abilities from default_policy
2026-09-04 23:02:26 +02:00
ctan
66a664ad85
fix(data): lich fear aura, paralyzing touch, slot keys
2026-09-04 23:02:26 +02:00
ctan
d0833c7a2c
feat(data): wire all 55 PC feats
2026-09-04 23:02:25 +02:00
ctan
5353018c80
fix(combat): single roll to escape grapple
2026-09-04 23:02:25 +02:00
ctan
f575c77037
fix(combat): sunder damages weapon not HP
2026-09-04 23:02:25 +02:00
ctan
6e4a9d8323
feat(combat): Combat Reflexes extra AoOs
2026-09-04 23:02:24 +02:00
ctan
679d405943
feat(combat): enforce prone/staggered/nauseated/paralyzed
2026-09-04 23:02:24 +02:00
ctan
0d61ad44ab
fix(combat): bound cackle hex extension
2026-09-04 23:02:24 +02:00
ctan
735642a607
fix(combat): summoned creatures act and expire
2026-09-04 23:02:23 +02:00
ctan
2e4d192522
refactor(combat): single source active_buffs/active_conditions
2026-09-04 23:02:23 +02:00
ctan
073da40fca
feat(combat): class-ability action kinds, engine RNG only
2026-09-04 23:02:22 +02:00
ctan
0058e71550
fix(combat): correct hex and AoE DCs, DR bypassed by spells
2026-09-04 23:02:22 +02:00
ctan
a7729eebf1
fix(combat): correct concentration DCs by situation
2026-09-04 23:02:22 +02:00
ctan
625e8c56b9
feat(runner): wire spell registry in CLI and Monte Carlo
2026-09-04 23:02:21 +02:00
ctan
fd94522546
feat(data): per-level spell slots for 8 PCs
2026-09-04 23:02:21 +02:00
ctan
1893072b5d
chore(lint): restore green gate
2026-09-04 23:02:20 +02:00
ctan
934d443d7d
feat(combat): summoning
2026-09-04 23:02:18 +02:00
ctan
8ae344fd16
feat(combat): area-of-effect spells
2026-09-04 23:02:17 +02:00
ctan
d792b6e28f
feat(combat): AoO and concentration on casting
2026-09-04 23:02:16 +02:00
ctan
0c2e3383d7
feat(combat): enforce behavioral condition flags
2026-09-04 23:02:16 +02:00
ctan
789d2f5396
fix(combat): correct spell DC formula
2026-09-04 23:02:15 +02:00