First character sheet, wip

This commit is contained in:
sladecraven 2022-03-19 09:30:00 +01:00
parent 6d1360cbd1
commit 178ccbd12f
40 changed files with 602 additions and 4634 deletions

View File

@ -7,14 +7,14 @@ import { Imperium5Utility } from "./imperium5-utility.js";
import { Imperium5RollDialog } from "./imperium5-roll-dialog.js";
/* -------------------------------------------- */
export class PegasusActorSheet extends ActorSheet {
export class Imperium5ActorSheet extends ActorSheet {
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["fvtt-pegasus-rpg", "sheet", "actor"],
template: "systems/fvtt-pegasus-rpg/templates/actor-sheet.html",
classes: ["fvtt-imperium5", "sheet", "actor"],
template: "systems/fvtt-imperium5/templates/actor-sheet.html",
width: 920,
height: 720,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "combat" }],
@ -25,9 +25,9 @@ export class PegasusActorSheet extends ActorSheet {
/* -------------------------------------------- */
async getData() {
const objectData = PegasusUtility.data(this.object);
const objectData = Imperium5Utility.data(this.object);
let actorData = duplicate(PegasusUtility.templateData(this.object));
let actorData = duplicate(Imperium5Utility.templateData(this.object));
let formData = {
title: this.title,
@ -38,28 +38,11 @@ export class PegasusActorSheet extends ActorSheet {
editable: this.isEditable,
cssClass: this.isEditable ? "editable" : "locked",
data: actorData,
archetype: this.actor.getArchetype(),
specialites: this.actor.getSpecialites(),
familiarites: this.actor.getFamiliarites(),
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
limited: this.object.limited,
specs: this.actor.getSpecs( ),
optionsDiceList: PegasusUtility.getOptionsDiceList(),
optionsLevel: PegasusUtility.getOptionsLevel(),
weapons: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getWeapons()) ),
armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())),
shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields()) ),
equipments: this.actor.checkAndPrepareEquipments(duplicate(this.actor.getEquipmentsOnly()) ),
perks: duplicate(this.actor.getPerks()),
abilities: duplicate(this.actor.getAbilities()),
activePerks: duplicate(this.actor.getActivePerks()),
powers: duplicate(this.actor.getPowers()),
subActors: duplicate(this.actor.getSubActors()),
race: duplicate(this.actor.getRace()),
role: duplicate(this.actor.getRole()),
effects: duplicate(this.actor.getEffects()),
moneys: duplicate(this.actor.getMoneys()),
encCapacity: this.actor.getEncumbranceCapacity(),
containersTree: this.actor.containersTree,
encCurrent: this.actor.encCurrent,
encHindrance: this.actor.encHindrance,
options: this.options,
owner: this.document.isOwner,
editScore: this.options.editScore,
@ -73,13 +56,13 @@ export class PegasusActorSheet extends ActorSheet {
/* -------------------------------------------- */
async openGenericRoll() {
let rollData = PegasusUtility.getBasicRollData()
let rollData = Imperium5Utility.getBasicRollData()
rollData.alias = "Dice Pool Roll",
rollData.mode = "generic"
rollData.title = `Dice Pool Roll`
rollData.img = "icons/dice/d12black.svg"
let rollDialog = await PegasusRollDialog.create( this.actor, rollData);
let rollDialog = await Imperium5RollDialog.create( this.actor, rollData);
rollDialog.render( true );
}
@ -87,7 +70,7 @@ export class PegasusActorSheet extends ActorSheet {
async rollIDR( itemId, diceValue) {
let item = this.actor.data.items.get( itemId) ?? {name: "Unknown"}
let myRoll = new Roll(diceValue+"x").roll({ async: false })
await PegasusUtility.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
await Imperium5Utility.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
let chatData = {
user: game.user.id,
rollMode: game.settings.get("core", "rollMode"),
@ -119,7 +102,7 @@ export class PegasusActorSheet extends ActorSheet {
// Delete Inventory Item
html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item");
PegasusUtility.confirmDelete(this, li);
Imperium5Utility.confirmDelete(this, li);
});
html.find('.spec-group-activate').click(ev => {
@ -337,11 +320,11 @@ export class PegasusActorSheet extends ActorSheet {
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
console.log(">>>>>> DROPPED!!!!")
let item = await PegasusUtility.searchItem( dragData)
let item = await Imperium5Utility.searchItem( dragData)
if (item == undefined) {
item = this.actor.items.get( dragData.data._id )
}
this.actor.preprocessItem( event, item, true )
//this.actor.preprocessItem( event, item, true )
super._onDropItem(event, dragData)
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
import { Imperium5Utility } from "./imperium5pegasus-utility.js";
import { Imperium5Utility } from "./imperium5-utility.js";
/* -------------------------------------------- */
export class PegasusCombat extends Combat {
export class Imperium5Combat extends Combat {
/* -------------------------------------------- */
async rollInitiative(ids, formula = undefined, messageOptions = {} ) {
@ -20,19 +20,4 @@ export class PegasusCombat extends Combat {
_onUpdate(changed, options, userId) {
}
/* -------------------------------------------- */
static async checkTurnPosition() {
while (game.combat.turn > 0) {
await game.combat.previousTurn()
}
}
/* -------------------------------------------- */
static async decInitBy10( combatantId, value) {
const combatant = game.combat.combatants.get(combatantId)
let initValue = combatant.initiative + value
await game.combat.setInitiative(combatantId, initValue)
setTimeout( this.checkTurnPosition, 400) // The setInitiative is no more blocking for unknown reason
}
}

View File

@ -4,14 +4,13 @@ import { Imperium5Utility } from "./imperium5-utility.js";
import { Imperium5RollDialog } from "./imperium5-roll-dialog.js";
/* -------------------------------------------- */
export class PegasusCommands {
export class Imperium5Commands {
static init() {
if (!game.system.pegasus.commands) {
const pegasusCommands = new PegasusCommands();
pegasusCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => pegasusCommands.createChar(msg), descr: "Create a new character" });
pegasusCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => pegasusCommands.poolRoll(msg), descr: "Generic Roll Window" });
game.system.pegasus.commands = pegasusCommands;
if (!game.system.imperium5.commands) {
const imperium5Commands = new Imperium5Commands();
//imperium5Commands.registerCommand({ path: ["/char"], func: (content, msg, params) => imperium5Commands.createChar(msg), descr: "Créer un personnnage" });
game.system.imperium5.commands = imperium5Commands;
}
}
constructor() {
@ -96,11 +95,6 @@ export class PegasusCommands {
return false;
}
/* -------------------------------------------- */
async createChar(msg) {
game.system.pegasus.creator = new PegasusActorCreate();
game.system.pegasus.creator.start();
}
/* -------------------------------------------- */
static _chatAnswer(msg, content) {
@ -111,12 +105,12 @@ export class PegasusCommands {
/* -------------------------------------------- */
async poolRoll( msg) {
let rollData = PegasusUtility.getBasicRollData()
let rollData = Imperium5Utility.getBasicRollData()
rollData.alias = "Dice Pool Roll",
rollData.mode = "generic"
rollData.title = `Dice Pool Roll`;
let rollDialog = await PegasusRollDialog.create( this, rollData);
let rollDialog = await Imperium5RollDialog.create( this, rollData);
rollDialog.render( true );
}

View File

@ -1,17 +1,19 @@
import { Imperium5Utility } from "./imperium5-utility.js";
/* -------------------------------------------- */
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class PegasusItemSheet extends ItemSheet {
export class Imperium5ItemSheet extends ItemSheet {
/* -------------------------------------------- */
/** @override */
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["fvtt-pegasus-rpg", "sheet", "item"],
template: "systems/fvtt-pegasus-rpg/templates/item-sheet.html",
classes: ["fvtt-imperium5", "sheet", "item"],
template: "systems/fvtt-imperium5/templates/item-sheet.html",
dragDrop: [{ dragSelector: null, dropSelector: null }],
width: 620,
height: 550,
@ -48,9 +50,9 @@ export class PegasusItemSheet extends ItemSheet {
/* -------------------------------------------- */
async getData() {
const objectData = PegasusUtility.data(this.object);
const objectData = Imperium5Utility.data(this.object);
let itemData = foundry.utils.deepClone(PegasusUtility.templateData(this.object));
let itemData = foundry.utils.deepClone(Imperium5Utility.templateData(this.object));
let formData = {
title: this.title,
id: this.id,
@ -59,13 +61,10 @@ export class PegasusItemSheet extends ItemSheet {
name: objectData.name,
editable: this.isEditable,
cssClass: this.isEditable ? "editable" : "locked",
optionsDiceList: PegasusUtility.getOptionsDiceList(),
optionsStatusList: PegasusUtility.getOptionsStatusList(),
data: itemData,
limited: this.object.limited,
options: this.options,
owner: this.document.isOwner,
mr: (this.object.type == 'specialisation'),
isGM: game.user.isGM
}
@ -88,13 +87,13 @@ export class PegasusItemSheet extends ItemSheet {
/* -------------------------------------------- */
postItem() {
let chatData = duplicate(PegasusUtility.data(this.item));
let chatData = duplicate( Imperium5Utility.data(this.item) )
if (this.actor) {
chatData.actor = { id: this.actor.id };
chatData.actor = { id: this.actor.id }
}
// Don't post any image for the item (which would leave a large gap) if the default image is used
if (chatData.img.includes("/blank.png")) {
chatData.img = null;
chatData.img = null
}
// JSON object for easy creation
chatData.jsondata = JSON.stringify(
@ -103,8 +102,8 @@ export class PegasusItemSheet extends ItemSheet {
payload: chatData,
});
renderTemplate('systems/fvtt-pegasus-rpg/templates/post-item.html', chatData).then(html => {
let chatOptions = PegasusUtility.chatDataSetup(html);
renderTemplate('systems/fvtt-imperium5/templates/post-item.html', chatData).then(html => {
let chatOptions = Imperium5Utility.chatDataSetup(html);
ChatMessage.create(chatOptions)
});
}
@ -117,7 +116,7 @@ export class PegasusItemSheet extends ItemSheet {
if (itemData.name != 'None') {
let spec = await Item.create(itemData, { temporary: true });
spec.data.origin = "embeddedItem";
new PegasusItemSheet(spec).render(true);
new Imperium5ItemSheet(spec).render(true);
}
}
@ -144,7 +143,7 @@ export class PegasusItemSheet extends ItemSheet {
if (itemData.name != 'None') {
let spec = await Item.create(itemData, { temporary: true });
spec.data.origin = "embeddedItem";
new PegasusItemSheet(spec).render(true);
new Imperium5ItemSheet(spec).render(true);
}
}
@ -162,343 +161,30 @@ export class PegasusItemSheet extends ItemSheet {
const li = $(ev.currentTarget).parents(".item");
const item = this.object.options.actor.getOwnedItem(li.data("item-id"));
item.sheet.render(true);
});
html.find('.delete-spec').click(ev => {
this.object.update({ "data.specialisation": [{ name: 'None' }] });
});
})
html.find('.delete-subitem').click(ev => {
this.deleteSubitem(ev);
});
html.find('.stat-choice-flag').click(ev => {
let idx = $(ev.currentTarget).data("stat-idx");
let array = duplicate(this.object.data.data.statincreasechoice);
array[Number(idx)].flag = !array[Number(idx)].flag;
this.object.update({ "data.statincreasechoice": array });
});
})
// Update Inventory Item
html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item");
let itemId = li.data("item-id");
let itemType = li.data("item-type");
});
html.find('.view-subitem').click(ev => {
this.viewSubitem(ev);
});
html.find('.view-spec').click(ev => {
this.manageSpec();
});
})
}
/* -------------------------------------------- */
async addAbility(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
console.log("ABB", event, item, dataItem)
if (event.toElement.className == 'drop-abilities') {
let abilityArray = duplicate(this.object.data.data.abilities);
abilityArray.push(newItem);
await this.object.update({ 'data.abilities': abilityArray });
}
if (event.toElement.className == 'drop-optionnal-abilities') {
let abilityArray = duplicate(this.object.data.data.optionnalabilities);
abilityArray.push(newItem);
await this.object.update({ 'data.optionnalabilities': abilityArray });
}
}
/* -------------------------------------------- */
async addRacePerk(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-race-perk') {
let perkArray = duplicate(this.object.data.data.perks);
perkArray.push(newItem);
await this.object.update({ 'data.perks': perkArray });
}
}
/* -------------------------------------------- */
async addSpecialisation(item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
let specArray = [newItem];
await this.object.update({ 'data.specialisation': specArray });
}
/* -------------------------------------------- */
async addRoleSpecialisation(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
console.log("Add spec", event, newItem);
if (event.toElement.className == 'drop-spec1') {
let specArray = duplicate(this.object.data.data.specialisationsplus1);
specArray.push(newItem);
await this.object.update({ 'data.specialisationsplus1': specArray });
}
if (event.toElement.className == 'drop-spec2') {
let specArray = duplicate(this.object.data.data.specincrease);
specArray.push(newItem);
await this.object.update({ 'data.specincrease': specArray });
}
}
/* -------------------------------------------- */
async addRolePerk(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
console.log("Add spec", event, newItem);
if (event.toElement.className == 'drop-perk2') {
let perkArray = duplicate(this.object.data.data.perks);
perkArray.push(newItem);
await this.object.update({ 'data.perks': perkArray });
}
if (event.toElement.className == 'drop-specialperk1') {
let perkArray = duplicate(this.object.data.data.specialperk);
perkArray.push(newItem);
await this.object.update({ 'data.specialperk': perkArray });
}
}
/* -------------------------------------------- */
async addPower(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-spec-power') {
let powArray = duplicate(this.object.data.data.powers);
powArray.push(newItem);
await this.object.update({ 'data.powers': powArray });
}
}
/* -------------------------------------------- */
async addAbilityPower(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-ability-power') {
let powArray = duplicate(this.object.data.data.powersgained);
powArray.push(newItem);
await this.object.update({ 'data.powersgained': powArray });
}
}
/* -------------------------------------------- */
async addAbilityEffect(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-ability-effect') {
let powArray = duplicate(this.object.data.data.effectsgained);
powArray.push(newItem);
await this.object.update({ 'data.effectsgained': powArray });
}
}
/* -------------------------------------------- */
async addAbilitySpec(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-ability-spec') {
let powArray = duplicate(this.object.data.data.specialisations);
powArray.push(newItem);
await this.object.update({ 'data.specialisations': powArray });
}
}
/* -------------------------------------------- */
async addAbilityWeaponArmor(event, item, dataItem) {
let newItem = duplicate(item.data);
newItem._id = randomID(dataItem.id.length);
if (event.toElement.className == 'drop-ability-weapon') {
let weaponArray = duplicate(this.object.data.data.attackgained);
weaponArray.push(newItem);
await this.object.update({ 'data.attackgained': weaponArray });
}
if (event.toElement.className == 'drop-ability-armor') {
let armorArray = duplicate(this.object.data.data.armorgained);
armorArray.push(newItem);
await this.object.update({ 'data.armorgained': armorArray });
}
}
/* -------------------------------------------- */
async addPerkSpecialisation(event, item, dataItem) {
let newItem = duplicate(item.data);
if (event.toElement.className == 'drop-spec-perk') {
//console.log("PER SPEC", event)
let key = event.toElement.dataset["key"];
if (key == 'affectedspec') {
await this.object.update({ 'data.features.affectedspec.value': newItem.name });
} else {
await this.object.update({ 'data.features.gainspecdice.value': newItem.name });
}
}
}
/* -------------------------------------------- */
async addPerkEffect(event, item, dataItem) {
let newItem = duplicate(item.data)
if (event.toElement.className == 'drop-perk-effect') {
let effectArray = duplicate(this.object.data.data.effectsgained)
effectArray.push(newItem)
await this.object.update({ 'data.effectsgained': effectArray })
}
}
/* -------------------------------------------- */
async addEffectPower(event, item, dataItem) {
let newItem = duplicate(item.data)
if (event.toElement.className == 'drop-power-effect') {
let effectArray = duplicate(this.object.data.data.effectsgained)
effectArray.push(newItem);
await this.object.update({ 'data.effectsgained': effectArray })
}
}
/* -------------------------------------------- */
async addEffectSpec(event, item, dataItem) {
let newItem = duplicate(item.data);
if (event.toElement.className == 'drop-effect-spec') {
let specArray = duplicate(this.object.data.data.recoveryrollspec);
specArray.push(newItem);
await this.object.update({ 'data.recoveryrollspec': specArray });
}
if (event.toElement.className == 'drop-effect-specaffected') {
let specArray = duplicate(this.object.data.data.specaffected);
specArray.push(newItem);
await this.object.update({ 'data.specaffected': specArray });
}
}
/* -------------------------------------------- */
async addEffectItem(event, item, dataItem) {
let newItem = duplicate(item.data);
if (event.toElement.className == 'drop-equipment-effect') {
let effectArray = duplicate(this.object.data.data.effects);
effectArray.push(newItem);
await this.object.update({ 'data.effects': effectArray });
}
}
/* -------------------------------------------- */
async _onDrop(event) {
if (this.object.type == 'weapon' || this.object.type == 'armor' || this.object.type == 'shield'
|| this.object.type == 'equipment') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'effect') {
return this.addEffectItem(event, item, dataItem);
}
}
}
if (this.object.type == 'power') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'effect') {
return this.addEffectPower(event, item, dataItem);
}
}
}
if (this.object.type == 'effect') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'specialisation') {
return this.addEffectSpec(event, item, dataItem);
}
}
}
if (this.object.type == 'race') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'ability') {
return this.addAbility(event, item, dataItem);
}
if (item.data.type == 'perk') {
return this.addRacePerk(event, item, dataItem);
}
}
}
if (this.object.type == 'perk') {
let data = event.dataTransfer.getData('text/plain')
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem)
if (item.data.type == 'specialisation') {
return this.addPerkSpecialisation(event, item, dataItem)
}
if (item.data.type == 'effect') {
return this.addPerkEffect(event, item, dataItem);
}
}
}
if (this.object.type == 'specialisation') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'power') {
return this.addPower(event, item, dataItem);
}
}
}
if (this.object.type == 'ability') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'effect') {
return this.addAbilityEffect(event, item, dataItem);
}
if (item.data.type == 'power') {
return this.addAbilityPower(event, item, dataItem);
}
if (item.data.type == 'specialisation') {
return this.addAbilitySpec(event, item, dataItem);
}
if (item.data.type == 'weapon' || item.data.type == 'armor') {
return this.addAbilityWeaponArmor(event, item, dataItem);
}
}
}
if (this.object.type == 'role') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);
let item = await PegasusUtility.searchItem(dataItem);
if (item.data.type == 'specialisation') {
return this.addRoleSpecialisation(event, item, dataItem);
}
if (item.data.type == 'perk') {
return this.addRolePerk(event, item, dataItem);
}
}
}
ui.notifications.warn("This item can not be dropped over another item");
}
/* -------------------------------------------- */
get template() {
let type = this.item.type;
return `systems/fvtt-pegasus-rpg/templates/item-${type}-sheet.html`;
return `systems/fvtt-imperium5/templates/item-default-sheet.html`;
}
/* -------------------------------------------- */

