# RolemasterDB

Starter `.NET 10` Blazor Web App with:

- minimal API endpoints for attack and critical table lookup
- manual cell-edit tooling for repairing imported critical-table entries
- `EF Core 10` with SQLite
- seeded starter data for `Broadsword`, `Short Bow`, `Slash`, and `Puncture`
- an interactive Blazor lookup UI

## Run

```powershell
dotnet run --project .\src\RolemasterDb.App\RolemasterDb.App.csproj
```

The app creates `rolemaster.db` on first run.

## API

- `GET /api/reference-data`
- `POST /api/lookup/attack`
- `POST /api/lookup/critical`
- `GET /api/tables/critical/{slug}/cells/{resultId}`
- `PUT /api/tables/critical/{slug}/cells/{resultId}`

## Notes

The tables page now supports manual curation of imported critical-table cells. Hovering a populated cell shows that it is editable, and clicking opens a popup editor for the full `CriticalResult` record plus its nested `CriticalBranch` and `CriticalEffect` rows.

The current database is an initial seeded subset designed to prove the full lookup workflow. The existing schema notes in `critical_tables_db_model.md` and `critical_tables_schema.sql` are still useful as the source of truth for expanding the import pipeline and normalizing more of the official tables.
