Note #21 stamina-driven attacks in the devlog
Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,32 @@
|
||||
Newest entries first. The `ashlar-build` scheduled task and interactive
|
||||
sessions both append here.
|
||||
|
||||
## 2026-11-13 (afternoon run)
|
||||
|
||||
- Waited about 35 minutes for the project lock (held by vitals-build), then
|
||||
a few more for host memory to reach 4 GB before building.
|
||||
- #21 stamina-driven attacks, `28d5d076a0`. With real time combat on, the
|
||||
attack's fatigue cost is paid in `prepareHit`, when the swing is released
|
||||
(melee, ranged and thrown), and `applyFatigueLoss` no longer charges on the
|
||||
hit. The base cost scales from half at no wind-up to full at full wind-up;
|
||||
the weapon part keeps the classic weight * strength * fWeaponFatigueMult.
|
||||
New `[Game] attack fatigue threshold` (0.1): no weapon attack starts below
|
||||
it or at zero fatigue. The player gets "You are too tired to attack." once
|
||||
per press, and combat AI doesn't wind up until fatigue recovers. New
|
||||
`[Game] attack fatigue cap` (0.5): below it, the strongest attack falls
|
||||
linearly to 0.25 strength at zero fatigue. The rules are in
|
||||
`mwmechanics/stamina.cpp`.
|
||||
- Decisions: spells and lockpicks are exempt, and god mode skips the rules.
|
||||
The message is hard-coded English, because no GMST fits; localize it with
|
||||
the Lua UI work. `mAttackWindUp` keeps the uncapped wind-up and only
|
||||
`mAttackStrength` is capped.
|
||||
- Tests: build OK, components-tests 1636 passed, openmw-tests 589 passed (11
|
||||
new). The headless boot is clean. Not exercised end to end; the Game
|
||||
Template has no hostile melee actor (#24). Feel and the default values
|
||||
need Eric's playtest.
|
||||
- Next: #24 headless combat test content, which makes #19 to #22 checkable
|
||||
without a playtest, then #22 hit reactions.
|
||||
|
||||
## 2026-11-13
|
||||
|
||||
- Waited about an hour for the project lock (held by vitals-build).
|
||||
|
||||
Reference in New Issue
Block a user