Update tests: status effects persist across sessions and tick while offline

Made-with: Cursor
This commit is contained in:
AI Agent
2026-03-14 14:36:13 -06:00
parent 1d344225d3
commit a083c38326

View File

@@ -21,7 +21,9 @@ Run through these checks before every commit to ensure consistent feature covera
## Player Persistence ## Player Persistence
- [ ] Reconnecting player skips chargen, sees "Welcome back!" - [ ] Reconnecting player skips chargen, sees "Welcome back!"
- [ ] Room, stats, inventory, equipment all restored from DB - [ ] Room, stats, inventory, equipment all restored from DB
- [ ] Status effects do NOT persist across sessions (cleared on login) - [ ] Status effects persist across logout/login (stored in DB)
- [ ] Status effects continue ticking while player is offline
- [ ] On reconnect, expired effects are gone; active effects resume
- [ ] Verify with: `sqlite3 mudserver.db "SELECT * FROM players;"` - [ ] Verify with: `sqlite3 mudserver.db "SELECT * FROM players;"`
## Movement & Navigation ## Movement & Navigation
@@ -77,7 +79,8 @@ Run through these checks before every commit to ensure consistent feature covera
- [ ] Status effects expire after their duration (in ticks) - [ ] Status effects expire after their duration (in ticks)
- [ ] `stats` command shows active status effects and remaining duration - [ ] `stats` command shows active status effects and remaining duration
- [ ] Multiple status effects can be active simultaneously - [ ] Multiple status effects can be active simultaneously
- [ ] Status effects cleared on player death/respawn - [ ] Negative status effects cleared on player death/respawn
- [ ] Status effects on offline players resolve by wall-clock time on next login
## Passive Regeneration ## Passive Regeneration
- [ ] Players out of combat slowly regenerate HP over ticks - [ ] Players out of combat slowly regenerate HP over ticks