(Underdepth) Pass 3
This commit is contained in:
30 files changed
+4151
No files matched your search
@@ -0,0 +1,13 @@
|
||||
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
|
||||
[LCM] Failed to initialize: database is locked
|
||||
supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty'
|
||||
Phase 2 — `engine/combat.py` done. Gate prints `combat ok`.
|
||||
|
||||
**`engine/combat.py`** — `hit_chance`, `attack`, and the five `eff_*` accessors exactly as specified.
|
||||
- Reused `HIT_BASE/STEP/FLOOR/CEIL` from `constants.py` (no magic numbers, no new file touched).
|
||||
- `getattr` fallback chains on every stat → works for Player, Enemy, or bare objects; never raises.
|
||||
- Defeat line logs only on the living→dead transition, so striking an already-dead defender never duplicates or crashes. Mentions `xp_value` (defaults to 0 for the player).
|
||||
- No XP awarded here, no entity removal — lifecycle stays with the caller.
|
||||
- Monte Carlo (1000 strikes): `hit_chance=0.90`, damage ∈ {3,6}, ranged path works, no crashes.
|
||||
|
||||
Skipped: ranged *distance* penalty (`RANGE_HIT_PENALTY` exists in constants but `attack()`'s signature carries no distance param) — add when the AI layer passes distance in phase 3.
|
||||
Reference in new issue
Block a user