From c0bb7e01f7b5678fa97479e17e8ea47098b915e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 16:09:31 -0500 Subject: [PATCH] Note #21 stamina-driven attacks in the devlog Refs #21 Co-Authored-By: Claude Opus 5.5 --- docs/DEVLOG.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/DEVLOG.md b/docs/DEVLOG.md index 0830037fdb..e311ce68a2 100644 --- a/docs/DEVLOG.md +++ b/docs/DEVLOG.md @@ -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).