Phase 3: Loot, Gear & Town Hub
Phase 3 turns the game into a true roguelike + Tarkov extraction experience. You will implement the full loot system (rarity scaling, random affixes, 0β3 augment slots), the complete town hub, inventory/equip UI, extraction logic, and daily/weekly tasks β all while keeping the Miyoo client lightweight and responsive.
Build the complete extraction loop: find powerful loot with meaningful progression, manage it in town, and risk everything on every run.
A fully playable solo extraction loop on real Miyoo hardware: gear up in town, enter a dungeon, loot rare items with affixes and augment slots, extract (or die and lose equipped gear), and see your stash update with new items and task rewards.
In shared/src/lib.rs define the complete data model for loot:
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum Rarity { Common, Uncommon, Rare, Epic, Legendary }
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Affix {
pub name: String,
pub value: f32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Augment {
pub id: u32,
pub name: String,
pub effect: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Item {
pub base_id: u32,
pub rarity: Rarity,
pub affixes: Vec<Affix>,
pub augments: Vec<Option<Augment>>, // up to 3 slots, Some/None
pub flavor_text: Option<String>,
}
This struct lives in the shared crate so both client and server understand every item identically.
Create a pure function in the server that generates loot when enemies die or chests are opened:
All randomness and math happens only on the server β the client receives the final computed Item.
When a player reaches an extract portal or dies:
Build on Miyoo SDL2:
Create several clean town screens:
Use the same tooltip system as inventory for consistency.
On the server:
On the client: a clean βBounty Boardβ screen in town showing current tasks and progress.
Attach short flavor text to high-rarity items/augments. Add subtle visual cues on the client (rarity-colored names, glowing augment slots, tiny particles on legendary items).
Test the complete loop end-to-end on the Miyoo:
The core extraction loop is now complete and addictive. You are ready for Phase 4 where multiplayer queues and PvPvE come online.