standardization pass
This commit is contained in:
@@ -4,11 +4,11 @@ import { TwentyQuestionsDialog } from "./twenty-questions-dialog.js";
|
|||||||
/**
|
/**
|
||||||
* Actor / Character Sheet
|
* Actor / Character Sheet
|
||||||
*/
|
*/
|
||||||
export class ActorSheetL5r5e extends BaseSheetL5r5e {
|
export class CharacterSheetL5r5e extends BaseSheetL5r5e {
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "actor"],
|
classes: ["l5r5e", "sheet", "actor"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "sheets/actor-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "actors/character-sheet.html",
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 800,
|
height: 800,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
@@ -56,7 +56,7 @@ export class ActorSheetL5r5e extends BaseSheetL5r5e {
|
|||||||
*/
|
*/
|
||||||
getXpSpentInThisRank() {
|
getXpSpentInThisRank() {
|
||||||
const currentRank = this.actor.data.data.identity.school_rank || 0;
|
const currentRank = this.actor.data.data.identity.school_rank || 0;
|
||||||
const spent = this.actor.items.reduce((tot, item) => {
|
return this.actor.items.reduce((tot, item) => {
|
||||||
// TODO c'est bien par rang actuel +1 ?
|
// TODO c'est bien par rang actuel +1 ?
|
||||||
if (currentRank + 1 === item.data.data.rank) {
|
if (currentRank + 1 === item.data.data.rank) {
|
||||||
let xp = item.data.data.xp_used || 0;
|
let xp = item.data.data.xp_used || 0;
|
||||||
@@ -69,6 +69,5 @@ export class ActorSheetL5r5e extends BaseSheetL5r5e {
|
|||||||
}
|
}
|
||||||
return tot;
|
return tot;
|
||||||
}, 0);
|
}, 0);
|
||||||
return spent;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@ export class NpcSheetL5r5e extends BaseSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "npc"],
|
classes: ["l5r5e", "sheet", "npc"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "sheets/npc-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "actors/npc-sheet.html",
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 800,
|
height: 800,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { L5R5E } from "../config-l5r5e.js";
|
import { L5R5E } from "../config.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* L5R Twenty Questions form
|
* L5R Twenty Questions form
|
||||||
@@ -24,7 +24,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
|||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
id: "l5r5e-twenty-questions-dialog",
|
id: "l5r5e-twenty-questions-dialog",
|
||||||
classes: ["l5r5e", "twenty-questions-dialog"],
|
classes: ["l5r5e", "twenty-questions-dialog"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "sheets/twenty-questions-dialog.html",
|
template: CONFIG.l5r5e.paths.templates + "actors/twenty-questions-dialog.html",
|
||||||
title: game.i18n.localize("l5r5e.twenty_questions.title"),
|
title: game.i18n.localize("l5r5e.twenty_questions.title"),
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 600,
|
height: 600,
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* Establish each L5r5e dice type here as extensions of DiceTerm.
|
|
||||||
* @extends {DiceTerm}
|
|
||||||
*/
|
|
||||||
|
|
||||||
export { L5rBaseDie } from "./dice/dietype/l5r-base-die.js";
|
|
||||||
export { AbilityDie } from "./dice/dietype/ability-die.js";
|
|
||||||
export { RingDie } from "./dice/dietype/ring-die.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* New extension of the core DicePool class for evaluating rolls with the L5r5e DiceTerms
|
|
||||||
*/
|
|
||||||
export { RollL5r5e } from "./dice/roll.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dice pool utility specializing in the L5r5e special dice
|
|
||||||
*/
|
|
||||||
export { DicePoolL5r5e } from "./dice/pool.js";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Dice Picker Dialog
|
|
||||||
*/
|
|
||||||
export { DicePickerDialog } from "./dice/dice-picker-dialog.js";
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
* L5R Dice picker dialog
|
* L5R Dice picker dialog
|
||||||
* @extends {FormApplication}
|
* @extends {FormApplication}
|
||||||
*/
|
*/
|
||||||
import { L5R5E } from "../config-l5r5e.js";
|
import { L5R5E } from "../config.js";
|
||||||
import { RollL5r5e } from "./roll.js";
|
import { RollL5r5e } from "./roll.js";
|
||||||
|
|
||||||
export class DicePickerDialog extends FormApplication {
|
export class DicePickerDialog extends FormApplication {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { L5R5E } from "../config-l5r5e.js";
|
import { L5R5E } from "../config.js";
|
||||||
import { L5rBaseDie } from "./dietype/l5r-base-die.js";
|
import { L5rBaseDie } from "./dietype/l5r-base-die.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { L5R5E } from "./config-l5r5e.js";
|
import { L5R5E } from "./config.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends the actor to process special things from L5R.
|
* Extends the actor to process special things from L5R.
|
||||||
@@ -8,7 +8,7 @@ export class HelpersL5r5e {
|
|||||||
* Get Rings/Element for List / Select
|
* Get Rings/Element for List / Select
|
||||||
*/
|
*/
|
||||||
static getRingsList() {
|
static getRingsList() {
|
||||||
return L5R5E.stances.map((e) => {
|
return CONFIG.l5r5e.stances.map((e) => {
|
||||||
return {
|
return {
|
||||||
id: e,
|
id: e,
|
||||||
label: game.i18n.localize(`l5r5e.rings.${e}`),
|
label: game.i18n.localize(`l5r5e.rings.${e}`),
|
||||||
@@ -31,7 +31,7 @@ export class HelpersL5r5e {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const skills = {};
|
const skills = {};
|
||||||
Array.from(L5R5E.skills).forEach(([id, cat]) => {
|
Array.from(CONFIG.l5r5e.skills).forEach(([id, cat]) => {
|
||||||
if (!skills[cat]) {
|
if (!skills[cat]) {
|
||||||
skills[cat] = [];
|
skills[cat] = [];
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ export class HelpersL5r5e {
|
|||||||
* Get Techniques for List / Select
|
* Get Techniques for List / Select
|
||||||
*/
|
*/
|
||||||
static getTechniquesList() {
|
static getTechniquesList() {
|
||||||
return L5R5E.techniques.map((e) => {
|
return CONFIG.l5r5e.techniques.map((e) => {
|
||||||
return {
|
return {
|
||||||
id: e,
|
id: e,
|
||||||
label: game.i18n.localize(`l5r5e.techniques.${e}`),
|
label: game.i18n.localize(`l5r5e.techniques.${e}`),
|
||||||
@@ -13,7 +13,7 @@ export class AdvancementSheetL5r5e extends ItemSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "advancement"],
|
classes: ["l5r5e", "sheet", "advancement"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/advancement-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/advancement/advancement-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export class ArmorSheetL5r5e extends ItemSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "armor"],
|
classes: ["l5r5e", "sheet", "armor"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/armor-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/armor/armor-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export class ItemSheetL5r5e extends ItemSheet {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "item"],
|
classes: ["l5r5e", "sheet", "item"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/item-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/item/item-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export class PeculiaritySheetL5r5e extends ItemSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "peculiarity"],
|
classes: ["l5r5e", "sheet", "peculiarity"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/peculiarity-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/peculiarity/peculiarity-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import { ItemSheetL5r5e } from "./item-sheet.js";
|
|||||||
/**
|
/**
|
||||||
* @extends {ItemSheet}
|
* @extends {ItemSheet}
|
||||||
*/
|
*/
|
||||||
export class QualitySheetL5r5e extends ItemSheetL5r5e {
|
export class PropertySheetL5r5e extends ItemSheetL5r5e {
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "quality"],
|
classes: ["l5r5e", "sheet", "property"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/quality-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/property/property-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
@@ -8,7 +8,7 @@ export class TechniqueSheetL5r5e extends ItemSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "technique"],
|
classes: ["l5r5e", "sheet", "technique"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/technique-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/technique/technique-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { L5R5E } from "../config-l5r5e.js";
|
import { L5R5E } from "../config.js";
|
||||||
import { ItemSheetL5r5e } from "./item-sheet.js";
|
import { ItemSheetL5r5e } from "./item-sheet.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -9,7 +9,7 @@ export class WeaponSheetL5r5e extends ItemSheetL5r5e {
|
|||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "weapon"],
|
classes: ["l5r5e", "sheet", "weapon"],
|
||||||
template: CONFIG.l5r5e.paths.templates + "item/weapon-sheet.html",
|
template: CONFIG.l5r5e.paths.templates + "items/weapon/weapon-sheet.html",
|
||||||
width: 520,
|
width: 520,
|
||||||
height: 480,
|
height: 480,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }],
|
||||||
|
|||||||
@@ -1,23 +1,27 @@
|
|||||||
// Import Modules
|
// Import Commons Modules
|
||||||
import { L5R5E } from "./config-l5r5e.js";
|
import { L5R5E } from "./config.js";
|
||||||
import { HelpersL5r5e } from "./helpers-l5r5e.js";
|
import { HelpersL5r5e } from "./helpers.js";
|
||||||
import { RegisterSettings } from "./settings.js";
|
import { RegisterSettings } from "./settings.js";
|
||||||
import { PreloadTemplates } from "./preloadTemplates.js";
|
import { PreloadTemplates } from "./preloadTemplates.js";
|
||||||
import { ActorL5r5e } from "./actor-l5r5e.js";
|
// Actors
|
||||||
import { ActorSheetL5r5e } from "./sheets/actor-sheet.js";
|
import { ActorL5r5e } from "./actor.js";
|
||||||
import { NpcSheetL5r5e } from "./sheets/npc-sheet.js";
|
import { CharacterSheetL5r5e } from "./actors/character-sheet.js";
|
||||||
import { RollL5r5e, AbilityDie, RingDie, DicePickerDialog } from "./dice-l5r5e.js";
|
import { NpcSheetL5r5e } from "./actors/npc-sheet.js";
|
||||||
|
// Dice and rolls
|
||||||
|
import { AbilityDie } from "./dice/dietype/ability-die.js";
|
||||||
|
import { RingDie } from "./dice/dietype/ring-die.js";
|
||||||
|
import { RollL5r5e } from "./dice/roll.js";
|
||||||
|
import { DicePickerDialog } from "./dice/dice-picker-dialog.js";
|
||||||
|
// Items
|
||||||
import { ItemL5r5e } from "./items/item.js";
|
import { ItemL5r5e } from "./items/item.js";
|
||||||
import { ItemSheetL5r5e } from "./items/item-sheet.js";
|
import { ItemSheetL5r5e } from "./items/item-sheet.js";
|
||||||
import { ArmorSheetL5r5e } from "./items/armor-sheet.js";
|
import { ArmorSheetL5r5e } from "./items/armor-sheet.js";
|
||||||
import { WeaponSheetL5r5e } from "./items/weapon-sheet.js";
|
import { WeaponSheetL5r5e } from "./items/weapon-sheet.js";
|
||||||
import { TechniqueSheetL5r5e } from "./items/technique-sheet.js";
|
import { TechniqueSheetL5r5e } from "./items/technique-sheet.js";
|
||||||
import { QualitySheetL5r5e } from "./items/quality-sheet.js";
|
import { PropertySheetL5r5e } from "./items/property-sheet.js";
|
||||||
import { AdvancementSheetL5r5e } from "./items/advancement-sheet.js";
|
import { AdvancementSheetL5r5e } from "./items/advancement-sheet.js";
|
||||||
import { PeculiaritySheetL5r5e } from "./items/peculiarity-sheet.js";
|
import { PeculiaritySheetL5r5e } from "./items/peculiarity-sheet.js";
|
||||||
|
|
||||||
// Import Dice Types
|
|
||||||
|
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
/* Initialize system */
|
/* Initialize system */
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
@@ -37,7 +41,7 @@ Hooks.once("init", async function () {
|
|||||||
|
|
||||||
// Assign custom classes and constants here
|
// Assign custom classes and constants here
|
||||||
CONFIG.Actor.entityClass = ActorL5r5e;
|
CONFIG.Actor.entityClass = ActorL5r5e;
|
||||||
CONFIG.Actor.sheetClasses = ActorSheetL5r5e;
|
CONFIG.Actor.sheetClasses = CharacterSheetL5r5e;
|
||||||
CONFIG.Item.entityClass = ItemL5r5e;
|
CONFIG.Item.entityClass = ItemL5r5e;
|
||||||
|
|
||||||
// Define custom Roll class
|
// Define custom Roll class
|
||||||
@@ -63,7 +67,7 @@ Hooks.once("init", async function () {
|
|||||||
// Register custom sheets (if any)
|
// Register custom sheets (if any)
|
||||||
// Actors sheet
|
// Actors sheet
|
||||||
Actors.unregisterSheet("core", ActorSheet);
|
Actors.unregisterSheet("core", ActorSheet);
|
||||||
Actors.registerSheet("l5r5e", ActorSheetL5r5e, { types: ["character"], makeDefault: true });
|
Actors.registerSheet("l5r5e", CharacterSheetL5r5e, { types: ["character"], makeDefault: true });
|
||||||
Actors.registerSheet("l5r5e", NpcSheetL5r5e, { types: ["npc"], makeDefault: false });
|
Actors.registerSheet("l5r5e", NpcSheetL5r5e, { types: ["npc"], makeDefault: false });
|
||||||
|
|
||||||
// Items sheet
|
// Items sheet
|
||||||
@@ -72,7 +76,7 @@ Hooks.once("init", async function () {
|
|||||||
Items.registerSheet("l5r5e", ArmorSheetL5r5e, { types: ["armor"], makeDefault: true });
|
Items.registerSheet("l5r5e", ArmorSheetL5r5e, { types: ["armor"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", WeaponSheetL5r5e, { types: ["weapon"], makeDefault: true });
|
Items.registerSheet("l5r5e", WeaponSheetL5r5e, { types: ["weapon"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", TechniqueSheetL5r5e, { types: ["technique"], makeDefault: true });
|
Items.registerSheet("l5r5e", TechniqueSheetL5r5e, { types: ["technique"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", QualitySheetL5r5e, { types: ["quality"], makeDefault: true });
|
Items.registerSheet("l5r5e", PropertySheetL5r5e, { types: ["property"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", PeculiaritySheetL5r5e, { types: ["peculiarity"], makeDefault: true });
|
Items.registerSheet("l5r5e", PeculiaritySheetL5r5e, { types: ["peculiarity"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", AdvancementSheetL5r5e, { types: ["advancement"], makeDefault: true });
|
Items.registerSheet("l5r5e", AdvancementSheetL5r5e, { types: ["advancement"], makeDefault: true });
|
||||||
|
|
||||||
|
|||||||
@@ -1,46 +1,48 @@
|
|||||||
export const PreloadTemplates = async function () {
|
export const PreloadTemplates = async function () {
|
||||||
const templatePaths = [
|
const templatePaths = [
|
||||||
// Add paths to "systems/l5r5e/templates"
|
// Add paths to "systems/l5r5e/templates"
|
||||||
// actor
|
// actors
|
||||||
"systems/l5r5e/templates/sheets/actor/rings.html",
|
"systems/l5r5e/templates/actors/character/rings.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/narrative.html",
|
"systems/l5r5e/templates/actors/character/narrative.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/identity.html",
|
"systems/l5r5e/templates/actors/character/identity.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/category.html",
|
"systems/l5r5e/templates/actors/character/category.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/skill.html",
|
"systems/l5r5e/templates/actors/character/skill.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/social.html",
|
"systems/l5r5e/templates/actors/character/social.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/attributes.html",
|
"systems/l5r5e/templates/actors/character/attributes.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/conflict.html",
|
"systems/l5r5e/templates/actors/character/conflict.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/stance.html",
|
"systems/l5r5e/templates/actors/character/stance.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/techniques.html",
|
"systems/l5r5e/templates/actors/character/techniques.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/experience.html",
|
"systems/l5r5e/templates/actors/character/experience.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/advancement.html",
|
"systems/l5r5e/templates/actors/character/advancement.html",
|
||||||
// npc
|
// npc
|
||||||
"systems/l5r5e/templates/sheets/npc/identity.html",
|
"systems/l5r5e/templates/actors/npc/identity.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/narrative.html",
|
"systems/l5r5e/templates/actors/npc/narrative.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/social.html",
|
"systems/l5r5e/templates/actors/npc/social.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/rings.html",
|
"systems/l5r5e/templates/actors/npc/rings.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/attributes.html",
|
"systems/l5r5e/templates/actors/npc/attributes.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/skill.html",
|
"systems/l5r5e/templates/actors/npc/skill.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/techniques.html",
|
"systems/l5r5e/templates/actors/npc/techniques.html",
|
||||||
// items
|
// items
|
||||||
"systems/l5r5e/templates/item/weapon-sheet.html",
|
"systems/l5r5e/templates/items/advancement/advancements.html",
|
||||||
"systems/l5r5e/templates/item/items.html",
|
"systems/l5r5e/templates/items/advancement/advancement-entry.html",
|
||||||
"systems/l5r5e/templates/item/item-entry.html",
|
"systems/l5r5e/templates/items/advancement/advancement-sheet.html",
|
||||||
"systems/l5r5e/templates/item/weapons.html",
|
"systems/l5r5e/templates/items/armor/armors.html",
|
||||||
"systems/l5r5e/templates/item/weapon-entry.html",
|
"systems/l5r5e/templates/items/armor/armor-entry.html",
|
||||||
"systems/l5r5e/templates/item/armors.html",
|
"systems/l5r5e/templates/items/armor/armor-sheet.html",
|
||||||
"systems/l5r5e/templates/item/armor-entry.html",
|
"systems/l5r5e/templates/items/item/items.html",
|
||||||
"systems/l5r5e/templates/item/technique-sheet.html",
|
"systems/l5r5e/templates/items/item/item-entry.html",
|
||||||
"systems/l5r5e/templates/item/technique-entry.html",
|
"systems/l5r5e/templates/items/item/item-sheet.html",
|
||||||
"systems/l5r5e/templates/item/qualities.html",
|
"systems/l5r5e/templates/items/peculiarity/peculiarities.html",
|
||||||
"systems/l5r5e/templates/item/quality-sheet.html",
|
"systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html",
|
||||||
"systems/l5r5e/templates/item/quality-entry.html",
|
"systems/l5r5e/templates/items/peculiarity/peculiarity-sheet.html",
|
||||||
"systems/l5r5e/templates/item/advancements.html",
|
"systems/l5r5e/templates/items/property/properties.html",
|
||||||
"systems/l5r5e/templates/item/advancement-sheet.html",
|
"systems/l5r5e/templates/items/property/property-entry.html",
|
||||||
"systems/l5r5e/templates/item/advancement-entry.html",
|
"systems/l5r5e/templates/items/property/property-sheet.html",
|
||||||
"systems/l5r5e/templates/item/peculiarities.html",
|
"systems/l5r5e/templates/items/technique/technique-entry.html",
|
||||||
"systems/l5r5e/templates/item/peculiarity-sheet.html",
|
"systems/l5r5e/templates/items/technique/technique-sheet.html",
|
||||||
"systems/l5r5e/templates/item/peculiarity-entry.html",
|
"systems/l5r5e/templates/items/weapon/weapons.html",
|
||||||
|
"systems/l5r5e/templates/items/weapon/weapon-entry.html",
|
||||||
|
"systems/l5r5e/templates/items/weapon/weapon-sheet.html",
|
||||||
];
|
];
|
||||||
|
|
||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
"types": ["item", "armor", "weapon", "technique", "quality", "peculiarity", "advancement"],
|
"types": ["item", "armor", "weapon", "technique", "property", "peculiarity", "advancement"],
|
||||||
"templates": {
|
"templates": {
|
||||||
"advancement": {
|
"advancement": {
|
||||||
"in_curriculum": false,
|
"in_curriculum": false,
|
||||||
@@ -181,7 +181,7 @@
|
|||||||
"effects": "",
|
"effects": "",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"quality": {
|
"property": {
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"peculiarity": {
|
"peculiarity": {
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}"/>
|
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}"/>
|
||||||
<div class="header-fields identity-wrapper">
|
<div class="header-fields identity-wrapper">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/identity.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/identity.html' }}
|
||||||
</div>
|
</div>
|
||||||
<div class="header-fields">
|
<div class="header-fields">
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/social.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/social.html' }}
|
||||||
<h2>{{ localize 'l5r5e.attributes.title' }}</h2>
|
<h2>{{ localize 'l5r5e.attributes.title' }}</h2>
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/rings.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/rings.html' }}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/attributes.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/attributes.html' }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
@@ -28,31 +28,31 @@
|
|||||||
<article class="tab skills" data-group="primary" data-tab="skills">
|
<article class="tab skills" data-group="primary" data-tab="skills">
|
||||||
<ul class="skills-wrapper">
|
<ul class="skills-wrapper">
|
||||||
{{#each data.skills as |category id|}}
|
{{#each data.skills as |category id|}}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/category.html' category=category categoryId=id}}
|
{{> 'systems/l5r5e/templates/actors/character/category.html' category=category categoryId=id}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/techniques.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/techniques.html' }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{!-- Narrative Tab --}}
|
{{!-- Narrative Tab --}}
|
||||||
<article class="tab narrative" data-group="primary" data-tab="narrative">
|
<article class="tab narrative" data-group="primary" data-tab="narrative">
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/narrative.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/narrative.html' }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{!-- Conflict Tab --}}
|
{{!-- Conflict Tab --}}
|
||||||
<article class="tab conflict" data-group="primary" data-tab="conflict">
|
<article class="tab conflict" data-group="primary" data-tab="conflict">
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/conflict.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/conflict.html' }}
|
||||||
{{> 'systems/l5r5e/templates/item/weapons.html' }}
|
{{> 'systems/l5r5e/templates/items/weapon/weapons.html' }}
|
||||||
{{> 'systems/l5r5e/templates/item/armors.html' }}
|
{{> 'systems/l5r5e/templates/items/armor/armors.html' }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="tab inventory" data-group="primary" data-tab="inventory">
|
<article class="tab inventory" data-group="primary" data-tab="inventory">
|
||||||
{{> 'systems/l5r5e/templates/item/items.html' }}
|
{{> 'systems/l5r5e/templates/items/item/items.html' }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{!-- Experience Tab --}}
|
{{!-- Experience Tab --}}
|
||||||
<article class="tab experience" data-group="primary" data-tab="experience">
|
<article class="tab experience" data-group="primary" data-tab="experience">
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/experience.html' }}
|
{{> 'systems/l5r5e/templates/actors/character/experience.html' }}
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<h4 class="section-header">{{ localizeSkill categoryId 'title' }}</h4>
|
<h4 class="section-header">{{ localizeSkill categoryId 'title' }}</h4>
|
||||||
<ul class="skill-category-skills-list">
|
<ul class="skill-category-skills-list">
|
||||||
{{#each category as |skill id| }}
|
{{#each category as |skill id| }}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/skill.html' categoryId=../categoryId skill=skill skillId=id }}
|
{{> 'systems/l5r5e/templates/actors/character/skill.html' categoryId=../categoryId skill=skill skillId=id }}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="skill-category-ring-actions">
|
<ul class="skill-category-ring-actions">
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
|
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
|
||||||
<ul>
|
<ul>
|
||||||
{{#each data.rings as |ringValue ringId|}}
|
{{#each data.rings as |ringValue ringId|}}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/stance.html' stance=../data.stance ringId=ringId }}
|
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.stance ringId=ringId }}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
<tbody class="flex">
|
<tbody class="flex">
|
||||||
{{#each actor.items as |advancement advancementId|}}
|
{{#each actor.items as |advancement advancementId|}}
|
||||||
{{#ifCond '["peculiarity", "technique","advancement"]' 'includes' advancement.type}}
|
{{#ifCond '["peculiarity", "technique","advancement"]' 'includes' advancement.type}}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/advancement.html' advancement=advancement }}
|
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.item as |item id|}}
|
{{#each actor.item as |item id|}}
|
||||||
{{#ifCond item.type '==' 'advantage'}}
|
{{#ifCond item.type '==' 'advantage'}}
|
||||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.item as |item id|}}
|
{{#each actor.item as |item id|}}
|
||||||
{{#ifCond item.type '==' 'disadvantage'}}
|
{{#ifCond item.type '==' 'disadvantage'}}
|
||||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'technique'}}
|
{{#ifCond item.type '==' 'technique'}}
|
||||||
{{> 'systems/l5r5e/templates/item/technique-entry.html' technique=item }}
|
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -4,35 +4,35 @@
|
|||||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="150" width="150"/>
|
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="150" width="150"/>
|
||||||
<div class="header-fields identity-wrapper">
|
<div class="header-fields identity-wrapper">
|
||||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/identity.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/identity.html' }}
|
||||||
</div>
|
</div>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
|
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
|
||||||
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
|
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div class="header-fields">
|
<div class="header-fields">
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/social.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/social.html' }}
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/rings.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/rings.html' }}
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/attributes.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/attributes.html' }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/skill.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/skill.html' }}
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/techniques.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/techniques.html' }}
|
||||||
</article>
|
</article>
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/narrative.html' }}
|
{{> 'systems/l5r5e/templates/actors/npc/narrative.html' }}
|
||||||
</article>
|
</article>
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/item/items.html' }}
|
{{> 'systems/l5r5e/templates/items/item/items.html' }}
|
||||||
</article>
|
</article>
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/item/weapons.html' }}
|
{{> 'systems/l5r5e/templates/items/weapon/weapons.html' }}
|
||||||
</article>
|
</article>
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/item/armors.html' }}
|
{{> 'systems/l5r5e/templates/items/armor/armors.html' }}
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
|
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
|
||||||
<ul>
|
<ul>
|
||||||
{{#each data.rings as |ringValue ringId|}}
|
{{#each data.rings as |ringValue ringId|}}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/stance.html' stance=../data.stance ringId=ringId }}
|
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.stance ringId=ringId }}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.item as |item id|}}
|
{{#each actor.item as |item id|}}
|
||||||
{{#ifCond item.type '==' 'advantage'}}
|
{{#ifCond item.type '==' 'advantage'}}
|
||||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.item as |item id|}}
|
{{#each actor.item as |item id|}}
|
||||||
{{#ifCond item.type '==' 'disadvantage'}}
|
{{#ifCond item.type '==' 'disadvantage'}}
|
||||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'technique'}}
|
{{#ifCond item.type '==' 'technique'}}
|
||||||
{{> 'systems/l5r5e/templates/item/technique-entry.html' technique=item }}
|
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<fieldset class="weapons-content">
|
|
||||||
<legend class="section-header">{{ localize 'l5r5e.quality' }}</legend>
|
|
||||||
<ul class="item-list">
|
|
||||||
{{#each actor.items as |item id|}}
|
|
||||||
{{#ifCond item.type '==' 'quality'}}
|
|
||||||
{{> 'systems/l5r5e/templates/item/quality-entry.html' item=item id=id }}
|
|
||||||
{{/ifCond}}
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</fieldset>
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'advancement'}}
|
{{#ifCond item.type '==' 'advancement'}}
|
||||||
{{> 'systems/l5r5e/templates/item/advancement-entry.html' advancement=item id=id }}
|
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' advancement=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
||||||
<!-- TODO data.properties a faire en dnd avec les items de type "quality" -->
|
<!-- TODO data.properties a faire en dnd avec les items de type "property" -->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'armor'}}
|
{{#ifCond item.type '==' 'armor'}}
|
||||||
{{> 'systems/l5r5e/templates/item/armor-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/armor/armor-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<ol class="attributes-list">
|
<ol class="attributes-list">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
||||||
<!-- TODO data.properties a faire en dnd avec les items de type "quality" -->
|
<!-- TODO data.properties a faire en dnd avec les items de type "property" -->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!--{{#each data.attributes as |attr key|}} {{/each}}-->
|
<!--{{#each data.attributes as |attr key|}} {{/each}}-->
|
||||||
</ol>
|
</ol>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'item'}}
|
{{#ifCond item.type '==' 'item'}}
|
||||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'advancement'}}
|
{{#ifCond item.type '==' 'advancement'}}
|
||||||
{{> 'systems/l5r5e/templates/item/advancement-entry.html' advancement=item id=id }}
|
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' advancement=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
10
system/templates/items/property/properties.html
Normal file
10
system/templates/items/property/properties.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<fieldset class="weapons-content">
|
||||||
|
<legend class="section-header">{{ localize 'l5r5e.property' }}</legend>
|
||||||
|
<ul class="item-list">
|
||||||
|
{{#each actor.items as |item id|}}
|
||||||
|
{{#ifCond item.type '==' 'property'}}
|
||||||
|
{{> 'systems/l5r5e/templates/items/property/property-entry.html' item=item id=id }}
|
||||||
|
{{/ifCond}}
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
<legend class="text-block-header">{{ localize 'l5r5e.properties' }}</legend>
|
||||||
<!-- TODO data.properties a faire en dnd avec les items de type "quality" -->
|
<!-- TODO data.properties a faire en dnd avec les items de type "property" -->
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="text-block-header">{{ localize 'l5r5e.description' }}</legend>
|
<legend class="text-block-header">{{ localize 'l5r5e.description' }}</legend>
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<ul class="item-list">
|
<ul class="item-list">
|
||||||
{{#each actor.items as |item id|}}
|
{{#each actor.items as |item id|}}
|
||||||
{{#ifCond item.type '==' 'weapon'}}
|
{{#ifCond item.type '==' 'weapon'}}
|
||||||
{{> 'systems/l5r5e/templates/item/weapon-entry.html' item=item id=id }}
|
{{> 'systems/l5r5e/templates/items/weapon/weapon-entry.html' item=item id=id }}
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
Reference in New Issue
Block a user