Compendiums : Armes et protections
This commit is contained in:
@@ -47,6 +47,7 @@ export class WastelandActorSheet extends ActorSheet {
|
||||
heritage: duplicate(this.actor.getHeritage() || {}),
|
||||
metier: duplicate(this.actor.getMetier() || {}),
|
||||
combat: this.actor.getCombatValues(),
|
||||
config: duplicate(game.system.wasteland.config),
|
||||
equipements: duplicate(this.actor.getEquipments()),
|
||||
monnaies: duplicate(this.actor.getMonnaies()),
|
||||
description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}),
|
||||
|
11
modules/wasteland-config.js
Normal file
11
modules/wasteland-config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const WASTELAND_CONFIG = {
|
||||
|
||||
cheminpouvoir : {
|
||||
"force": "Chemin des Forces",
|
||||
"forge": "Chemin des Forges",
|
||||
"echo": "Chemin des Échos",
|
||||
"reflet": "Chemin des Reflets",
|
||||
"ame": "Chemin des Âmes",
|
||||
"mort": "Chemin des Morts"
|
||||
}
|
||||
}
|
@@ -59,19 +59,16 @@ export class WastelandItemSheet extends ItemSheet {
|
||||
editable: this.isEditable,
|
||||
cssClass: this.isEditable ? "editable" : "locked",
|
||||
attributs: WastelandUtility.getAttributs(),
|
||||
config: duplicate(game.system.wasteland.config),
|
||||
data: itemData.system,
|
||||
system: itemData.system,
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
mr: (this.object.type == 'specialisation'),
|
||||
isGM: game.user.isGM
|
||||
}
|
||||
|
||||
if ( objectData.type == "don") {
|
||||
formData.sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true})
|
||||
}
|
||||
//this.options.editable = !(this.object.origin == "embeddedItem");
|
||||
console.log("ITEM DATA", formData, this);
|
||||
return formData;
|
||||
}
|
||||
|
@@ -15,6 +15,7 @@ import { WastelandActorSheet } from "./wasteland-actor-sheet.js";
|
||||
import { WastelandUtility } from "./wasteland-utility.js";
|
||||
import { WastelandCombat } from "./wasteland-combat.js";
|
||||
import { WastelandItem } from "./wasteland-item.js";
|
||||
import { WASTELAND_CONFIG } from "./wasteland-config.js";
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Foundry VTT Initialization */
|
||||
@@ -27,7 +28,7 @@ Hooks.once("init", async function () {
|
||||
/* -------------------------------------------- */
|
||||
// preload handlebars templates
|
||||
WastelandUtility.preloadHandlebarsTemplates();
|
||||
|
||||
|
||||
/* -------------------------------------------- */
|
||||
// Set an initiative formula for the system
|
||||
CONFIG.Combat.initiative = {
|
||||
@@ -45,7 +46,9 @@ Hooks.once("init", async function () {
|
||||
CONFIG.Combat.documentClass = WastelandCombat
|
||||
CONFIG.Actor.documentClass = WastelandActor
|
||||
CONFIG.Item.documentClass = WastelandItem
|
||||
game.system.wasteland = { }
|
||||
game.system.wasteland = {
|
||||
config: WASTELAND_CONFIG
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
// Register sheet application classes
|
||||
|
Reference in New Issue
Block a user