feat: character creator overhaul with stat rolling and ability grid #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/frontend"
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?
Summary
Complete overhaul of the Character Creator (Step 3) and the underlying
stat/ability system. Heroes now roll their stats on class selection,
can reroll before committing, and see live effective skill values based
on a new scaling formula.
Character Creator
Step 2
16-20) instead of fixed valuesstat-bar-valwidth increased to 48px for aligned display across class cardsStep 3 — Ability Distribution
Heimlichkeit & Soziales, Überleben & Handwerk)
rollStats()andrandInt()invested + Math.floor(stat * 1.5)rolledStatsfor bonus calculation instead of class min valuesstat→statValin effective calculationGeneral
attributesstate andATTR_LABELSconstantuseEffectfor selectedClassstatVal/effectivelines from component bodycreateHeroto callPOST /heroes/createwithrolled_statsBackend
heroes.py
import randomattributesfield optional with default{}rolled_statsfield toHeroCreateWithAttributesrolled_statsif provided, otherwise roll on backendhero_classbase_intelligence_maxavailable_skillpointspropertyhero.py
effective_skillformula toint(stat_value * 1.5)getattrtarget:selfinstead ofself.hero_classfor stat lookupCSS
.realm-bg .container { max-width: 820px }for 2-column layoutcc-attr-*classescc-skill-rowandcc-reroll-btndefinitions