Commit Graph
11 Commits
Author SHA1 Message Date
bepis 944a2e69d4 step 7.3: done 2026-10-21 07:16:18 +11:00
bepis 233f1e0491 step 7.2: done 2026-10-21 06:59:52 +11:00
bepis cf5c4616d8 step 6.3: done 2026-10-21 01:10:23 +11:00
bepis 2930c70010 step 6.2: done 2026-10-21 00:59:57 +11:00
bepis ffee0efc47 step 6.1: wip (not ticked) 2026-10-21 00:42:56 +11:00
bepis bf3cb35e68 step 5.3: done 2026-10-20 22:55:51 +11:00
bepis 0e053aaee0 step 5.2: done 2026-10-20 22:39:34 +11:00
bepis f26ca88d1e step 4.5: done 2026-10-20 21:31:12 +11:00
bepis 9a308b697d loop: baseline 2026-10-20 20:33:35 +11:00
bepis f1ae7b3119 feat: complete Phase 4 combat/hunting system
- Add content migration (003_content.sql): zones, monsters, items, loot tables
- Add inventory migration (004_inventory.sql) and logs migration (006_logs.sql)
- Add Mulberry32 PRNG (src/utils/rng.js) for deterministic combat
- Add combat system (src/game/combat.js) with turn order, crit, mage bonus, 20-round cap
- Add rewards/loot system (src/game/rewards.js) and leveling (src/game/leveling.js)
- Add hunt endpoint (POST /api/hunt) with full combat flow in DB transaction
- Add hunt integration tests and unit tests for rewards/leveling/combat
- Fix session middleware to use memory store in tests (avoids cleanup hang)
- Fix huntService transaction (db.transaction() returns wrapper, must call separately)
- Add huntService to helpers.js cache invalidation for test isolation
2026-10-20 17:46:18 +11:00
bepis 7a3e408ffc First commit, phased 1 and 2 created but untested 2026-10-20 07:40:35 +11:00