You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 15:06:19 +00:00
9d98fbf9ee
The prize editor could only update existing rows; savePrize was UPDATE-only, so the admin panel had no way to add a new slice or remove an old one. - WheelManager.savePrize now takes a sortOrder and inserts when id <= 0 (returning the generated id) or updates + re-enables when id > 0, so a previously removed prize can be brought back. sort_order is persisted to match the editor's display order. - New WheelManager.disablePrizesNotIn(keptIds) soft-deletes (enabled = 0) any prize absent from the saved authoritative list. Non-destructive: rows stay in the table and loadPrizes already filters enabled = 1. - WheelAdminSavePrizesEvent collects the saved ids and disables the rest before reloading. No schema change (wheel_prizes already has enabled + sort_order) and no packet change (id = 0 / omission express insert / delete on the existing wire). Pairs with the Nitro-V3 client editor add/remove buttons.