Charaktere: Geschlecht (Default maennlich) plus weibliche Platzhalterportraets

Spalte characters.gender mit Migration, Auswahl im Formular, Anzeige auf Bogen und im PDF-Export. 12 neue Platzhalterbilder assets/portraits/<klasse>-weiblich.webp (fal.ai nano-banana-pro/edit) werden von portrait_placeholder_rel() nach Geschlecht gewaehlt.
This commit is contained in:
torsten 2026-11-22 12:45:52 +01:00
parent 0cbaeeafcd
commit 9388d04e98
23 changed files with 62 additions and 13 deletions

View file

@ -28,6 +28,13 @@ const WS_SAVES = [
const WS_ALIGNMENTS = ['Rechtschaffen', 'Neutral', 'Chaotisch', 'Gut', 'Böse', '–'];
/**
* Geschlecht: bestimmt das Platzhalterporträt (…-weiblich.webp). Der erste
* Eintrag ist der Standardwert für neue und bestehende Charaktere.
*/
const WS_DEFAULT_GENDER = 'männlich';
const WS_GENDERS = ['männlich', 'weiblich'];
const WS_ITEM_CATEGORIES = ['Waffe', 'Rüstung', 'Schild', 'Ausrüstung', 'Verbrauch', 'Schatz', 'Sonstiges'];
/**