some renaming
This commit is contained in:
@@ -91,8 +91,10 @@
|
|||||||
"supernatural": "supernatural"
|
"supernatural": "supernatural"
|
||||||
},
|
},
|
||||||
"items": "Items",
|
"items": "Items",
|
||||||
"feats": {
|
"feats": "Feats",
|
||||||
"title": "Feats",
|
"techniques": {
|
||||||
|
"title": "Techniques",
|
||||||
|
"title_new": "New Technique",
|
||||||
"kata": "Kata",
|
"kata": "Kata",
|
||||||
"kiho": "Kihõ",
|
"kiho": "Kihõ",
|
||||||
"invocation": "Invocation",
|
"invocation": "Invocation",
|
||||||
@@ -104,7 +106,6 @@
|
|||||||
"skill": "Skill",
|
"skill": "Skill",
|
||||||
"level": "Level",
|
"level": "Level",
|
||||||
"approaches": "Approaches",
|
"approaches": "Approaches",
|
||||||
"featplaceholdername": "New Feat",
|
|
||||||
"notes": "Notes",
|
"notes": "Notes",
|
||||||
"inventory": "Inventory",
|
"inventory": "Inventory",
|
||||||
"equipment": "Equipment",
|
"equipment": "Equipment",
|
||||||
|
|||||||
@@ -91,8 +91,10 @@
|
|||||||
"supernatural": "supernatural"
|
"supernatural": "supernatural"
|
||||||
},
|
},
|
||||||
"items": "Equipo",
|
"items": "Equipo",
|
||||||
"feats": {
|
"feats": "Feats",
|
||||||
"title": "Rasgos",
|
"techniques": {
|
||||||
|
"title": "Techniques",
|
||||||
|
"title_new": "Nuevo Rasgo",
|
||||||
"kata": "Kata",
|
"kata": "Kata",
|
||||||
"kiho": "Kihõ",
|
"kiho": "Kihõ",
|
||||||
"invocation": "Invocation",
|
"invocation": "Invocation",
|
||||||
@@ -104,7 +106,6 @@
|
|||||||
"skill": "Habilidad",
|
"skill": "Habilidad",
|
||||||
"level": "Nivel",
|
"level": "Nivel",
|
||||||
"approaches": "Planteamientos",
|
"approaches": "Planteamientos",
|
||||||
"featplaceholdername": "Nuevo Rasgo",
|
|
||||||
"notes": "Notas",
|
"notes": "Notas",
|
||||||
"inventory": "Inventario",
|
"inventory": "Inventario",
|
||||||
"equipment": "Equipo",
|
"equipment": "Equipo",
|
||||||
|
|||||||
@@ -91,8 +91,10 @@
|
|||||||
"supernatural": "Spirituelle"
|
"supernatural": "Spirituelle"
|
||||||
},
|
},
|
||||||
"items": "Objets",
|
"items": "Objets",
|
||||||
"feats": {
|
"feats": "Prouesses",
|
||||||
|
"techniques": {
|
||||||
"title": "Techniques",
|
"title": "Techniques",
|
||||||
|
"title_new": "Nouvelle Technique",
|
||||||
"kata": "Kata",
|
"kata": "Kata",
|
||||||
"kiho": "Kihõ",
|
"kiho": "Kihõ",
|
||||||
"invocation": "Invocation",
|
"invocation": "Invocation",
|
||||||
@@ -104,7 +106,6 @@
|
|||||||
"skill": "Compétence",
|
"skill": "Compétence",
|
||||||
"level": "Niveau",
|
"level": "Niveau",
|
||||||
"approaches": "Approches",
|
"approaches": "Approches",
|
||||||
"featplaceholdername": "Nouvelle technique",
|
|
||||||
"notes": "Notes",
|
"notes": "Notes",
|
||||||
"inventory": "Inventaire",
|
"inventory": "Inventaire",
|
||||||
"equipment": "Équipement",
|
"equipment": "Équipement",
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import { ItemSheetL5r5e } from "./item-sheet.js";
|
|||||||
/**
|
/**
|
||||||
* @extends {ItemSheet}
|
* @extends {ItemSheet}
|
||||||
*/
|
*/
|
||||||
export class FeatSheetL5r5e extends ItemSheetL5r5e {
|
export class TechniqueSheetL5r5e extends ItemSheetL5r5e {
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["l5r5e", "sheet", "feat"],
|
classes: ["l5r5e", "sheet", "technique"],
|
||||||
template: CONFIG.L5r5e.paths.templates + "item/feat-sheet.html",
|
template: CONFIG.L5r5e.paths.templates + "item/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" }],
|
||||||
@@ -20,8 +20,8 @@ export class FeatSheetL5r5e extends ItemSheetL5r5e {
|
|||||||
const sheetData = super.getData();
|
const sheetData = super.getData();
|
||||||
sheetData.data.dtypes = ["String", "Number", "Boolean"];
|
sheetData.data.dtypes = ["String", "Number", "Boolean"];
|
||||||
|
|
||||||
sheetData.data.isFeat = true;
|
sheetData.data.isTechnique = true;
|
||||||
sheetData.data.isEquipment = false;
|
// sheetData.data.isEquipment = false;
|
||||||
|
|
||||||
return sheetData;
|
return sheetData;
|
||||||
}
|
}
|
||||||
@@ -10,7 +10,7 @@ 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 { FeatSheetL5r5e } from "./items/feat-sheet.js";
|
import { TechniqueSheetL5r5e } from "./items/technique-sheet.js";
|
||||||
import { QualitySheetL5r5e } from "./items/quality-sheet.js";
|
import { QualitySheetL5r5e } from "./items/quality-sheet.js";
|
||||||
|
|
||||||
// Import Dice Types
|
// Import Dice Types
|
||||||
@@ -67,7 +67,7 @@ Hooks.once("init", async function () {
|
|||||||
Items.registerSheet("l5r5e", ItemSheetL5r5e, { types: ["item"], makeDefault: true });
|
Items.registerSheet("l5r5e", ItemSheetL5r5e, { types: ["item"], makeDefault: true });
|
||||||
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", FeatSheetL5r5e, { types: ["feat"], makeDefault: true });
|
Items.registerSheet("l5r5e", TechniqueSheetL5r5e, { types: ["technique"], makeDefault: true });
|
||||||
Items.registerSheet("l5r5e", QualitySheetL5r5e, { types: ["quality"], makeDefault: true });
|
Items.registerSheet("l5r5e", QualitySheetL5r5e, { types: ["quality"], makeDefault: true });
|
||||||
|
|
||||||
// for debug
|
// for debug
|
||||||
@@ -111,8 +111,8 @@ Hooks.once("init", async function () {
|
|||||||
return game.i18n.localize(key);
|
return game.i18n.localize(key);
|
||||||
});
|
});
|
||||||
|
|
||||||
Handlebars.registerHelper("localizeFeat", function (featName) {
|
Handlebars.registerHelper("localizeTechniques", function (techniqueName) {
|
||||||
return game.i18n.localize("l5r5e.feats." + featName.toLowerCase());
|
return game.i18n.localize("l5r5e.techniques." + techniqueName.toLowerCase());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ export const PreloadTemplates = async function () {
|
|||||||
"systems/l5r5e/templates/sheets/actor/attributes.html",
|
"systems/l5r5e/templates/sheets/actor/attributes.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/conflict.html",
|
"systems/l5r5e/templates/sheets/actor/conflict.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/stance.html",
|
"systems/l5r5e/templates/sheets/actor/stance.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/feats.html",
|
"systems/l5r5e/templates/sheets/actor/techniques.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/experience.html",
|
"systems/l5r5e/templates/sheets/actor/experience.html",
|
||||||
"systems/l5r5e/templates/sheets/actor/acquisition.html",
|
"systems/l5r5e/templates/sheets/actor/advancement.html",
|
||||||
// npc
|
// npc
|
||||||
"systems/l5r5e/templates/sheets/npc/identity.html",
|
"systems/l5r5e/templates/sheets/npc/identity.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/narrative.html",
|
"systems/l5r5e/templates/sheets/npc/narrative.html",
|
||||||
@@ -21,7 +21,7 @@ export const PreloadTemplates = async function () {
|
|||||||
"systems/l5r5e/templates/sheets/npc/rings.html",
|
"systems/l5r5e/templates/sheets/npc/rings.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/attributes.html",
|
"systems/l5r5e/templates/sheets/npc/attributes.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/skill.html",
|
"systems/l5r5e/templates/sheets/npc/skill.html",
|
||||||
"systems/l5r5e/templates/sheets/npc/feats.html",
|
"systems/l5r5e/templates/sheets/npc/techniques.html",
|
||||||
// items
|
// items
|
||||||
"systems/l5r5e/templates/item/weapon-sheet.html",
|
"systems/l5r5e/templates/item/weapon-sheet.html",
|
||||||
"systems/l5r5e/templates/item/items.html",
|
"systems/l5r5e/templates/item/items.html",
|
||||||
@@ -30,8 +30,8 @@ export const PreloadTemplates = async function () {
|
|||||||
"systems/l5r5e/templates/item/weapon-entry.html",
|
"systems/l5r5e/templates/item/weapon-entry.html",
|
||||||
"systems/l5r5e/templates/item/armors.html",
|
"systems/l5r5e/templates/item/armors.html",
|
||||||
"systems/l5r5e/templates/item/armor-entry.html",
|
"systems/l5r5e/templates/item/armor-entry.html",
|
||||||
"systems/l5r5e/templates/item/feat-sheet.html",
|
"systems/l5r5e/templates/item/technique-sheet.html",
|
||||||
"systems/l5r5e/templates/item/feat-entry.html",
|
"systems/l5r5e/templates/item/technique-entry.html",
|
||||||
"systems/l5r5e/templates/item/qualities.html",
|
"systems/l5r5e/templates/item/qualities.html",
|
||||||
"systems/l5r5e/templates/item/quality-sheet.html",
|
"systems/l5r5e/templates/item/quality-sheet.html",
|
||||||
"systems/l5r5e/templates/item/quality-entry.html",
|
"systems/l5r5e/templates/item/quality-entry.html",
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
|
|
||||||
this._prepareItems(sheetData);
|
this._prepareItems(sheetData);
|
||||||
|
|
||||||
const feats = sheetData.items.filter((item) => item.type === "feat");
|
const techniques = sheetData.items.filter((item) => item.type === "technique");
|
||||||
|
|
||||||
sheetData.data.feats = feats;
|
sheetData.data.techniques.list = techniques;
|
||||||
sheetData.data.stances = CONFIG.L5r5e.stances;
|
sheetData.data.stances = CONFIG.L5r5e.stances;
|
||||||
|
|
||||||
return sheetData;
|
return sheetData;
|
||||||
@@ -44,16 +44,24 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
item.isEquipment = true;
|
item.isEquipment = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "feat":
|
case "technique":
|
||||||
item.isFeat = true;
|
item.isTechnique = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "quality":
|
case "quality":
|
||||||
item.isQuality = true;
|
item.isQuality = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "xp-advancement":
|
case "advancement":
|
||||||
item.isXpAdvancement = true;
|
item.isAdvancement = true;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "advantage":
|
||||||
|
item.isAdvantage = true;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "disadvantage":
|
||||||
|
item.isDisadvantage = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -66,7 +74,7 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
/**
|
/**
|
||||||
* TODO
|
* TODO
|
||||||
*/
|
*/
|
||||||
_prepareFeats() {}
|
_prepareTechniques() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subscribe to events from the sheet.
|
* Subscribe to events from the sheet.
|
||||||
@@ -80,6 +88,7 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// *** Items ***
|
||||||
// Update Inventory Item
|
// Update Inventory Item
|
||||||
html.find(".item-edit").on("click", (ev) => {
|
html.find(".item-edit").on("click", (ev) => {
|
||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
@@ -94,60 +103,75 @@ export class BaseSheetL5r5e extends ActorSheet {
|
|||||||
this.actor.deleteOwnedItem(li.data("itemId"));
|
this.actor.deleteOwnedItem(li.data("itemId"));
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find(".feat-add").on("click", (ev) => {
|
// *** Techniques ***
|
||||||
this._createFeat();
|
html.find(".technique-add").on("click", (ev) => {
|
||||||
|
this._createTechnique();
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find(".feat-delete").on("click", (ev) => {
|
html.find(".technique-delete").on("click", (ev) => {
|
||||||
const li = $(ev.currentTarget).parents(".feat");
|
const li = $(ev.currentTarget).parents(".technique");
|
||||||
const featId = li.data("featId");
|
const techniqueId = li.data("techniqueId");
|
||||||
console.log("Remove feat" + featId + " clicked");
|
console.log("Remove technique" + techniqueId + " clicked");
|
||||||
|
|
||||||
this.actor.deleteOwnedItem(featId);
|
this.actor.deleteOwnedItem(techniqueId);
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find(".feat-edit").on("click", (ev) => {
|
html.find(".technique-edit").on("click", (ev) => {
|
||||||
const li = $(ev.currentTarget).parents(".feat");
|
const li = $(ev.currentTarget).parents(".technique");
|
||||||
const featId = li.data("featId");
|
const techniqueId = li.data("techniqueId");
|
||||||
const feat = this.actor.getOwnedItem(featId);
|
const technique = this.actor.getOwnedItem(techniqueId);
|
||||||
feat.sheet.render(true);
|
technique.sheet.render(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// *** Skills ***
|
||||||
html.find(".skill-name").on("click", (ev) => {
|
html.find(".skill-name").on("click", (ev) => {
|
||||||
const li = $(ev.currentTarget).parents(".skill");
|
const li = $(ev.currentTarget).parents(".skill");
|
||||||
this._onSkillClicked(li.data("skill"));
|
new game.l5r5e.DicePickerDialog({ skillId: li.data("skill"), actor: this.actor }).render(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// *** Advancement ***
|
||||||
html.find(".acquisition-add").on("click", (ev) => {
|
html.find(".acquisition-add").on("click", (ev) => {
|
||||||
this._createFeat();
|
this._createAdvancement();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new feat for the character and shows a window to edit it.
|
* Creates a new feat for the character and shows a window to edit it.
|
||||||
*/
|
*/
|
||||||
async _createFeat() {
|
async _createTechnique() {
|
||||||
const data = {
|
const data = {
|
||||||
name: game.i18n.localize("l5r5e.featplaceholdername"),
|
name: game.i18n.localize("l5r5e.techniques.title_new"),
|
||||||
type: "feat",
|
type: "technique",
|
||||||
};
|
};
|
||||||
const created = await this.actor.createEmbeddedEntity("OwnedItem", data);
|
const created = await this.actor.createEmbeddedEntity("OwnedItem", data);
|
||||||
const feat = this.actor.getOwnedItem(created._id);
|
const technique = this.actor.getOwnedItem(created._id);
|
||||||
|
|
||||||
// Default values
|
// Default values
|
||||||
//feat.rank = 1;
|
//technique.rank = 1;
|
||||||
//feat.xp_used = 0;
|
//technique.xp_used = 0;
|
||||||
|
|
||||||
feat.sheet.render(true);
|
technique.sheet.render(true);
|
||||||
|
|
||||||
return feat;
|
return technique;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* React to a skill from the skills list been clicked.
|
* Creates a new feat for the character and shows a window to edit it.
|
||||||
* @param {string} skillId Unique ID of the skill been clicked.
|
|
||||||
*/
|
*/
|
||||||
async _onSkillClicked(skillId) {
|
async _createAdvancement() {
|
||||||
new game.l5r5e.DicePickerDialog({ skillId: skillId, actor: this.actor }).render(true);
|
const data = {
|
||||||
|
name: game.i18n.localize("l5r5e.xp.acquisitions"),
|
||||||
|
type: "advancement",
|
||||||
|
};
|
||||||
|
const created = await this.actor.createEmbeddedEntity("OwnedItem", data);
|
||||||
|
const acquisition = this.actor.getOwnedItem(created._id);
|
||||||
|
|
||||||
|
acquisition.sheet.render(true);
|
||||||
|
|
||||||
|
// Default values
|
||||||
|
//acquisition.rank = 1;
|
||||||
|
//acquisition.xp_used = 0;
|
||||||
|
|
||||||
|
return acquisition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
|||||||
...super.getData(options),
|
...super.getData(options),
|
||||||
elementsList: this._getElements(),
|
elementsList: this._getElements(),
|
||||||
skillsList: this._getSkills(),
|
skillsList: this._getSkills(),
|
||||||
featsList: CONFIG.L5r5e.techniques,
|
techniquesList: CONFIG.L5r5e.techniques,
|
||||||
datas: this.datas,
|
datas: this.datas,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -116,16 +116,16 @@ export class TwentyQuestionsDialog extends FormApplication {
|
|||||||
};
|
};
|
||||||
|
|
||||||
actorDatas.techniques = {
|
actorDatas.techniques = {
|
||||||
kata: !!formData.step3_feat_kata,
|
kata: !!formData.step3_technique_kata,
|
||||||
kiho: formData.step3_feat_kiho,
|
kiho: formData.step3_technique_kiho,
|
||||||
invocation: !!formData.step3_feat_invocation,
|
invocation: !!formData.step3_technique_invocation,
|
||||||
ritual: !!formData.step3_feat_ritual,
|
ritual: !!formData.step3_technique_ritual,
|
||||||
shuji: !!formData.step3_feat_shuji,
|
shuji: !!formData.step3_technique_shuji,
|
||||||
maho: !!formData.step3_feat_maho,
|
maho: !!formData.step3_technique_maho,
|
||||||
ninjutsu: !!formData.step3_feat_ninjutsu,
|
ninjutsu: !!formData.step3_technique_ninjutsu,
|
||||||
};
|
};
|
||||||
|
|
||||||
// actorDatas = formData.step3_feats;
|
// actorDatas = formData.step3_techniques;
|
||||||
// actorDatas = formData.step3_school_ability;
|
// actorDatas = formData.step3_school_ability;
|
||||||
// actorDatas = formData.step3_equipment;
|
// actorDatas = formData.step3_equipment;
|
||||||
// actorDatas = formData.step4_stand_out;
|
// actorDatas = formData.step4_stand_out;
|
||||||
@@ -230,13 +230,13 @@ export class TwentyQuestionsDialog extends FormApplication {
|
|||||||
step2_social_glory: actorDatas.social.glory,
|
step2_social_glory: actorDatas.social.glory,
|
||||||
step3_school: actorDatas.identity.school,
|
step3_school: actorDatas.identity.school,
|
||||||
step3_roles: actorDatas.identity.roles,
|
step3_roles: actorDatas.identity.roles,
|
||||||
step3_feat_kata: actorDatas.techniques.kata,
|
step3_technique_kata: actorDatas.techniques.kata,
|
||||||
step3_feat_kiho: actorDatas.techniques.kiho,
|
step3_technique_kiho: actorDatas.techniques.kiho,
|
||||||
step3_feat_invocations: actorDatas.techniques.invocation,
|
step3_technique_invocation: actorDatas.techniques.invocation,
|
||||||
step3_feat_rituals: actorDatas.techniques.ritual,
|
step3_technique_ritual: actorDatas.techniques.ritual,
|
||||||
step3_feat_shuji: actorDatas.techniques.shuji,
|
step3_technique_shuji: actorDatas.techniques.shuji,
|
||||||
step3_feat_maho: actorDatas.techniques.maho,
|
step3_technique_maho: actorDatas.techniques.maho,
|
||||||
step3_feat_ninjutsu: actorDatas.techniques.ninjutsu,
|
step3_technique_ninjutsu: actorDatas.techniques.ninjutsu,
|
||||||
step3_social_honor: actorDatas.social.honor,
|
step3_social_honor: actorDatas.social.honor,
|
||||||
step5_social_giri: actorDatas.social.giri,
|
step5_social_giri: actorDatas.social.giri,
|
||||||
step6_social_ninjo: actorDatas.social.ninjo,
|
step6_social_ninjo: actorDatas.social.ninjo,
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -15,8 +15,8 @@
|
|||||||
}
|
}
|
||||||
.item-edit,
|
.item-edit,
|
||||||
.item-delete,
|
.item-delete,
|
||||||
.feat-edit,
|
.technique-edit,
|
||||||
.feat-delete {
|
.technique-delete {
|
||||||
flex: 0 0 1rem;
|
flex: 0 0 1rem;
|
||||||
padding: 0 0.25rem;
|
padding: 0 0.25rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.item,
|
&.item,
|
||||||
.feat,
|
.technique,
|
||||||
.weapon,
|
.weapon,
|
||||||
.armor,
|
.armor,
|
||||||
.advantages,
|
.advantages,
|
||||||
@@ -329,7 +329,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.feats-wrapper {
|
.techniques-wrapper {
|
||||||
fieldset {
|
fieldset {
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin: 0 0 0 0.5rem;
|
margin: 0 0 0 0.5rem;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
&.sheet {
|
&.sheet {
|
||||||
article {
|
article {
|
||||||
.skills-wrapper,
|
.skills-wrapper,
|
||||||
.feats-wrapper {
|
.techniques-wrapper {
|
||||||
flex: 50%;
|
flex: 50%;
|
||||||
> li {
|
> li {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -94,15 +94,16 @@
|
|||||||
"ritual": false,
|
"ritual": false,
|
||||||
"shuji": false,
|
"shuji": false,
|
||||||
"maho": false,
|
"maho": false,
|
||||||
"ninjutsu": false
|
"ninjutsu": false,
|
||||||
|
"list": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"character": {
|
"character": {
|
||||||
"templates": ["identity", "rings", "social", "skills", "techniques", "conflict", "xp"],
|
"templates": ["identity", "rings", "social", "skills", "techniques", "conflict", "xp"],
|
||||||
|
"advancements": [],
|
||||||
"zeni": 0,
|
"zeni": 0,
|
||||||
"notes": "",
|
"notes": "",
|
||||||
"feats": [],
|
|
||||||
"twenty_questions": {}
|
"twenty_questions": {}
|
||||||
},
|
},
|
||||||
"npc": {
|
"npc": {
|
||||||
@@ -130,12 +131,11 @@
|
|||||||
"scholar": 0,
|
"scholar": 0,
|
||||||
"social": 0,
|
"social": 0,
|
||||||
"trade": 0
|
"trade": 0
|
||||||
},
|
}
|
||||||
"feats": []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
"types": ["item", "armor", "weapon", "feat", "quality", "advantage", "disadvantage", "advancement"],
|
"types": ["item", "armor", "weapon", "technique", "quality", "advantage", "disadvantage", "advancement"],
|
||||||
"item": {
|
"item": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"properties": "",
|
"properties": "",
|
||||||
@@ -171,8 +171,8 @@
|
|||||||
"zeni": 0,
|
"zeni": 0,
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"feat": {
|
"technique": {
|
||||||
"feat_type": "",
|
"technique_type": "",
|
||||||
"xp_used": 0,
|
"xp_used": 0,
|
||||||
"rank": 0,
|
"rank": 0,
|
||||||
"ring": "",
|
"ring": "",
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
<li class="icon-stat-container">{{item.data.weight}}</li>
|
<li class="icon-stat-container">{{item.data.weight}}</li>
|
||||||
<li class="icon-stat-container">{{item.data.armor.physical}} <i class="fas fa-certificate"></i></li>
|
<li class="icon-stat-container">{{item.data.armor.physical}} <i class="fas fa-certificate"></i></li>
|
||||||
<li class="icon-stat-container">{{item.data.armor.supernatural}} <i class="fas fa-arrows-alt-h"></i></li>
|
<li class="icon-stat-container">{{item.data.armor.supernatural}} <i class="fas fa-arrows-alt-h"></i></li>
|
||||||
<li class="item-edit" title="Edit Feat"><i class="fas fa-edit"></i></li>
|
<li class="item-edit" title="Edit Technique"><i class="fas fa-edit"></i></li>
|
||||||
<li class="item-delete" title="Delete Feat"><i class="fas fa-trash"></i></li>
|
<li class="item-delete" title="Delete Technique"><i class="fas fa-trash"></i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="item-description">{{{ item.data.properties }}}</div>
|
<div class="item-description">{{{ item.data.properties }}}</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<li class="item feat flexcol" data-feat-id="{{feat._id}}">
|
|
||||||
<ul class="item-header feat-controls">
|
|
||||||
<li class="item-img"><img src="{{feat.img}}" title="{{feat.name}}" width="32px" height="32px"/></li>
|
|
||||||
<li class="item-name">{{ feat.name }}</li>
|
|
||||||
<li class="item-control feat-edit" title="Edit Feat"><i class="fas fa-edit"></i></li>
|
|
||||||
<li class="item-control feat-delete" title="Delete Feat"><i class="fas fa-trash"></i></li>
|
|
||||||
</ul>
|
|
||||||
<div class="item-description">{{{ feat.data.description }}}</div>
|
|
||||||
</li>
|
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
<ul class="item-header item-control">
|
<ul class="item-header item-control">
|
||||||
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
|
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
|
||||||
<li class="item-name">{{ item.name }}</li>
|
<li class="item-name">{{ item.name }}</li>
|
||||||
<li class="item-edit" title="Edit Feat"><i class="fas fa-edit"></i></li>
|
<li class="item-edit" title="Edit technique"><i class="fas fa-edit"></i></li>
|
||||||
<li class="item-delete" title="Delete Feat"><i class="fas fa-trash"></i></li>
|
<li class="item-delete" title="Delete technique"><i class="fas fa-trash"></i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="item-description">{{{ item.data.description }}}</div>
|
<div class="item-description">{{{ item.data.description }}}</div>
|
||||||
</li>
|
</li>
|
||||||
9
system/templates/item/technique-entry.html
Normal file
9
system/templates/item/technique-entry.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<li class="item technique flexcol" data-technique-id="{{technique._id}}">
|
||||||
|
<ul class="item-header technique-controls">
|
||||||
|
<li class="item-img"><img src="{{technique.img}}" title="{{technique.name}}" width="32px" height="32px"/></li>
|
||||||
|
<li class="item-name">{{ technique.name }}</li>
|
||||||
|
<li class="item-control technique-edit" title="Edit technique"><i class="fas fa-edit"></i></li>
|
||||||
|
<li class="item-control technique-delete" title="Delete technique"><i class="fas fa-trash"></i></li>
|
||||||
|
</ul>
|
||||||
|
<div class="item-description">{{{ technique.data.description }}}</div>
|
||||||
|
</li>
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
<li class="item-name">{{ item.name }}</li>
|
<li class="item-name">{{ item.name }}</li>
|
||||||
<li class="icon-stat-container">{{item.data.damage}} <i class="fas fa-certificate"></i></li>
|
<li class="icon-stat-container">{{item.data.damage}} <i class="fas fa-certificate"></i></li>
|
||||||
<li class="icon-stat-container">{{item.data.range}} <i class="fas fa-arrows-alt-h"></i></li>
|
<li class="icon-stat-container">{{item.data.range}} <i class="fas fa-arrows-alt-h"></i></li>
|
||||||
<li class="item-edit" title="Edit Feat"><i class="fas fa-edit"></i></li>
|
<li class="item-edit" title="Edit technique"><i class="fas fa-edit"></i></li>
|
||||||
<li class="item-delete" title="Delete Feat"><i class="fas fa-trash"></i></li>
|
<li class="item-delete" title="Delete technique"><i class="fas fa-trash"></i></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="item-description">{{{ item.data.properties }}}</div>
|
<div class="item-description">{{{ item.data.properties }}}</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
{{> 'systems/l5r5e/templates/sheets/actor/category.html' category=category categoryId=id}}
|
{{> 'systems/l5r5e/templates/sheets/actor/category.html' category=category categoryId=id}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/feats.html' }}
|
{{> 'systems/l5r5e/templates/sheets/actor/techniques.html' }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{!-- Narrative Tab --}}
|
{{!-- Narrative Tab --}}
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="flex">
|
<tbody class="flex">
|
||||||
{{#each data.feats as |feat featId| }}
|
{{#each data.advancements as |acquisition acquisitionId| }}
|
||||||
{{> 'systems/l5r5e/templates/sheets/actor/acquisition.html' acquisition=feat }}
|
{{> 'systems/l5r5e/templates/sheets/actor/advancement.html' acquisition=acquisition }}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<div class="feats-wrapper">
|
|
||||||
<fieldset class="section-header flexrow">
|
|
||||||
<legend class="feat-controls">
|
|
||||||
{{ localize 'l5r5e.feats.title' }}
|
|
||||||
<a class="feat-control feat-add" title="Add Item"><i class="fas fa-plus"></i></a>
|
|
||||||
</legend>
|
|
||||||
<ul class="item-list">
|
|
||||||
{{#each actor.items as |item id|}}
|
|
||||||
{{#if item.isFeat }}
|
|
||||||
{{> 'systems/l5r5e/templates/item/feat-entry.html' feat=item }}
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
15
system/templates/sheets/actor/techniques.html
Normal file
15
system/templates/sheets/actor/techniques.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<div class="techniques-wrapper">
|
||||||
|
<fieldset class="section-header flexrow">
|
||||||
|
<legend class="technique-controls">
|
||||||
|
{{ localize 'l5r5e.techniques.title' }}
|
||||||
|
<a class="technique-control technique-add" title="Add {{ localize 'l5r5e.techniques.title' }}"><i class="fas fa-plus"></i></a>
|
||||||
|
</legend>
|
||||||
|
<ul class="item-list">
|
||||||
|
{{#each actor.items as |item id|}}
|
||||||
|
{{#if item.isTechnique }}
|
||||||
|
{{> 'systems/l5r5e/templates/item/technique-entry.html' technique=item }}
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/skill.html' }}
|
{{> 'systems/l5r5e/templates/sheets/npc/skill.html' }}
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/feats.html' }}
|
{{> 'systems/l5r5e/templates/sheets/npc/techniques.html' }}
|
||||||
</article>
|
</article>
|
||||||
<article>
|
<article>
|
||||||
{{> 'systems/l5r5e/templates/sheets/npc/narrative.html' }}
|
{{> 'systems/l5r5e/templates/sheets/npc/narrative.html' }}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<div class="feats-wrapper">
|
|
||||||
<fieldset class="section-header flexrow">
|
|
||||||
<legend class="feat-controls">
|
|
||||||
{{ localize 'l5r5e.feats' }}
|
|
||||||
<a class="feat-control feat-add" title="Add Item"><i class="fas fa-plus"></i></a>
|
|
||||||
</legend>
|
|
||||||
<ul class="item-list">
|
|
||||||
{{#each actor.items as |item id|}}
|
|
||||||
{{#if item.isFeat }}
|
|
||||||
{{> 'systems/l5r5e/templates/item/feat-entry.html' feat=item }}
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
15
system/templates/sheets/npc/techniques.html
Normal file
15
system/templates/sheets/npc/techniques.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<div class="techniques-wrapper">
|
||||||
|
<fieldset class="section-header flexrow">
|
||||||
|
<legend class="technique-controls">
|
||||||
|
{{ localize 'l5r5e.techniques.title' }}
|
||||||
|
<a class="technique-control technique-add" title="Add {{ localize 'l5r5e.techniques.title' }}"><i class="fas fa-plus"></i></a>
|
||||||
|
</legend>
|
||||||
|
<ul class="item-list">
|
||||||
|
{{#each actor.items as |item id|}}
|
||||||
|
{{#if item.isTechnique }}
|
||||||
|
{{> 'systems/l5r5e/templates/item/technique-entry.html' technique=item }}
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
@@ -185,16 +185,16 @@
|
|||||||
<!--TODO in feat or props ? -->
|
<!--TODO in feat or props ? -->
|
||||||
Types de techniques accessibles
|
Types de techniques accessibles
|
||||||
<div>
|
<div>
|
||||||
{{localizeFeat 'title'}}
|
{{localizeTechnique 'title'}}
|
||||||
{{#each featsList as |feat|}}
|
{{#each techniquesList as |technique|}}
|
||||||
<label><input type="checkbox" name="step3_feat_{{feat}}">{{localizeFeat feat}}</label>
|
<label><input type="checkbox" name="step3_technique_{{technique}}">{{localizeTechnique technique}}</label>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
Techniques de départ (2-5)
|
Techniques de départ (2-5)
|
||||||
<textarea name="step3_feats">{{datas.step3_feats}}</textarea>
|
<textarea name="step3_techniques">{{datas.step3_techniques}}</textarea>
|
||||||
<!-- TODO Drag n drop feats-->
|
<!-- TODO Drag n drop techniques-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user