Rework des fiches creature/PJ et Tinji/Loksyu
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
/**
|
||||
* Chroniques de l'Étrange — Système FoundryVTT
|
||||
*
|
||||
* Chroniques de l'Étrange est un jeu de rôle édité par Antre-Monde Éditions.
|
||||
* Ce système FoundryVTT est une implémentation indépendante et n'est pas
|
||||
* affilié à Antre-Monde Éditions,
|
||||
* mais a été réalisé avec l'autorisation d'Antre-Monde Éditions.
|
||||
*
|
||||
* @author LeRatierBretonnien
|
||||
* @copyright 2024–2026 LeRatierBretonnien
|
||||
* @license CC BY-NC-SA 4.0 – https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
*/
|
||||
|
||||
export const SYSTEM_ID = "fvtt-chroniques-de-l-etrange"
|
||||
|
||||
export const ACTOR_TYPES = {
|
||||
@@ -91,6 +104,49 @@ export const MAGICS = {
|
||||
},
|
||||
}
|
||||
|
||||
/** Map aspect name → i18n label key */
|
||||
export const ASPECT_LABELS = {
|
||||
metal: "CDE.Metal",
|
||||
water: "CDE.Water",
|
||||
earth: "CDE.Earth",
|
||||
fire: "CDE.Fire",
|
||||
wood: "CDE.Wood",
|
||||
}
|
||||
|
||||
/** Map aspect name → image path */
|
||||
export const ASPECT_ICONS = {
|
||||
metal: "systems/fvtt-chroniques-de-l-etrange/images/cde_metal.webp",
|
||||
water: "systems/fvtt-chroniques-de-l-etrange/images/cde_eau.webp",
|
||||
earth: "systems/fvtt-chroniques-de-l-etrange/images/cde_terre.webp",
|
||||
fire: "systems/fvtt-chroniques-de-l-etrange/images/cde_feu.webp",
|
||||
wood: "systems/fvtt-chroniques-de-l-etrange/images/cde_bois.webp",
|
||||
}
|
||||
|
||||
/** Map aspect name → die face pair [yin, yang] (face=10 stored as 0) */
|
||||
export const ASPECT_FACES = {
|
||||
metal: [3, 8],
|
||||
water: [1, 6],
|
||||
earth: [0, 5], // 0 = face "10"
|
||||
fire: [2, 7],
|
||||
wood: [4, 9],
|
||||
}
|
||||
|
||||
/** Ordered aspect names by index (metal=0, water=1, earth=2, fire=3, wood=4) */
|
||||
export const ASPECT_NAMES = ["metal", "water", "earth", "fire", "wood"]
|
||||
|
||||
/**
|
||||
* Wu Xing generating/overcoming cycle.
|
||||
* For each active aspect, the five result categories in order:
|
||||
* [successes, auspicious, noxious, loksyu, tinji]
|
||||
*/
|
||||
export const WU_XING_CYCLE = {
|
||||
wood: ["wood", "fire", "water", "earth", "metal"],
|
||||
fire: ["fire", "earth", "wood", "metal", "water"],
|
||||
earth: ["earth", "metal", "fire", "water", "wood"],
|
||||
metal: ["metal", "water", "earth", "wood", "fire"],
|
||||
water: ["water", "wood", "metal", "fire", "earth"],
|
||||
}
|
||||
|
||||
export const TEMPLATE_PARTIALS = [
|
||||
"systems/fvtt-chroniques-de-l-etrange/templates/actor/parts/cde-character-skills.html",
|
||||
"systems/fvtt-chroniques-de-l-etrange/templates/actor/parts/cde-character-magics.html",
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
/**
|
||||
* Chroniques de l'Étrange — Système FoundryVTT
|
||||
*
|
||||
* Chroniques de l'Étrange est un jeu de rôle édité par Antre-Monde Éditions.
|
||||
* Ce système FoundryVTT est une implémentation indépendante et n'est pas
|
||||
* affilié à Antre-Monde Éditions,
|
||||
* mais a été réalisé avec l'autorisation d'Antre-Monde Éditions.
|
||||
*
|
||||
* @author LeRatierBretonnien
|
||||
* @copyright 2024–2026 LeRatierBretonnien
|
||||
* @license CC BY-NC-SA 4.0 – https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
*/
|
||||
|
||||
import { MAGICS, SUBTYPES } from "./constants.js"
|
||||
|
||||
export function preLocalizeConfig() {
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
/**
|
||||
* Chroniques de l'Étrange — Système FoundryVTT
|
||||
*
|
||||
* Chroniques de l'Étrange est un jeu de rôle édité par Antre-Monde Éditions.
|
||||
* Ce système FoundryVTT est une implémentation indépendante et n'est pas
|
||||
* affilié à Antre-Monde Éditions,
|
||||
* mais a été réalisé avec l'autorisation d'Antre-Monde Éditions.
|
||||
*
|
||||
* @author LeRatierBretonnien
|
||||
* @copyright 2024–2026 LeRatierBretonnien
|
||||
* @license CC BY-NC-SA 4.0 – https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
*/
|
||||
|
||||
export function configureRuntime() {
|
||||
CONFIG.Actor.compendiumBanner = "/systems/fvtt-chroniques-de-l-etrange/images/banners/actor-banner.webp"
|
||||
CONFIG.Adventure.compendiumBanner = "/systems/fvtt-chroniques-de-l-etrange/images/banners/adventure-banner.webp"
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* Chroniques de l'Étrange — Système FoundryVTT
|
||||
*
|
||||
* Chroniques de l'Étrange est un jeu de rôle édité par Antre-Monde Éditions.
|
||||
* Ce système FoundryVTT est une implémentation indépendante et n'est pas
|
||||
* affilié à Antre-Monde Éditions,
|
||||
* mais a été réalisé avec l'autorisation d'Antre-Monde Éditions.
|
||||
*
|
||||
* @author LeRatierBretonnien
|
||||
* @copyright 2024–2026 LeRatierBretonnien
|
||||
* @license CC BY-NC-SA 4.0 – https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
*/
|
||||
|
||||
import { SYSTEM_ID } from "./constants.js"
|
||||
|
||||
/**
|
||||
* Register all world/client settings for the system.
|
||||
* Called during the "init" hook before sheets and data-models are set up.
|
||||
*/
|
||||
export function registerSettings() {
|
||||
game.settings.register(SYSTEM_ID, "loksyuData", {
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: Object,
|
||||
default: {
|
||||
wood: { yin: 0, yang: 0 },
|
||||
fire: { yin: 0, yang: 0 },
|
||||
earth: { yin: 0, yang: 0 },
|
||||
metal: { yin: 0, yang: 0 },
|
||||
water: { yin: 0, yang: 0 },
|
||||
},
|
||||
})
|
||||
|
||||
game.settings.register(SYSTEM_ID, "tinjiData", {
|
||||
scope: "world",
|
||||
config: false,
|
||||
type: Number,
|
||||
default: 0,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Run any pending data migrations on the "ready" hook.
|
||||
* Reserved for future schema migrations.
|
||||
*/
|
||||
export async function migrateIfNeeded() {
|
||||
// No migrations required yet.
|
||||
}
|
||||
Reference in New Issue
Block a user