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

@ -531,6 +531,7 @@ function character_form_values(array $source): array
}
$values['name'] = post_string('name', (string) ($source['name'] ?? ''));
$values['title'] = post_string('title', (string) ($source['title'] ?? ''));
$values['gender'] = character_gender(post_string('gender', (string) ($source['gender'] ?? WS_DEFAULT_GENDER)));
$values['class_name'] = post_string('class_name', (string) ($source['class_name'] ?? 'Kämpfer'));
$values['xp'] = max(0, post_int('xp', (int) ($source['xp'] ?? 0)));
$values['hp_max'] = max(1, post_int('hp_max', (int) ($source['hp_max'] ?? 1)));