# Torn City MVP Example

A self-contained MicroPie example app that demonstrates:

- account registration and session auth
- timestamp-based stat regen
- gym training and level progression
- crimes with jail timers and item drops
- attacks with leave / hospitalize / mug outcomes
- banked cash versus wallet cash
- jobs with cooldown-based payouts
- items, inventory, equipment, homes, NPC shops, and a player market

## Run

From this directory:

```bash
uvicorn app:app --reload
```

If you need the optional runtime dependencies:

```bash
pip install -r requirements.txt
```

Then open:

```text
http://127.0.0.1:8000
```

## Notes

- The app stores data in a local SQLite file: `torn_city.sqlite3`
- Market and combat are much easier to test with two browser sessions or two accounts
- Mugging only steals wallet cash; bank money is protected
- Sessions use MicroPie’s built-in session backend, so login sessions reset when the process restarts