View File

@ -1,32 +1,19 @@
export const defaultItemImg = {
specialisation: "systems/fvtt-pegasus-rpg/images/icons/icon_spec.webp",
perk: "systems/fvtt-pegasus-rpg/images/icons/icon_perk.webp",
ability: "systems/fvtt-pegasus-rpg/images/icons/icon_raceability.webp",
armor: "systems/fvtt-pegasus-rpg/images/icons/icon_armour.webp",
weapon: "systems/fvtt-pegasus-rpg/images/icons/icon_weapon.webp",
equipment: "systems/fvtt-pegasus-rpg/images/icons/icon_equipment.webp",
effect: "systems/fvtt-pegasus-rpg/images/icons/icon_effect.webp",
race: "systems/fvtt-pegasus-rpg/images/icons/icon_race.webp",
power: "systems/fvtt-pegasus-rpg/images/icons/icon_power.webp",
armour: "systems/fvtt-pegasus-rpg/images/icons/icon_armour.webp",
equipment: "systems/fvtt-pegasus-rpg/images/icons/icon_equipment.webp",
weapon: "systems/fvtt-pegasus-rpg/images/icons/icon_meleeweapon.webp",
shield: "systems/fvtt-pegasus-rpg/images/icons/icon_shield.webp",
money: "systems/fvtt-pegasus-rpg/images/icons/icon_money.webp",
archetype: "systems/fvtt-imperium5/images/icons/archetype.webp",
}
/**
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class PegasusItem extends Item {
export class Imperium5Item extends Item {
constructor(data, context) {
if (!data.img) {
data.img = defaultItemImg[data.type];
data.img = defaultItemImg[data.type]
}
super(data, context);
super(data, context)
}
}

View File

@ -21,21 +21,11 @@ import { Imperium5Item } from "./imperium5-item.js";
/************************************************************************************/
Hooks.once("init", async function () {
console.log(`Initializing Pegasus RPG`);
console.log(`Initializing Imperium5 RPG`);
/* -------------------------------------------- */
// preload handlebars templates
PegasusUtility.preloadHandlebarsTemplates();
/* -------------------------------------------- */
game.settings.register("fvtt-pegasus-rpg", "dice-max-level", {
name: "Maximum level value for dices lists",
hint: "Se the maximum level value for dices lists",
scope: "world",
config: true,
default: 20,
type: Number
});
Imperium5Utility.preloadHandlebarsTemplates();
/* -------------------------------------------- */
// Set an initiative formula for the system
@ -45,30 +35,28 @@ Hooks.once("init", async function () {
};
/* -------------------------------------------- */
game.socket.on("system.fvtt-pegasus-rpg", data => {
PegasusUtility.onSocketMesssage(data)
game.socket.on("system.fvtt-imperium5", data => {
Imperium5Utility.onSocketMesssage(data)
});
/* -------------------------------------------- */
// Define custom Entity classes
CONFIG.Combat.documentClass = PegasusCombat
CONFIG.Actor.documentClass = PegasusActor
CONFIG.Item.documentClass = PegasusItem
//CONFIG.Token.objectClass = PegasusToken
game.system.pegasus = { };
CONFIG.Combat.documentClass = Imperium5Combat
CONFIG.Actor.documentClass = Imperium5Actor
CONFIG.Item.documentClass = Imperium5Item
game.system.imperium5 = { }
/* -------------------------------------------- */
// Register sheet application classes
Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet("fvtt-pegasus", PegasusActorSheet, { types: ["character"], makeDefault: true });
Actors.registerSheet("fvtt-pegasus", PegasusNPCSheet, { types: ["npc"], makeDefault: false });
Actors.unregisterSheet("core", ActorSheet)
Actors.registerSheet("fvtt-imperium5", Imperium5ActorSheet, { types: ["character"], makeDefault: true })
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("fvtt-pegasus", PegasusItemSheet, { makeDefault: true });
Items.unregisterSheet("core", ItemSheet)
Items.registerSheet("fvtt-imperium5", Imperium5ItemSheet, { makeDefault: true } )
PegasusUtility.init();
Imperium5Utility.init()
});
})
/* -------------------------------------------- */
function welcomeMessage() {
@ -76,15 +64,7 @@ function welcomeMessage() {
user: game.user.id,
whisper: [game.user.id],
content: `<div id="welcome-message-pegasus"><span class="rdd-roll-part">
<strong>Welcome to the Pegasus Engine CORE RPG.</strong>
<br>Created by GMD Online
<p>The Pegasus Engine is a available for free on our website. It is also available as a PDF and in Print format at an affordable price.</p>
<p>This project has been made possible thanks to all the Official GMD Members and Patreon Members that have supported me and as a result made it possible to supply this interface for free.</p>
<p>In return I have made available a fully detailed Compendium for FREE for all members, which can be obtained from the Members page on my website.</p>
<P>You too can become a supporter for future projects and enjoy amazing rewards.
<BR>Sign up Here : https://www.gmdonline.co.uk/gmdmemberspage/</p>
<p>GMD Online, GMD CORE RPG logo are © 2018 CORE Worlds and Game Rules © 2001. Interface © 2021 All rights reserved.</p>
<p>Enjoy and become the hero you were born to be!</p>
<strong>Bienvenue dans Imperium5 !</strong>
` });
}
@ -93,36 +73,36 @@ function welcomeMessage() {
/* -------------------------------------------- */
Hooks.once("ready", function () {
PegasusUtility.ready();
// User warning
Imperium5Utility.ready()
if (!game.user.isGM && game.user.character == undefined) {
ui.notifications.info("Warning ! No character linked to your user !");
ui.notifications.info("Attention ! Aucun personnage n'est relié !")
ChatMessage.create({
content: "<b>WARNING</b> The player " + game.user.name + " is not linked to a character !",
content: "<b>WARNING</b> Le joueur " + game.user.name + " n'est pas connecté à un personnage !",
user: game.user._id
});
}
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
let sidebar = document.getElementById("sidebar")
sidebar.style.width = "min-content"
}
welcomeMessage();
});
welcomeMessage()
})
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
Hooks.on("chatMessage", (html, content, msg) => {
if (content[0] == '/') {
let regExp = /(\S+)/g;
let commands = content.match(regExp);
if (game.system.pegasus.commands.processChatCommand(commands, content, msg)) {
return false;
let regExp = /(\S+)/g
let commands = content.match(regExp)
if (game.system.imperium5.commands.processChatCommand(commands, content, msg)) {
return false
}
}
return true;
return true
});

View File

@ -1,20 +1,20 @@
import { Imperium5Utility } from "./imperium5-utility.js";
export class PegasusRollDialog extends Dialog {
export class Imperium5RollDialog extends Dialog {
/* -------------------------------------------- */
static async create(actor, rollData ) {
let options = { classes: ["PegasusDialog"], width: 620, height: 380, 'z-index': 99999 };
let html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-generic.html', rollData);
let options = { classes: ["Imperium5Dialog"], width: 620, height: 380, 'z-index': 99999 }
let html = await renderTemplate('systems/fvtt-imperium5/templates/roll-dialog-generic.html', rollData)
return new PegasusRollDialog(actor, rollData, html, options );
return new Imperium5RollDialog(actor, rollData, html, options )
}
/* -------------------------------------------- */
constructor(actor, rollData, html, options, close = undefined) {
let conf = {
title: (rollData.mode == "skill") ? "Skill" : "Roll",
title:"Jet",
content: html,
buttons: {
roll: {
@ -38,202 +38,17 @@ export class PegasusRollDialog extends Dialog {
/* -------------------------------------------- */
roll () {
PegasusUtility.rollPegasus( this.rollData )
Imperium5Utility.rollImperium5( this.rollData )
}
/* -------------------------------------------- */
manageEffects( effectIdx, toggled) {
let effect = this.rollData.effectsList[effectIdx]
if (effect) {
effect.applied = toggled
let level, genre, idVal
if (effect.type == 'hindrance' ) {
level = effect.value
genre = 'positive'
idVal = "#hindranceDicesLevel"
}
if (effect.type == 'effect' ) {
let effectData = effect.effect
level = effectData.data.effectlevel
genre = effectData.data.genre
effectData.data.isUsed = toggled
if (effectData.data.bonusdice) {
idVal = "#bonusDicesLevel"
}
if (effectData.data.reducedicevalue || effectData.data.statdice) {
idVal = "#statDicesLevel"
}
if (effectData.data.otherdice) {
idVal = "#otherDicesLevel"
}
if (effectData.data.hindrance) {
idVal = "#hindranceDicesLevel"
genre = 'positive' // Dynamic fix
}
}
// Now process the dice level update
let newLevel = Number($(idVal).val())
console.log("Ongoing", newLevel, toggled, idVal )
if (toggled) {
if ( genre == 'positive') {
newLevel += Number(level)
}else {
newLevel -= Number(level)
}
}else {
if ( genre == 'positive') {
newLevel -= Number(level)
}else {
newLevel += Number(level)
}
}
newLevel = (newLevel<0) ? 0 : newLevel
$(idVal).val(newLevel)
}
//console.log("Effect", effect, toggled)
this.rollData.statDicesLevel = Number($('#statDicesLevel').val())
this.rollData.specDicesLevel = Number($('#specDicesLevel').val())
this.rollData.bonusDicesLevel = Number($('#bonusDicesLevel').val())
this.rollData.hindranceDicesLevel = Number($('#hindranceDicesLevel').val())
this.rollData.otherDicesLevel = Number($('#otherDicesLevel').val())
}
/* -------------------------------------------- */
manageArmors( armorIdx, toggled) {
let armor = this.rollData.armorsList[armorIdx]
if (armor) {
armor.applied = toggled
if (armor.type == 'other' ) {
if (toggled) {
this.rollData.otherDicesLevel += Number(armor.value)
} else {
this.rollData.otherDicesLevel -= Number(armor.value)
this.rollData.otherDicesLevel = (this.rollData.otherDicesLevel<0) ? 0 : this.rollData.otherDicesLevel
}
$("#otherDicesLevel").val(this.rollData.otherDicesLevel)
}
}
console.log("Armor", armorIdx, toggled)
}
/* -------------------------------------------- */
manageWeapons( weaponIdx, toggled) {
let weapon = this.rollData.weaponsList[weaponIdx]
if (weapon) {
if (toggled) {
this.rollData.weaponName = weapon.weapon.name
} else {
this.rollData.weaponName = undefined
}
weapon.applied = toggled
if (weapon.type == 'damage' || weapon.type == 'enhanced' ) {
if (toggled) {
this.rollData.otherDicesLevel += Number(weapon.value)
} else {
this.rollData.weaponName = undefined
this.rollData.otherDicesLevel -= Number(weapon.value)
this.rollData.otherDicesLevel = (this.rollData.otherDicesLevel<0) ? 0 : this.rollData.otherDicesLevel
}
$("#otherDicesLevel").val(this.rollData.otherDicesLevel)
}
}
console.log("Weapon", weaponIdx, toggled, this.rollData.otherDicesLevel, weapon)
}
/* -------------------------------------------- */
manageEquip( equipIdx, toggled) {
let equip = this.rollData.equipmentsList[equipIdx]
if (equip) {
equip.applied = toggled
let idVal = "#otherDicesLevel" // Default
if (equip.equip.data.bonusdice) {
idVal = "#bonusDicesLevel"
}
if (equip.equip.data.statdice) {
idVal = "#statDicesLevel"
}
if (equip.equip.data.otherdice) {
idVal = "#otherDicesLevel"
}
let newLevel = Number($(idVal).val())
if (toggled) {
newLevel += Number(equip.value)
} else {
newLevel -= Number(equip.value)
}
newLevel = (newLevel <0) ? 0 : newLevel
$(idVal).val(newLevel)
// Then refresh
this.rollData.statDicesLevel = Number($('#statDicesLevel').val())
this.rollData.specDicesLevel = Number($('#specDicesLevel').val())
this.rollData.bonusDicesLevel = Number($('#bonusDicesLevel').val())
this.rollData.hindranceDicesLevel = Number($('#hindranceDicesLevel').val())
this.rollData.otherDicesLevel = Number($('#otherDicesLevel').val())
}
}
/* -------------------------------------------- */
activateListeners(html) {
super.activateListeners(html);
super.activateListeners(html)
var dialog = this;
var dialog = this
function onLoad() {
}
$(function () { onLoad(); });
html.find('#specList').change(async (event) => {
this.rollData.selectedSpec = event.currentTarget.value
let spec = this.rollData.specList.find(item => item._id == this.rollData.selectedSpec)
if ( spec) {
this.rollData.specDiceLevel = spec.data.level
this.rollData.specName = spec.name
$('#specDicesLevel').val(this.rollData.specDiceLevel)
} else {
this.rollData.specName = undefined
$('#specDicesLevel').val(0)
}
const content = await renderTemplate("systems/fvtt-pegasus-rpg/templates/roll-dialog-generic.html", this.rollData)
this.data.content = content
this.render(true)
});
html.find('#statDicesLevel').change((event) => {
this.rollData.statDicesLevel = Number(event.currentTarget.value)
});
html.find('#specDicesLevel').change((event) => {
this.rollData.specDicesLevel = Number(event.currentTarget.value)
});
html.find('#bonusDicesLevel').change((event) => {
this.rollData.bonusDicesLevel = Number(event.currentTarget.value)
});
html.find('#hindranceDicesLevel').change((event) => {
this.rollData.hindranceDicesLevel = Number(event.currentTarget.value)
});
html.find('#otherDicesLevel').change((event) => {
this.rollData.otherDicesLevel = Number(event.currentTarget.value)
});
html.find('.effect-clicked').change((event) => {
let toggled = event.currentTarget.checked
let effectIdx = $(event.currentTarget).data("effect-idx")
this.manageEffects( effectIdx, toggled)
});
html.find('.armor-clicked').change((event) => {
let toggled = event.currentTarget.checked
let armorIdx = $(event.currentTarget).data("armor-idx")
this.manageArmors( armorIdx, toggled)
});
html.find('.weapon-clicked').change((event) => {
let toggled = event.currentTarget.checked
let weaponIdx = $(event.currentTarget).data("weapon-idx")
this.manageWeapons( weaponIdx, toggled)
});
html.find('.equip-clicked').change((event) => {
let toggled = event.currentTarget.checked
let equipIdx = $(event.currentTarget).data("equip-idx")
this.manageEquip( equipIdx, toggled)
});
$(function () { onLoad(); })
}
}

View File

@ -12,21 +12,16 @@ export class Imperium5Utility {
/* -------------------------------------------- */
static async init() {
Hooks.on('renderChatLog', (log, html, data) => PegasusUtility.chatListeners(html));
Hooks.on('renderChatLog', (log, html, data) => Imperium5Utility.chatListeners(html));
Hooks.on("getCombatTrackerEntryContext", (html, options) => {
PegasusUtility.pushInitiativeOptions(html, options);
});
Hooks.on("dropCanvasData", (canvas, data) => {
PegasusUtility.dropItemOnToken(canvas, data)
});
Imperium5Utility.pushInitiativeOptions(html, options);
})
this.rollDataStore = {}
this.defenderStore = {}
this.diceList = [];
this.diceFoundryList = [];
this.optionsDiceList = "";
this.buildDiceLists();
PegasusCommands.init();
this.diceList = []
Imperium5Commands.init();
Handlebars.registerHelper('count', function (list) {
return list.length;
@ -50,23 +45,18 @@ export class Imperium5Utility {
Handlebars.registerHelper('mul', function (a, b) {
return parseInt(a) * parseInt(b);
})
Handlebars.registerHelper('exists', function (val) {
return val != null && val != undefined;
})
}
/* -------------------------------------------- */
static pushInitiativeOptions(html, options) {
console.log('Option pushed....')
options.push({ name: "Apply -10", condition: true, icon: '<i class="fas fa-plus"></i>', callback: target => { PegasusCombat.decInitBy10(target.data('combatant-id'), -10); } })
}
/* -------------------------------------------- */
static getSpecs() {
return this.specs;
}
/* -------------------------------------------- */
static async ready() {
const specs = await PegasusUtility.loadCompendium("fvtt-pegasus-rpg.specialisations");
this.specs = specs.map(i => i.toObject());
}
/* -------------------------------------------- */
@ -81,30 +71,6 @@ export class Imperium5Utility {
ChatMessage.create(chatData);
}
/* -------------------------------------------- */
static async dropItemOnToken(canvas, data) {
if (data.type != "Item") {
return
}
const position = canvas.grid.getTopLeft(data.x, data.y)
let x = position[0]
let y = position[1]
const tokensList = [...canvas.tokens.placeables]
for (let token of tokensList) {
if (x >= token.x && x <= (token.x + token.width)
&& y >= token.y && y <= (token.y + token.height)) {
let item = await this.searchItem(data)
if (game.user.isGM || token.actor.isOwner) {
this.addItemDropToActor(token.actor, item)
} else {
game.socket.emit("system.fvtt-pegasus-rpg", { name: "msg_gm_item_drop", data: { actorId: token.actor.id, itemId: item.id, isPack: item.pack } })
}
return
}
}
}
/* -------------------------------------------- */
static async loadCompendiumData(compendium) {
const pack = game.packs.get(compendium);
@ -113,106 +79,31 @@ export class Imperium5Utility {
/* -------------------------------------------- */
static async loadCompendium(compendium, filter = item => true) {
let compendiumData = await PegasusUtility.loadCompendiumData(compendium);
let compendiumData = await Imperium5Utility.loadCompendiumData(compendium);
return compendiumData.filter(filter);
}
/* -------------------------------------------- */
static buildDiceLists() {
let maxLevel = game.settings.get("fvtt-pegasus-rpg", "dice-max-level");
let diceList = ["0"];
let diceValues = [0];
let diceFoundryList = ["d0"];
let diceLevel = 1;
let concat = "";
let concatFoundry = "";
let optionsDiceList = '<option value="0">0</option>';
let optionsLevel = '<option value="0">0</option>';
for (let i = 1; i <= maxLevel; i++) {
let currentDices = concat + __level2Dice[diceLevel];
diceList.push(currentDices);
diceFoundryList.push(concatFoundry + __level2Dice[diceLevel] + "x");
if (__level2Dice[diceLevel] == "d12") {
concat = concat + "d12 ";
concatFoundry = concatFoundry + "d12x, ";
diceLevel = 1;
} else {
diceLevel++;
}
optionsDiceList += `<option value="${i}">${currentDices}</option>`;
optionsLevel += `<option value="${i}">${i}</option>`;
}
this.diceList = diceList;
this.diceFoundryList = diceFoundryList;
this.optionsDiceList = optionsDiceList;
this.optionsLevel = optionsLevel;
this.optionsStatusList = '<option value="notapplicable">Not applicable</option><option value="health">Health</option><option value="nrg">NRG</option><option value="delirium">Delirium</option>';
}
/* -------------------------------------------- */
static getOptionsStatusList() {
return this.optionsStatusList;
}
/* -------------------------------------------- */
static getOptionsDiceList() {
return this.optionsDiceList;
}
/* -------------------------------------------- */
static getOptionsLevel() {
return this.optionsLevel;
}
/* -------------------------------------------- */
static computeAttackDefense(defenseRollId) {
let defenseRollData = this.getRollData(defenseRollId);
let attackRollData = this.getRollData(defenseRollData.linkedRollId);
let defender = game.actors.get(defenseRollData.actorId);
defender.processDefenseResult(defenseRollData, attackRollData);
}
/* -------------------------------------------- */
static applyDamage(defenseRollId) {
let defenseRollData = this.getRollData(defenseRollId);
let defender = game.actors.get(defenseRollData.actorId);
defender.applyDamageLoss(defenseRollData.finalDamage);
}
/* -------------------------------------------- */
static applyNoDefense(actorId, attackRollId) {
let attackRollData = this.getRollData(attackRollId);
let defender = game.actors.get(actorId);
defender.processNoDefense(attackRollData);
}
/* -------------------------------------------- */
static async chatListeners(html) {
html.on("click", '.chat-create-actor', event => {
game.system.pegasus.creator.processChatEvent(event);
});
html.on("click", '.view-item-from-chat', event => {
game.system.pegasus.creator.openItemView(event)
});
})
}
/* -------------------------------------------- */
static async preloadHandlebarsTemplates() {
const templatePaths = [
'systems/fvtt-pegasus-rpg/templates/editor-notes-gm.html',
'systems/fvtt-pegasus-rpg/templates/partial-roll-select-effects.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-level.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-range.html',
'systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html',
'systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html'
'systems/fvtt-imperium5/templates/editor-notes-gm.html',
'systems/fvtt-imperium5/templates/actor-partial-ames.html',
'systems/fvtt-imperium5/templates/actor-partial-paradigmes.html',
'systems/fvtt-imperium5/templates/partial-item-description.html',
]
return loadTemplates(templatePaths);
}
@ -241,15 +132,15 @@ export class Imperium5Utility {
}
static findChatMessageId(current) {
return PegasusUtility.getChatMessageId(PegasusUtility.findChatMessage(current));
return Imperium5Utility.getChatMessageId(Imperium5Utility.findChatMessage(current))
}
static getChatMessageId(node) {
return node?.attributes.getNamedItem('data-message-id')?.value;
return node?.attributes.getNamedItem('data-message-id')?.value
}
static findChatMessage(current) {
return PegasusUtility.findNodeMatching(current, it => it.classList.contains('chat-message') && it.attributes.getNamedItem('data-message-id'));
return Imperium5Utility.findNodeMatching(current, it => it.classList.contains('chat-message') && it.attributes.getNamedItem('data-message-id'))
}
static findNodeMatching(current, predicate) {
@ -257,14 +148,14 @@ export class Imperium5Utility {
if (predicate(current)) {
return current;
}
return PegasusUtility.findNodeMatching(current.parentElement, predicate);
return Imperium5Utility.findNodeMatching(current.parentElement, predicate)
}
return undefined;
}
/* -------------------------------------------- */
static templateData(it) {
return PegasusUtility.data(it)?.data ?? {}
return Imperium5Utility.data(it)?.data ?? {}
}
/* -------------------------------------------- */
@ -275,29 +166,6 @@ export class Imperium5Utility {
return it;
}
/* -------------------------------------------- */
static getDiceValue(level = 0) {
let diceString = this.diceList[level]
let diceTab = diceString.split(" ")
let diceValue = 0
for (let dice of diceTab) {
diceValue += __name2DiceValue[dice]
}
return diceValue
}
/* -------------------------------------------- */
static getDiceFromLevel(level = 0) {
level = Number(level)
return this.diceList[level];
}
/* -------------------------------------------- */
static getFoundryDiceFromLevel(level = 0) {
level = Number(level)
//console.log(this.diceFoundryList);
return this.diceFoundryList[level];
}
/* -------------------------------------------- */
static createDirectOptionList(min, max) {
let options = {};
@ -326,29 +194,6 @@ export class Imperium5Utility {
return undefined;
}
/* -------------------------------------------- */
static getDefenseState(actorId) {
return this.defenderStore[actorId];
}
/* -------------------------------------------- */
static async updateDefenseState(defenderId, rollId) {
this.defenderStore[defenderId] = rollId;
if (game.user.character && game.user.character.id == defenderId) {
let defender = game.actors.get(defenderId);
let chatData = {
user: game.user.id,
alias: defender.name,
rollMode: game.settings.get("core", "rollMode"),
whisper: [game.user.id].concat(ChatMessage.getWhisperRecipients('GM')),
content: `<div>${defender.name} is under attack. He must roll a skill/weapon/technique to defend himself or suffer damages (button below).
<button class="chat-card-button apply-nodefense" data-actor-id="${defenderId}" data-roll-id="${rollId}" >No defense</button></div`
};
//console.log("Apply damage chat", chatData );
await ChatMessage.create(chatData);
}
}
/* -------------------------------------------- */
static updateRollData(rollData) {
@ -373,22 +218,9 @@ export class Imperium5Utility {
/* -------------------------------------------- */
static async onSocketMesssage(msg) {
console.log("SOCKET MESSAGE", msg.name)
if (msg.name == "msg_update_defense_state") {
this.updateDefenseState(msg.data.defenderId, msg.data.rollId)
}
if (msg.name == "msg_update_roll") {
this.updateRollData(msg.data)
}
if (msg.name == "msg_gm_item_drop" && game.user.isGM) {
let actor = game.actors.get( msg.data.actorId )
let item
if (msg.data.isPack) {
item = await fromUuid("Compendium." + msg.data.isPack + "." + msg.data.itemId)
} else {
item = game.items.get(msg.data.itemId)
}
this.addItemDropToActor( actor, item )
}
}
/* -------------------------------------------- */
@ -399,13 +231,13 @@ export class Imperium5Utility {
content: content
};
if (["gmroll", "blindroll"].includes(chatData.rollMode)) chatData["whisper"] = ChatMessage.getWhisperRecipients("GM").map(u => u.id);
if (chatData.rollMode === "blindroll") chatData["blind"] = true;
else if (chatData.rollMode === "selfroll") chatData["whisper"] = [game.user];
if (["gmroll", "blindroll"].includes(chatData.rollMode)) chatData["whisper"] = ChatMessage.getWhisperRecipients("GM").map(u => u.id)
if (chatData.rollMode === "blindroll") chatData["blind"] = true
else if (chatData.rollMode === "selfroll") chatData["whisper"] = [game.user]
if (forceWhisper) { // Final force !
chatData["speaker"] = ChatMessage.getSpeaker();
chatData["whisper"] = ChatMessage.getWhisperRecipients(forceWhisper);
chatData["speaker"] = ChatMessage.getSpeaker()
chatData["whisper"] = ChatMessage.getWhisperRecipients(forceWhisper)
}
return chatData;
@ -444,28 +276,13 @@ export class Imperium5Utility {
whisper = [game.user.id];
break;
}
await game.dice3d.showForRoll(roll, game.user, true, whisper, blind);
await game.dice3d.showForRoll(roll, game.user, true, whisper, blind)
}
}
}
/* -------------------------------------------- */
static removeUsedPerkEffects(rollData) {
// De-actived used effects from perks
let toRem = []
for (let effect of rollData.effectsList) {
if (effect.effect.data.perkId && effect.effect.data.isUsed) {
toRem.push(effect.effect._id)
}
}
if (toRem.length > 0) {
let actor = game.actors.get(rollData.actorId)
actor.deleteEmbeddedDocuments('Item', toRem)
}
}
/* -------------------------------------------- */
static async rollPegasus(rollData) {
static async rollImperium5(rollData) {
let dicePool = [{ name: "stat", level: 0, statmod: 0 }, { name: "spec", level: 0 }, { name: "bonus", level: 0 }, { name: "hindrance", level: 0 }, { name: "other", level: 0 }];
if (rollData.stat) {
@ -477,7 +294,7 @@ export class Imperium5Utility {
}
if (rollData.selectedSpec && rollData.selectedSpec != "0") {
rollData.spec = rollData.specList.find(item => item._id == rollData.selectedSpec);
rollData.spec.data.dice = PegasusUtility.getDiceFromLevel(rollData.spec.data.level);
rollData.spec.data.dice = Imperium5Utility.getDiceFromLevel(rollData.spec.data.level);
}
if (rollData.spec) {
dicePool[1].level += Number(rollData.spec.data.level);
@ -521,7 +338,7 @@ export class Imperium5Utility {
}
this.createChatWithRollMode(rollData.alias, {
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-generic-result.html`, rollData)
content: await renderTemplate(`systems/fvtt-imperium5/templates/chat-generic-result.html`, rollData)
});
// Init stuf
@ -536,29 +353,23 @@ export class Imperium5Utility {
this.saveRollData(rollData);
}
/* -------------------------------------------- */
static getDamageDice(result) {
if (result < 0) return 0;
return Math.floor(result / 5) + 1;
}
/* ------------------------- ------------------- */
static async updateRoll(rollData) {
let diceResults = rollData.diceResults;
let sortedRoll = [];
let diceResults = rollData.diceResults
let sortedRoll = []
for (let i = 0; i < 10; i++) {
sortedRoll[i] = 0;
}
for (let dice of diceResults) {
sortedRoll[dice.result]++;
sortedRoll[dice.result]++
}
let index = 0;
let bestRoll = 0;
for (let i = 0; i < 10; i++) {
if (sortedRoll[i] > bestRoll) {
bestRoll = sortedRoll[i];
index = i;
bestRoll = sortedRoll[i]
index = i
}
}
let bestScore = (bestRoll * 10) + index
@ -574,33 +385,21 @@ export class Imperium5Utility {
/* ------------------------- ------------------- */
static async rerollDice(actorId, diceIndex = -1) {
let actor = game.actors.get(actorId);
let rollData = actor.getRollData();
let actor = game.actors.get(actorId)
let rollData = actor.getRollData()
if (diceIndex == -1) {
rollData.hasWillpower = actor.decrementWillpower();
rollData.roll = undefined;
} else {
let myRoll = new Roll("1d6").roll({ async: false });
await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"));
console.log("Result: ", myRoll);
rollData.roll.dice[0].results[diceIndex].result = myRoll.total; // Patch
rollData.nbStrongHitUsed++;
}
this.rollFraggedKingdom(rollData);
}
/* -------------------------------------------- */
static getUsers(filter) {
return game.users.filter(filter).map(user => user.data._id);
return game.users.filter(filter).map(user => user.data._id)
}
/* -------------------------------------------- */
static getWhisperRecipients(rollMode, name) {
switch (rollMode) {
case "blindroll": return this.getUsers(user => user.isGM);
case "gmroll": return this.getWhisperRecipientsAndGMs(name);
case "selfroll": return [game.user.id];
case "blindroll": return this.getUsers(user => user.isGM)
case "gmroll": return this.getWhisperRecipientsAndGMs(name)
case "selfroll": return [game.user.id]
}
return undefined;
}
@ -614,7 +413,7 @@ export class Imperium5Utility {
static blindMessageToGM(chatOptions) {
let chatGM = duplicate(chatOptions);
chatGM.whisper = this.getUsers(user => user.isGM);
chatGM.content = "Blinde message of " + game.user.name + "<br>" + chatOptions.content;
chatGM.content = "Message en aveugle à " + game.user.name + "<br>" + chatOptions.content;
console.log("blindMessageToGM", chatGM);
game.socket.emit("system.fvtt-pegasus-rgp", { msg: "msg_gm_chat_message", data: chatGM });
}
@ -653,17 +452,17 @@ export class Imperium5Utility {
switch (rollMode) {
case "blindroll": // GM only
if (!game.user.isGM) {
this.blindMessageToGM(chatOptions);
this.blindMessageToGM(chatOptions)
chatOptions.whisper = [game.user.id];
chatOptions.content = "Message only to the GM";
chatOptions.content = "Message only to the GM"
}
else {
chatOptions.whisper = this.getUsers(user => user.isGM);
chatOptions.whisper = this.getUsers(user => user.isGM)
}
break;
default:
chatOptions.whisper = this.getWhisperRecipients(rollMode, name);
chatOptions.whisper = this.getWhisperRecipients(rollMode, name)
break;
}
chatOptions.alias = chatOptions.alias || name;
@ -675,49 +474,43 @@ export class Imperium5Utility {
let rollData = {
rollId: randomID(16),
rollMode: game.settings.get("core", "rollMode"),
bonusDicesLevel: 0,
hindranceDicesLevel: 0,
otherDicesLevel: 0,
statDicesLevel: 0,
specDicesLevel: 0,
effectsList: [],
armorsList: [],
weaponsList: [],
equipmentsList: [],
optionsDiceList: PegasusUtility.getOptionsDiceList()
optionsDiceList: Imperium5Utility.getOptionsDiceList()
}
PegasusUtility.updateWithTarget(rollData)
Imperium5Utility.updateWithTarget(rollData)
return rollData
}
/* -------------------------------------------- */
static updateWithTarget(rollData) {
let objectDefender
let target = PegasusUtility.getTarget();
let target = Imperium5Utility.getTarget()
if (target) {
let defenderActor = game.actors.get(target.data.actorId)
objectDefender = PegasusUtility.data(defenderActor)
objectDefender = Imperium5Utility.data(defenderActor)
objectDefender = mergeObject(objectDefender, target.data.actorData)
rollData.defender = objectDefender
rollData.attackerId = this.id
rollData.defenderId = objectDefender._id
defenderActor.addHindrancesList(rollData.effectsList)
}
}
/* -------------------------------------------- */
static createChatWithRollMode(name, chatOptions) {
this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions);
this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions)
}
/* -------------------------------------------- */
static async confirmDelete(actorSheet, li) {
let itemId = li.data("item-id");
let msgTxt = "<p>Are you sure to remove this Item ?";
let msgTxt = "<p>Etes vous certain de vouloir supprimer cet objet ?";
let buttons = {
delete: {
icon: '<i class="fas fa-check"></i>',
label: "Yes, remove it",
label: "Oui",
callback: () => {
actorSheet.actor.deleteEmbeddedDocuments("Item", [itemId]);
li.slideUp(200, () => actorSheet.render(false));
@ -725,12 +518,12 @@ export class Imperium5Utility {
},
cancel: {
icon: '<i class="fas fa-times"></i>',
label: "Cancel"
label: "Annuler"
}
}
msgTxt += "</p>";
let d = new Dialog({
title: "Confirm removal",
title: "Confirmer la suppression",
content: msgTxt,
buttons: buttons,
default: "cancel"

View File

@ -193,7 +193,7 @@ table {border: 1px solid #7a7971;}
/* Styles limited to foundryvtt-vadentis sheets */
.fvtt-pegasus-rpg .sheet-header {
.fvtt-imperium5 .sheet-header {
-webkit-box-flex: 0;
-ms-flex: 0 0 210px;
flex: 0 0 210px;
@ -213,15 +213,16 @@ table {border: 1px solid #7a7971;}
margin-bottom: 10px;
}
.fvtt-pegasus-rpg .sheet-header .profile-img {
.fvtt-imperium5 .sheet-header .profile-img {
-webkit-box-flex: 0;
-ms-flex: 0 0 128px;
flex: 0 0 128px;
width: 196px;
width: 64px;
height: auto;
max-height:260px;
max-height:128px;
margin-top: 0px;
margin-right: 10px;
margin-right: 10px;
object-fit: cover;
object-position: 50% 0;
}
@ -255,34 +256,34 @@ table {border: 1px solid #7a7971;}
vertical-align: bottom;
}
.fvtt-pegasus-rpg .sheet-header .header-fields {
.fvtt-imperium5 .sheet-header .header-fields {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.fvtt-pegasus-rpg .sheet-header h1.charname {
.fvtt-imperium5 .sheet-header h1.charname {
height: 50px;
padding: 0px;
margin: 5px 0;
border-bottom: 0;
}
.fvtt-pegasus-rpg .sheet-header h1.charname input {
.fvtt-imperium5 .sheet-header h1.charname input {
width: 100%;
height: 100%;
margin: 0;
}
.fvtt-pegasus-rpg .sheet-tabs {
.fvtt-imperium5 .sheet-tabs {
-webkit-box-flex: 0;
-ms-flex: 0;
flex: 0;
}
.fvtt-pegasus-rpg .sheet-body,
.fvtt-pegasus-rpg .sheet-body .tab,
.fvtt-pegasus-rpg .sheet-body .tab .editor {
.fvtt-imperium5 .sheet-body,
.fvtt-imperium5 .sheet-body .tab,
.fvtt-imperium5 .sheet-body .tab .editor {
height: 100%;
font-size: 0.8rem;
}
@ -305,70 +306,70 @@ table {border: 1px solid #7a7971;}
padding: 0 3px;
}
.fvtt-pegasus-rpg .tox .tox-editor-container {
.fvtt-imperium5 .tox .tox-editor-container {
background: #fff;
}
.fvtt-pegasus-rpg .tox .tox-edit-area {
.fvtt-imperium5 .tox .tox-edit-area {
padding: 0 8px;
}
.fvtt-pegasus-rpg .resource-label {
.fvtt-imperium5 .resource-label {
font-weight: bold;
text-transform: uppercase;
}
.fvtt-pegasus-rpg .tabs {
.fvtt-imperium5 .tabs {
height: 40px;
border-top: 1px solid #AAA;
border-bottom: 1px solid #AAA;
color: #000000;
}
.fvtt-pegasus-rpg .tabs .item {
.fvtt-imperium5 .tabs .item {
line-height: 40px;
font-weight: bold;
}
.fvtt-pegasus-rpg .tabs .item.active {
.fvtt-imperium5 .tabs .item.active {
text-decoration: underline;
text-shadow: none;
}
.fvtt-pegasus-rpg .items-list {
.fvtt-imperium5 .items-list {
list-style: none;
margin: 1px 0;
padding: 0;
overflow-y: auto;
}
.fvtt-pegasus-rpg .items-list .item-header {
.fvtt-imperium5 .items-list .item-header {
font-weight: bold;
}
.fvtt-pegasus-rpg .items-list .item {
.fvtt-imperium5 .items-list .item {
height: 30px;
line-height: 24px;
padding: 1px 0;
border-bottom: 1px solid #BBB;
}
.fvtt-pegasus-rpg .items-list .item .item-image {
.fvtt-imperium5 .items-list .item .item-image {
-webkit-box-flex: 0;
-ms-flex: 0 0 24px;
flex: 0 0 24px;
margin-right: 5px;
}
.fvtt-pegasus-rpg .items-list .item img {
.fvtt-imperium5 .items-list .item img {
display: block;
}
.fvtt-pegasus-rpg .items-list .item-name {
.fvtt-imperium5 .items-list .item-name {
margin: 0;
}
.fvtt-pegasus-rpg .items-list .item-controls {
.fvtt-imperium5 .items-list .item-controls {
-webkit-box-flex: 0;
-ms-flex: 0 0 86px;
flex: 0 0 86px;
@ -379,7 +380,8 @@ table {border: 1px solid #7a7971;}
/* ======================================== */
/* Sheet */
.window-app.sheet .window-content .sheet-header{
background: url("../images/ui/pc_sheet_bg.webp")
color: rgba(168, 139, 139, 0.5);
/*background: url("../images/ui/pc_sheet_bg.webp")*/
}
/* background: #011d33 url("../images/ui/fond1.webp") repeat left top;*/
/*color: rgba(168, 139, 139, 0.5);*/
@ -410,10 +412,10 @@ table {border: 1px solid #7a7971;}
.window-app .window-content, .window-app.sheet .window-content .sheet-body{
font-size: 0.8rem;
background: url("../images/ui/pc_sheet_bg.webp") repeat left top;
background: rgba(245,245,240,0.6);
/*background: url("../images/ui/pc_sheet_bg.webp") repeat left top;.*/
}
/* background: rgba(245,245,240,0.6) url("../images/ui/sheet_background.webp") left top;*/
section.sheet-body{padding: 0.25rem 0.5rem;}
@ -605,7 +607,7 @@ ul, li {
.devotion-label,
.sort-label,
.technique-label,
.stat-label,
.ame-label,
.arme-label,
.armure-label,
.equipement-label,
@ -720,7 +722,7 @@ ul, li {
flex-shrink: 1;
flex-grow: 0;
}
.npc-stat-label {
.npc-ame-label {
flex-grow: 2;
}
@ -739,7 +741,7 @@ ul, li {
margin-left: 0.25rem;
}
.stats-table {
.ames-table {
align-content: flex-start;
}
@ -926,7 +928,7 @@ ul, li {
height: 64px;
}
.stat-icon {
.ame-icon {
border: 0;
padding: 2px 2px 2px 2px;
max-width:32px;
@ -934,7 +936,7 @@ ul, li {
width: auto;
height: auto;
}
.small-stat-icon {
.small-ame-icon {
border: 0;
padding: 2px 2px 2px 2px;
max-width:16px;
@ -1260,64 +1262,19 @@ ul, li {
}
/* =================== 1. ACTOR SHEET FONT STYLES =========== *//*
Agility AGI: #02a41d Also Used for Ranged Damage
Mind MND: #a100fe
Social SOC: #fd7100
Strength STR: #5f3d00 Also Used For Melee Damage
Physique PHY: #990304 Also used For Damage Resistance
Combat COM: 0136ff Also Used for Melee Attack
Defence DEF: #88826a Also used in the Defence on Combat Tab
Stealth STL: #505050
Perception PER: #f9c801 Also Used for Ranged Damage
Focus FOC: #ff0084
*/
.sheet-box {
border-radius: 5%;
background-color: #403f3eB0;
border-width: 1px;
padding: 0.4rem;
margin: 0.2rem;
}
.color-class-black {
background-color: black;
background: black;
}
.color-class-agi,
.color-class-range {
background-color: #02a41d;
background: #02a41d;
}
.color-class-pool {
background-color:#c5c3c3;
}
.color-class-mnd {
background-color: #a100fe;
}
.color-class-soc {
background-color: #fd7100;
}
.color-class-str,
.color-class-meleedmg {
background-color: #5f3d00;
}
.color-class-phy,
.color-class-dmgres {
background-color: #990304;
}
.color-class-mr {
background-color: #050505;
}
.color-class-com,
.color-class-melee {
background-color: #0136ff;
}
.color-class-def,
.color-class-defence {
background-color: #88826a;
}
.color-class-stl {
background-color: #505050;
}
.color-class-per,
.color-class-ranged {
background-color: #f9c801;
}
.color-class-foc {
background-color: #ff0084;
}
.color-class-common {
background: rgba(185, 183, 40, 0.45);
}
@ -1343,15 +1300,15 @@ Focus FOC: #ff0084
max-width: 128px;
justify-content: flex-start;
}
.stat-item {
.ame-item {
flex-grow: 1;
justify-content: flex-start;
margin: 2px;
}
.stat-block {
.ame-block {
min-width: 160px;
}
.stat-margin {
.ame-margin {
margin-left: 4px;
margin-top: 5px;
}
@ -1359,14 +1316,14 @@ Focus FOC: #ff0084
margin-left: 4px;
margin-top: 3px;
}
.stat-text-white {
.ame-text-white {
color: white;
}
.item-stat-roll {
.item-ame-roll {
max-height: 42px;
min-height: 36px;
}
.item-stat-roll select, .item-stat-roll input {
.item-ame-roll select, .item-ame-roll input {
margin-top: 4px;
margin-right: 2px;
}

View File

@ -30,9 +30,9 @@
"styles": [
"styles/simple.css"
],
"templateVersion": 1,
"templateVersion": 4,
"title": "Imperium5 RPG",
"url": "https://www.uberwald.me/data/files/fvtt-imperium5",
"version": "0.0.1",
"version": "0.0.4",
"background" : "./images/ui/imperium5_welcome_page.webp"
}

View File

@ -1,423 +1,153 @@
{
"Actor": {
"types": ["character", "npc"],
"types": [
"character"
],
"templates": {
"biodata": {
"biodata": {
"name": "",
"age": 0,
"size": "",
"weight": "",
"hair": "",
"sex": "",
"eyes": "",
"appactual": "",
"traits": "",
"identities": "",
"admid": "",
"memories": "",
"whoami": "",
"description": "",
"worstfear": "",
"worstfearactive": false,
"desires": "",
"desiresactive": false,
"preferredhand": "",
"catchphrase": "",
"catchphraseused": false,
"catchphrasetrigger": "",
"charactervalue": 0,
"level": 0,
"threatlevel": 0,
"cdp": 0,
"cdpused": 0,
"notes": "",
"gmnotes": "",
"racename": "",
"rolename": ""
"gmnotes": ""
}
},
"core": {
"race": [],
"abilities": [],
"subactors": [],
"statistics": {
"agi":{
"label": "Agility",
"abbrev": "AGI",
"level": 1,
"value": 1,
"mod": 0,
"col": 1
"ames": {
"brutalite": {
"label": "Brutalité",
"type": "physique",
"value": 0,
"cohesion": 0
},
"mnd":{
"label": "Mind",
"abbrev": "MND",
"level": 1,
"value": 1,
"col": 1,
"mod": 0
"dynamisme": {
"label": "Dynamisme",
"type": "physique",
"value": 0,
"cohesion": 0
},
"soc":{
"label": "Social",
"abbrev": "SOC",
"level": 1,
"value": 1,
"col": 1,
"mod": 0
"autorite": {
"label": "Autorité",
"type": "social",
"value": 0,
"cohesion": 0
},
"str":{
"label": "Strength",
"abbrev": "STR",
"level": 1,
"value": 1,
"col": 1,
"mod": 0
"simulacre": {
"label": "Simulacre",
"type": "social",
"value": 0,
"cohesion": 0
},
"phy":{
"label": "Physique",
"abbrev": "PHY",
"level": 1,
"value": 1,
"col": 1,
"mod": 0
"savoir": {
"label": "Savoir",
"type": "mental",
"value": 0,
"cohesion": 0
},
"com":{
"label": "Combat",
"abbrev": "COM",
"level": 1,
"value": 1,
"col": 2,
"mod": 0
},
"def":{
"label": "Defence",
"abbrev": "DEF",
"level": 1,
"value": 1,
"col": 2,
"mod": 0
},
"stl":{
"label": "Stealth",
"abbrev": "STL",
"level": 1,
"value": 1,
"col": 2,
"mod": 0
},
"per":{
"label": "Perception",
"abbrev": "PER",
"level": 1,
"value": 1,
"col": 2,
"mod": 0
},
"foc":{
"label": "Focus",
"abbrev": "FOC",
"level": 1,
"value": 1,
"col": 2,
"mod": 0
"creativite": {
"label": "Créativité",
"type": "mental",
"value": 0,
"cohesion": 0
}
},
"nrg": {
"label": "NRG",
"type": "value",
"absolutemax": 0,
"paradigmes": {
"humanite": {
"label": "Humanité",
"value": 0,
"max": 0,
"mod": 0,
"activated": 0
"editable": false
},
"mr": {
"label": "MR (Initiative)",
"type": "dice",
"punk": {
"label": "Punk",
"value": 0,
"mod": 0
"editable": false
},
"momentum": {
"label": "Momentum",
"type": "value",
"cyber": {
"label": "Cyber",
"value": 0,
"max": 0
"editable": false
},
"secondary": {
"health": {
"label": "Health",
"virtuel": {
"label": "Virtuel",
"value": 0,
"type": "value",
"ismax": true,
"iscombat": true,
"bonus": 0,
"max": 0
"editable": false
},
"delirium": {
"label": "Delirium",
"perso": {
"label": "Perso",
"value": 0,
"type": "value",
"ismax": true,
"iscombat": true,
"bonus": 0,
"max": 0
},
"stealthhealth": {
"label": "STL Health",
"type": "value",
"value": 0,
"ismax": true,
"bonus": 0,
"max": 0
},
"socialhealth": {
"label": "SOC Health",
"type": "value",
"value": 0,
"ismax": true,
"bonus": 0,
"max": 0
"editable": true
}
},
"combat": {
"bonusdice": 0,
"otherdice": 0,
"hindrancedice": 0,
"stunlevel": 0,
"stunthreshold": 0
"entropie": {
"label": "Entropie",
"seuil": 0,
"reserve": 0
}
},
"npccore": {
"npctype": "",
"description": ""
}
},
"character": {
"templates": [ "biodata", "core" ]
},
"npc": {
"templates": [ "npccore" ]
"templates": [
"biodata",
"core"
]
}
},
"Item": {
"types": [ "race", "role", "ability", "specialisation", "perk", "power" , "armor", "shield", "equipment", "weapon", "effect", "money"],
"effect": {
"type": "",
"genre": "",
"effectlevel": 0,
"reducedicevalue": false,
"stataffected": "",
"specaffected": [],
"statdice": false,
"bonusdice": false,
"otherdice": false,
"hindrance" : false,
"resistedby": "",
"recoveryroll": false,
"recoveryrollstat": "",
"recoveryrollspec": [],
"effectstatlevel": false,
"effectstat": "",
"types": [
"archetype",
"specialite",
"familiarite",
"nature",
"trait",
"symbiose",
"ressource",
"capacite",
"singularite",
"contact"
],
"archetype": {
"description": ""
},
"race": {
"description": "",
"environment": "",
"society_culture": "",
"outlook": "",
"selectablestats": false,
"statsonlyonce": false,
"numberstats": 0,
"abilities": [],
"optionnalabilities": [],
"nboptionnal": 0,
"perksgained": false,
"perksall": false,
"perksnumber": 0,
"perks": [],
"statistics": ""
},
"role": {
"statincrease1": "",
"statincrease2": "",
"messagespecplus1": "",
"specialisationsplus1": [],
"powers1": [],
"MR": 0,
"specialperk": [],
"specincrease": [],
"perks": [],
"specialite": {
"description": ""
},
"ability": {
"affectedstat": "str",
"statmodifier": 1,
"statlevelincrease": 0,
"statusaffected": "",
"statusmodifier": 0,
"powersgained": [],
"specialisations": [],
"effectsgained": [],
"aoe": "",
"affectedcircumstances": "",
"affectedspecialisations": "",
"nrgcost": 0,
"opponenthindrance": 0,
"attackgained": [],
"armorgained": [],
"threatlevel": 0,
"familiarite": {
"description": ""
},
"specialisation": {
"statistic": "",
"level": 1,
"ispowergroup": false,
"powersource": "",
"powersactivated": false,
"powers": [],
"isthreatlevel": false,
"nature": {
"description": ""
},
"perk": {
"level": 1,
"active": false,
"duration": "",
"isweaver": false,
"effectsgained": [],
"features": {
"nrgcost": {
"label": "NRG cost to use",
"flag": false,
"type": "number",
"isvalid": true,
"value": 0
},
"range": {
"label": "Range",
"flag": false,
"type": "range",
"isvalid": true,
"value": ""
},
"nbtargets": {
"label": "# Targets",
"flag": false,
"type": "string",
"isvalid": true,
"value": ""
},
"bonushealth": {
"label": "Bonus to Health",
"flag": false,
"type": "string",
"isvalid": true,
"value": ""
},
"bonusnrg": {
"label": "Bonus to NRG",
"flag": false,
"type": "string",
"isvalid": true,
"value": ""
},
"bonusdelirium": {
"label": "Bonus to Delirium",
"flag": false,
"type": "string",
"isvalid": true,
"value": ""
}
},
"status": "",
"nbuse": "",
"used1":false,
"used2":false,
"used3":false
},
"power": {
"rollneeded": false,
"statistic": "",
"cost": 0,
"costspent": 0,
"range": "",
"action": "",
"type": "",
"powersource": "",
"effects": "",
"activated": false,
"purchasedeffects": "",
"effectsgained": [],
"dmgroll": false,
"dmgstatistic": "",
"trait": {
"description": ""
},
"armor": {
"statistic": "",
"resistance": "",
"weight": 0,
"cost": 0,
"idr": "",
"equipped": false,
"locationprotected": "",
"effects": [],
"activated": false,
"description":""
"symbiose": {
"description": ""
},
"shield": {
"deftype": "",
"level": "",
"weight": 0,
"cost": 0,
"idr": "",
"equipped": false,
"effects": [],
"activated": false,
"description":""
},
"equipment": {
"type": "",
"cost": 0,
"weight": 0,
"idr": "",
"quantity": 0,
"equipped": false,
"stataffected": "",
"level": 0,
"statdice": false,
"bonusdice": false,
"otherdice": false,
"effects": [],
"activated": false,
"iscontainer": false,
"containercapacity": 0,
"containerid": "",
"threatlevel": 0,
"description":""
},
"money" : {
"ressource": {
"value": 0,
"quantity": 0,
"weight": 0,
"idr":"",
"description": ""
},
"weapon": {
"statistic": "",
"damagestatistic": "",
"damage": "",
"cost": 0,
"weight": 0,
"idr": "",
"range": "",
"maxrange": "",
"ao": "",
"enhanced": false,
"enhancedstat": "",
"enhancedlevel": 0,
"damagetype": "",
"damagetypelevel": 0,
"vehicledamagetype": "",
"vehicledamagetypelevel": 0,
"ammocurrent": 0,
"ammomax": 0,
"equipped": false,
"effects": [],
"activated": false,
"capacite": {
"type": "",
"description": ""
},
"singularite": {
"value": 0,
"description": ""
},
"contact": {
"value": 0,
"description": ""
}
}

View File

@ -0,0 +1,13 @@
{{#each data.ames as |ame key|}}
{{#if (eq ame.type ../typeame)}}
<li class="item stat flexrow list-item list-item-shadow item-ame-roll" data-attr-key="{{key}}">
<span class="stat-label stat-margin" name="{{key}}">
<h4 class="ame-margin"><a class="roll-ame ame-margin" data-stat-key="{{key}}">{{ame.label}}</a></h4>
</span>
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.ames.{{key}}.value" value="{{ame.value}}"
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} />
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.ames.{{key}}.cohesion" value="{{ame.cohesion}}"
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} />
</li>
{{/if}}
{{/each}}

View File

@ -0,0 +1,16 @@
{{#each data.paradigmes as |para key|}}
<li class="item stat flexrow list-item list-item-shadow item-ame-roll" data-attr-key="{{key}}">
<span class="stat-label stat-margin" name="{{key}}">
{{#if para.editable}}
<h4 class="ame-margin">
<input type="text" class="color-class-common" name="data.paradigmes.{{key}}.label" value="{{para.label}}"
data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}} />
</h4>
{{else}}
<h4 class="ame-margin"><a class="roll-ame ame-margin" data-stat-key="{{key}}">{{para.label}}</a></h4>
{{/if}}
</span>
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.paradigmes.{{key}}.value" value="{{para.value}}"
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} />
</li>
{{/each}}

View File

@ -3,286 +3,103 @@
{{!-- Sheet Header --}}
<header class="sheet-header">
<div class="header-fields">
<div class="flexrow">
<div>
<h1 class="charname margin-right"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
<div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="flexcol">
<div class="flexrow">
<div class="stat-item">
<ul>
{{#each data.statistics as |stat key|}}
{{#if (eq stat.col 1)}}
{{> systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html stat=stat key=key}}
{{/if}}
{{/each}}
<li class="item flexrow list-item color-class-pool item-stat-roll" data-attr-key="pool">
<span class="stat-icon">
<img class="stat-icon" src="icons/dice/d12black.svg">
</span>
<span class="stat-label stat-margin" name="pool">
<h4 class="stat-text-white stat-margin"><a class="generic-pool-roll stat-margin" data-stat-key="pool">Dice Pool</a></h4>
</span>
</li>
</ul>
</div>
<div class="stat-item">
<ul>
{{#each data.statistics as |stat key|}}
{{#if (eq stat.col 2)}}
{{> systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html stat=stat key=key}}
{{/if}}
{{/each}}
<li class="item flexrow list-item color-class-mr item-stat-roll" data-attr-key="mr">
<span class="stat-icon">
<img class="stat-icon" src="systems/fvtt-pegasus-rpg/images/icons/MR.webp">
</span>
<span class="stat-label stat-margin" name="mr">
<h4 class="stat-text-white stat-margin"><a class="roll-stat stat-margin" data-stat-key="mr">MR</a></h4>
</span>
<select class="status-small-label color-class-common" type="text" name="data.mr.value" value="{{data.mr.value}}"
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select data.mr.value}}
{{{@root.optionsDiceList}}}
{{/select}}
</select>
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.mr.mod" value="{{data.mr.mod}}"
data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} />
</li>
</ul>
</div>
<div class="stat-item status-block">
{{> systems/fvtt-pegasus-rpg/templates/partial-actor-status.html}}
</div>
<!--
<label class="status-small-label">Active NRG</label>
<input type="text" class="padd-right status-small-label no-grow" name="data.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
-->
</div>
</div>
</div>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="combat">Combat</a>
<a class="item" data-tab="specs">Specialisations</a>
<a class="item" data-tab="powers">Powers/Abilities</a>
<a class="item" data-tab="principal">Principal</a>
<a class="item" data-tab="ressources">Ressources</a>
<a class="item" data-tab="equipment">Equipment</a>
<a class="item" data-tab="biodata">Biography</a>
</nav>
</div>
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
</div>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Combat Tab --}}
<div class="tab fight" data-group="primary" data-tab="combat">
<div class="flexcol">
<div class="tab principal" data-group="primary" data-tab="principal">
<div class="flexrow">
<div>
<ul class="stat-item">
<li class="item flexrow list-item color-class-melee"><a class="combat-button attack-melee flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/COM.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Melee Attack</span>
</a>
</li>
<li class="item flexrow list-item color-class-meleedmg"><a class="combat-button damage-melee flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/STR.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Melee/Thrown Damage</span>
</a>
</li>
<div class="flexrow">
<div class="sheet-box">
<h4 class="ame-margin">Physique</h4>
<ul>
{{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="physique"}}
</ul>
</div>
<div class="stat-item">
<ul class="stat-list alternate-list">
<li class="item flexrow list-item color-class-ranged"><a class="combat-button attack-ranged flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/PER.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Ranged Attack</span>
</a>
</li>
<li class="item flexrow list-item color-class-range"><a class="combat-button damage-ranged flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/AGI.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Ranged Damage</span>
</a>
</li>
<h4 class="ame-margin">Social</h4>
<ul>
{{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="social"}}
</ul>
</div>
<div class="stat-item">
<ul class="stat-list alternate-list">
<li class="item flexrow list-item color-class-defence"><a class="combat-button defense-roll flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/DEF.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Defence</span>
</a>
</li>
<li class="item flexrow list-item color-class-dmgres"><a class="combat-button damage-resistance flexrow">
<span class="combat-icon flexrow">
<img class="combat-icon" src="systems/fvtt-pegasus-rpg/images/icons/PHY.webp">
</span>
<span class="generic-label combat-margin stat-text-white">Damage Resistance</span>
</a>
</li>
</ul>
</div>
<div class="stat-item">
<span class="generic-label">
<h3>Stun</h3>
</span>
<ul class="stat-list alternate-list">
<li class="item stat flexrow list-item">
<span class="generic-label small-label">Current</span>
<input type="text" class="" name="data.combat.stunlevel" value="{{data.combat.stunlevel}}" data-dtype="Number" />
<span class="generic-label small-label">Threshold</span>
<input type="text" class="" name="data.combat.stunthreshold" value="{{data.combat.stunthreshold}}" data-dtype="Number" />
</li>
<h4 class="ame-margin">Mental</h4>
<ul>
{{>systems/fvtt-imperium5/templates/actor-partial-ames.html typeame="mental"}}
</ul>
</div>
</div>
<div>
<ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">Perks</label></h3>
</span>
<span class="item-field-label-short">
<label class="short-label">Level</label>
</span>
<span class="item-field-label-medium">
<label class="short-label">Range</label>
</span>
<span class="item-field-label-short">
<label class="short-label">#Targets</label>
</span>
<span class="item-field-label-long">
<label class="short-label">Status</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Duration</label>
</span>
<span class="item-field-label-short">
<label class="short-label">&nbsp;</label>
</span>
<span class="item-field-label-short">
<label class="short-label">&nbsp;</label>
</span>
<span class="item-field-label-short">
<label class="short-label">&nbsp;</label>
</span>
</li>
{{#each perks as |perk key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{perk._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{perk.img}}" /></a>
<span class="item-name-label">{{perk.name}}</span>
<span class="item-field-label-short">{{perk.data.level}}</span>
{{#if perk.data.features.range.flag}}
<span class="item-field-label-medium">{{perk.data.features.range.value}}</span>
{{else}}
<span class="item-field-label-medium">&nbsp;-&nbsp;</span>
{{/if}}
{{#if perk.data.features.nbtargets.flag}}
<span class="item-field-label-short">{{perk.data.features.nbtargets.value}}</span>
{{else}}
<span class="item-field-label-short">&nbsp;-&nbsp;</span>
{{/if}}
<span class="item-field-label-long">
<select class="perk-status" type="text" value="{{perk.data.status}}" data-dtype="String">
{{#select perk.data.status}}
<option value="ready">Ready</option>
<option value="activated">Activated</option>
<option value="round2">2 Rounds left</option>
<option value="round1">1 Round left</option>
{{/select}}
</select>
</span>
{{#if (ne perk.data.status "ready")}}
{{#if (eq perk.data.nbuse "next1action")}}
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"><input type="checkbox" class="perk-used" data-use-index="1" name="perk.data.used1" {{checked perk.data.used1}}/></label></span>
<span class="item-field-label-short ">&nbsp;</span>
<span class="item-field-label-short ">&nbsp;</span>
{{/if}}
{{#if (eq perk.data.nbuse "next2action")}}
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"></label><input type="checkbox" class="perk-used" data-use-index="1" name="perk.data.used1" {{checked perk.data.used1}}/></label></span>
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"></label><input type="checkbox" class="perk-used" data-use-index="2" name="perk.data.used2" {{checked perk.data.used2}}/></label></span>
<span class="item-field-label-short ">&nbsp;</span>
{{/if}}
{{#if (eq perk.data.nbuse "next3action")}}
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"></label><input type="checkbox" class="perk-used" data-use-index="1" name="perk.data.used1" {{checked perk.data.used1}}/></label></span>
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"></label><input type="checkbox" class="perk-used" data-use-index="2" name="perk.data.used2" {{checked perk.data.used2}}/></label></span>
<span class="item-field-label-short "><label class="item-field-label-short attribute-value checkbox"></label><input type="checkbox" class="perk-used" data-use-index="3" name="perk.data.used3" {{checked perk.data.used3}}/></label></span>
{{/if}}
{{else}}
<span class="item-field-label-short "><label class="item-field-label-short">&nbsp;</label></span>
<span class="item-field-label-short "><label class="item-field-label-short">&nbsp;</label></span>
<span class="item-field-label-short "><label class="item-field-label-short">&nbsp;</label></span>
{{/if}}
<div class="flexrow">
<div class="sheet-box">
<h4 class="ame-margin">Archetype</h4>
<ul>
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{archetype._id}}">
<img class="sheet-competence-img" src="{{archetype.img}}" /></a>
<span class="item-name-label"><a class="roll-spec">{{archetype.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
</ul>
<h4 class="ame-margin">Spécialités</h4>
<ul>
{{#each specialites as |spec key|}}
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{spec._id}}">
<img class="sheet-competence-img" src="{{spec.img}}" /></a>
<span class="item-name-label"><a class="roll-spec">{{spec.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
<ul class="stat-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">Effects</label></h3>
</span>
<span class="item-field-label-short">
<label class="short-label">Level</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Type</label>
</span>
<span class="item-field-label-short">
<label class="short-label">P/N</label>
</span>
<span class="item-field-label-long">
<label class="short-label">Stat</label>
</span>
</li>
{{#each effects as |effect key|}}
<li class="item stat flexrow list-item list-item-shadow" data-arme-id="{{effect.id}}" data-item-id="{{effect._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{effect.img}}" /></a>
<span class="item-name-label">{{effect.name}}</span>
<span class="item-field-label-short">{{effect.data.effectlevel}}</span>
<span class="item-field-label-short">{{upperFirst effect.data.type}}</span>
<span class="item-field-label-short">{{upperFirst effect.data.genre}}</span>
<span class="item-field-label-short">{{upper effect.data.stataffected}}</span>
<h4 class="ame-margin" >Familiarités :</h4>
<ul>
{{#each familiarites as |fami key|}}
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{fami._id}}">
<img class="sheet-competence-img" src="{{fami.img}}" /></a>
<span class="item-name-label"><a class="roll-spec">{{fami.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
</div>
<div class="flexrow">
<div class="sheet-box">
<h4 class="ame-margin">Paradigmes</h4>
<ul>
{{> systems/fvtt-imperium5/templates/actor-partial-paradigmes.html}}
</ul>
</div>
</div>
</div>
</div>
@ -306,7 +123,8 @@
</li>
{{#each specs as |spec key|}}
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{spec._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{spec.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{spec.img}}" /></a>
<span class="item-name-label"><a class="roll-spec">{{spec.name}}</a></span>
<span class="item-field-label-short">{{upper spec.data.statistic}}</span>
<span class="item-field-label-short">{{spec.data.dice}}</span>
@ -339,11 +157,21 @@
<ul>
<li class="item flexrow list-item" data-key="nrg">
<span class="stat-label flexrow" name="nrg"><h4>{{data.nrg.label}}</h4> </span>
<span class="small-label padd-right packed-left">Activated</span><input type="text" class="padd-right update-field" data-field-name="data.nrg.activated" value="{{data.nrg.activated}}" data-dtype="Number"/>
<span class="small-label padd-right packed-left">&nbsp;Current</span><input type="text" class="padd-right update-field" data-field-name="data.nrg.value" value="{{data.nrg.value}}" data-dtype="Number"/>
<span class="small-label padd-right packed-left">&nbsp;Mod</span><input type="text" class="padd-right update-field" data-field-name="data.nrg.mod" value="{{data.nrg.mod}}" data-dtype="Number"/>
<span class="small-label padd-right packed-left">&nbsp;Max</span><input type="text" class="padd-right update-field" data-field-name="data.nrg.max" value="{{data.nrg.max}}" data-dtype="Number"/>
<span class="stat-label flexrow" name="nrg">
<h4>{{data.nrg.label}}</h4>
</span>
<span class="small-label padd-right packed-left">Activated</span><input type="text"
class="padd-right update-field" data-field-name="data.nrg.activated" value="{{data.nrg.activated}}"
data-dtype="Number" />
<span class="small-label padd-right packed-left">&nbsp;Current</span><input type="text"
class="padd-right update-field" data-field-name="data.nrg.value" value="{{data.nrg.value}}"
data-dtype="Number" />
<span class="small-label padd-right packed-left">&nbsp;Mod</span><input type="text"
class="padd-right update-field" data-field-name="data.nrg.mod" value="{{data.nrg.mod}}"
data-dtype="Number" />
<span class="small-label padd-right packed-left">&nbsp;Max</span><input type="text"
class="padd-right update-field" data-field-name="data.nrg.max" value="{{data.nrg.max}}"
data-dtype="Number" />
<span class="small-label padd-right packed-left"> / {{data.nrg.absolutemax}}</span>
</li>
</ul>
@ -375,7 +203,8 @@
{{#each powers as |power key|}}
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{power._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{power.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{power.img}}" /></a>
<span class="item-name-label">
{{#if power.data.rollneeded}}
<a class="power-roll">{{power.name}}</a>
@ -406,7 +235,8 @@
<span class="item-field-label-medium">{{power.data.cost}}</span>
<span class="item-field-label-medium">
<input type="text" class="padd-right input-numeric-short power-cost-spent" value="{{power.data.costspent}}" data-dtype="Number"/>
<input type="text" class="padd-right input-numeric-short power-cost-spent"
value="{{power.data.costspent}}" data-dtype="Number" />
</span>
<div class="item-filler">&nbsp;</div>
@ -439,7 +269,8 @@
</li>
{{#each abilities as |ability key|}}
<li class="item stat flexrow list-item list-item-shadow" data-item-id="{{ability._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{ability.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{ability.img}}" /></a>
<span class="item-name-label">{{ability.name}}</span>
<span class="item-field-label-long">{{upper ability.data.affectedstat}}</span>
@ -485,7 +316,8 @@
</li>
{{#each moneys as |money key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{money._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{money.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{money.img}}" /></a>
<span class="item-name-label">{{money.name}}</span>
<span class="item-field-label-long"><label>
@ -541,7 +373,8 @@
</li>
{{#each weapons as |weapon key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{weapon.img}}"/></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{weapon.img}}" /></a>
<span class="item-name-label">{{weapon.name}}</span>
<span class="item-field-label-short"><label>{{upper weapon.data.statistic}}</label></span>
<span class="item-field-label-short"><label>{{upper weapon.data.damagestatistic}}</label></span>
@ -613,7 +446,8 @@
</li>
{{#each armors as |armor key|}}
<li class="item list-item flexrow list-item-shadow" data-item-id="{{armor._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{armor.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{armor.img}}" /></a>
<span class="item-name-label">{{armor.name}}</span>
<span class="item-field-label-short">{{upper armor.data.statistic}}</span>
<span class="item-field-label-short">{{armor.data.resistanceDice}}</span>
@ -670,7 +504,8 @@
</li>
{{#each shields as |shield key|}}
<li class="item flexrow list-item list-item-shadow" data-item-id="{{shield._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{shield.img}}" /></a>
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
src="{{shield.img}}" /></a>
<span class="item-name-label">{{shield.name}}</span>
<span class="item-field-label-short">{{shield.data.levelDice}}</span>
@ -777,12 +612,14 @@
</li>
<li class="flexrow item">
<label class="generic-label">Preferred Hand</label>
<input type="text" class="" name="data.biodata.preferredhand" value="{{data.biodata.preferredhand}}" data-dtype="String" />
<input type="text" class="" name="data.biodata.preferredhand" value="{{data.biodata.preferredhand}}"
data-dtype="String" />
</li>
<li class="flexrow item" data-item-id="{{race._id}}">
<label class="generic-label">Race</label>
<a class="item-edit"><img class="stat-icon" src="{{race.img}}"></a>
<input type="text" class="" name="data.biodata.racename" value="{{race.name}}" disabled data-dtype="String" />
<input type="text" class="" name="data.biodata.racename" value="{{race.name}}" disabled
data-dtype="String" />
<div class="item-controls">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
@ -790,7 +627,8 @@
<li class="flexrow item" data-item-id="{{role._id}}">
<label class="generic-label">Role</label>
<a class="item-edit"><img class="stat-icon" src="{{role.img}}"></a>
<input type="text" class="" name="data.biodata.rolename" value="{{role.name}}" disabled data-dtype="String" />
<input type="text" class="" name="data.biodata.rolename" value="{{role.name}}" disabled
data-dtype="String" />
<div class="item-controls">
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
@ -803,13 +641,17 @@
<ul>
<li class="flexrow">
<label class="short-label">Worst Fear </label>
<input type="text" class="" name="data.biodata.worstfear" value="{{data.biodata.worstfear}}" data-dtype="String" />
<label class="attribute-value checkbox"><input type="checkbox" class="change-worstfear" name="data.biodata.worstfearactive" {{checked data.biodata.worstfearactive}}/> Active ?</label>
<input type="text" class="" name="data.biodata.worstfear" value="{{data.biodata.worstfear}}"
data-dtype="String" />
<label class="attribute-value checkbox"><input type="checkbox" class="change-worstfear"
name="data.biodata.worstfearactive" {{checked data.biodata.worstfearactive}} /> Active ?</label>
</li>
<li class="flexrow">
<label class="short-label">Desires </label>
<input type="text" class="" name="data.biodata.desires" value="{{data.biodata.desires}}" data-dtype="String" />
<label class="attribute-value checkbox"><input type="checkbox" class="change-desires" name="data.biodata.desiresactive" {{checked data.biodata.desiresactive}}/> Active ?</label>
<input type="text" class="" name="data.biodata.desires" value="{{data.biodata.desires}}"
data-dtype="String" />
<label class="attribute-value checkbox"><input type="checkbox" class="change-desires"
name="data.biodata.desiresactive" {{checked data.biodata.desiresactive}} /> Active ?</label>
</li>
</ul>
@ -827,7 +669,8 @@
</li>
<li class="flexrow">
<label class="short-label">Catchphrase used </label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.biodata.catchphraseused" {{checked data.biodata.catchphraseused}}/></label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.biodata.catchphraseused" {{checked
data.biodata.catchphraseused}} /></label>
</li>
</ul>
@ -840,13 +683,11 @@
</li>
<li class="flexrow">
<label class="short-label">Character Development Points Total (CDP total) : </label>
<input type="text" class="" name="data.biodata.cdp" value="{{data.biodata.cdp}}"
data-dtype="Number" />
<input type="text" class="" name="data.biodata.cdp" value="{{data.biodata.cdp}}" data-dtype="Number" />
</li>
<li class="flexrow">
<label class="short-label">Hero Level : </label>
<input type="text" class="" name="data.biodata.level" value="{{data.biodata.level}}"
data-dtype="Number" />
<input type="text" class="" name="data.biodata.level" value="{{data.biodata.level}}" data-dtype="Number" />
</li>
<li class="flexrow">
<label class="short-label">Hero Levels Remaining : </label>

View File

@ -1,143 +0,0 @@
<div class="chat-message-header">
<img class="actor-icon" src="{{img}}" alt="{{alias}}" />
<h4 class=chat-actor-name>{{name}}</h4>
</div>
<hr>
<div class="flexcol">
{{#if (eq step "select-race")}}
<div>Select a race from the list below</div>
<table class="table-create-actor">
{{#each races as |race index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{race._id}}">{{race.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{race._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-race-optionnal")}}
<div>The selected Race has some optionnal abilities. Select one ability by clicking the relevant button below<br>
Remaining abilities to select : {{nboptionnal}}
</div>
<table class="table-create-actor">
{{#each optionnalabilities as |ability index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{ability._id}}">{{ability.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{ability._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-race-stats")}}
<div>Select Stats to gain +1 modifier : <br>
Remaining stats to select : {{numberstats}}
</div>
<table class="table-create-actor">
{{#each stats as |stat key|}}
{{#if @root.statsonlyonce}}
{{#if stat.used}}
{{else}}
<tr>
<td>{{stat.label}} ({{stat.abbrev}})</td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-stat-key="{{key}}" >Select it !</a></td>
</tr>
{{/if}}
{{else}}
<tr>
<td>{{stat.label}} ({{stat.abbrev}})</td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-stat-key="{{key}}" >Select it !</a></td>
</tr>
{{/if}}
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-race-perks")}}
<div>Now select {{nbraceperks}} Perk(s) for your character
</div>
<table class="table-create-actor">
{{#each raceperks as |perk index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{perk._id}}">{{perk.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{perk._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-role")}}
<div>Now select a Role for your character.
</div>
<table class="table-create-actor">
{{#each roles as |role index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{role._id}}">{{role.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{role._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-role-start-spec")}}
<div>Choose 1 Specialisation at +1DT :
</div>
<table class="table-create-actor">
{{#each rolestartspec as |spec index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{spec._id}}">{{spec.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{spec._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-role-stat")}}
<div>Choose 1 Stat at +1DT :
</div>
<table class="table-create-actor">
{{#each rolestats as |rolestat key|}}
<tr>
<td>{{rolestat.label}}</td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-stat-key="{{rolestat.abbrev}}">Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-role-spec")}}
<div>Now select a specialisation at +{{dt}}DT.
</div>
<table class="table-create-actor">
{{#each rolespec as |spec index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{spec._id}}">{{spec.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{spec._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "select-role-perk")}}
<div>Now select a Perk.
</div>
<table class="table-create-actor">
{{#each roleperks as |perk index|}}
<tr>
<td><a class="view-item-from-chat" data-step="{{@root.step}}" data-item-id="{{perk._id}}">{{perk.name}}</a></td>
<td><a class="chat-card-button chat-create-actor" data-step-name="{{@root.step}}" data-item-id="{{perk._id}}" >Select it !</a></td>
</tr>
{{/each}}
</table>
{{/if}}
{{#if (eq step "character-end")}}
<div>Follow the next steps from the rulebook page 50 !. You can now spend 150 CDPs to customise your character.
</div>
{{/if}}
</div>

View File

@ -1,7 +0,0 @@
<div class="post-item" data-transfer="{{transfer}}">
<h3><b>{{name}}</b></h3>
{{#if img}}
<img class="chat-img" src="{{img}}" title="{{name}}" />
{{/if}}
<div>Effect {{name}} has ben used and removed from the available effects.</div>
</div>

View File

@ -1,15 +0,0 @@
<div class="chat-message-header">
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
<h4 class=chat-actor-name>{{defenderName}}</h4>
</div>
<hr>
<div>
<ul>
<li>{{defenderName}} suffer damages from {{attackerName}} !</li>
<li>Damages (inc. armor+weapon) : {{finalDamage}}</li>
<li><button class="chat-card-button reduce-damage-chi" data-actor-id="{{actorId}}" data-roll-id="{{rollId}}" >Oppose damage roll with Chi</button></li>
<li><button class="chat-card-button apply-damage" data-actor-id="{{actorId}}" data-roll-id="{{rollId}}" >Apply damage</button></li>
</ul>
</div>

View File

@ -1,11 +0,0 @@
<div class="chat-message-header">
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
<h4 class=chat-actor-name>{{defenderName}}</h4>
</div>
<hr>
<div >
{{defenderName}} wins the opposition against {{attackerName}} !
</div>
</div>

View File

@ -1,7 +0,0 @@
<div class="post-item" data-transfer="{{transfer}}">
<h3><b>{{name}}</b></h3>
{{#if img}}
<img class="chat-img" src="{{img}}" title="{{name}}" />
{{/if}}
<div>{{name}} has Just Deactivated the Perk: {{perk.name}}, make sure to manually delete all Effects provided by this Perk from Targets.</div>
</div>

View File

@ -1,152 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Affected stat</label>
<select class="competence-base flexrow" type="text" name="data.affectedstat" value="{{data.affectedstat}}" data-dtype="String">
{{#select data.affectedstat}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=false}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Stat modifier</label>
<input type="text" class="padd-right" name="data.statmodifier" value="{{data.statmodifier}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Affected status</label>
<select class="competence-base flexrow" type="text" name="data.statusaffected" value="{{data.statusaffected}}" data-dtype="String">
{{#select data.statusaffected}}
{{{optionsStatusList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Status modifier</label>
<input type="text" class="padd-right" name="data.statusmodifier" value="{{data.statusmodifier}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Effects Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-ability-effect"><label>Drop Effects here !</label></div>
</li>
{{#each data.effectsgained as |effect idx|}}
<li class="flexrow">
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Power Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-ability-power"><label>Drop Powers here !</label></div>
</li>
{{#each data.powersgained as |power idx|}}
<li class="flexrow">
<label name="data.powersgained[{{idx}}].name"><a class="view-subitem" data-type="powersgained" data-index="{{idx}}">{{power.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="powersgained" data-index="{{idx}}" title="Delete Power"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Specialisation Gained</label>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-ability-spec"><label>Drop Specialisations here !</label></div>
</li>
{{#each data.specialisations as |spec idx|}}
<li class="flexrow">
<label name="data.specialisations[{{idx}}].name"><a class="view-subitem" data-type="specialisations" data-index="{{idx}}">{{spec.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="specialisations" data-index="{{idx}}" title="Delete Specialisation"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
</li>
<!--
<li class="flexrow"><label class="generic-label">AoE</label>
<input type="text" class="padd-right" name="data.aoe" value="{{data.aoe}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="generic-label">Affected Circumstances</label>
<input type="text" class="padd-right" name="data.affectedcircumstances" value="{{data.affectedcircumstances}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="generic-label">NRG Cost</label>
<input type="text" class="padd-right" name="data.nrgcost" value="{{data.nrgcost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Opponents Gain Hindrance Dice</label>
<select class="competence-base flexrow" type="text" name="data.opponenthindrance" value="{{data.opponenthindrance}}" data-dtype="Number">
{{#select data.opponenthindrance}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
-->
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Attacks Gained</label>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-ability-weapon"><label>Drop Weapons here !</label></div>
</li>
{{#each data.attackgained as |weapon idx|}}
<li class="flexrow">
<label name="data.specialisations[{{idx}}].name"><a class="view-subitem" data-type="attackgained" data-index="{{idx}}">{{weapon.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="attackgained" data-index="{{idx}}" title="Delete Weapon"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
</li>
<li class="flexrow"><label class="generic-label">Armors Gained</label>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-ability-armor"><label>Drop Armors here !</label></div>
</li>
{{#each data.armorgained as |armor idx|}}
<li class="flexrow">
<label name="data.specialisations[{{idx}}].name"><a class="view-subitem" data-type="armorgained" data-index="{{idx}}">{{armor.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="armorgained" data-index="{{idx}}" title="Delete Armor"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,63 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow"><label class="generic-label">Related Statistic</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
{{#select data.statistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">DMG RES Other Dice</label>
<select class="competence-base flexrow" type="text" name="data.resistance" value="{{data.resistance}}" data-dtype="Number">
{{#select data.resistance}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Location Protected</label>
<input type="text" class="" name="data.locationprotected" value="{{data.locationprotected}}" data-dtype="String"/>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,31 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div>
{{#if (exists data.type)}}
<span>
<label>Type : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.type" value="{{data.type}}"
data-dtype="String" />
</span>
{{/if}}
{{#if (exists data.value)}}
<span>
<label>Valeur : </label>
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common" name="data.value" value="{{data.value}}"
data-dtype="Number" />
</span>
{{/if}}
{{> systems/fvtt-imperium5/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -1,149 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname">
<input name="name" type="text" value="{{name}}" placeholder="Name"/>
</h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
{{#select data.type}}
<option value="mental">Mental</option>
<option value="physical">Physical</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Positive/Negative</label>
<select class="competence-base flexrow" type="text" name="data.genre" value="{{data.genre}}" data-dtype="String">
{{#select data.genre}}
<option value="positive">Positive</option>
<option value="negative">Negative</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">'Effect Level is a Stat?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.effectstatlevel" {{checked data.effectstatlevel}}/></label>
</li>
{{#if data.effectstatlevel}}
<li class="flexrow"><label class="generic-label">Stat to use for Effect Level</label>
<select class="competence-base flexrow" type="text" name="data.effectstat" value="{{data.effectstat}}" data-dtype="String">
{{#select data.effectstat}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=true all=false}}
{{/select}}
</select>
</li>
{{else}}
<li class="flexrow"><label class="generic-label">Effect Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.effectlevel" value="{{data.effectlevel}}" data-dtype="Number"/>
</li>
{{/if}}
<li class="flexrow"> <label class="generic-label">Affected Specialisations </label></li>
<li class="flexrow">
<ul class="ul-level1">
<li class="flexrow"><div class="drop-effect-specaffected"><label>Drop Specialisations here !</label></div>
</li>
{{#each data.specaffected as |spec idx|}}
<li class="flexrow">
<label name="data.specaffected[{{idx}}].name"><a class="view-subitem" data-type="specaffected" data-index="{{idx}}">{{spec.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="specaffected" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Affected Stat</label>
<select class="competence-base flexrow" type="text" name="data.stataffected" value="{{data.stataffected}}" data-dtype="String">
{{#select data.stataffected}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true all=true}}
{{/select}}
</select>
</li>
{{#if (eq data.genre "positive")}}
<li class="flexrow"><label class="generic-label">Choose one :</label></li>
<li class="flexrow"><label class="generic-label">Stat Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.statdice" {{checked data.statdice}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Bonus Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.bonusdice" {{checked data.bonusdice}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Other Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.otherdice" {{checked data.otherdice}}/></label>
</li>
{{else}}
<li class="flexrow"><label class="generic-label">Reduce Dice Value ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.reducedicevalue" {{checked data.reducedicevalue}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Hindrance ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.hindrance" {{checked data.hindrance}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Resisted By</label>
<select class="competence-base flexrow" type="text" name="data.resistedby" value="{{data.resistedby}}" data-dtype="String">
{{#select data.resistedby}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=false all=false}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Recovery Roll ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.recoveryroll" {{checked data.recoveryroll}}/></label>
</li>
{{#if data.recoveryroll}}
<li class="flexrow"><label class="generic-label">Recovery Stat</label>
<select class="competence-base flexrow" type="text" name="data.recoveryrollstat" value="{{data.recoveryrollstat}}" data-dtype="String">
{{#select data.recoveryrollstat}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=false all=false}}
{{/select}}
</select>
</li>
<li class="flexrow">
<ul class="ul-level1">
<li class="flexrow">
<label class="generic-label">Recovery Specialisations </label>
</li>
<li class="flexrow"><div class="drop-effect-spec"><label>Drop Specialisations here !</label></div>
</li>
{{#each data.recoveryrollspec as |spec idx|}}
<li class="flexrow">
<label name="data.recoveryrollspec[{{idx}}].name"><a class="view-subitem" data-type="recoveryrollspec" data-index="{{idx}}">{{spec.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="recoveryrollspec" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
{{/if}}
{{/if}}
</ul>
</div>
</section>
</form>

View File

@ -1,86 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
{{#select data.type}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Related Statistic</label>
<select class="competence-base flexrow" type="text" name="data.stataffected" value="{{data.stataffected}}" data-dtype="String">
{{#select data.stataffected}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Stat Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.statdice" {{checked data.statdice}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Bonus Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.bonusdice" {{checked data.bonusdice}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Other Dice ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.otherdice" {{checked data.otherdice}}/></label>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Quantity</label>
<input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Is a container ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.iscontainer" {{checked data.iscontainer}}/></label>
</li>
{{#if data.iscontainer}}
<li class="flexrow"><label class="generic-label">Container capacity</label>
<input type="text" class="input-numeric-short padd-right" name="data.containercapacity" value="{{data.containercapacity}}" data-dtype="Number"/>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Threat Level Value</label>
<input type="text" class="input-numeric-short padd-right" name="data.threatlevel" value="{{data.threatlevel}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,33 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Quantity</label>
<input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,112 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Perk Status</label>
<select class="competence-base flexrow" type="text" name="data.status" value="{{data.status}}" data-dtype="String">
{{#select data.status}}
<option value="ready">Ready</option>
<option value="activated">Activated</option>
<option value="round2">2 Rounds left</option>
<option value="round1">1 Round left</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Number of use during activation</label>
<select class="competence-base flexrow" type="text" name="data.nbuse" value="{{data.nbuse}}" data-dtype="String">
{{#select data.nbuse}}
<option value="perkduration">For Duration of Perk</option>
<option value="next1action">Next 1 Stated Action</option>
<option value="next2action">Next 2 Stated Action</option>
<option value="next3action">Next 3 Stated Action</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Is Weaver Perk?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.isweaver" {{checked data.isweaver}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Effects Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-perk-effect"><label>Drop Effects here !</label></div>
</li>
{{#each data.effectsgained as |effect idx|}}
<li class="flexrow">
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
{{#each data.features as |feature key|}}
{{#if feature.isvalid}}
<li class="flexrow">
<label class="generic-label">{{feature.label}} ? </label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.features.{{key}}.flag" {{checked feature.flag}}/></label>
</li>
{{#if feature.flag}}
<ul class="ul-level1">
<li class="flexrow"><label class="generic-label">{{feature.label}}</label>
{{#if (eq feature.type "statdice")}}
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
{{#select feature.value}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
{{/select}}
</select>
{{/if}}
{{#if (eq feature.type "range")}}
<select class="competence-base flexrow" type="text" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String">
{{#select feature.value}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
{{/if}}
{{#if (eq feature.type "number")}}
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="Number"/>
{{/if}}
{{#if (eq feature.type "string")}}
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
{{/if}}
{{#if (eq feature.type "dropspec")}}
<ul class="ul-level1">
<li class="flexrow"><div class="drop-spec-perk" data-key={{key}}><label>Drop Specialisation here !</label></div>
</li>
<input type="text" class="padd-right" name="data.features.{{key}}.value" value="{{feature.value}}" data-dtype="String"/>
</ul>
{{/if}}
{{#if (eq feature.type "text")}}
<div class="small-editor item-text-long-line">
{{editor content=features.value target="data.features.{{key}}.value" button=true owner=owner editable=editable}}
</div>
{{/if}}
</li>
</ul>
{{/if}}
{{/if}}
{{/each}}
</ul>
</div>
</section>
</form>

View File

@ -1,136 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab description" data-group="primary" data-tab="description">
<div class="medium-editor item-text-long-line">
<label class="generic-label">Description</label>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<div class="medium-editor item-text-long-line">
<label class="generic-label">Available Effects</label>
{{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}
</div>
<div class="medium-editor item-text-long-line">
<label class="generic-label">Purchased Effects</label>
{{editor content=data.purchasedeffects target="data.purchasedeffects" button=true owner=owner
editable=editable}}
</div>
</div>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Roll Needed ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.rollneeded" {{checked
data.rollneeded}} /></label>
</li>
{{#if data.rollneeded}}
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}"
data-dtype="String">
{{#select data.statistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
{{/if}}
<li class="flexrow">
<label class="generic-label">Activated ? </label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
data.activated}} /></label>
</li>
<li class="flexrow"><label class="generic-label">NRG Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}"
data-dtype="Number" />
</li>
<li class="flexrow"><label class="generic-label">NRG Spent</label>
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
data-dtype="Number" />
</li>
<li class="flexrow"><label class="generic-label">Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
data-dtype="String">
{{#select data.range}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Action</label>
<select class="competence-base flexrow" type="text" name="data.action" value="{{data.action}}"
data-dtype="String">
{{#select data.action}}
<option value="soft">Soft</option>
<option value="hard">Hard</option>
<option value="full">Full</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}"
data-dtype="String">
{{#select data.type}}
<option value="instant">Instant</option>
<option value="active">Active</option>
<option value="permanent">Permanent</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Power Source</label>
<input type="text" class="padd-right" name="data.powersource" value="{{data.powersource}}"
data-dtype="String" />
</li>
<li class="flexrow">
<label class="generic-label">DMG Roll Needed ? </label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked
data.dmgroll}} /></label>
</li>
{{#if data.dmgroll}}
<li class="flexrow"><label class="generic-label">Related DMG Statistic </label>
<select class="competence-base flexrow" type="text" name="data.dmgstatistic" value="{{data.dmgstatistic}}"
data-dtype="String">
{{#select data.dmgstatistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Effects Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow">
<div class="drop-power-effect"><label>Drop Effects here !</label></div>
</li>
{{#each data.effectsgained as |effect idx|}}
<li class="flexrow">
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained"
data-index="{{idx}}">{{effect.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}"
title="Delete Effect"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,134 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab details" data-group="primary" data-tab="description">
<label class="generic-label">Description</label>
<div class="medium-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<label class="generic-label">Environment</label>
<div class="medium-editor item-text-long-line">
{{editor content=data.environment target="data.environment" button=true owner=owner editable=editable}}
</div>
<label class="generic-label">Society/Culture</label>
<div class="medium-editor item-text-long-line">
{{editor content=data.society_culture target="data.society_culture" button=true owner=owner editable=editable}}
</div>
<label class="generic-label">Outlook</label>
<div class="medium-editor item-text-long-line">
{{editor content=data.outlook target="data.outlook" button=true owner=owner editable=editable}}
</div>
</div>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Abilities</label>
</li>
<ul class="ul-level1">
<li class="flexrow">
<div class="drop-abilities"><label>Drop Abilities here !</label></div>
</li>
{{#each data.abilities as |ability idx|}}
<li class="flexrow">
<label name="data.abilities[{{idx}}].name"><a class="view-subitem" data-type="abilities"
data-index="{{idx}}">{{ability.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="abilities" data-index="{{idx}}"
title="Delete Ability"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</ul>
<ul>
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked
data.selectablestats}} /></label>
</li>
{{#if data.selectablestats}}
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked
data.statsonlyonce}} /></label>
</li>
<li class="flexrow"><label class="generic-label">Number of selectable stats</label>
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}"
data-dtype="Number" />
</li>
{{/if}}
</ul>
<ul>
<li class="flexrow"><label class="generic-label">Number of Optionnal Abilities</label>
<input type="text" class="input-numeric-short padd-right" name="data.nboptionnal" value="{{data.nboptionnal}}"
data-dtype="Number" />
</li>
<li class="flexrow"><label class="generic-label">Optionnal Abilities</label>
</li>
<ul class="ul-level1">
<li class="flexrow">
<div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div>
</li>
{{#each data.optionnalabilities as |ability idx|}}
<li class="flexrow">
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities"
data-index="{{idx}}">{{ability.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}"
title="Delete Ability"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</ul>
<ul>
<li class="flexrow"><label class="generic-label">Perks Gained ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksgained" {{checked
data.perksgained}} /></label>
</li>
{{#if data.perksgained}}
<li class="flexrow"><label class="generic-label">Choose in all available perks?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksall" {{checked
data.perksall}} /></label>
</li>
<li class="flexrow"><label class="generic-label">Number of perks to gain</label>
<input type="text" class="input-numeric-short padd-right" name="data.perksnumber" value="{{data.perksnumber}}"
data-dtype="Number" />
</li>
{{#if data.perksall}}
{{else}}
<ul class="ul-level1">
<li class="flexrow">
<div class="drop-race-perk"><label>Drop Perks here !</label></div>
</li>
{{#each data.perks as |perk idx|}}
<li class="flexrow">
<label name="data.perks[{{idx}}].name"><a class="view-subitem" data-type="perks"
data-index="{{idx}}">{{perk.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}"
title="Delete Perk"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
{{/if}}
{{/if}}
</ul>
</div>
</section>
</form>

View File

@ -1,114 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname">
<input name="name" type="text" value="{{name}}" placeholder="Name"/>
</h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
<select class="competence-base flexrow" type="text" name="data.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
{{#select data.statincrease1}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
<select class="competence-base flexrow" type="text" name="data.statincrease2" value="{{data.statincrease2}}" data-dtype="String">
{{#select data.statincrease2}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
{{/select}}
</select>
</li>
<li class="flexrow">
<label class="generic-label">Starting Specialisation at +1 DT (Two to be selected)</label>
</li>
<ul class="ul-level1">
<li class="flexrow">
<label class="generic-label">Starting Specialisations : </label>
</li>
<li class="flexrow">
<input type="text" class="padd-right" name="data.messagespecplus1" value="{{data.messagespecplus1}}" data-dtype="String"/>
</li>
<li class="flexrow"><div class="drop-spec1"><label>Drop Specialisations here !</label></div>
</li>
{{#each data.specialisationsplus1 as |spec idx|}}
<li class="flexrow">
<label name="data.specialisationsplus1[{{idx}}].name"><a class="view-subitem" data-type="specialisationsplus1" data-index="{{idx}}">{{spec.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="specialisationsplus1" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
<li class="flexrow">
<label class="generic-label">Role Perk</label>
</li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-specialperk1"><label>Drop Perks here !</label></div>
</li>
{{#each data.specialperk as |perk idx|}}
<li class="flexrow">
<label name="data.specialperk[{{idx}}].name"><a class="view-subitem" data-type="specialperk" data-index="{{idx}}">{{perk.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="specialperk" data-index="{{idx}}" title="Delete Perk"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Statistic increase (Choose 2 at +1 DT)</label>
</li>
<ul class="ul-level1">
<li class="flexrow">
{{#each data.statincreasechoice as |stat idx|}}
<label name="statchoice{{idx}}">{{stat.name}}</label>
<label class="attribute-value checkbox"><input type="checkbox" class="stat-choice-flag" data-stat-idx="{{idx}}" {{checked stat.flag}}/></label>
{{/each}}
</li>
</ul>
<li class="flexrow"><label class="generic-label">Available specialisations (Choose 1 at +2 DT, Choose 2 at +1 DT)</label>
</li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-spec2"><label>Drop Specialisations here !</label></div>
</li>
{{#each data.specincrease as |spec idx|}}
<li class="flexrow">
<label name="data.specincrease[{{idx}}].name"><a class="view-subitem" data-type="specincrease" data-index="{{idx}}">{{spec.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="specincrease" data-index="{{idx}}" title="Delete Spec"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Available perks (Choose 2)</label>
</li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-perk2"><label>Drop Perks here !</label></div>
</li>
{{#each data.perks as |perk idx|}}
<li class="flexrow">
<label name="data.perk[{{idx}}].name"><a class="view-subitem" data-type="perks" data-index="{{idx}}">{{perk.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}" title="Delete Perk"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,55 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Defense Type</label>
<select class="competence-base flexrow" type="text" name="data.deftype" value="{{data.deftype}}" data-dtype="String">
{{#select data.deftype}}
<option value="dodge">Dodge</option>
<option value="block">Block</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Dice Level</label>
<select class="competence-base flexrow" type="text" name="data.level" value="{{data.level}}" data-dtype="Number">
{{#select data.level}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-level.html}}
{{/select}}
</select>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,62 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Related Statistic</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
{{#select data.statistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Level</label>
<select class="competence-base flexrow" type="text" name="data.level" value="{{data.level}}" data-dtype="Number">
{{#select data.level}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Is Power Group ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.ispowergroup" {{checked data.ispowergroup}}/></label>
</li>
{{#if data.ispowergroup}}
<li class="flexrow"><label class="generic-label">Available Power sources</label>
<input type="text" class="" name="data.powersource" value="{{data.powersource}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="generic-label">Available Powers</label>
</li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-spec-power"><label>Drop Powers here !</label></div>
</li>
{{#each data.powers as |power idx|}}
<li class="flexrow">
<label name="data.powers[{{idx}}].name"><a class="view-subitem" data-type="powers" data-index="{{idx}}">{{power.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="powers" data-index="{{idx}}" title="Delete Power"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Use for Threat Level ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.isthreatlevel" {{checked data.isthreatlevel}}/></label>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,145 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Related Attack Statistic</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
{{#select data.statistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Related DMG Statistic</label>
<select class="competence-base flexrow" type="text" name="data.damagestatistic" value="{{data.damagestatistic}}" data-dtype="String">
{{#select data.damagestatistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Damage (Other Dice pool)</label>
<select class="competence-base flexrow" type="text" name="data.damage" value="{{data.damage}}" data-dtype="String">
{{#select data.damage}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Optimal Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
{{#select data.range}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Max Range</label>
<input type="text" class="" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="generic-label">AoE</label>
<select class="competence-base flexrow" type="text" name="data.aoe" value="{{data.aoe}}" data-dtype="String">
{{#select data.aoe}}
<option value="none">None</option>
<option value="tz">TZ</option>
<option value="close">Close</option>
<option value="medium">Medium</option>
<option value="long">Long</option>
<option value="extreme">Extreme</option>
<option value="special">Special</option>
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Damage Type</label>
<select class="competence-base flexrow" type="text" name="data.damagetype" value="{{data.damagetype}}" data-dtype="String">
{{#select data.damagetype}}
<option value="none">None</option>
<option value="slashing">Slashing</option>
<option value="crushing">Crushing</option>
<option value="piercing">Piercing</option>
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Damage Type Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.damagetypelevel" value="{{data.damagetypelevel}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Vehicle Damage Type</label>
<select class="competence-base flexrow" type="text" name="data.vehicledamagetype" value="{{data.vehicledamagetype}}" data-dtype="String">
{{#select data.vehicledamagetype}}
<option value="none">None</option>
<option value="emp">EMP</option>
<option value="thermal">Thermal</option>
<option value="kinetic">Kinetic</option>
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Vehicle Damage Type Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.vehicledamagetypelevel" value="{{data.vehicledamagetypelevel}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Ammo - Current</label>
<input type="text" class="input-numeric-short padd-right" name="data.ammocurrent" value="{{data.ammocurrent}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Ammo - Max</label>
<input type="text" class="input-numeric-short padd-right" name="data.ammomax" value="{{data.ammomax}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
</li>
<li class="flexrow"><label class="generic-label">Enhanced ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.enhanced" {{checked data.enhanced}}/></label>
</li>
{{#if data.enhanced}}
<li class="flexrow"><label class="generic-label">Enhanced Attack Statistic</label>
<select class="competence-base flexrow" type="text" name="data.enhancedstat" value="{{data.enhancedstat}}" data-dtype="String">
{{#select data.enhancedstat}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false special=false}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Enhance Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.enhancedlevel" value="{{data.enhancedlevel}}" data-dtype="Number"/>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -1,184 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
{{!-- Sheet Header --}}
<header class="sheet-header">
<div class="header-fields">
<div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="attribute">Main</a>
<a class="item" data-tab="defence">Defence/Weapons</a>
<a class="item" data-tab="equipment">Equipment</a>
<a class="item" data-tab="notes">Notes</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Carac Tab --}}
<div class="tab items" data-group="primary" data-tab="attribute">
<span><a class="lock-unlock-sheet"><img class="small-button-container"
src="systems/fvtt-fragged-kingdom/images/icons/{{#if editScore}}unlocked.svg{{else}}locked.svg{{/if}}" alt="Unlocked/Locked"
>{{#if editScore}}Unlocked{{else}}Locked{{/if}}</a>
</span>
<div class="grid grid-2col">
<div class="">
<span class="generic-label"><h3>Type</h3>
<select class="competence-base flexrow" type="text" name="data.npctype" value="{{data.npctype}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select data.npctype}}
<option value="henchman">Henchman</option>
<option value="drone">Troop</option>
{{/select}}
</select> </span>
<button class="npc-skill-roll">Generic Skill roll</button>
<div>
<span class="generic-label"><h3>Traits List</h3></span>
<ul>
{{#each traits as |trait key|}}
<li class="item flexrow list-item" data-item-id="{{trait.id}}">
<img class="sheet-competence-img" src="{{trait.img}}"/>
<span class="competence-label">{{trait.name}}</span>
<span class="competence-label">{{trait.data.data.type}}</span>
<div class="item-controls">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
</div>
<div class="">
<span class="generic-label"><h3>Stats & Numbers</h3></span>
<ul>
{{#each data.spec as |spec key|}}
<li class="item flexrow list-item stack-left" data-attr-key="{{key}}">
<span class="stat-label padd-right npc-stat-label" name="{{key}}">{{spec.label}}</span>
<input type="text" class="input-numeric-short padd-right" name="data.spec.{{key}}.value" value="{{spec.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}/>
</li>
{{/each}}
</ul>
</div>
</div>
</div>
{{!-- Defence Tab --}}
<div class="tab defence" data-group="primary" data-tab="defence">
<div class="flexcol">
<div class="">
{{#each data.fight as |fight key|}}
<ul>
<li class="item flexrow list-item stack-left">
<span class="stat-label padd-right"><strong>{{fight.label}}</strong></span>
<input type="text" class="input-numeric-short padd-right" name="data.fight.{{key}}.value" value="{{fight.value}}" data-dtype="Number"/>
</li>
{{#each fight.derivated as |derivated keydev|}}
<li class="item flexrow list-item">
<span class="stat-label flexrow ">{{derivated.label}}</span>
<input type="text" class="input-numeric-short padd-right" name="data.fight.{{key}}.derivated.{{keydev}}.value" value="{{derivated.value}}" data-dtype="Number"/>
</li>
{{/each}}
</ul>
{{/each}}
</div>
<span class="generic-label"><h3>Weapons</h3></span>
<ul class="stat-list alternate-list">
{{#each weapons as |weapon key|}}
<li class="item stat flexrow list-item" data-arme-id="{{weapon.id}}" data-item-id="{{weapon.id}}">
<img class="sheet-competence-img" src="{{weapon.img}}"/>
<span class="stat-label">{{weapon.name}}</span>
<div class="item-controls">
<a class="item-control item-equip" title="Worn">{{#if weapon.data.data.equipped}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
<li class="item stat flexrow list-item stats-table" data-armure-id="{{weapon.id}}" data-item-id="{{weapon.id}}">
{{#each weapon.data.data.weaponstats as |weaponstat statkey|}}
<ul>
<li class="item stat flexrow list-item" data-item-id="{{weapon.id}}" data-stat-id={{statkey}}><span class="stat-label weapon-label"><a name="{{weapon.name}}">Attack with {{weaponstat.name}}</a></span>
</li>
<li>{{> "systems/fvtt-fragged-kingdom/templates/weapon-stats-section.html" stats=weaponstat.data.statstotal isfinal=false header=true}}
</li>
</ul>
{{/each}}
</li>
{{/each}}
</ul>
</div>
</div>
{{!-- Traits Tab --}}
<div class="tab traits" data-group="primary" data-tab="traits">
</div>
{{!-- Features Tab --}}
<div class="tab equipment" data-group="primary" data-tab="equipment">
<div class="flexcol">
<div><h4>Equipment</h4></div>
<ul class="item-list alternate-list">
<li class="item flexrow list-item">
<span class="equipement-label">Name</span>
<span class="equipement-label">Type</span>
<div class="item-controls">
<span class="equipement-label">&nbsp;</span>
<span class="equipement-label">&nbsp;</span>
<span class="equipement-label">&nbsp;</span>
</div>
</li>
{{#each equipments as |equip key|}}
<li class="item flexrow list-item" data-item-id="{{equip.id}}">
<img class="sheet-competence-img" src="{{equip.img}}"/>
<span class="equipement-label">{{equip.name}}</span>
<span class="equipement-label">{{equip.type}}</span>
<div class="item-controls">
<a class="item-control item-equip" title="Worn">{{#if equip.data.data.equipped}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
</div>
{{!-- Notes Tab --}}
<div class="tab notes" data-group="primary" data-tab="notes">
<article class="flexcol">
<h3>Description : </h3>
<div class="form-group editor">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<hr>
<h3>Notes : </h3>
<div class="form-group editor">
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
</div>
<hr>
{{>"systems/fvtt-fragged-kingdom/templates/editor-notes-gm.html"}}
</article>
</div>
</section>
</form>

View File

@ -1,4 +1,4 @@
<div class="tab description" data-group="primary" data-tab="description">
<div class="" data-group="primary" data-tab="description">
<div>
<label class="generic-label">Description</label>
<div class="medium-editor item-text-long-line">

View File

@ -1,5 +0,0 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="details">Details</a>
</nav>

View File

@ -1,14 +0,0 @@
{{#if notapplicable}}
<option value="notapplicable">Not applicable</option>
{{/if}}
<option value="0">0</option>
<option value="1">d4</option>
<option value="2">d6</option>
<option value="3">d8</option>
<option value="4">d10</option>
<option value="5">d12</option>
<option value="6">d12 d4</option>
<option value="7">d12 d6</option>
<option value="8">d12 d8</option>
<option value="9">d12 d10</option>
<option value="10">d12 d12</option>

View File

@ -1,15 +0,0 @@
{{#if notapplicable}}
<option value="notapplicable">Not applicable</option>
{{/if}}
<option value="touch">Self Only</option>
<option value="touchself">Touch/Self</option>
<option value="tz">Threat Zone</option>
<option value="close">Close</option>
<option value="medium">Medium</option>
<option value="long">Long</option>
<option value="extreme">Extreme</option>
<option value="sight">Line of Sight</option>
<option value="tz_close">TZ/Close</option>
<option value="close_medium">Close/Medium</option>
<option value="medium_long">Medium/Long</option>
<option value="long_extreme">Long/Extreme</option>

View File

@ -1,22 +0,0 @@
{{#if notapplicable}}
<option value="notapplicable">Not applicable</option>
{{/if}}
{{#if all}}
<option value="all">All</option>
{{/if}}
{{#if all}}
<option value="special">Special</option>
{{/if}}
<option value="agi">AGI</option>
<option value="mnd">MND</option>
<option value="soc">SOC</option>
<option value="str">STR</option>
<option value="phy">PHY</option>
<option value="com">COM</option>
<option value="def">DEF</option>
<option value="stl">STL</option>
<option value="per">PER</option>
<option value="foc">FOC</option>
{{#if mr}}
<option value="mr">MR</option>
{{/if}}

View File

@ -1,102 +0,0 @@
{{#if (notEmpty effectsList)}}
<label>Effects&Hindrances</label>
<ul>
{{#each effectsList as |effect idx|}}
{{#if effect.effect.data.hindrance}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
<label class="generic-label">Target Hindrance : {{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
</li>
{{else}}
{{#if (eq type "hindrance")}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
<label class="generic-label">Target Hindrance : {{effect.label}} ({{effect.value}})</label>
</li>
{{else}}
{{#if (count effect.effect.data.specaffected)}}
{{#each effect.effect.data.specaffected as |spec idx|}}
{{#if (eq @root.specName spec.name)}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
{{#if effect.effect}}
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
{{/each}}
{{else}}
{{#if (eq @root.statKey effect.effect.data.stataffected)}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
{{#if effect.effect}}
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{else}}
{{#if (eq effect.effect.data.stataffected "all")}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
{{#if effect.effect}}
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.data.type}}, {{upperFirst effect.effect.data.genre}}, {{effect.value}})</label>
{{else}}
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
{{/if}}
</li>
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{/each}}
</ul>
{{/if}}
{{#if (notEmpty armorsList)}}
<label>Armors&Shields</label>
<ul>
{{#each armorsList as |armor idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="armor-clicked" id="armor-{{idx}}" data-armor-idx="{{idx}}" {{checked armor.applied}}/></label>
<label class="generic-label padd-right">{{armor.label}} ({{armor.value}})</label>
</li>
{{/each}}
</ul>
{{/if}}
{{#if (notEmpty weaponsList)}}
<label>Weapons</label>
<ul>
{{#each weaponsList as |weapon idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="weapon-clicked" id="weapon-{{idx}}" data-weapon-idx="{{idx}}" {{checked weapon.applied}}/></label>
<label class="generic-label padd-right">{{weapon.label}}</label>
</li>
{{/each}}
</ul>
{{/if}}
{{#if (notEmpty equipmentsList)}}
<label>Items</label>
<ul>
{{#each equipmentsList as |equip idx|}}
<li class="flex-group-left">
<label class="attribute-value checkbox"><input type="checkbox" class="equip-clicked" id="equip-{{idx}}" data-equip-idx="{{idx}}" {{checked equip.applied}}/></label>
<label class="generic-label padd-right">{{equip.label}} ({{equip.value}})</label>
</li>
{{/each}}
</ul>
{{/if}}