Geschlecht auch in Charakterliste und Kopfzeile des Bogens anzeigen

This commit is contained in:
torsten 2026-11-22 12:48:59 +01:00
parent 9388d04e98
commit a79e7e7781
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,9 @@ $equipped = array_values(array_filter($items, static fn ($item) => (int) $item['
<?php endif; ?></h1>
<p class="lede">
<?= e((string) $character['class_name']) ?> · Stufe <?= (int) $character['level'] ?>
<?php if ((string) ($character['gender'] ?? '') !== ''): ?>
· <?= e((string) $character['gender']) ?>
<?php endif; ?>
· <?= number_format((int) $character['xp'], 0, ',', '.') ?> EP<?php $xpProgress = xp_progress((string) $character['class_name'], (int) $character['xp']); ?><?php if ($xpProgress['next'] !== null): ?> (noch <?= number_format((int) $xpProgress['missing'], 0, ',', '.') ?> EP bis Stufe <?= (int) $xpProgress['level'] + 1 ?>)<?php endif; ?>
<?php if ((string) $character['alignment'] !== '' && (string) $character['alignment'] !== '–'): ?>
· <?= e((string) $character['alignment']) ?>

View file

@ -53,6 +53,9 @@ foreach ($characters as $character) {
</div>
<div class="meta">
<?= e((string) $character['class_name']) ?> · Stufe <?= (int) $character['level'] ?>
<?php if ((string) ($character['gender'] ?? '') !== ''): ?>
· <?= e((string) $character['gender']) ?>
<?php endif; ?>
<?php if ((string) $character['title'] !== ''): ?>
· <?= e((string) $character['title']) ?>
<?php endif; ?>