fix: resolve class system startup and stat range issues #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/charactercreator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: kevin mika mika.kevin@nexus-6.eu
- Remove hardcoded HeroClass seed data from main.py (replaced by seed_classes) - Call seed_classes() on startup in main.py - Fix CLASSES_DIR path in seed_classes.py (three levels up to project root) - Replace base_strength/dex/int/vit/wil with min/max variants in: - GET /heroes/classes/all endpoint - GET /heroes/{id}/sheet hero_class block - POST /heroes/create (cls → hero_class, use randint with min/max) - Fix CharacterCreator.jsx StatBar missing cls. prefix on _max fields - seed_classes.py now uses glob("**/*.yaml") to include prestige/ subdir - seed_classes.py runs on every startup with upsert logic (insert or update) Signed-off-by: kevin mika <mika.kevin@nexus-6.eu>