feat: gestion de l'expérience (XP)
- Schéma xp dans CelestopolCharacter : actuel (éditable), log[] ({montant, raison, date}), depense (calculé dans prepareDerivedData)
- Bouton 'Dépenser XP' → DialogV2 (montant + raison) : décrémente actuel, logge l'entrée
- Suppression d'entrée de log avec remboursement des points (mode édition)
- Section XP en haut de l'onglet Biographie : compteurs, tableau du log, référentiel des coûts
- i18n : section CELESTOPOL.XP.* complète
- CSS : .xp-section avec compteurs, tableau de log et accordéon de référence
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -90,15 +90,15 @@ export const FACTIONS = {
|
||||
|
||||
/** Niveaux de blessures avec leur malus associé. */
|
||||
export const WOUND_LEVELS = [
|
||||
{ id: 0, label: "CELESTOPOL.Wound.none", malus: 0 },
|
||||
{ id: 1, label: "CELESTOPOL.Wound.anodin", malus: 0 },
|
||||
{ id: 2, label: "CELESTOPOL.Wound.derisoire", malus: 0 },
|
||||
{ id: 3, label: "CELESTOPOL.Wound.negligeable", malus: -1 },
|
||||
{ id: 4, label: "CELESTOPOL.Wound.superficiel", malus: -1 },
|
||||
{ id: 5, label: "CELESTOPOL.Wound.leger", malus: -2 },
|
||||
{ id: 6, label: "CELESTOPOL.Wound.modere", malus: -2 },
|
||||
{ id: 7, label: "CELESTOPOL.Wound.grave", malus: -3 },
|
||||
{ id: 8, label: "CELESTOPOL.Wound.dramatique", malus: -999 },
|
||||
{ id: 0, label: "CELESTOPOL.Wound.none", malus: 0, duration: "" },
|
||||
{ id: 1, label: "CELESTOPOL.Wound.anodin", malus: 0, duration: "CELESTOPOL.Wound.duration1min" },
|
||||
{ id: 2, label: "CELESTOPOL.Wound.negligeable", malus: 0, duration: "CELESTOPOL.Wound.duration1min" },
|
||||
{ id: 3, label: "CELESTOPOL.Wound.derisoire", malus: -1, duration: "CELESTOPOL.Wound.duration10min" },
|
||||
{ id: 4, label: "CELESTOPOL.Wound.superficiel", malus: -1, duration: "CELESTOPOL.Wound.duration10min" },
|
||||
{ id: 5, label: "CELESTOPOL.Wound.leger", malus: -2, duration: "CELESTOPOL.Wound.duration30min" },
|
||||
{ id: 6, label: "CELESTOPOL.Wound.modere", malus: -2, duration: "CELESTOPOL.Wound.duration30min" },
|
||||
{ id: 7, label: "CELESTOPOL.Wound.grave", malus: -3, duration: "CELESTOPOL.Wound.duration1jour" },
|
||||
{ id: 8, label: "CELESTOPOL.Wound.dramatique", malus: -999, duration: "" },
|
||||
]
|
||||
|
||||
/** Seuils de difficulté pour les jets de dés. */
|
||||
|
||||
Reference in New Issue
Block a user