Rework des fiches creature/PJ et Tinji/Loksyu
This commit is contained in:
48
src/config/settings.js
Normal file
48
src/config/settings.js
Normal file
@@ -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