11 Commits

Author SHA1 Message Date
uberwald c3ce628e24 Ameliorations CSS et font diverses
Release Creation / build (release) Successful in 1m25s
2026-04-26 22:44:23 +02:00
uberwald 8e5fb9aca1 Correction sur jauge de destin
Release Creation / build (release) Successful in 1m26s
2026-04-16 22:26:44 +02:00
uberwald 1b2a74969d Update READM.md 2026-04-16 08:39:52 +02:00
uberwald 98a6a41078 Ajout README.md 2026-04-15 11:53:52 +02:00
uberwald c73136b3c9 Ajout README.md 2026-04-15 11:41:44 +02:00
uberwald 49996104ce Roll and styles update
Release Creation / build (release) Failing after 1m17s
2026-04-15 02:16:51 +02:00
uberwald b3cf0b0aa1 Corrections après tests de combat
Release Creation / build (release) Failing after 1m34s
2026-04-14 18:59:09 +02:00
uberwald 63c0153860 FIx v13/v14
Release Creation / build (release) Failing after 1m17s
2026-04-14 00:56:25 +02:00
uberwald 8bfbdedf43 Upgrade compat 2026-04-13 17:33:06 +02:00
uberwald 6d2fca9fc2 Cleanup 2026-04-13 16:34:38 +02:00
uberwald b26ce2f114 Diverses corrections autour du combat 2026-04-13 16:23:31 +02:00
61 changed files with 770 additions and 457 deletions
+1 -1
View File
@@ -68,4 +68,4 @@ jobs:
manifest: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/latest/system.json'
notes: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/fvtt-celestopol-${{github.event.release.tag_name}}.zip'
compatibility-minimum: '13'
compatibility-verified: '13'
compatibility-verified: '14'
-87
View File
@@ -1,87 +0,0 @@
# Copilot Instructions — fvtt-celestopol
## Project Overview
This is a **Foundry VTT system** for **Célestopol 1922**, a French tabletop RPG set in an art-deco 1922 universe. The project targets FoundryVTT v13+ and is developed in French.
The reference rulebooks are in `__regles/` (gitignored):
- *Célestopol 1922 Livre de base* — core rulebook
- *Célestopol 1922 Fiches de prêts à jouer* — pre-generated character sheets
## Architecture
This system uses **FoundryVTT v13 DataModels + ApplicationV2** — NOT the legacy template.json / AppV1 approach.
```
fvtt-celestopol.mjs # Main entry point (Hooks.once("init"))
module/
config/system.mjs # All game constants (SYSTEM export)
models/ # TypeDataModel subclasses (character, npc, items)
documents/ # Actor, Item, ChatMessage, Roll wrappers
applications/sheets/ # AppV2 sheets (HandlebarsApplicationMixin)
lang/fr.json # French i18n (key prefix: CELESTOPOL.*)
styles/ # LESS source files
css/ # Compiled CSS (via gulp)
templates/ # Handlebars (.hbs) templates
assets/fonts/ # CopaseticNF art-deco font
assets/ui/ # Background images
assets/icons/ # Item icons
packs-system/ # Source files for compendium packs
```
## DataModels (no template.json)
- Extend `foundry.abstract.TypeDataModel`
- Schema in `static defineSchema()` using `foundry.data.fields.*`
- `prepareDerivedData()` for computed values
- Files: `module/models/character.mjs`, `npc.mjs`, `items.mjs`
## ApplicationV2 / Sheets
- Actor sheets: `HandlebarsApplicationMixin(foundry.applications.sheets.ActorSheetV2)`
- Item sheets: `HandlebarsApplicationMixin(foundry.applications.sheets.ItemSheetV2)`
- `static DEFAULT_OPTIONS` for config; `static PARTS` for templates
- `_prepareContext()` for base context; `_preparePartContext(partId, context)` for per-tab
- Edit/Play mode toggle via `_sheetMode` + `isPlayMode`/`isEditMode` getters
- Actions: `static #onXxx(event, target)` private static methods in `DEFAULT_OPTIONS.actions`
- `form: { submitOnChange: true }` enables live saving
## Roll Mechanics
- Pool of d6 dice: `nbDice = max(1, skillValue + woundMalus)`
- Formula: `{n}d6 [+ moonBonus + modifier]`
- Moon phase bonus: Nouvelle Lune=0, Croissants=+1, Gibbeuse=+2, Pleine Lune=+3
- Compare total vs difficulty threshold (normal=7)
- Wound malus: levels 1-2=0, 3-4=-1, 5-6=-2, 7=-3, 8=-999 (out)
- DialogV2 for roll configuration: `foundry.applications.api.DialogV2.wait(...)`
## Game Data (4 stats × 4 skills)
- **Âme**: Artifice, Attraction, Coercition, Faveur
- **Corps**: Échauffourée, Effacement, Mobilité, Prouesse
- **Cœur**: Appréciation, Arts, Inspiration, Traque
- **Esprit**: Instruction, Merveilleux technologique, Raisonnement, Traitement
**Tracks**: Blessures (8 niveaux), Destin (8), Spleen (8)
**Anomalies**: 9 types (none + 8)
**Factions**: 8 standard + 2 custom
## Build
```bash
npm install # Install dev deps
npx gulp css # Compile LESS → css/fvtt-celestopol.css (once)
npx gulp # Compile + watch
```
## Visual Style
- Font: **CopaseticNF** (Regular + Bold, in `assets/fonts/`) — art-deco style
- Header bg color: `rgb(12, 76, 12)` (dark green) with orange text (`#e07b00`)
- Sheet header texture: `assets/ui/fond_cadrille.jpg`
- CSS variables: `--cel-green`, `--cel-orange`, `--cel-font-title`, etc.
## Language
All in-game text, labels, and code comments should be in **French**. Code identifiers may be English. All i18n keys use the `CELESTOPOL.*` prefix (see `lang/fr.json`).
+1
View File
@@ -13,3 +13,4 @@ css/*.css
# Règles (PDFs privés)
__regles/
*.pdf
.github/
+84
View File
@@ -0,0 +1,84 @@
# Célestopol 1922 — Système FoundryVTT
Système [Foundry VTT](https://foundryvtt.com) pour **Célestopol 1922**, le jeu de rôle d'[Antre Monde Éditions](https://antremonde.fr).
Copyright 2025-2026 Antre Monde Editions All rights reserved
Celestopol 1922 is a game written by Emmanuel Chastellière and Julien Arnaud. The authors retain their moral rights to this work in both print and digital formats.
This system for FoundryVTT has been approved and authorized by Antre-Monde Edition
---
## ✨ Fonctionnalités
### Personnages joueurs (PJ)
- **4 attributs** (Âme, Corps, Cœur, Esprit) × **4 compétences** chacun (16 compétences au total)
- Gestion des **Blessures** (8 niveaux avec malus automatique aux jets)
- Suivi du **Destin** et du **Spleen** (jauges à 8 crans)
- **Anomalies** : 9 types, déclenchées sur certains résultats de dé
- **Factions** : 8 factions standard + 2 personnalisées, avec aspects liés
- **Équipement** : armes, armures, équipements génériques
- Onglets dédiés : Principal · Compétences · Factions · Équipement · Combat · Biographie
### Personnages non-joueurs (PNJ)
- Fiche simplifiée : compétences, blessures, équipement, biographie
### Items
- **Arme** : mêlée ou à distance, modificateurs de portée
- **Armure** : protection et malus éventuels
- **Aspect de faction** : lié à une faction, bonus / usage limité
- **Anomalie** : type, usages, description
- **Équipement** générique
### Mécanique de jet de désde démonstration
- **Pool de d6** : `max(1, compétence + malus_blessures)` dés
- **Bonus Phase de Lune** : automatique selon la phase en cours (0 à +3)
- **Modificateurs** : difficulté et bonus libres via DialogV2
- Seuil de succès standard : **7**
- Résultats spéciaux : **Brio** (+destin), **Contrecoup** (destin), **Triomphe** (+anomalie/spleen), **Catastrophe** (anomalie/+spleen)
### Dé de la Lune
- Jet de dé de lune indépendant (menu contextuel du token)
- 8 faces : Nouvelle Lune, Premiers Croissants, Dernier Croissant, Gibbeuses ×2, Pleine Lune, Lune de Feu, Lune Noire
- Sur certains résultats : **choix de contrepartie** via pop-up (perte d'anomalie, spleen, ou échec catastrophique)
- Carte de résultat avec boutons d'application directe
### Combat
- **Initiative Célestopol** : jet d'initiative avec dé spécial, insertion dans le tracker
- Attaque avec calcul automatique dommages / protection
- Chat de combat avec récapitulatif des dégâts et blessures appliqués
### Compendiums inclus
| Pack | Contenu |
| ------------ | ------------------------------ |
| Anomalies | Les 8 anomalies du jeu de base |
| Prétirés | 8 personnages prêts à jouer |
| Aides de jeu | Aide du système |
| Scènes | Scènes utiles |
## 🎨 Charte graphique
- Police de titre : **CopaseticNF** (Regular + Bold)
- Vert sombre en-tête : `#0c4c0c`
- Orange texte : `#e07b00`
- Fond parchemin : `#f0e8d4`
- Texture en-tête : `assets/ui/fond_cadrille.jpg`
---
## 👤 Auteur
**LeRatierBretonnien / Uberwald**
- Discord : `LeRatierBretonnien`
- Site : [uberwald.me](https://www.uberwald.me)
---
## 📜 Licence
Copyright 2025 Antre Monde Editions All rights reserved
Celestopol 1922 is a game written by Emmanuel Chastellière and Julien Arnaud. The authors retain their moral rights to this work in both print and digital formats.
This system for FoundryVTT has been approved and authorized by Antre-Monde Edition.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

+134 -2
View File
@@ -39,6 +39,7 @@ import {
} from "./module/applications/_module.mjs"
const DAMAGE_APPLICATION_FLAG = "damageApplication"
const MOON_EFFECT_FLAG = "moonEffectApplied"
const FACTION_ASPECT_STATE_SETTING = "factionAspectState"
const PREGENS_IMPORTED_SETTING = "pregensImported"
const WELCOME_SCENE_IMPORTED_SETTING = "welcomeSceneImported"
@@ -173,6 +174,9 @@ Hooks.once("ready", async () => {
if (foundry.utils.hasProperty(changed, `flags.${SYSTEM_ID}.${DAMAGE_APPLICATION_FLAG}`)) {
_updateRenderedChatMessageState(message)
}
if (foundry.utils.hasProperty(changed, `flags.${SYSTEM_ID}.${MOON_EFFECT_FLAG}`)) {
_updateRenderedMoonEffectState(message)
}
})
_activateExistingChatCards()
@@ -548,8 +552,9 @@ function _activateExistingChatCards() {
document.querySelectorAll(".message[data-message-id]").forEach(messageEl => {
const messageId = messageEl.dataset.messageId
const message = game.messages.get(messageId)
const root = messageEl.querySelector(".celestopol.chat-roll")
if (!message || !root) return
if (!message) return
const root = messageEl.querySelector(".celestopol.chat-roll, .celestopol-roll.moon-standalone-card")
if (!root) return
_activateChatCardListeners(message, root)
})
}
@@ -559,12 +564,19 @@ function _activateChatCardListeners(message, html) {
if (!root) return
_renderWeaponDamageState(message, root)
_renderMoonEffectState(message, root)
root.querySelectorAll('[data-action="apply-weapon-damage"]').forEach(button => {
if (button.dataset.bound === "true") return
button.dataset.bound = "true"
button.addEventListener("click", event => _onApplyWeaponDamageClick(event, message))
})
root.querySelectorAll('[data-action="apply-moon-effect"]').forEach(button => {
if (button.dataset.bound === "true") return
button.dataset.bound = "true"
button.addEventListener("click", event => _onApplyMoonEffectClick(event, message))
})
}
async function _onApplyWeaponDamageClick(event, message) {
@@ -746,6 +758,126 @@ async function _applyWeaponDamage({ actorId, actorUuid = null, incomingWounds, c
return { actorName: actor.name, appliedWounds, armorProtection }
}
/* ─── Dé de la Lune — contreparties ─────────────────────────────────────── */
function _getMoonEffectState(message) {
return message?.getFlag(SYSTEM_ID, MOON_EFFECT_FLAG) ?? null
}
function _renderMoonEffectState(message, root) {
const state = _getMoonEffectState(message)
const actionsDiv = root.querySelector(".moon-effect-actions")
if (!actionsDiv) return
if (!state?.applied) return
const NEGATIVE_EFFECTS = new Set(["lose-anomaly", "gain-spleen", "lose-destin"])
// Désactiver tous les boutons et afficher le statut
actionsDiv.querySelectorAll(".moon-effect-btn").forEach(btn => { btn.disabled = true })
let statusEl = actionsDiv.querySelector(".moon-effect-applied-status")
if (!statusEl) {
statusEl = document.createElement("span")
actionsDiv.append(statusEl)
}
statusEl.className = "moon-effect-applied-status" + (NEGATIVE_EFFECTS.has(state.effect) ? " is-negative" : "")
statusEl.textContent = state.effectLabel
? game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: state.effectLabel })
: game.i18n.localize("CELESTOPOL.Moon.effectApplied")
}
function _updateRenderedMoonEffectState(message) {
const msgEl = document.querySelector(`.message[data-message-id="${message.id}"]`)
if (!msgEl) return
const root = msgEl.querySelector(".celestopol.chat-roll, .celestopol-roll.moon-standalone-card")
if (!root) return
_renderMoonEffectState(message, root)
}
async function _onApplyMoonEffectClick(event, message) {
event.preventDefault()
const state = _getMoonEffectState(message)
if (state?.applied) return
const button = event.currentTarget
const effect = button.dataset.effect
const actionsDiv = button.closest(".moon-effect-actions")
const actorId = actionsDiv?.dataset.moonActorId ?? ""
const actorUuid = actionsDiv?.dataset.moonActorUuid ?? ""
// Désactiver immédiatement pour éviter les double-clics
actionsDiv?.querySelectorAll(".moon-effect-btn").forEach(btn => { btn.disabled = true })
const actor = await CelestopolRoll.resolveActor({ actorId, actorUuid })
if (!actor) {
ui.notifications.warn(game.i18n.localize("CELESTOPOL.Moon.actorNotFound"))
actionsDiv?.querySelectorAll(".moon-effect-btn").forEach(btn => { btn.disabled = false })
return
}
const effectLabel = await _applyMoonEffect(actor, effect)
if (effectLabel === null) {
actionsDiv?.querySelectorAll(".moon-effect-btn").forEach(btn => { btn.disabled = false })
return
}
await message.setFlag(SYSTEM_ID, MOON_EFFECT_FLAG, { applied: true, effect, effectLabel })
}
async function _applyMoonEffect(actor, effect) {
const i18n = key => game.i18n.localize(`CELESTOPOL.Moon.${key}`)
const anomaly = actor.items.find(i => i.type === "anomaly")
switch (effect) {
case "regain-anomaly": {
if (!anomaly) { ui.notifications.warn(i18n("noAnomaly")); return null }
const max = anomaly.system?.level ?? 0
const cur = anomaly.system?.usesRemaining ?? 0
if (cur >= max) { ui.notifications.warn(i18n("anomalyFull")); return null }
await anomaly.update({ "system.usesRemaining": Math.min(max, cur + 1) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectRegainAnomaly") }))
return i18n("effectRegainAnomaly")
}
case "lose-spleen": {
const cur = actor.system?.spleen?.lvl ?? 0
if (cur <= 0) { ui.notifications.warn(i18n("spleenEmpty")); return null }
await actor.update({ "system.spleen.lvl": Math.max(0, cur - 1) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectLoseSpleen") }))
return i18n("effectLoseSpleen")
}
case "gain-destin": {
const cur = actor.system?.destin?.lvl ?? 0
await actor.update({ "system.destin.lvl": Math.min(8, cur + 2) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectGainDestin") }))
return i18n("effectGainDestin")
}
case "lose-destin": {
const cur = actor.system?.destin?.lvl ?? 0
await actor.update({ "system.destin.lvl": Math.max(0, cur - 2) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectLoseDestin") }))
return i18n("effectLoseDestin")
}
case "lose-anomaly": {
if (!anomaly) { ui.notifications.warn(i18n("noAnomaly")); return null }
const cur = anomaly.system?.usesRemaining ?? 0
if (cur <= 0) { ui.notifications.warn(i18n("anomalyEmpty")); return null }
await anomaly.update({ "system.usesRemaining": Math.max(0, cur - 1) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectLoseAnomaly") }))
return i18n("effectLoseAnomaly")
}
case "gain-spleen": {
const cur = actor.system?.spleen?.lvl ?? 0
if (cur >= 8) { ui.notifications.warn(i18n("spleenFull")); return null }
await actor.update({ "system.spleen.lvl": Math.min(8, cur + 1) })
ui.notifications.info(game.i18n.format("CELESTOPOL.Moon.effectApplied", { label: i18n("effectGainSpleen") }))
return i18n("effectGainSpleen")
}
default:
return null
}
}
function _getDefaultFactionAspectState() {
return {
pointsMax: 8,
+38 -3
View File
@@ -58,7 +58,25 @@
"instruction": "Instruction",
"mtechnologique": "Merveilleux technologique",
"raisonnement": "Raisonnement",
"traitement": "Traitement"
"traitement": "Traitement",
"tooltip": {
"artifice": "Art du badinage et de la conversation subtile. Permet de se glisser dans une discussion pour glaner des renseignements ou noyer des informations mensongères. Favorise la manipulation et l'incitation plutôt que la contrainte.",
"attraction": "Capacité à orienter les émotions d'un interlocuteur. Sert à plaire, séduire, mais aussi à passer inaperçu lors d'une soirée mondaine.",
"coercition": "Art d'intimider par le regard ou les mots. Couvre également la capacité à donner des ordres dans un contexte militaire ou hiérarchique.",
"faveur": "Rapport de force oral : convaincre, persuader, négocier. S'appuie sur un discours argumentatif pour imposer son point de vue ou emporter l'adhésion.",
"echauffouree": "Techniques de combat à mains nues, avec une arme improvisée, une arme blanche ou des armes à feu et à distance.",
"effacement": "Capacité à être discret et à ne pas se faire repérer. Couvre le camouflage et l'escamotage. Requiert souvent de demeurer immobile.",
"mobilite": "Réflexes et vivacité. Sert pour la conduite, le pilotage, l'équitation, et représente l'initiative d'un protagoniste.",
"prouesse": "Efforts sportifs et physiques : escalade, natation, sprint, force brute et endurance.",
"appreciation": "Observer son environnement de façon exhaustive. Permet de repérer des intrus, des pièges, des guets-apens et des indices.",
"arts": "Domaines artistiques au sens large : musique, littérature, théâtre, prestidigitation. Permet de captiver un auditoire ou de créer des œuvres.",
"inspiration": "Intuition et inconscient : écouter sa petite voix intérieure sans démarche logique préalable. Permet aussi de lire le comportement d'une personne.",
"traque": "Filer un individu ou un groupe, pister et s'orienter. Ouvre également vers les techniques de survie.",
"instruction": "Savoirs encyclopédiques : sciences humaines, sciences dures, sciences sociales et linguistique. Chaque tranche de 2 points permet de maîtriser une langue supplémentaire.",
"mtechnologique": "Technologies extraordinaires de Célestopol : mécanique, automates, ingénierie au sélénium, horlogerie, serrurerie et artisanat.",
"raisonnement": "Capacités cognitives : déduction froide, logique pragmatique, analyse des faits. Utile pour percevoir des liens dans une enquête.",
"traitement": "Techniques médicales et thérapeutiques : premiers secours, chirurgie, pharmacopée, psychanalyse et psychothérapie."
}
},
"Anomaly": {
"type": "Type d'anomalie",
@@ -350,7 +368,22 @@
"mauvaiseFortune": "🔴 Mauvaise Fortune",
"chanceInterpret": "Chance",
"narrativeInterpret": "Narratif",
"quantiteHint": "Valeur"
"quantiteHint": "Valeur",
"applyChoose": "Choisissez la contrepartie :",
"effectNarrativeOnly": "(Narratif — sans effet mécanique)",
"effectRegainAnomaly": "🌟 Regain d'1 Anomalie",
"effectLoseSpleen": "💚 Perte d'1 Spleen",
"effectGainDestin": "⭐ Gain de 2 Destin",
"effectLoseDestin": "⭐ Perte de 2 Destin",
"effectLoseAnomaly": "❌ Perte d'1 Anomalie",
"effectGainSpleen": "💔 Gain d'1 Spleen",
"effectApplied": "Contrepartie appliquée : {label}",
"noAnomaly": "Ce personnage n'a pas d'anomalie",
"anomalyFull": "L'anomalie est déjà au maximum d'utilisations",
"anomalyEmpty": "L'anomalie n'a plus d'utilisation disponible",
"spleenEmpty": "Le Spleen est déjà à 0",
"spleenFull": "Le Spleen est déjà au maximum",
"actorNotFound": "Personnage introuvable"
},
"Difficulty": {
"unknown": "Aucun seuil",
@@ -449,7 +482,9 @@
"rangeLongue": "Longue portée",
"type": "Type",
"typeMelee": "Mêlée",
"typeDistance": "Distance"
"typeDistance": "Distance",
"equip": "Équiper",
"unequip": "Retirer"
},
"Armure": {
"protection": "Protection",
@@ -46,6 +46,7 @@ export default class CelestopolActorSheet extends HandlebarsApplicationMixin(fou
skillLevel: CelestopolActorSheet.#onSkillLevel,
factionLevel: CelestopolActorSheet.#onFactionLevel,
toggleArmure: CelestopolActorSheet.#onToggleArmure,
toggleWeapon: CelestopolActorSheet.#onToggleWeapon,
},
}
@@ -237,6 +238,13 @@ export default class CelestopolActorSheet extends HandlebarsApplicationMixin(fou
if (item?.type === "armure") await item.update({ "system.equipped": !item.system.equipped })
}
static async #onToggleWeapon(_event, target) {
const uuid = target.closest('[data-item-uuid]')?.dataset.itemUuid
if (!uuid) return
const item = await fromUuid(uuid)
if (item?.type === "weapon") await item.update({ "system.equipped": !item.system.equipped })
}
static #onFactionLevel(_event, target) {
if (!this.isEditable) return
const factionId = target.dataset.faction
+16 -16
View File
@@ -31,28 +31,28 @@ export const STATS = {
/** Domaines groupées par attribut. */
export const SKILLS = {
ame: {
artifice: { id: "artifice", label: "CELESTOPOL.Skill.artifice", stat: "ame", resThreshold: 5 },
attraction: { id: "attraction", label: "CELESTOPOL.Skill.attraction", stat: "ame", resThreshold: 2 },
coercition: { id: "coercition", label: "CELESTOPOL.Skill.coercition", stat: "ame", resThreshold: 3 },
faveur: { id: "faveur", label: "CELESTOPOL.Skill.faveur", stat: "ame", resThreshold: 6 },
artifice: { id: "artifice", label: "CELESTOPOL.Skill.artifice", tooltip: "CELESTOPOL.Skill.tooltip.artifice", stat: "ame", resThreshold: 5 },
attraction: { id: "attraction", label: "CELESTOPOL.Skill.attraction", tooltip: "CELESTOPOL.Skill.tooltip.attraction", stat: "ame", resThreshold: 2 },
coercition: { id: "coercition", label: "CELESTOPOL.Skill.coercition", tooltip: "CELESTOPOL.Skill.tooltip.coercition", stat: "ame", resThreshold: 3 },
faveur: { id: "faveur", label: "CELESTOPOL.Skill.faveur", tooltip: "CELESTOPOL.Skill.tooltip.faveur", stat: "ame", resThreshold: 6 },
},
corps: {
echauffouree: { id: "echauffouree", label: "CELESTOPOL.Skill.echauffouree", stat: "corps", resThreshold: 6 },
effacement: { id: "effacement", label: "CELESTOPOL.Skill.effacement", stat: "corps", resThreshold: 3 },
mobilite: { id: "mobilite", label: "CELESTOPOL.Skill.mobilite", stat: "corps", resThreshold: 2 },
prouesse: { id: "prouesse", label: "CELESTOPOL.Skill.prouesse", stat: "corps", resThreshold: 5 },
echauffouree: { id: "echauffouree", label: "CELESTOPOL.Skill.echauffouree", tooltip: "CELESTOPOL.Skill.tooltip.echauffouree", stat: "corps", resThreshold: 6 },
effacement: { id: "effacement", label: "CELESTOPOL.Skill.effacement", tooltip: "CELESTOPOL.Skill.tooltip.effacement", stat: "corps", resThreshold: 3 },
mobilite: { id: "mobilite", label: "CELESTOPOL.Skill.mobilite", tooltip: "CELESTOPOL.Skill.tooltip.mobilite", stat: "corps", resThreshold: 2 },
prouesse: { id: "prouesse", label: "CELESTOPOL.Skill.prouesse", tooltip: "CELESTOPOL.Skill.tooltip.prouesse", stat: "corps", resThreshold: 5 },
},
coeur: {
appreciation: { id: "appreciation", label: "CELESTOPOL.Skill.appreciation", stat: "coeur", resThreshold: 6 },
arts: { id: "arts", label: "CELESTOPOL.Skill.arts", stat: "coeur", resThreshold: 2 },
inspiration: { id: "inspiration", label: "CELESTOPOL.Skill.inspiration", stat: "coeur", resThreshold: 3 },
traque: { id: "traque", label: "CELESTOPOL.Skill.traque", stat: "coeur", resThreshold: 5 },
appreciation: { id: "appreciation", label: "CELESTOPOL.Skill.appreciation", tooltip: "CELESTOPOL.Skill.tooltip.appreciation", stat: "coeur", resThreshold: 6 },
arts: { id: "arts", label: "CELESTOPOL.Skill.arts", tooltip: "CELESTOPOL.Skill.tooltip.arts", stat: "coeur", resThreshold: 2 },
inspiration: { id: "inspiration", label: "CELESTOPOL.Skill.inspiration", tooltip: "CELESTOPOL.Skill.tooltip.inspiration", stat: "coeur", resThreshold: 3 },
traque: { id: "traque", label: "CELESTOPOL.Skill.traque", tooltip: "CELESTOPOL.Skill.tooltip.traque", stat: "coeur", resThreshold: 5 },
},
esprit: {
instruction: { id: "instruction", label: "CELESTOPOL.Skill.instruction", stat: "esprit", resThreshold: 2 },
mtechnologique: { id: "mtechnologique", label: "CELESTOPOL.Skill.mtechnologique", stat: "esprit", resThreshold: 6 },
raisonnement: { id: "raisonnement", label: "CELESTOPOL.Skill.raisonnement", stat: "esprit", resThreshold: 5 },
traitement: { id: "traitement", label: "CELESTOPOL.Skill.traitement", stat: "esprit", resThreshold: 3 },
instruction: { id: "instruction", label: "CELESTOPOL.Skill.instruction", tooltip: "CELESTOPOL.Skill.tooltip.instruction", stat: "esprit", resThreshold: 2 },
mtechnologique: { id: "mtechnologique", label: "CELESTOPOL.Skill.mtechnologique", tooltip: "CELESTOPOL.Skill.tooltip.mtechnologique", stat: "esprit", resThreshold: 6 },
raisonnement: { id: "raisonnement", label: "CELESTOPOL.Skill.raisonnement", tooltip: "CELESTOPOL.Skill.tooltip.raisonnement", stat: "esprit", resThreshold: 5 },
traitement: { id: "traitement", label: "CELESTOPOL.Skill.traitement", tooltip: "CELESTOPOL.Skill.tooltip.traitement", stat: "esprit", resThreshold: 3 },
},
}
+42 -17
View File
@@ -320,6 +320,8 @@ export class CelestopolRoll extends Roll {
: null
const resolvedWeaponName = (isRangedDefense && selectedCombatTarget?.weaponName) ? selectedCombatTarget.weaponName : weaponName
const resolvedWeaponDegats = (isRangedDefense && selectedCombatTarget?.weaponDegats) ? selectedCombatTarget.weaponDegats : weaponDegats
// Dégâts de l'arme adverse en cas d'échec (arme équipée du PNJ ciblé en mêlée, arme distance en esquive)
const incomingWeaponDegats = selectedCombatTarget?.weaponDegats ?? resolvedWeaponDegats
const targetActorId = selectedCombatTarget?.id || ""
const targetActorUuid = selectedCombatTarget?.uuid || ""
const targetActorName = selectedCombatTarget?.name || ""
@@ -373,6 +375,7 @@ export class CelestopolRoll extends Roll {
weaponType,
weaponName: resolvedWeaponName,
weaponDegats: resolvedWeaponDegats,
incomingWeaponDegats,
targetActorId,
targetActorUuid,
targetActorName,
@@ -383,7 +386,7 @@ export class CelestopolRoll extends Roll {
puiserRessources: effectivePuiser,
nbDice: (!isResistance && useFortune) ? 1 : nbDice,
formula,
rollMode: rollContext.visibility ?? "publicroll",
rollMode: rollContext.visibility ?? "public",
rollMoonDie: effectiveMoon,
moonDieResult,
moonFace,
@@ -407,9 +410,9 @@ export class CelestopolRoll extends Roll {
}
}
// Mêlée échouée OU défense à distance échouée → le protagoniste subit les dégâts de l'arme PNJ
if (isCombat && (weaponType === "melee" || isRangedDefense) && actor && roll.options.resultType === "failure") {
const incomingWounds = this.getIncomingWounds(resolvedWeaponDegats)
// Mêlée échouée OU défense à distance échouée → le protagoniste (PJ uniquement) subit les dégâts de l'arme PNJ
if (isCombat && (weaponType === "melee" || isRangedDefense) && actor?.type === "character" && roll.options.resultType === "failure") {
const incomingWounds = this.getIncomingWounds(roll.options.incomingWeaponDegats ?? resolvedWeaponDegats)
const protection = this.getActorArmorProtection(actor)
const appliedWounds = incomingWounds === null
? 1
@@ -555,6 +558,13 @@ export class CelestopolRoll extends Roll {
? Math.max(0, incomingWounds - selectedTargetProtection)
: null
// Type de l'acteur qui lance le jet (character | npc)
const rollingActor = await this.constructor.resolveActor({
actorUuid: this.options.actorUuid ?? null,
actorId: this.options.actorId ?? null,
})
const actorType = rollingActor?.type ?? this.options.actorType ?? null
// Libellé de difficulté : en combat "Corps PNJ : N", en opposition "vs ?", sinon "Seuil : 11"
const difficultyLabel = this.options.isCombat
? `${game.i18n.localize("CELESTOPOL.Combat.corpsPnj")} : ${threshold}`
@@ -600,6 +610,8 @@ export class CelestopolRoll extends Roll {
woundLabel,
isResistance: this.options.isResistance ?? false,
isCombat: this.options.isCombat ?? false,
actorType,
isNpcAttack: actorType === "npc",
weaponName: this.options.weaponName ?? null,
weaponDegats,
weaponType: this.options.weaponType ?? null,
@@ -627,6 +639,10 @@ export class CelestopolRoll extends Roll {
moonResultClass: moonResultType?.cssClass ?? "",
moonResultLabel: moonResultType ? game.i18n.localize(moonResultType.label) : "",
moonResultDesc: moonResultType ? game.i18n.localize(moonResultType.desc) : "",
moonResultTypeId: moonResultType?.id ?? null,
moonActorId: (actorType === "character") ? (this.options.actorId ?? null) : null,
moonActorUuid: (actorType === "character") ? (this.options.actorUuid ?? null) : null,
moonActorIsCharacter: actorType === "character",
isPrivate,
tooltip: isPrivate ? "" : await this.getTooltip(),
}
@@ -634,11 +650,20 @@ export class CelestopolRoll extends Roll {
/** @override */
async toMessage(messageData = {}, { messageMode, rollMode, create = true } = {}) {
if (rollMode) {
messageMode = Roll._mapLegacyRollMode(rollMode)
const modernToLegacyRollMode = {
public: CONST.DICE_ROLL_MODES.PUBLIC,
gm: CONST.DICE_ROLL_MODES.PRIVATE,
blind: CONST.DICE_ROLL_MODES.BLIND,
self: CONST.DICE_ROLL_MODES.SELF,
ic: CONST.DICE_ROLL_MODES.PUBLIC,
}
messageMode ||= game.settings.get("core", "messageMode")
if (!this._evaluated) await this.evaluate({ allowInteractive: messageMode !== "blind" })
let effectiveRollMode = rollMode ?? messageMode ?? game.settings.get("core", "rollMode") ?? CONST.DICE_ROLL_MODES.PUBLIC
effectiveRollMode = modernToLegacyRollMode[effectiveRollMode] ?? effectiveRollMode
if (!Object.values(CONST.DICE_ROLL_MODES).includes(effectiveRollMode)) {
effectiveRollMode = game.settings.get("core", "rollMode") ?? CONST.DICE_ROLL_MODES.PUBLIC
}
if (!this._evaluated) await this.evaluate({ allowInteractive: effectiveRollMode !== CONST.DICE_ROLL_MODES.BLIND })
const skillLocalized = this.skillLabel ? game.i18n.localize(this.skillLabel) : ""
const statLocalized = this.options.statLabel
@@ -650,7 +675,7 @@ export class CelestopolRoll extends Roll {
actorUuid: this.options.actorUuid ?? null,
actorId: this.options.actorId ?? null,
})
const content = await this.render({ isPrivate: messageMode !== "public" })
const content = await this.render({ isPrivate: effectiveRollMode !== CONST.DICE_ROLL_MODES.PUBLIC })
const chatData = foundry.utils.mergeObject({
author: game.user.id,
content,
@@ -660,13 +685,9 @@ export class CelestopolRoll extends Roll {
speaker: speakerActor ? ChatMessage.getSpeaker({ actor: speakerActor }) : undefined,
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
}, messageData)
const cls = foundry.utils.getDocumentClass("ChatMessage")
const msg = new cls(chatData)
msg.applyMode(messageMode)
if (create) return cls.create(msg)
return msg.toObject()
ChatMessage.applyRollMode(chatData, effectiveRollMode)
if (create) return ChatMessage.create(chatData)
return chatData
}
/**
@@ -681,6 +702,7 @@ export class CelestopolRoll extends Roll {
const resultType = face ? SYSTEM.MOON_RESULT_TYPES[face.result] ?? null : null
const isGoodFortune = result <= 4
const actorIsCharacter = actor?.type === "character"
const templateData = {
result,
moonFaceSymbol: face?.symbol ?? "",
@@ -688,8 +710,12 @@ export class CelestopolRoll extends Roll {
moonResultLabel: resultType ? game.i18n.localize(resultType.label) : "",
moonResultDesc: resultType ? game.i18n.localize(resultType.desc) : "",
moonResultClass: resultType?.cssClass ?? "",
moonResultTypeId: resultType?.id ?? null,
isGoodFortune,
actorName: actor?.name ?? null,
moonActorIsCharacter: actorIsCharacter,
moonActorId: actorIsCharacter ? (actor.id ?? null) : null,
moonActorUuid: actorIsCharacter ? (actor.uuid ?? null) : null,
}
const content = await foundry.applications.handlebars.renderTemplate(
@@ -704,7 +730,6 @@ export class CelestopolRoll extends Roll {
await ChatMessage.create({
content,
speaker,
rolls: [roll],
style: CONST.CHAT_MESSAGE_STYLES.OTHER,
})
}
+32 -36
View File
@@ -13,8 +13,6 @@
import { SYSTEM } from "../config/system.mjs"
const WEAPON_DAMAGE_PRIORITY = { "0": 0, "1": 1, "2": 2, X: 3 }
export default class CelestopolCharacter extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields
@@ -233,7 +231,7 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
woundLevel: this.blessures.lvl,
difficulty: this.prefs.difficulty,
rollMoonDie: this.prefs.rollMoonDie ?? false,
destGaugeFull: this.destin.lvl > 0,
destGaugeFull: this.destin.lvl >= 8,
fortuneValue: this.attributs.fortune.value,
})
}
@@ -275,40 +273,39 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
* Collecte les cibles de combat sur la scène active.
* Pour un PJ attaquant, seules les cibles PNJ présentes sur la scène sont proposées.
* @param {object} options
* @param {boolean} [options.onlyRanged=false]
* @param {boolean} [options.fallbackToAll=false]
* @param {boolean} [options.onlyRanged=false] - Filtrer sur les PNJ ayant une arme à distance équipée
* @param {boolean} [options.fallbackToAll=false] - Revenir à tous les PNJ si aucune cible trouvée
* @param {boolean} [options.includeMeleeWeapon=false] - Inclure l'arme de mêlée équipée du PNJ (dégâts adverses)
* @returns {Array<{id:string, uuid:string, name:string, corps:number, weaponName?:string, weaponDegats?:string}>}
*/
_getCombatTargets({ onlyRanged = false, fallbackToAll = false } = {}) {
const getBestRangedWeapon = actor => {
const rangedWeapons = actor.itemTypes?.weapon?.filter(item => item.system.type === "distance") ?? []
if (!rangedWeapons.length) return null
return rangedWeapons.reduce((best, item) => {
if (!best) return item
const bestPriority = WEAPON_DAMAGE_PRIORITY[best.system.degats] ?? -1
const itemPriority = WEAPON_DAMAGE_PRIORITY[item.system.degats] ?? -1
if (itemPriority !== bestPriority) return itemPriority > bestPriority ? item : best
return item.name.localeCompare(best.name) < 0 ? item : best
}, null)
}
_getCombatTargets({ onlyRanged = false, fallbackToAll = false, includeMeleeWeapon = false } = {}) {
const getEquippedWeapon = (actor, type) =>
actor.itemTypes?.weapon?.find(item => item.system.type === type && item.system.equipped) ?? null
const toEntry = actor => ({
const toEntry = actor => {
const entry = {
id: actor.id,
uuid: actor.uuid,
name: actor.name,
corps: actor.system.stats?.corps?.res ?? 0,
...(onlyRanged ? (() => {
const weapon = getBestRangedWeapon(actor)
return weapon ? {
weaponName: weapon.name,
weaponDegats: weapon.system.degats,
} : {}
})() : {}),
})
}
if (onlyRanged) {
const weapon = getEquippedWeapon(actor, "distance")
if (weapon) {
entry.weaponName = weapon.name
entry.weaponDegats = weapon.system.degats
}
} else if (includeMeleeWeapon) {
const weapon = getEquippedWeapon(actor, "melee")
entry.weaponDegats = weapon ? weapon.system.degats : "0"
}
return entry
}
const sceneTokens = canvas?.scene?.isView ? (canvas.tokens?.placeables ?? []) : []
const targets = [...new Map(sceneTokens
.filter(t => t.actor?.type === "npc" && t.actor.id !== this.parent.id)
.filter(t => !onlyRanged || getBestRangedWeapon(t.actor))
.filter(t => !onlyRanged || getEquippedWeapon(t.actor, "distance"))
.map(t => {
const actor = t.actor
return [actor.uuid, toEntry(actor)]
@@ -346,20 +343,19 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
armorMalus: this.getArmorMalusForRoll("corps", "echauffouree"),
woundLevel: this.blessures.lvl,
rollMoonDie: this.prefs.rollMoonDie ?? false,
destGaugeFull: this.destin.lvl > 0,
destGaugeFull: this.destin.lvl >= 8,
fortuneValue: this.attributs.fortune.value,
isCombat: true,
isRangedDefense: false,
weaponType: item.system.type,
weaponName: item.name,
weaponDegats: item.system.degats,
availableTargets: this._getCombatTargets(),
availableTargets: this._getCombatTargets({ includeMeleeWeapon: item.system.type === "melee" }),
})
}
/**
* Lance une attaque de mêlée à mains nues.
* @returns {Promise<import("../documents/roll.mjs").CelestopolRoll|null>}
* Lance une attaque à mains nues (Échauffourée sans arme).
*/
async rollUnarmedAttack() {
const { CelestopolRoll } = await import("../documents/roll.mjs")
@@ -380,14 +376,14 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
armorMalus: this.getArmorMalusForRoll("corps", "echauffouree"),
woundLevel: this.blessures.lvl,
rollMoonDie: this.prefs.rollMoonDie ?? false,
destGaugeFull: this.destin.lvl > 0,
destGaugeFull: this.destin.lvl >= 8,
fortuneValue: this.attributs.fortune.value,
isCombat: true,
isRangedDefense: false,
weaponType: "melee",
weaponName: game.i18n.localize("CELESTOPOL.Combat.unarmedAttack"),
weaponDegats: "0",
availableTargets: this._getCombatTargets(),
availableTargets: this._getCombatTargets({ includeMeleeWeapon: true }),
})
}
@@ -419,14 +415,14 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
armorMalus: this.getArmorMalusForRoll("corps", "mobilite"),
woundLevel: this.blessures.lvl,
rollMoonDie: this.prefs.rollMoonDie ?? false,
destGaugeFull: this.destin.lvl > 0,
destGaugeFull: this.destin.lvl >= 8,
fortuneValue: this.attributs.fortune.value,
isCombat: true,
isRangedDefense: true,
weaponType: "distance",
weaponName: item.name,
weaponDegats: "0",
availableTargets: this._getCombatTargets(),
availableTargets: this._getCombatTargets({ onlyRanged: true, fallbackToAll: true }),
})
}
@@ -453,7 +449,7 @@ export default class CelestopolCharacter extends foundry.abstract.TypeDataModel
armorMalus: this.getArmorMalusForRoll("corps", "mobilite"),
woundLevel: this.blessures.lvl,
rollMoonDie: this.prefs.rollMoonDie ?? false,
destGaugeFull: this.destin.lvl > 0,
destGaugeFull: this.destin.lvl >= 8,
fortuneValue: this.attributs.fortune.value,
isCombat: true,
isRangedDefense: true,
+1
View File
@@ -85,6 +85,7 @@ export class CelestopolWeapon extends foundry.abstract.TypeDataModel {
choices: Object.keys(SYSTEM.WEAPON_DAMAGE_TYPES) }),
portee: new fields.StringField({ required: true, nullable: false, initial: "contact",
choices: Object.keys(SYSTEM.WEAPON_RANGE_TYPES) }),
equipped: new fields.BooleanField({ initial: false }),
description: new fields.HTMLField({ required: true, textSearch: true }),
}
}
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000062
MANIFEST-000084
+11 -8
View File
@@ -1,8 +1,11 @@
2026/04/13-13:11:31.249954 7f2a6b7fe6c0 Recovering log #60
2026/04/13-13:11:31.302525 7f2a6b7fe6c0 Delete type=3 #58
2026/04/13-13:11:31.302579 7f2a6b7fe6c0 Delete type=0 #60
2026/04/13-14:20:41.118813 7f2a69ffb6c0 Level-0 table #65: started
2026/04/13-14:20:41.118847 7f2a69ffb6c0 Level-0 table #65: 0 bytes OK
2026/04/13-14:20:41.156390 7f2a69ffb6c0 Delete type=0 #63
2026/04/13-14:20:41.210923 7f2a69ffb6c0 Manual compaction at level-0 from '!journal!eNYstmPK0mMmVJYC' @ 72057594037927935 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at (end)
2026/04/13-14:20:41.272745 7f2a69ffb6c0 Manual compaction at level-1 from '!journal!eNYstmPK0mMmVJYC' @ 72057594037927935 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.725370 7f57a5fef6c0 Delete type=3 #1
2026/04/26-22:44:03.500717 7f57977fe6c0 Level-0 table #87: started
2026/04/26-22:44:03.500753 7f57977fe6c0 Level-0 table #87: 0 bytes OK
2026/04/26-22:44:03.506825 7f57977fe6c0 Delete type=0 #85
2026/04/26-22:44:03.534971 7f57977fe6c0 Manual compaction at level-0 from '!journal!eNYstmPK0mMmVJYC' @ 72057594037927935 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 1 : 1
2026/04/26-22:44:03.534983 7f57977fe6c0 Compacting 1@0 + 0@1 files
2026/04/26-22:44:03.538403 7f57977fe6c0 Generated table #88@0: 6 keys, 5441 bytes
2026/04/26-22:44:03.538450 7f57977fe6c0 Compacted 1@0 + 0@1 files => 5441 bytes
2026/04/26-22:44:03.544821 7f57977fe6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2026/04/26-22:44:03.545059 7f57977fe6c0 Delete type=2 #5
2026/04/26-22:44:03.555755 7f57977fe6c0 Manual compaction at level-0 from '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 1 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at (end)
+4 -8
View File
@@ -1,8 +1,4 @@
2026/04/13-13:10:44.862648 7ff582bff6c0 Recovering log #56
2026/04/13-13:10:44.908015 7ff582bff6c0 Delete type=3 #54
2026/04/13-13:10:44.908061 7ff582bff6c0 Delete type=0 #56
2026/04/13-13:10:47.939764 7ff580bfb6c0 Level-0 table #61: started
2026/04/13-13:10:47.939788 7ff580bfb6c0 Level-0 table #61: 0 bytes OK
2026/04/13-13:10:47.972855 7ff580bfb6c0 Delete type=0 #59
2026/04/13-13:10:47.973045 7ff580bfb6c0 Manual compaction at level-0 from '!journal!eNYstmPK0mMmVJYC' @ 72057594037927935 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at (end)
2026/04/13-13:10:48.030502 7ff580bfb6c0 Manual compaction at level-1 from '!journal!eNYstmPK0mMmVJYC' @ 72057594037927935 : 1 .. '!journal.pages!eNYstmPK0mMmVJYC.r9h1ggd3G9hiqYJX' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.706976 7f57a5fef6c0 Log #82: 0 ops saved to Table #83 OK
2026/04/26-21:30:37.707127 7f57a5fef6c0 Archiving /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/aides-de-jeu/000082.log: OK
2026/04/26-21:30:37.707559 7f57a5fef6c0 Table #5: 6 entries OK
2026/04/26-21:30:37.711062 7f57a5fef6c0 **** Repaired leveldb /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/aides-de-jeu; recovered 1 files; 5441 bytes. Some data may have been lost. ****
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000112
MANIFEST-000142
+12 -15
View File
@@ -1,15 +1,12 @@
2026/04/13-13:11:31.130509 7f2a6bfff6c0 Recovering log #109
2026/04/13-13:11:31.189864 7f2a6bfff6c0 Delete type=3 #107
2026/04/13-13:11:31.189928 7f2a6bfff6c0 Delete type=0 #109
2026/04/13-14:20:41.156517 7f2a69ffb6c0 Level-0 table #115: started
2026/04/13-14:20:41.173655 7f2a69ffb6c0 Level-0 table #115: 3524 bytes OK
2026/04/13-14:20:41.210761 7f2a69ffb6c0 Delete type=0 #113
2026/04/13-14:20:41.210932 7f2a69ffb6c0 Manual compaction at level-0 from '!items!anomCommMorts001' @ 72057594037927935 : 1 .. '!items!null' @ 0 : 0; will stop at (end)
2026/04/13-14:20:41.210963 7f2a69ffb6c0 Manual compaction at level-1 from '!items!anomCommMorts001' @ 72057594037927935 : 1 .. '!items!null' @ 0 : 0; will stop at '!items!null' @ 97 : 1
2026/04/13-14:20:41.210970 7f2a69ffb6c0 Compacting 1@1 + 1@2 files
2026/04/13-14:20:41.229806 7f2a69ffb6c0 Generated table #116@1: 9 keys, 6617 bytes
2026/04/13-14:20:41.229844 7f2a69ffb6c0 Compacted 1@1 + 1@2 files => 6617 bytes
2026/04/13-14:20:41.272334 7f2a69ffb6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
2026/04/13-14:20:41.272481 7f2a69ffb6c0 Delete type=2 #111
2026/04/13-14:20:41.272658 7f2a69ffb6c0 Delete type=2 #115
2026/04/13-14:20:41.365704 7f2a69ffb6c0 Manual compaction at level-1 from '!items!null' @ 97 : 1 .. '!items!null' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.676414 7f57a4fed6c0 Delete type=3 #1
2026/04/26-22:44:03.490255 7f57977fe6c0 Level-0 table #145: started
2026/04/26-22:44:03.493705 7f57977fe6c0 Level-0 table #145: 3524 bytes OK
2026/04/26-22:44:03.500560 7f57977fe6c0 Delete type=0 #143
2026/04/26-22:44:03.524721 7f57977fe6c0 Manual compaction at level-0 from '!items!anomCommMorts001' @ 72057594037927935 : 1 .. '!items!null' @ 0 : 0; will stop at '!items!null' @ 121 : 1
2026/04/26-22:44:03.524743 7f57977fe6c0 Compacting 2@0 + 0@1 files
2026/04/26-22:44:03.528390 7f57977fe6c0 Generated table #146@0: 9 keys, 6617 bytes
2026/04/26-22:44:03.528448 7f57977fe6c0 Compacted 2@0 + 0@1 files => 6617 bytes
2026/04/26-22:44:03.534535 7f57977fe6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2026/04/26-22:44:03.534696 7f57977fe6c0 Delete type=2 #140
2026/04/26-22:44:03.534864 7f57977fe6c0 Delete type=2 #145
2026/04/26-22:44:03.555737 7f57977fe6c0 Manual compaction at level-0 from '!items!null' @ 121 : 1 .. '!items!null' @ 0 : 0; will stop at (end)
+4 -15
View File
@@ -1,15 +1,4 @@
2026/04/13-13:10:44.750651 7ff581bfd6c0 Recovering log #104
2026/04/13-13:10:44.797855 7ff581bfd6c0 Delete type=3 #102
2026/04/13-13:10:44.797919 7ff581bfd6c0 Delete type=0 #104
2026/04/13-13:10:47.796281 7ff580bfb6c0 Level-0 table #110: started
2026/04/13-13:10:47.824966 7ff580bfb6c0 Level-0 table #110: 3524 bytes OK
2026/04/13-13:10:47.857042 7ff580bfb6c0 Delete type=0 #108
2026/04/13-13:10:47.973011 7ff580bfb6c0 Manual compaction at level-0 from '!items!anomCommMorts001' @ 72057594037927935 : 1 .. '!items!null' @ 0 : 0; will stop at (end)
2026/04/13-13:10:47.973057 7ff580bfb6c0 Manual compaction at level-1 from '!items!anomCommMorts001' @ 72057594037927935 : 1 .. '!items!null' @ 0 : 0; will stop at '!items!null' @ 93 : 1
2026/04/13-13:10:47.973063 7ff580bfb6c0 Compacting 1@1 + 1@2 files
2026/04/13-13:10:47.995133 7ff580bfb6c0 Generated table #111@1: 9 keys, 6617 bytes
2026/04/13-13:10:47.995159 7ff580bfb6c0 Compacted 1@1 + 1@2 files => 6617 bytes
2026/04/13-13:10:48.030149 7ff580bfb6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
2026/04/13-13:10:48.030263 7ff580bfb6c0 Delete type=2 #106
2026/04/13-13:10:48.030388 7ff580bfb6c0 Delete type=2 #110
2026/04/13-13:10:48.030511 7ff580bfb6c0 Manual compaction at level-1 from '!items!null' @ 93 : 1 .. '!items!null' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.648968 7f57a4fed6c0 Log #138: 0 ops saved to Table #141 OK
2026/04/26-21:30:37.649079 7f57a4fed6c0 Archiving /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/anomalies/000138.log: OK
2026/04/26-21:30:37.649161 7f57a4fed6c0 Table #140: 9 entries OK
2026/04/26-21:30:37.652702 7f57a4fed6c0 **** Repaired leveldb /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/anomalies; recovered 1 files; 6617 bytes. Some data may have been lost. ****
Binary file not shown.
Binary file not shown.
View File
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000023
MANIFEST-000045
+11 -8
View File
@@ -1,8 +1,11 @@
2026/04/13-13:11:31.193586 7f2a6b7fe6c0 Recovering log #21
2026/04/13-13:11:31.247393 7f2a6b7fe6c0 Delete type=3 #19
2026/04/13-13:11:31.247448 7f2a6b7fe6c0 Delete type=0 #21
2026/04/13-14:20:41.081350 7f2a69ffb6c0 Level-0 table #26: started
2026/04/13-14:20:41.081377 7f2a69ffb6c0 Level-0 table #26: 0 bytes OK
2026/04/13-14:20:41.118613 7f2a69ffb6c0 Delete type=0 #24
2026/04/13-14:20:41.210913 7f2a69ffb6c0 Manual compaction at level-0 from '!actors!6RZ6IzJUHm4dB5Ut' @ 72057594037927935 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at (end)
2026/04/13-14:20:41.210940 7f2a69ffb6c0 Manual compaction at level-1 from '!actors!6RZ6IzJUHm4dB5Ut' @ 72057594037927935 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.703085 7f57a4fed6c0 Delete type=3 #1
2026/04/26-22:44:03.483917 7f57977fe6c0 Level-0 table #48: started
2026/04/26-22:44:03.483998 7f57977fe6c0 Level-0 table #48: 0 bytes OK
2026/04/26-22:44:03.490106 7f57977fe6c0 Delete type=0 #46
2026/04/26-22:44:03.513451 7f57977fe6c0 Manual compaction at level-0 from '!actors!6RZ6IzJUHm4dB5Ut' @ 72057594037927935 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at '!folders!MbFQgPdF6Gtbj5AU' @ 37 : 1
2026/04/26-22:44:03.513463 7f57977fe6c0 Compacting 1@0 + 0@1 files
2026/04/26-22:44:03.517217 7f57977fe6c0 Generated table #49@0: 36 keys, 35733 bytes
2026/04/26-22:44:03.517247 7f57977fe6c0 Compacted 1@0 + 0@1 files => 35733 bytes
2026/04/26-22:44:03.523835 7f57977fe6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2026/04/26-22:44:03.523973 7f57977fe6c0 Delete type=2 #18
2026/04/26-22:44:03.555713 7f57977fe6c0 Manual compaction at level-0 from '!folders!MbFQgPdF6Gtbj5AU' @ 37 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at (end)
+4 -8
View File
@@ -1,8 +1,4 @@
2026/04/13-13:10:44.800502 7ff582bff6c0 Recovering log #16
2026/04/13-13:10:44.846821 7ff582bff6c0 Delete type=3 #14
2026/04/13-13:10:44.846886 7ff582bff6c0 Delete type=0 #16
2026/04/13-13:10:47.902261 7ff580bfb6c0 Level-0 table #22: started
2026/04/13-13:10:47.902285 7ff580bfb6c0 Level-0 table #22: 0 bytes OK
2026/04/13-13:10:47.939594 7ff580bfb6c0 Delete type=0 #20
2026/04/13-13:10:47.973036 7ff580bfb6c0 Manual compaction at level-0 from '!actors!6RZ6IzJUHm4dB5Ut' @ 72057594037927935 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at (end)
2026/04/13-13:10:48.030491 7ff580bfb6c0 Manual compaction at level-1 from '!actors!6RZ6IzJUHm4dB5Ut' @ 72057594037927935 : 1 .. '!folders!MbFQgPdF6Gtbj5AU' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.679822 7f57a4fed6c0 Log #43: 0 ops saved to Table #44 OK
2026/04/26-21:30:37.679938 7f57a4fed6c0 Archiving /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/pretires/000043.log: OK
2026/04/26-21:30:37.680974 7f57a4fed6c0 Table #18: 36 entries OK
2026/04/26-21:30:37.684522 7f57a4fed6c0 **** Repaired leveldb /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/pretires; recovered 1 files; 35733 bytes. Some data may have been lost. ****
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
MANIFEST-000062
MANIFEST-000087
+11 -8
View File
@@ -1,8 +1,11 @@
2026/04/13-13:11:31.305113 7f2a6a7fc6c0 Recovering log #60
2026/04/13-13:11:31.358709 7f2a6a7fc6c0 Delete type=3 #58
2026/04/13-13:11:31.358775 7f2a6a7fc6c0 Delete type=0 #60
2026/04/13-14:20:41.045418 7f2a69ffb6c0 Level-0 table #65: started
2026/04/13-14:20:41.045487 7f2a69ffb6c0 Level-0 table #65: 0 bytes OK
2026/04/13-14:20:41.081154 7f2a69ffb6c0 Delete type=0 #63
2026/04/13-14:20:41.210899 7f2a69ffb6c0 Manual compaction at level-0 from '!scenes!Jr7lGxYk2RETlXRv' @ 72057594037927935 : 1 .. '!scenes.tokens.delta.items!Jr7lGxYk2RETlXRv.6urwC5SVcou6UOAG.CTg4yBE12iMee1RU.BYT1CrA37R3Og0nu' @ 0 : 0; will stop at (end)
2026/04/13-14:20:41.210948 7f2a69ffb6c0 Manual compaction at level-1 from '!scenes!Jr7lGxYk2RETlXRv' @ 72057594037927935 : 1 .. '!scenes.tokens.delta.items!Jr7lGxYk2RETlXRv.6urwC5SVcou6UOAG.CTg4yBE12iMee1RU.BYT1CrA37R3Og0nu' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.754039 7f5797fff6c0 Delete type=3 #1
2026/04/26-22:44:03.507044 7f57977fe6c0 Level-0 table #90: started
2026/04/26-22:44:03.507095 7f57977fe6c0 Level-0 table #90: 0 bytes OK
2026/04/26-22:44:03.513200 7f57977fe6c0 Delete type=0 #88
2026/04/26-22:44:03.545324 7f57977fe6c0 Manual compaction at level-0 from '!scenes!0iGCRqkdJKjmmbl4' @ 72057594037927935 : 1 .. '!scenes.levels!X3XJg7raEXtOFOtj.defaultLevel0000' @ 0 : 0; will stop at '!scenes.levels!X3XJg7raEXtOFOtj.defaultLevel0000' @ 61 : 1
2026/04/26-22:44:03.545342 7f57977fe6c0 Compacting 1@0 + 0@1 files
2026/04/26-22:44:03.549127 7f57977fe6c0 Generated table #91@0: 4 keys, 1746 bytes
2026/04/26-22:44:03.549142 7f57977fe6c0 Compacted 1@0 + 0@1 files => 1746 bytes
2026/04/26-22:44:03.555374 7f57977fe6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2026/04/26-22:44:03.555539 7f57977fe6c0 Delete type=2 #85
2026/04/26-22:44:03.555771 7f57977fe6c0 Manual compaction at level-0 from '!scenes.levels!X3XJg7raEXtOFOtj.defaultLevel0000' @ 61 : 1 .. '!scenes.levels!X3XJg7raEXtOFOtj.defaultLevel0000' @ 0 : 0; will stop at (end)
+4 -8
View File
@@ -1,8 +1,4 @@
2026/04/13-13:10:44.916572 7ff5813fc6c0 Recovering log #55
2026/04/13-13:10:44.960340 7ff5813fc6c0 Delete type=3 #53
2026/04/13-13:10:44.960396 7ff5813fc6c0 Delete type=0 #55
2026/04/13-13:10:47.857212 7ff580bfb6c0 Level-0 table #61: started
2026/04/13-13:10:47.857237 7ff580bfb6c0 Level-0 table #61: 0 bytes OK
2026/04/13-13:10:47.902098 7ff580bfb6c0 Delete type=0 #59
2026/04/13-13:10:47.973025 7ff580bfb6c0 Manual compaction at level-0 from '!scenes!Jr7lGxYk2RETlXRv' @ 72057594037927935 : 1 .. '!scenes.tokens.delta.items!Jr7lGxYk2RETlXRv.6urwC5SVcou6UOAG.CTg4yBE12iMee1RU.BYT1CrA37R3Og0nu' @ 0 : 0; will stop at (end)
2026/04/13-13:10:48.030475 7ff580bfb6c0 Manual compaction at level-1 from '!scenes!Jr7lGxYk2RETlXRv' @ 72057594037927935 : 1 .. '!scenes.tokens.delta.items!Jr7lGxYk2RETlXRv.6urwC5SVcou6UOAG.CTg4yBE12iMee1RU.BYT1CrA37R3Og0nu' @ 0 : 0; will stop at (end)
2026/04/26-21:30:37.729984 7f5797fff6c0 Log #83: 0 ops saved to Table #86 OK
2026/04/26-21:30:37.730117 7f5797fff6c0 Archiving /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/scenes/000083.log: OK
2026/04/26-21:30:37.730175 7f5797fff6c0 Table #85: 4 entries OK
2026/04/26-21:30:37.733573 7f5797fff6c0 **** Repaired leveldb /home/morr/foundry/foundrydata-dev/Data/systems/fvtt-celestopol/packs-system/scenes; recovered 1 files; 1746 bytes. Some data may have been lost. ****
Binary file not shown.
Binary file not shown.
View File
+17 -17
View File
@@ -34,7 +34,7 @@
.stat-value, .attr-display {
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1.05em;
font-size: 1.1576em;
font-weight: bold;
line-height: 1.2;
}
@@ -49,7 +49,7 @@
border-bottom: 1px solid var(--cel-orange-light);
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1em;
font-size: 1.1025em;
font-weight: bold;
}
}
@@ -60,7 +60,7 @@
.armor-malus-value {
color: #e06040;
font-family: var(--cel-font-title);
font-size: 1.05em;
font-size: 1.1576em;
font-weight: bold;
}
label { color: #e06040; opacity: 0.8; }
@@ -92,7 +92,7 @@
.stat-name {
font-family: var(--cel-font-title);
font-weight: bold;
font-size: 1em;
font-size: 1.1025em;
text-transform: uppercase;
letter-spacing: 0.05em;
}
@@ -279,7 +279,7 @@
font-family: var(--cel-font-title);
font-weight: bold;
text-transform: uppercase;
font-size: 1.1em;
font-size: 1.2128em;
letter-spacing: 0.04em;
display: flex;
align-items: center;
@@ -380,7 +380,7 @@
.faction-aspect-summary-title {
color: var(--cel-green);
font-family: var(--cel-font-title);
font-size: 1em;
font-size: 1.1025em;
letter-spacing: 0.04em;
text-transform: uppercase;
line-height: 1.05;
@@ -423,7 +423,7 @@
.value {
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1.02em;
font-size: 1.1246em;
line-height: 1;
}
}
@@ -483,7 +483,7 @@
.value {
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 0.9em;
font-size: 0.9923em;
}
}
@@ -505,7 +505,7 @@
background-image: url("../assets/ui/fond_cadrille.jpg");
background-blend-mode: soft-light;
color: var(--cel-orange);
th { padding: 5px 8px; font-family: var(--cel-font-title); font-size: 1.05em; letter-spacing: 0.06em; text-transform: uppercase; }
th { padding: 5px 8px; font-family: var(--cel-font-title); font-size: 1.1576em; letter-spacing: 0.06em; text-transform: uppercase; }
}
.faction-row {
@@ -569,7 +569,7 @@
border-bottom: 1px solid rgba(122,92,32,0.25);
color: var(--cel-green);
font-family: var(--cel-font-title);
font-size: 1.05em;
font-size: 1.1576em;
letter-spacing: 0.05em;
text-transform: uppercase;
}
@@ -838,7 +838,7 @@
text-align: center;
.cel-input-std();
font-family: var(--cel-font-title);
font-size: 1.1em;
font-size: 1.2128em;
font-weight: bold;
color: var(--cel-green);
}
@@ -848,7 +848,7 @@
border-color: rgba(122,92,32,0.4);
.xp-depense-value {
font-family: var(--cel-font-title);
font-size: 1.1em;
font-size: 1.2128em;
font-weight: bold;
color: var(--cel-border);
}
@@ -858,7 +858,7 @@
background: var(--cel-green);
border: 1px solid var(--cel-orange);
color: var(--cel-orange);
font-size: 0.78em;
font-size: 0.86em;
padding: 5px 12px;
cursor: pointer;
font-family: var(--cel-font-title);
@@ -941,7 +941,7 @@
}
th {
font-family: var(--cel-font-title);
font-size: 0.9em;
font-size: 0.9923em;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 4px 8px;
@@ -987,7 +987,7 @@
.anomaly-block-title {
font-family: var(--cel-font-title);
font-size: 0.85em;
font-size: 0.9371em;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--cel-orange);
@@ -1030,7 +1030,7 @@
flex: 1;
.anomaly-name {
font-family: var(--cel-font-title);
font-size: 1em;
font-size: 1.1025em;
color: var(--cel-orange);
font-weight: bold;
}
@@ -1110,7 +1110,7 @@
background: var(--cel-green);
border: 1px solid var(--cel-orange);
color: var(--cel-orange);
font-size: 0.72em;
font-size: 0.7938em;
padding: 2px 8px;
cursor: pointer;
font-family: var(--cel-font-title);
+6 -5
View File
@@ -16,6 +16,7 @@
--cel-border: #7a5c20; // bordure dorée
--cel-accent: #6b1e28; // bordeaux profond (échecs, accents)
--cel-text: #2f2413; // texte de corps sur fond clair (parchemin)
--cel-shadow: rgba(10,15,10,0.5);
@@ -84,7 +85,7 @@
border-bottom: 1px solid rgba(196,154,26,0.5);
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1.4em;
font-size: 1.5435em;
font-weight: bold;
letter-spacing: 0.06em;
padding: 2px 4px;
@@ -93,7 +94,7 @@
.actor-name {
font-family: var(--cel-font-title);
font-size: 1.4em;
font-size: 1.5435em;
color: var(--cel-orange);
letter-spacing: 0.06em;
margin: 0;
@@ -179,7 +180,7 @@
}
.stat-value {
font-size: 1.4em;
font-size: 1.5435em;
font-family: var(--cel-font-title);
color: var(--cel-orange);
font-weight: bold;
@@ -241,7 +242,7 @@
padding: 8px 16px;
color: rgba(240,232,212,0.8);
font-family: var(--cel-font-title);
font-size: 0.85em;
font-size: 0.9371em;
text-transform: uppercase;
letter-spacing: 0.07em;
cursor: pointer;
@@ -330,7 +331,7 @@
.wound-value {
font-family: var(--cel-font-title);
font-size: 0.95em;
font-size: 1.0474em;
font-weight: bold;
white-space: nowrap;
line-height: 1.2;
+7 -7
View File
@@ -22,7 +22,7 @@
.anomaly-section-title {
font-family: var(--cel-font-title);
font-size: 0.78em;
font-size: 0.86em;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--cel-green-dark, #0c4c0c);
@@ -77,7 +77,7 @@
border-bottom: 1px solid var(--cel-orange-light);
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-size: 1.2em;
font-size: 1.323em;
font-weight: bold;
padding: 2px 4px;
}
@@ -147,7 +147,7 @@
padding: 5px 12px;
color: rgba(240,232,212,0.7);
font-family: var(--cel-font-title);
font-size: 0.78em;
font-size: 0.86em;
text-transform: uppercase;
letter-spacing: 0.07em;
cursor: pointer;
@@ -228,7 +228,7 @@
.scores-stat-col {
.scores-stat-name {
font-family: var(--cel-font-title);
font-size: 0.75em;
font-size: 0.8269em;
color: var(--cel-orange); // gold
text-transform: uppercase;
border-bottom: 1px solid var(--cel-border);
@@ -369,7 +369,7 @@
align-items: center;
gap: 4px;
label { font-size: 0.75em; color: var(--cel-orange-light); white-space: nowrap; }
select { background: rgba(0,0,0,0.3); border: 1px solid var(--cel-orange); color: var(--cel-orange); font-family: var(--cel-font-title); border-radius: 3px; padding: 2px 4px; font-size: 0.85em; }
select { background: rgba(0,0,0,0.3); border: 1px solid var(--cel-orange); color: var(--cel-orange); font-family: var(--cel-font-title); border-radius: 3px; padding: 2px 4px; font-size: 0.9371em; }
}
}
.weapon-damage-badge {
@@ -381,7 +381,7 @@
border-radius: 6px;
padding: 6px 12px;
.damage-label { font-size: 0.72em; text-transform: uppercase; color: var(--cel-orange-light); letter-spacing: 0.05em; }
.damage-value { font-family: var(--cel-font-title); font-size: 1.6em; font-weight: bold; color: var(--cel-orange); min-width: 28px; text-align: center; }
.damage-value { font-family: var(--cel-font-title); font-size: 1.764em; font-weight: bold; color: var(--cel-orange); min-width: 28px; text-align: center; }
.damage-hint { font-size: 0.78em; color: var(--cel-cream); font-style: italic; }
}
}
@@ -407,7 +407,7 @@
label { font-size: 0.72em; text-transform: uppercase; color: var(--cel-orange-light); letter-spacing: 0.05em; }
.armure-stat-value {
input[type="number"], span {
font-family: var(--cel-font-title); font-size: 1.8em; font-weight: bold; color: var(--cel-orange);
font-family: var(--cel-font-title); font-size: 1.9845em; font-weight: bold; color: var(--cel-orange);
text-align: center; background: transparent; border: none; width: 40px;
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
.cel-section-header() {
font-family: var(--cel-font-title);
font-size: 0.78em;
font-size: 0.86em;
text-transform: uppercase;
letter-spacing: 0.1em;
// Gold instead of vivid green — Art Déco elegance
+8 -8
View File
@@ -19,7 +19,7 @@
.npc-type-badge {
font-family: var(--cel-font-title);
font-size: 0.8em;
font-size: 0.882em;
letter-spacing: 0.05em;
text-transform: uppercase;
border-radius: 3px;
@@ -65,7 +65,7 @@
.domain-label-primary {
font-family: var(--cel-font-title);
font-weight: bold;
font-size: 1.1em;
font-size: 1.2128em;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--cel-orange);
@@ -88,7 +88,7 @@
input.domain-value-input {
width: 40px;
.cel-input-std();
font-size: 1.2em;
font-size: 1.323em;
text-align: center;
font-family: var(--cel-font-title);
}
@@ -116,7 +116,7 @@
.domain-value {
font-family: var(--cel-font-title);
font-size: 1.4em;
font-size: 1.5435em;
font-weight: bold;
color: var(--cel-orange);
min-width: 20px;
@@ -151,7 +151,7 @@
padding: 5px 10px;
font-family: var(--cel-font-title);
font-weight: bold;
font-size: 0.9em;
font-size: 0.9923em;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid rgba(196,154,26,0.4);
@@ -197,7 +197,7 @@
color: var(--cel-orange);
font-family: var(--cel-font-title);
font-weight: bold;
font-size: 0.9em;
font-size: 0.9923em;
text-transform: uppercase;
letter-spacing: 0.06em;
border-radius: 4px 4px 0 0;
@@ -222,7 +222,7 @@
.faction-name {
font-family: var(--cel-font-title);
color: var(--cel-orange);
font-size: 0.95em;
font-size: 1.0474em;
}
.faction-none {
@@ -269,7 +269,7 @@
font-family: var(--cel-font-title);
font-weight: bold;
text-transform: uppercase;
font-size: 1.1em;
font-size: 1.2128em;
letter-spacing: 0.04em;
display: flex;
align-items: center;
+213 -128
View File
@@ -30,7 +30,7 @@
.roll-actor {
font-family: var(--cel-font-title, "CopaseticNF", serif);
color: var(--cel-orange-light, #ddb84a);
font-size: 0.78em;
font-size: 0.9041em;
letter-spacing: 0.07em;
text-transform: uppercase;
opacity: 0.9;
@@ -38,7 +38,7 @@
.roll-skill-line {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.25em;
font-size: 1.4443em;
color: var(--cel-cream, #f0e8d4);
margin-top: 2px;
@@ -58,24 +58,24 @@
justify-content: center;
flex-wrap: wrap;
gap: 4px;
font-size: 0.82em;
font-size: 0.86em;
color: var(--cel-cream, #f0e8d4);
.dval, .nb-dice {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.7em;
font-size: 1.9625em;
color: var(--cel-orange, #e07b00);
font-weight: bold;
line-height: 1;
}
.dlabel { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.dlabel { font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.dminus { color: #f0a0a0; font-weight: bold; }
.deq { opacity: 0.55; }
.ddice { color: var(--cel-orange, #e07b00); }
}
.wound-info {
font-size: 0.73em;
font-size: 0.77em;
color: #f0a0a0;
margin-top: 3px;
}
@@ -117,17 +117,17 @@
display: flex;
align-items: center;
justify-content: center;
font-size: 0.65em;
font-size: 0.68em;
color: white;
}
}
}
.moon-icon { font-size: 1.2em; flex-shrink: 0; }
.moon-icon { font-size: 1.26em; flex-shrink: 0; }
.moon-text {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.88em;
font-size: 1.0143em;
color: var(--cel-green, #0c4c0c);
}
}
@@ -152,7 +152,7 @@
label {
flex: 0 0 110px;
font-size: 0.78em;
font-size: 0.82em;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--cel-border, #7a5c20);
@@ -165,8 +165,8 @@
padding: 3px 7px;
background: rgba(255,255,255,0.85);
font-family: inherit;
font-size: 0.85em;
color: #333;
font-size: 0.89em;
color: var(--cel-text, #2f2413);
&:focus { outline: 1px solid var(--cel-orange, #e07b00); }
}
@@ -233,7 +233,7 @@
display: flex;
align-items: center;
justify-content: center;
font-size: 0.65em;
font-size: 0.68em;
color: white;
}
}
@@ -242,7 +242,7 @@
}
.destin-icon {
font-size: 1.1em;
font-size: 1.16em;
color: var(--cel-orange, #e07b00);
flex-shrink: 0;
}
@@ -252,20 +252,20 @@
.destin-main {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.9em;
font-size: 1.0474em;
color: var(--cel-green, #0c4c0c);
display: block;
}
.destin-bonus {
font-size: 0.72em;
font-size: 0.76em;
color: var(--cel-border, #7a5c20);
font-style: italic;
}
}
.destin-count {
font-size: 0.75em;
font-size: 0.79em;
font-weight: bold;
color: var(--cel-green, #0c4c0c);
background: rgba(196,154,26,0.2);
@@ -275,7 +275,7 @@
white-space: nowrap;
&.no-destin {
color: #888;
color: rgba(0,0,0,0.45);
background: rgba(0,0,0,0.05);
border-color: rgba(0,0,0,0.1);
}
@@ -283,7 +283,7 @@
}
}
.form-visibility label { color: #888; }
.form-visibility label { color: rgba(0,0,0,0.45); }
.form-faction-aspect select {
font-weight: bold;
@@ -326,7 +326,7 @@
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75em;
font-size: 0.79em;
color: white;
}
}
@@ -338,19 +338,19 @@
flex: 1;
.puiser-main {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.9em;
font-size: 1.0474em;
color: var(--cel-accent, #6b1e28);
display: block;
}
.puiser-sub {
font-size: 0.7em;
color: #888;
font-size: 0.73em;
color: rgba(0,0,0,0.45);
font-style: italic;
}
}
.puiser-cost {
font-size: 0.8em;
font-size: 0.84em;
font-weight: bold;
color: var(--cel-accent, #6b1e28);
background: rgba(107,30,40,0.1);
@@ -398,14 +398,14 @@
display: flex;
align-items: center;
justify-content: center;
font-size: 0.6em;
font-size: 0.63em;
color: white;
}
}
}
.fortune-icon {
font-size: 1.1em;
font-size: 1.16em;
color: var(--cel-green, #0c4c0c);
flex-shrink: 0;
}
@@ -414,19 +414,19 @@
flex: 1;
.fortune-main {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.9em;
font-size: 1.0474em;
color: var(--cel-green, #0c4c0c);
display: block;
}
.fortune-bonus {
font-size: 0.72em;
font-size: 0.76em;
color: var(--cel-border, #7a5c20);
font-style: italic;
}
}
.fortune-badge {
font-size: 0.8em;
font-size: 0.84em;
font-weight: bold;
color: var(--cel-green, #0c4c0c);
background: rgba(12,76,12,0.12);
@@ -450,7 +450,7 @@
gap: 10px;
.preview-label {
font-size: 0.7em;
font-size: 0.73em;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--cel-border, #7a5c20);
@@ -459,7 +459,7 @@
.preview-formula {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.6em;
font-size: 1.8522em;
color: var(--cel-orange, #e07b00);
font-weight: bold;
letter-spacing: 0.04em;
@@ -469,6 +469,90 @@
// ─── Chat message ─────────────────────────────────────────────────────────────
// ── Contreparties dé de lune (partagé : chat-roll + moon-standalone-card) ──
.celestopol.chat-roll,
.celestopol-roll.moon-standalone-card {
.moon-effect-actions {
padding: 6px 10px 8px;
border-top: 2px solid rgba(122,92,32,0.18);
background: rgba(12,76,12,0.04);
border-radius: 0 0 3px 3px;
.moon-effect-label {
display: block;
font-family: var(--cel-font-title);
font-size: 0.8379em;
font-weight: bold;
color: var(--cel-border, #7a5c20);
text-transform: uppercase;
letter-spacing: 0.07em;
margin-bottom: 6px;
}
.moon-effect-buttons {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
}
.moon-effect-btn {
font-family: var(--cel-font-title);
font-size: 0.9041em;
font-weight: bold;
padding: 4px 11px;
border-radius: 4px;
cursor: pointer;
transition: filter 0.12s, opacity 0.12s;
line-height: 1.4;
letter-spacing: 0.02em;
// Positif par défaut : vert jade / or
background: var(--cel-green, #1b3828);
color: var(--cel-orange-light, #ddb84a);
border: 1px solid rgba(196,154,26,0.35);
&:hover:not(:disabled) { filter: brightness(1.18); }
&:disabled { opacity: 0.55; cursor: not-allowed; }
&.moon-effect-negative {
background: var(--cel-accent, #6b1e28);
color: var(--cel-cream, #f0e8d4);
border-color: rgba(139,30,46,0.4);
&:hover:not(:disabled) { filter: brightness(1.12); }
}
}
.moon-effect-narrative {
font-size: 0.76em;
color: var(--cel-border, #7a5c20);
font-style: italic;
align-self: center;
padding-left: 2px;
}
.moon-effect-applied-status {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 6px;
font-size: 0.882em;
font-family: var(--cel-font-title);
font-style: italic;
padding: 3px 9px;
border-radius: 3px;
color: var(--cel-green, #1b3828);
background: rgba(12,76,12,0.09);
border: 1px solid rgba(12,76,12,0.22);
&.is-negative {
color: var(--cel-accent, #6b1e28);
background: rgba(107,30,40,0.09);
border-color: rgba(107,30,40,0.25);
}
}
}
}
.celestopol.chat-roll {
border: 1px solid var(--cel-border, #7a5c20);
border-radius: 3px;
@@ -506,16 +590,16 @@
color: var(--cel-orange, #e07b00);
font-weight: bold;
letter-spacing: 0.05em;
font-size: 0.92em;
font-size: 1.0694em;
}
.skill-info {
color: var(--cel-cream, #f0e8d4);
font-size: 0.77em;
font-size: 0.81em;
font-style: italic;
.stat-lbl { color: var(--cel-orange-light, #ddb84a); }
.sep { margin: 0 2px; opacity: 0.5; }
}
.wound-info { font-size: 0.7em; color: #f0a0a0; }
.wound-info { font-size: 0.73em; color: #f0a0a0; }
}
.moon-badge { display: none; }
@@ -540,10 +624,10 @@
border-radius: 4px;
background: white;
font-weight: bold;
font-size: 1.05em;
font-size: 1.2128em;
font-family: var(--cel-font-title, "CopaseticNF", serif);
box-shadow: 1px 1px 2px rgba(0,0,0,0.12);
color: #222;
color: var(--cel-text, #2f2413);
&.max {
background: var(--cel-green, #0c4c0c);
@@ -569,15 +653,15 @@
padding: 5px 10px 4px;
background: var(--cel-cream, #f0e8d4);
border-top: 1px solid rgba(122,92,32,0.2);
font-size: 0.83em;
font-size: 0.87em;
color: #555;
.fl-label { color: #999; font-size: 0.88em; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 2px; }
.fl-label { color: rgba(0,0,0,0.4); font-size: 0.92em; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 2px; }
.fl-ndice { color: var(--cel-green, #0c4c0c); font-weight: bold; }
.fl-sum { font-weight: bold; color: #333; }
.fl-sum { font-weight: bold; color: var(--cel-text, #2f2413); }
.fl-total {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.5em;
font-size: 1.742em;
color: var(--cel-orange, #e07b00);
font-weight: bold;
line-height: 1;
@@ -588,8 +672,8 @@
.fl-asp { color: var(--cel-orange, #e07b00); font-weight: bold; }
.fl-faction { color: var(--cel-green, #0c4c0c); font-weight: bold; }
.fl-sep { font-weight: bold; color: var(--cel-border, #7a5c20); margin: 0 2px; }
.fl-eq { color: #aaa; }
.fl-op { color: #aaa; }
.fl-eq { color: rgba(0,0,0,0.35); }
.fl-op { color: rgba(0,0,0,0.35); }
}
// ── Seuil et marge ──
@@ -600,22 +684,22 @@
padding: 5px 12px 6px;
background: var(--cel-cream, #f0e8d4);
border-top: 1px solid rgba(122,92,32,0.2);
font-size: 0.82em;
font-size: 0.86em;
.vs-wrap {
display: flex;
align-items: baseline;
gap: 5px;
}
.vs-label { color: #aaa; text-transform: uppercase; font-size: 0.8em; }
.vs-label { color: rgba(0,0,0,0.35); text-transform: uppercase; font-size: 0.84em; }
.diff-label{ font-style: italic; color: var(--cel-green, #0c4c0c); }
.diff-val { color: #888; }
.diff-val { color: rgba(0,0,0,0.45); }
.margin-badge {
padding: 2px 10px;
border-radius: 12px;
font-weight: bold;
font-size: 1.05em;
font-size: 1.2128em;
font-family: var(--cel-font-title, "CopaseticNF", serif);
letter-spacing: 0.05em;
@@ -635,7 +719,7 @@
// ── Destin utilisé ──
.used-info {
text-align: center;
font-size: 0.77em;
font-size: 0.81em;
color: var(--cel-orange, #e07b00);
padding: 3px 8px;
background: rgba(196,154,26,0.1);
@@ -673,7 +757,7 @@
}
.damage-header {
font-size: 0.72em;
font-size: 0.76em;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--cel-border, #7a5c20);
@@ -690,13 +774,13 @@
.damage-value {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.9em;
font-size: 2.194em;
line-height: 1;
color: var(--cel-orange, #e07b00);
}
.damage-unit {
font-size: 0.82em;
font-size: 0.86em;
color: var(--cel-green, #0c4c0c);
font-weight: bold;
}
@@ -704,7 +788,7 @@
.damage-breakdown,
.damage-note {
margin-top: 6px;
font-size: 0.76em;
font-size: 0.8em;
line-height: 1.4;
color: #5c4630;
}
@@ -730,7 +814,7 @@
background: var(--cel-green, #0c4c0c);
color: var(--cel-orange-light, #ddb84a);
padding: 4px 10px;
font-size: 0.78em;
font-size: 0.82em;
font-weight: bold;
cursor: pointer;
@@ -745,7 +829,7 @@
margin-top: 8px;
padding: 6px 8px;
border-radius: 4px;
font-size: 0.76em;
font-size: 0.8em;
line-height: 1.4;
&.is-applied {
@@ -774,7 +858,7 @@
background: rgba(12,76,12,0.1);
color: var(--cel-green, #0c4c0c);
font-weight: bold;
font-size: 0.9em;
font-size: 0.95em;
}
// ── Résultat dé de lune ──
@@ -787,7 +871,7 @@
font-family: var(--cel-font-body, serif);
.moon-die-face {
font-size: 1.8em;
font-size: 1.89em;
line-height: 1;
flex-shrink: 0;
}
@@ -800,7 +884,7 @@
}
.moon-die-phase {
font-size: 0.72em;
font-size: 0.76em;
opacity: 0.75;
text-transform: uppercase;
letter-spacing: 0.05em;
@@ -808,14 +892,14 @@
.moon-die-type {
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1em;
font-size: 1.1025em;
font-weight: bold;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.moon-die-desc {
font-size: 0.72em;
font-size: 0.76em;
font-style: italic;
opacity: 0.85;
line-height: 1.3;
@@ -852,13 +936,13 @@
border-top: 2px solid rgba(0,0,0,0.1);
.result-icon {
font-size: 0.85em;
font-size: 0.89em;
opacity: 0.85;
letter-spacing: 0.15em;
}
.result-label { font-size: 1.2em; line-height: 1.2; }
.result-label { font-size: 1.26em; line-height: 1.2; }
.result-desc {
font-size: 0.65em;
font-size: 0.68em;
letter-spacing: 0.08em;
margin-top: 2px;
opacity: 0.8;
@@ -919,22 +1003,22 @@
.welcome-mark {
color: var(--cel-orange, #e07b00);
font-size: 1.05em;
font-size: 1.1em;
line-height: 1;
}
.welcome-title {
font-family: var(--cel-font-title, "CopaseticNF", serif);
color: var(--cel-orange, #e07b00);
font-size: 0.98em;
font-size: 1.1356em;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.welcome-body {
padding: 9px 11px 10px;
color: #3f3623;
font-size: 0.84em;
color: var(--cel-text, #2f2413);
font-size: 0.88em;
line-height: 1.45;
p {
@@ -954,7 +1038,7 @@
display: block;
margin-bottom: 2px;
color: var(--cel-border, #7a5c20);
font-size: 0.72em;
font-size: 0.76em;
font-weight: bold;
letter-spacing: 0.05em;
text-transform: uppercase;
@@ -997,27 +1081,27 @@
.portrait-message-mark {
color: var(--cel-orange, #e07b00);
font-size: 1.05em;
font-size: 1.1em;
line-height: 1;
}
.portrait-message-title {
font-family: var(--cel-font-title, "CopaseticNF", serif);
color: var(--cel-orange, #e07b00);
font-size: 0.98em;
font-size: 1.1356em;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.portrait-message-body {
padding: 9px 11px 10px;
color: #3f3623;
color: var(--cel-text, #2f2413);
}
.portrait-message-name {
margin-bottom: 8px;
color: var(--cel-green, #0c4c0c);
font-size: 0.84em;
font-size: 0.88em;
font-weight: bold;
letter-spacing: 0.04em;
text-transform: uppercase;
@@ -1100,7 +1184,7 @@
&:hover {
border-color: var(--cel-orange, #e07b00);
background: linear-gradient(180deg, rgba(224,123,0,0.18), rgba(224,123,0,0.06));
color: #7a3e00;
color: var(--cel-border, #7a5c20);
}
}
}
@@ -1124,7 +1208,7 @@
font-family: var(--cel-font-title, "CopaseticNF", serif);
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 0.88em;
font-size: 1.0143em;
}
.faction-aspect-points {
@@ -1132,7 +1216,7 @@
flex-wrap: wrap;
gap: 5px;
margin-bottom: 4px;
font-size: 0.8em;
font-size: 0.84em;
}
.faction-aspect-point-card {
@@ -1146,7 +1230,7 @@
border: 1px solid rgba(122,92,32,0.18);
strong {
font-size: 0.72em;
font-size: 0.76em;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--cel-border, #7a5c20);
@@ -1155,14 +1239,14 @@
em {
font-style: normal;
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 1.05em;
font-size: 1.2128em;
color: var(--cel-orange, #e07b00);
line-height: 1;
}
}
.faction-aspect-source-line {
font-size: 0.78em;
font-size: 0.82em;
color: var(--cel-border, #7a5c20);
}
@@ -1171,8 +1255,8 @@
border-left: 3px solid #b84a2e;
border-radius: 4px;
background: rgba(184, 74, 46, 0.08);
color: #8b3e2b;
font-size: 0.8em;
color: var(--cel-accent, #6b1e28);
font-size: 0.84em;
}
.faction-aspect-tag-list,
@@ -1190,7 +1274,7 @@
background: rgba(12, 76, 12, 0.08);
border: 1px solid rgba(12, 76, 12, 0.18);
color: var(--cel-green, #0c4c0c);
font-size: 0.72em;
font-size: 0.76em;
font-weight: bold;
}
@@ -1204,7 +1288,7 @@
label {
display: block;
margin-bottom: 2px;
font-size: 0.68em;
font-size: 0.71em;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--cel-border, #7a5c20);
@@ -1219,13 +1303,13 @@
border-radius: 3px;
padding: 2px 6px;
background: rgba(255,255,255,0.9);
font-size: 0.78em;
color: #2f2413;
font-size: 0.82em;
color: var(--cel-text, #2f2413);
box-sizing: border-box;
}
select option {
color: #2f2413;
color: var(--cel-text, #2f2413);
background: #fffaf0;
}
}
@@ -1251,7 +1335,7 @@
background: rgba(224,123,0,0.12);
color: var(--cel-orange, #e07b00);
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.72em;
font-size: 0.8379em;
line-height: 1;
cursor: help;
vertical-align: middle;
@@ -1273,7 +1357,7 @@
color: var(--cel-orange, #e07b00);
font-family: var(--cel-font-title, "CopaseticNF", serif);
margin-bottom: 4px;
font-size: 0.82em;
font-size: 0.9482em;
}
}
@@ -1281,7 +1365,7 @@
display: flex;
align-items: center;
gap: 4px;
font-size: 0.74em;
font-size: 0.78em;
}
.faction-aspect-active-list {
@@ -1298,8 +1382,8 @@
padding: 3px 6px;
border-radius: 4px;
background: rgba(255,255,255,0.7);
color: #2f2413;
font-size: 0.76em;
color: var(--cel-text, #2f2413);
font-size: 0.8em;
&.is-relevant {
border-left: 3px solid var(--cel-green, #0c4c0c);
@@ -1307,20 +1391,20 @@
}
.faction-aspect-active-name {
color: #2f2413;
color: var(--cel-text, #2f2413);
font-weight: 600;
}
.faction-aspect-active-value {
color: var(--cel-orange, #e07b00);
font-family: var(--cel-font-title, "CopaseticNF", serif);
font-size: 0.92em;
font-size: 1.0694em;
}
.faction-aspect-empty {
color: #666;
color: rgba(0,0,0,0.5);
font-style: italic;
font-size: 0.74em;
font-size: 0.78em;
}
.faction-aspect-remove-block {
@@ -1349,7 +1433,7 @@
border-left: 3px solid #c0392b;
border-radius: 4px;
color: #f0c0c0;
font-size: 0.85em;
font-size: 0.89em;
.wound-icon { font-size: 1em; }
}
}
@@ -1358,7 +1442,7 @@
.celestopol.chat-roll {
.roll-result-banner.tie {
background: #3a2e1a;
color: #d4b870;
color: var(--cel-orange-light, #ddb84a);
border-top: 2px solid #7a6230;
border-bottom: 2px solid #7a6230;
text-shadow: 0 1px 2px rgba(0,0,0,0.6);
@@ -1369,12 +1453,12 @@
align-items: center;
gap: 0.3em;
margin-bottom: 1px;
font-size: 0.85em;
font-size: 0.89em;
color: var(--cel-orange, #e07b00);
.weapon-icon-small { font-size: 0.9em; }
.weapon-icon-small { font-size: 0.95em; }
.weapon-degats-small {
font-weight: bold;
color: #f0c060;
color: var(--cel-border, #7a5c20);
}
}
}
@@ -1386,20 +1470,20 @@
align-items: center;
gap: 0.4em;
margin-bottom: 2px;
font-size: 0.9em;
font-size: 0.95em;
color: var(--cel-orange, #e07b00);
.weapon-icon { font-size: 1em; }
.weapon-degats {
font-weight: bold;
color: #f0c060;
font-size: 0.85em;
color: var(--cel-border, #7a5c20);
font-size: 0.89em;
}
}
.form-corps-pnj {
.corps-pnj-input {
width: 70px;
font-size: 1.1em;
font-size: 1.2789em;
font-weight: bold;
text-align: center;
font-family: var(--cel-font-title, "CopaseticNF", serif);
@@ -1420,7 +1504,7 @@
label {
color: var(--cel-orange, #e07b00);
font-weight: bold;
font-size: 0.85em;
font-size: 0.89em;
display: flex;
align-items: center;
gap: 5px;
@@ -1435,7 +1519,7 @@
border: 1px solid rgba(196, 154, 26, 0.5);
border-radius: 3px;
padding: 2px 4px;
font-size: 0.85em;
font-size: 0.89em;
max-width: 200px;
}
}
@@ -1451,7 +1535,7 @@
align-items: center;
gap: 6px;
color: var(--cel-orange, #e07b00);
font-size: 0.88em;
font-size: 0.92em;
font-style: italic;
i { opacity: 0.8; }
@@ -1465,14 +1549,14 @@
padding: 4px 8px;
label {
color: #e08060;
font-size: 0.85em;
color: var(--cel-accent, #6b1e28);
font-size: 0.89em;
font-weight: bold;
display: flex;
align-items: center;
gap: 5px;
i { color: #e08060; }
i { color: var(--cel-accent, #6b1e28); }
}
select {
@@ -1482,13 +1566,13 @@
border: 1px solid rgba(200, 100, 60, 0.4);
border-radius: 3px;
padding: 2px 4px;
font-size: 0.85em;
font-size: 0.89em;
}
}
.form-threshold-fixed {
.threshold-value {
font-size: 1.2em;
font-size: 1.3892em;
font-weight: bold;
font-family: var(--cel-font-title, "CopaseticNF", serif);
color: var(--cel-orange, #e07b00);
@@ -1514,7 +1598,7 @@
input[type="checkbox"] { flex-shrink: 0; }
.opposition-icon {
font-size: 1.2em;
font-size: 1.26em;
color: var(--cel-orange, #e07b00);
}
@@ -1525,14 +1609,14 @@
.opposition-main {
font-weight: bold;
font-size: 0.9em;
font-size: 1.0474em;
font-family: var(--cel-font-title, "CopaseticNF", serif);
color: var(--cel-orange, #e07b00);
}
.opposition-sub {
font-size: 0.75em;
opacity: 0.7;
font-size: 0.79em;
color: #8a7060;
font-style: italic;
}
}
@@ -1567,7 +1651,7 @@
.moon-standalone-title {
font-family: var(--cel-font-title);
font-size: 1em;
font-size: 1.1025em;
font-weight: bold;
color: var(--cel-green-dark, #0c4c0c);
text-transform: uppercase;
@@ -1575,7 +1659,7 @@
}
.moon-standalone-actor {
font-size: 0.85em;
font-size: 0.89em;
color: var(--cel-text, #333);
font-style: italic;
}
@@ -1604,21 +1688,21 @@
.moon-standalone-phase {
font-family: var(--cel-font-title);
font-size: 0.95em;
font-size: 1.1025em;
font-weight: bold;
color: var(--cel-text, #333);
}
.moon-standalone-value {
font-size: 0.8em;
font-size: 0.84em;
color: var(--cel-text-light, #666);
font-style: italic;
}
&.moon-triomphe { border-left-color: var(--cel-green, #0c4c0c); }
&.moon-brio { border-left-color: var(--cel-border, #7a5c20); }
&.moon-contrecoup { border-left-color: #c07800; }
&.moon-catastrophe{ border-left-color: #8b1e2e; }
&.moon-contrecoup { border-left-color: var(--cel-orange, #c49a1a); }
&.moon-catastrophe{ border-left-color: var(--cel-accent, #6b1e28); }
}
.moon-interpret-row {
@@ -1627,15 +1711,15 @@
gap: 8px;
.moon-interpret-label {
font-size: 0.72em;
font-size: 0.76em;
text-transform: uppercase;
letter-spacing: 0.07em;
color: #888;
color: rgba(0,0,0,0.45);
white-space: nowrap;
}
.moon-fortune {
font-size: 0.85em;
font-size: 0.89em;
font-weight: bold;
border-radius: 3px;
padding: 1px 8px;
@@ -1648,7 +1732,7 @@
&.mauvaise-fortune {
background: rgba(139, 30, 46, 0.1);
color: #8b1e2e;
color: var(--cel-accent, #6b1e28);
border: 1px solid rgba(139,30,46,0.3);
}
}
@@ -1659,6 +1743,7 @@
margin-top: 2px;
padding: 6px 8px;
}
}
// ── Message d'initiative ──────────────────────────────────────────────────────
@@ -1698,11 +1783,11 @@
color: var(--cel-orange, #e07b00);
font-weight: bold;
letter-spacing: 0.05em;
font-size: 0.92em;
font-size: 1.0694em;
}
.skill-info {
color: var(--cel-cream, #f0e8d4);
font-size: 0.77em;
font-size: 0.81em;
font-style: italic;
}
}
@@ -1730,19 +1815,19 @@
}
.initiative-icon {
font-size: 1.1em;
font-size: 1.16em;
opacity: 0.9;
font-style: normal;
}
.initiative-score {
font-size: 2.4em;
font-size: 2.52em;
font-weight: bold;
line-height: 1;
}
.initiative-detail {
font-size: 0.65em;
font-size: 0.68em;
opacity: 0.75;
font-style: italic;
font-family: var(--cel-font-body, serif);
+24 -24
View File
@@ -16,7 +16,7 @@
{{#each (lookup ../skills statId) as |skill skillId|}}
{{#if @root.isEditMode}}
<div class="skill-row edit-mode" data-stat-id="{{statId}}" data-skill-id="{{skillId}}">
<span class="skill-name">{{localize skill.label}}</span>
<span class="skill-name" data-tooltip="{{localize skill.tooltip}}">{{localize skill.label}}</span>
<div class="skill-checkboxes-container">
<div class="skill-checkboxes">
{{#each (range 8) as |lvl|}}
@@ -31,7 +31,7 @@
{{else}}
<div class="skill-row rollable" data-stat-id="{{statId}}" data-skill-id="{{skillId}}"
title="{{localize 'CELESTOPOL.Roll.clickToRoll'}}">
<span class="skill-name">{{localize skill.label}}</span>
<span class="skill-name" data-tooltip="{{localize skill.tooltip}}">{{localize skill.label}}</span>
<div class="skill-checkboxes-container">
<div class="skill-checkboxes">
{{#each (range 8) as |lvl|}}
@@ -49,8 +49,29 @@
{{/each}}
</div>
{{!-- Items : Anomalie (unique), Aspects, Attributs --}}
{{!-- Items : Aspects, Anomalie --}}
<div class="items-section">
{{!-- Aspects --}}
<div class="items-group">
<div class="items-header">
<span>{{localize "CELESTOPOL.Item.aspects"}}</span>
{{#if isEditMode}}
<a data-action="createAspect" title="{{localize 'CELESTOPOL.Item.newAspect'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</div>
{{#each aspects as |item|}}
<div class="item-row" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
<img src="{{item.img}}" class="item-icon" alt="{{item.name}}">
<span class="item-name">{{item.name}}</span>
<span class="item-value">{{item.system.valeur}}</span>
<div class="item-controls">
<a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
{{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
</div>
</div>
{{/each}}
</div>
{{!-- Anomalie : bloc proéminent unique --}}
<div class="anomaly-block">
<div class="anomaly-block-header">
@@ -124,26 +145,5 @@
{{/if}}
</div>
{{!-- Aspects --}}
<div class="items-group">
<div class="items-header">
<span>{{localize "CELESTOPOL.Item.aspects"}}</span>
{{#if isEditMode}}
<a data-action="createAspect" title="{{localize 'CELESTOPOL.Item.newAspect'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</div>
{{#each aspects as |item|}}
<div class="item-row" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
<img src="{{item.img}}" class="item-icon" alt="{{item.name}}">
<span class="item-name">{{item.name}}</span>
<span class="item-value">{{item.system.valeur}}</span>
<div class="item-controls">
<a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
{{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
</div>
</div>
{{/each}}
</div>
</div>
</div>
+25 -4
View File
@@ -16,8 +16,8 @@
</span>
{{/if}}
<span class="skill-info">
{{#if statLabel}}<span class="stat-lbl">{{statLabel}}</span><span class="sep"> </span>{{/if}}
<span class="skill-lbl">{{skillLabel}}</span>
{{#if statLabel}}<span class="stat-lbl">{{localize statLabel}}</span><span class="sep"> </span>{{/if}}
<span class="skill-lbl">{{localize skillLabel}}</span>
</span>
{{#if woundLabel}}<span class="wound-info">⚠ {{woundLabel}}</span>{{/if}}
</div>
@@ -122,7 +122,7 @@
</div>
{{/if}}
{{!-- Résultat du Dé de la Lune (narratif) --}}
{{!-- Résultat du Dé de la Lune (narratif + choix de contrepartie) --}}
{{#if hasMoonDie}}
<div class="moon-die-result {{moonResultClass}}">
<span class="moon-die-face">{{moonFaceSymbol}}</span>
@@ -132,6 +132,27 @@
<span class="moon-die-desc">{{moonResultDesc}}</span>
</div>
</div>
{{#if moonActorIsCharacter}}
<div class="moon-effect-actions" data-moon-actor-id="{{moonActorId}}" data-moon-actor-uuid="{{moonActorUuid}}">
<span class="moon-effect-label">{{localize "CELESTOPOL.Moon.applyChoose"}}</span>
<div class="moon-effect-buttons">
{{#if (eq moonResultTypeId "triomphe")}}
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="regain-anomaly">{{localize "CELESTOPOL.Moon.effectRegainAnomaly"}}</button>
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="lose-spleen">{{localize "CELESTOPOL.Moon.effectLoseSpleen"}}</button>
{{else if (eq moonResultTypeId "brio")}}
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="gain-destin">{{localize "CELESTOPOL.Moon.effectGainDestin"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{else if (eq moonResultTypeId "contrecoup")}}
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="lose-destin">{{localize "CELESTOPOL.Moon.effectLoseDestin"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{else if (eq moonResultTypeId "catastrophe")}}
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="lose-anomaly">{{localize "CELESTOPOL.Moon.effectLoseAnomaly"}}</button>
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="gain-spleen">{{localize "CELESTOPOL.Moon.effectGainSpleen"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{/if}}
</div>
</div>
{{/if}}
{{/if}}
{{!-- Bandeau résultat --}}
@@ -162,7 +183,7 @@
<span class="result-label">{{localize "CELESTOPOL.Roll.failure"}}</span>
{{#if isCombat}}
{{#if (eq weaponType "melee")}}
<span class="result-desc">{{localize "CELESTOPOL.Combat.failureHit"}}</span>
{{#unless isNpcAttack}}<span class="result-desc">{{localize "CELESTOPOL.Combat.failureHit"}}</span>{{/unless}}
{{else if isRangedDefense}}
<span class="result-desc">{{localize "CELESTOPOL.Combat.rangedDefenseFailure"}}</span>
{{else}}
+23
View File
@@ -36,4 +36,27 @@
</div>
</div>
{{!-- Choix de la contrepartie --}}
{{#if moonActorIsCharacter}}
<div class="moon-effect-actions" data-moon-actor-id="{{moonActorId}}" data-moon-actor-uuid="{{moonActorUuid}}">
<span class="moon-effect-label">{{localize "CELESTOPOL.Moon.applyChoose"}}</span>
<div class="moon-effect-buttons">
{{#if (eq moonResultTypeId "triomphe")}}
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="regain-anomaly">{{localize "CELESTOPOL.Moon.effectRegainAnomaly"}}</button>
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="lose-spleen">{{localize "CELESTOPOL.Moon.effectLoseSpleen"}}</button>
{{else if (eq moonResultTypeId "brio")}}
<button type="button" class="moon-effect-btn" data-action="apply-moon-effect" data-effect="gain-destin">{{localize "CELESTOPOL.Moon.effectGainDestin"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{else if (eq moonResultTypeId "contrecoup")}}
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="lose-destin">{{localize "CELESTOPOL.Moon.effectLoseDestin"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{else if (eq moonResultTypeId "catastrophe")}}
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="lose-anomaly">{{localize "CELESTOPOL.Moon.effectLoseAnomaly"}}</button>
<button type="button" class="moon-effect-btn moon-effect-negative" data-action="apply-moon-effect" data-effect="gain-spleen">{{localize "CELESTOPOL.Moon.effectGainSpleen"}}</button>
<span class="moon-effect-narrative">{{localize "CELESTOPOL.Moon.effectNarrativeOnly"}}</span>
{{/if}}
</div>
</div>
{{/if}}
</div>
+6 -1
View File
@@ -9,7 +9,7 @@
{{/if}}
</div>
{{#each weapons as |item|}}
<div class="item-row weapon" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
<div class="item-row weapon {{#if item.system.equipped}}is-equipped{{/if}}" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
<img src="{{item.img}}" class="item-icon">
<span class="item-name">{{item.name}}</span>
<span class="item-tag type">{{#if (eq item.system.type "melee")}}{{localize "CELESTOPOL.Weapon.typeMelee"}}{{else}}{{localize "CELESTOPOL.Weapon.typeDistance"}}{{/if}}</span>
@@ -18,6 +18,11 @@
{{#unless ../isEditMode}}
<a data-action="attack" data-item-id="{{item.id}}" title="{{localize 'CELESTOPOL.Combat.attack'}}"><i class="fas fa-khanda"></i></a>
{{/unless}}
<a data-action="toggleWeapon" data-item-uuid="{{item.uuid}}"
title="{{#if item.system.equipped}}{{localize 'CELESTOPOL.Weapon.unequip'}}{{else}}{{localize 'CELESTOPOL.Weapon.equip'}}{{/if}}"
class="equip-toggle {{#if item.system.equipped}}equipped{{/if}}">
<i class="fas fa-khanda"></i>
</a>
<a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
{{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
</div>
+3 -3
View File
@@ -220,9 +220,9 @@
<div class="form-row-line form-visibility">
<label for="visibility">{{localize "CELESTOPOL.Roll.visibility"}}</label>
<select id="visibility" name="visibility">
<option value="publicroll">{{localize "CELESTOPOL.Roll.visibilityPublic"}}</option>
<option value="gmroll">{{localize "CELESTOPOL.Roll.visibilityGM"}}</option>
<option value="selfroll">{{localize "CELESTOPOL.Roll.visibilitySelf"}}</option>
<option value="public">{{localize "CELESTOPOL.Roll.visibilityPublic"}}</option>
<option value="gm">{{localize "CELESTOPOL.Roll.visibilityGM"}}</option>
<option value="self">{{localize "CELESTOPOL.Roll.visibilitySelf"}}</option>
</select>
</div>