[Phase 6.4] One-Shot State-Dependent Scanner Minigame & PostgreSQL Card Minting #41

Open
opened 2026-11-17 08:14:30 +00:00 by john4064 · 0 comments
Owner

Goal

Build the one-shot state-dependent Scanner Minigame that mints unique ScannedCreatureInstance rows in PostgreSQL with stat offsets determined by scan timing and the Creature's health/status at capture.

Metadata

  • Phase / Step: Phase 6.4
  • Depends On: #12, #16, #40
  • Unlocks: Complete Perim scanning gameplay loop
  • Target Crates / Paths: crates/chaotic_server/src/perim/scanner.rs, src/ui/scanner_minigame.rs
  • Line Budget Plan: Production .rs <= 400 lines, test .rs <= 600 lines, mod.rs < 80 lines (AGENTS.md Section 2.3)

Acceptance Criteria

  • Compute final stat variance offsets strictly inside legal physical bounds ([-5, 0, +5] Energy, [-10..+10] Disciplines) based on live Creature state + scan quality.
  • Enforce server-side anti-cheat rate limits and one-shot cooldown per wild Creature spawn.
  • Persist minted ScannedCreatureInstance atomically to PostgreSQL so newly scanned cards appear immediately in Deckbuilder.
## Goal Build the one-shot state-dependent **Scanner Minigame** that mints unique `ScannedCreatureInstance` rows in PostgreSQL with stat offsets determined by scan timing and the Creature's health/status at capture. ## Metadata - **Phase / Step:** Phase 6.4 - **Depends On:** #12, #16, #40 - **Unlocks:** Complete Perim scanning gameplay loop - **Target Crates / Paths:** `crates/chaotic_server/src/perim/scanner.rs`, `src/ui/scanner_minigame.rs` - **Line Budget Plan:** Production `.rs` <= 400 lines, test `.rs` <= 600 lines, `mod.rs` < 80 lines (`AGENTS.md` Section 2.3) ## Acceptance Criteria - [ ] Compute final stat variance offsets strictly inside legal physical bounds (`[-5, 0, +5]` Energy, `[-10..+10]` Disciplines) based on live Creature state + scan quality. - [ ] Enforce server-side anti-cheat rate limits and one-shot cooldown per wild Creature spawn. - [ ] Persist minted `ScannedCreatureInstance` atomically to PostgreSQL so newly scanned cards appear immediately in Deckbuilder.
Sign in to join this conversation.
No description provided.