Sort, confrontation, update tarots, etc
This commit is contained in:
parent
e146c6ba5b
commit
c5509143b1
BIN
images/icons/sortilege.webp
Normal file
BIN
images/icons/sortilege.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -7,6 +7,7 @@
|
|||||||
"TypeEquipement": "Equipement",
|
"TypeEquipement": "Equipement",
|
||||||
"TypeTarot": "Tarot",
|
"TypeTarot": "Tarot",
|
||||||
"TypeElementbio": "Element Biographique",
|
"TypeElementbio": "Element Biographique",
|
||||||
"TypeArchetype": "Archetype"
|
"TypeArchetype": "Archetype",
|
||||||
|
"TypeSortilege": "Sortilège"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -43,6 +43,7 @@ export class MaleficesActorSheet extends ActorSheet {
|
|||||||
subActors: duplicate(this.actor.getSubActors()),
|
subActors: duplicate(this.actor.getSubActors()),
|
||||||
phyMalus: this.actor.getPhysiqueMalus(),
|
phyMalus: this.actor.getPhysiqueMalus(),
|
||||||
elementsbio: this.actor.getElementsBio(),
|
elementsbio: this.actor.getElementsBio(),
|
||||||
|
sorts: this.actor.getSorts(),
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner,
|
||||||
editScore: this.options.editScore,
|
editScore: this.options.editScore,
|
||||||
|
@ -86,6 +86,11 @@ export class MaleficesActor extends Actor {
|
|||||||
MaleficesUtility.sortArrayObjectsByName(comp)
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
|
getSorts() {
|
||||||
|
let comp = this.items.filter(item => item.type == 'sortilege');
|
||||||
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
getArchetype() {
|
getArchetype() {
|
||||||
let comp = duplicate(this.items.find(item => item.type == 'archetype') || {name: "Pas d'archetype"})
|
let comp = duplicate(this.items.find(item => item.type == 'archetype') || {name: "Pas d'archetype"})
|
||||||
if (comp && comp.system) {
|
if (comp && comp.system) {
|
||||||
@ -267,7 +272,29 @@ export class MaleficesActor extends Actor {
|
|||||||
await this.createEmbeddedDocuments('Item', [newItem]);
|
await this.createEmbeddedDocuments('Item', [newItem]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
incDecFluide(value) {
|
||||||
|
let fluide = this.system.fluide + value
|
||||||
|
this.update( {'system.fluide': fluide} )
|
||||||
|
}
|
||||||
|
incDecDestin(value) {
|
||||||
|
let destin = this.system.pointdestin + value
|
||||||
|
this.update( {'system.pointdestin': destin} )
|
||||||
|
}
|
||||||
|
incDecMPMB(value) {
|
||||||
|
let mpmb = this.system.mpmb + value
|
||||||
|
this.update( {'system.mpmb': mpmb} )
|
||||||
|
}
|
||||||
|
incDecMPMN(value) {
|
||||||
|
let mpmn = this.system.mpmn + value
|
||||||
|
this.update( {'system.mpmn': mpmn} )
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
incDecAttr(attrKey, value) {
|
||||||
|
let attr = duplicate(this.system.attributs[attrKey])
|
||||||
|
attr.value += value
|
||||||
|
this.update( { [`system.attributs.${attrKey}`]: attr})
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async incDecQuantity(objetId, incDec = 0) {
|
async incDecQuantity(objetId, incDec = 0) {
|
||||||
let objetQ = this.items.get(objetId)
|
let objetQ = this.items.get(objetId)
|
||||||
@ -312,6 +339,8 @@ export class MaleficesActor extends Actor {
|
|||||||
rollData.elementsbio = this.getElementsBio()
|
rollData.elementsbio = this.getElementsBio()
|
||||||
rollData.destin = this.system.pointdestin
|
rollData.destin = this.system.pointdestin
|
||||||
rollData.isReroll = false
|
rollData.isReroll = false
|
||||||
|
rollData.confrontationDegre = 0
|
||||||
|
rollData.confrontationModif = 0
|
||||||
|
|
||||||
console.log("ROLLDATA", rollData)
|
console.log("ROLLDATA", rollData)
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import { MaleficesUtility } from "./malefices-utility.js";
|
import { MaleficesUtility } from "./malefices-utility.js";
|
||||||
import { MaleficesRollDialog } from "./malefices-roll-dialog.js";
|
import { MaleficesRollDialog } from "./malefices-roll-dialog.js";
|
||||||
import { MaleficesTirageTarotDialog } from "./malefices-tirage-tarot-dialog.js"
|
import { MaleficesTirageTarotDialog } from "./malefices-tirage-tarot-dialog.js"
|
||||||
|
import { MaleficesCharacterSummary } from "./malefices-summary-app.js"
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class MaleficesCommands {
|
export class MaleficesCommands {
|
||||||
@ -11,7 +12,7 @@ export class MaleficesCommands {
|
|||||||
if (!game.system.malefices.commands) {
|
if (!game.system.malefices.commands) {
|
||||||
const commands = new MaleficesCommands();
|
const commands = new MaleficesCommands();
|
||||||
commands.registerCommand({ path: ["/tirage"], func: (content, msg, params) => MaleficesCommands.createTirage(msg), descr: "Tirage des tarots" });
|
commands.registerCommand({ path: ["/tirage"], func: (content, msg, params) => MaleficesCommands.createTirage(msg), descr: "Tirage des tarots" });
|
||||||
//crucibleCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => crucibleCommands.poolRoll(msg), descr: "Generic Roll Window" });
|
commands.registerCommand({ path: ["/resume"], func: (content, msg, params) => MaleficesCharacterSummary.displayPCSummary(), descr: "Affiche la liste des PJs!" });
|
||||||
game.system.malefices.commands = commands;
|
game.system.malefices.commands = commands;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -110,14 +111,14 @@ export class MaleficesCommands {
|
|||||||
let tirageData = {
|
let tirageData = {
|
||||||
state: 'select-player',
|
state: 'select-player',
|
||||||
nbCard: 0,
|
nbCard: 0,
|
||||||
maxPlayerCard: 5,
|
maxPlayerCard: 4,
|
||||||
maxSecretCard: 1,
|
maxSecretCard: 1,
|
||||||
cards: [],
|
cards: [],
|
||||||
players: duplicate(game.users),
|
players: duplicate(game.users),
|
||||||
secretCards: [],
|
secretCards: [],
|
||||||
deck: MaleficesUtility.getTarots()
|
deck: MaleficesUtility.getTarots()
|
||||||
}
|
}
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 4; i++) {
|
||||||
tirageData.cards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
tirageData.cards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
||||||
}
|
}
|
||||||
tirageData.secretCards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
tirageData.secretCards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
|
|
||||||
export const MALEFICES_CONFIG = {
|
export const MALEFICES_CONFIG = {
|
||||||
|
attributs: {
|
||||||
|
"constitution": "Cons",
|
||||||
|
"physique": "Phy",
|
||||||
|
"culturegenerale": "CGén",
|
||||||
|
"habilite": "Hab",
|
||||||
|
"perception": "Per",
|
||||||
|
"spiritualite": "Spi",
|
||||||
|
"rationnalite": "Rat"
|
||||||
|
},
|
||||||
|
|
||||||
tarotType: {
|
tarotType: {
|
||||||
"majeur": "Arcane Majeur",
|
"majeur": "Arcane Majeur",
|
||||||
|
@ -6,6 +6,7 @@ export const defaultItemImg = {
|
|||||||
elementbio: "systems/fvtt-malefices/images/icons/wisdom.webp",
|
elementbio: "systems/fvtt-malefices/images/icons/wisdom.webp",
|
||||||
archetype: "systems/fvtt-malefices/images/icons/archetype.webp",
|
archetype: "systems/fvtt-malefices/images/icons/archetype.webp",
|
||||||
tarot: "systems/fvtt-malefices/images/icons/tarot.webp",
|
tarot: "systems/fvtt-malefices/images/icons/tarot.webp",
|
||||||
|
sortilege: "systems/fvtt-malefices/images/icons/sortilege.webp",
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,6 +16,7 @@ import { MaleficesUtility } from "./malefices-utility.js";
|
|||||||
import { MaleficesCombat } from "./malefices-combat.js";
|
import { MaleficesCombat } from "./malefices-combat.js";
|
||||||
import { MaleficesItem } from "./malefices-item.js";
|
import { MaleficesItem } from "./malefices-item.js";
|
||||||
import { MaleficesHotbar } from "./malefices-hotbar.js"
|
import { MaleficesHotbar } from "./malefices-hotbar.js"
|
||||||
|
import { MaleficesCharacterSummary } from "./malefices-summary-app.js"
|
||||||
import { MALEFICES_CONFIG } from "./malefices-config.js"
|
import { MALEFICES_CONFIG } from "./malefices-config.js"
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -79,6 +80,32 @@ function welcomeMessage() {
|
|||||||
` });
|
` });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
// Register world usage statistics
|
||||||
|
function registerUsageCount( registerKey ) {
|
||||||
|
if ( game.user.isGM ) {
|
||||||
|
game.settings.register(registerKey, "world-key", {
|
||||||
|
name: "Unique world key",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
default: "",
|
||||||
|
type: String
|
||||||
|
});
|
||||||
|
|
||||||
|
let worldKey = game.settings.get(registerKey, "world-key")
|
||||||
|
if ( worldKey == undefined || worldKey == "" ) {
|
||||||
|
worldKey = randomID(32)
|
||||||
|
game.settings.set(registerKey, "world-key", worldKey )
|
||||||
|
}
|
||||||
|
// Simple API counter
|
||||||
|
let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"`
|
||||||
|
//$.ajaxSetup({
|
||||||
|
//headers: { 'Access-Control-Allow-Origin': '*' }
|
||||||
|
//})
|
||||||
|
$.ajax(regURL)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -99,11 +126,15 @@ Hooks.once("ready", function () {
|
|||||||
sidebar.style.width = "min-content";
|
sidebar.style.width = "min-content";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
registerUsageCount('fvtt-malefices')
|
||||||
welcomeMessage();
|
welcomeMessage();
|
||||||
MaleficesUtility.ready()
|
MaleficesUtility.ready()
|
||||||
MaleficesUtility.init()
|
MaleficesUtility.init()
|
||||||
|
MaleficesCharacterSummary.ready()
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -5,26 +5,32 @@ export class MaleficesRollDialog extends Dialog {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async create(actor, rollData) {
|
static async create(actor, rollData) {
|
||||||
|
|
||||||
let options = { classes: ["MaleficesDialog"], width: 540, height: 'fit-content', 'z-index': 99999 };
|
let options = { classes: ["MaleficesDialog"], width: 540, height: 'fit-content', 'z-index': 99999 }
|
||||||
let html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/roll-dialog-generic.hbs', rollData);
|
let html
|
||||||
|
if (rollData.attr && rollData.attr.iscard) {
|
||||||
|
html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/confrontation-dialog.hbs', rollData);
|
||||||
|
} else {
|
||||||
|
html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/roll-dialog-generic.hbs', rollData);
|
||||||
|
}
|
||||||
|
|
||||||
return new MaleficesRollDialog(actor, rollData, html, options);
|
return new MaleficesRollDialog(actor, rollData, html, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
constructor(actor, rollData, html, options, close = undefined) {
|
constructor(actor, rollData, html, options, close = undefined) {
|
||||||
|
let isCard = rollData.attr && rollData.attr.iscard
|
||||||
let conf = {
|
let conf = {
|
||||||
title: (rollData.mode == "skill") ? "Skill" : "Attribute",
|
title: (isCard) ? "Jet" : "Tirage",
|
||||||
content: html,
|
content: html,
|
||||||
buttons: {
|
buttons: {
|
||||||
roll: {
|
roll: {
|
||||||
icon: '<i class="fas fa-check"></i>',
|
icon: '<i class="fas fa-check"></i>',
|
||||||
label: "Roll !",
|
label: (isCard) ? "Tirer une carte" : "Lancer le dé",
|
||||||
callback: () => { this.roll() }
|
callback: () => { this.roll() }
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
icon: '<i class="fas fa-times"></i>',
|
icon: '<i class="fas fa-times"></i>',
|
||||||
label: "Cancel",
|
label: "Annuler",
|
||||||
callback: () => { this.close() }
|
callback: () => { this.close() }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -39,7 +45,12 @@ export class MaleficesRollDialog extends Dialog {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
roll() {
|
roll() {
|
||||||
MaleficesUtility.rollMalefices(this.rollData)
|
let isCard = this.rollData.attr && this.rollData.attr.iscard
|
||||||
|
if (isCard) {
|
||||||
|
MaleficesUtility.tirageConfrontationMalefices(this.rollData)
|
||||||
|
} else {
|
||||||
|
MaleficesUtility.rollMalefices(this.rollData)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -70,6 +81,12 @@ export class MaleficesRollDialog extends Dialog {
|
|||||||
html.find('#bonusMalusPortee').change((event) => {
|
html.find('#bonusMalusPortee').change((event) => {
|
||||||
this.rollData.bonusMalusPortee = Number(event.currentTarget.value)
|
this.rollData.bonusMalusPortee = Number(event.currentTarget.value)
|
||||||
})
|
})
|
||||||
|
html.find('#confrontationDegre').change((event) => {
|
||||||
|
this.rollData.confrontationDegre = Number(event.currentTarget.value)
|
||||||
|
})
|
||||||
|
html.find('#confrontationModif').change((event) => {
|
||||||
|
this.rollData.confrontationModif = Number(event.currentTarget.value)
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
129
modules/malefices-summary-app.js
Normal file
129
modules/malefices-summary-app.js
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
/* -------------------------------------------- */
|
||||||
|
import { MaleficesUtility } from "./malefices-utility.js";
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
export class MaleficesCharacterSummary extends Application {
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static displayPCSummary(){
|
||||||
|
game.system.malefices.charSummary.render(true)
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
updatePCSummary(){
|
||||||
|
if ( this.rendered) {
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static createSummaryPos() {
|
||||||
|
return { top: 200, left: 200 };
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static ready() {
|
||||||
|
if ( !game.user.isGM ) { // Uniquement si GM
|
||||||
|
return
|
||||||
|
}
|
||||||
|
let charSummary = new MaleficesCharacterSummary()
|
||||||
|
game.system.malefices.charSummary = charSummary
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
//game.settings.set("world", "character-summary-data", {npcList: [], x:0, y:0})
|
||||||
|
this.settings = game.settings.get("world", "character-summary-data")
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static get defaultOptions() {
|
||||||
|
return mergeObject(super.defaultOptions, {
|
||||||
|
template: "systems/fvtt-malefices/templates/dialogs/character-summary.hbs",
|
||||||
|
popOut: true,
|
||||||
|
resizable: true,
|
||||||
|
dragDrop: [{ dragSelector: ".items-list .item", dropSelector: null }],
|
||||||
|
classes: ["bol", "dialog"], width: 920, height: 'fit-content'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
getData() {
|
||||||
|
let formData = super.getData();
|
||||||
|
|
||||||
|
formData.pcs = game.actors.filter( ac => ac.type == "personnage" && ac.hasPlayerOwner )
|
||||||
|
formData.npcs = []
|
||||||
|
let newList = []
|
||||||
|
let toUpdate = false
|
||||||
|
for( let actorId of this.settings.npcList ) {
|
||||||
|
let actor = game.actors.get(actorId)
|
||||||
|
if (actor) {
|
||||||
|
formData.npcs.push( actor )
|
||||||
|
newList.push(actorId)
|
||||||
|
} else {
|
||||||
|
toUpdate = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
formData.config = game.system.malefices.config
|
||||||
|
|
||||||
|
if ( toUpdate ) {
|
||||||
|
this.settings.npcList = newList
|
||||||
|
//console.log("Going to update ...", this.settings)
|
||||||
|
game.settings.set("world", "character-summary-data", this.settings)
|
||||||
|
}
|
||||||
|
|
||||||
|
return formData
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
updateNPC() {
|
||||||
|
game.settings.set("world", "character-summary-data", game.system.malefices.charSummary.settings)
|
||||||
|
game.system.malefices.charSummary.close()
|
||||||
|
setTimeout( function() { game.system.malefices.charSummary.render(true)}, 500)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async _onDrop(event) {
|
||||||
|
//console.log("Dragged data are : ", dragData)
|
||||||
|
let data = event.dataTransfer.getData('text/plain')
|
||||||
|
let dataItem = JSON.parse( data)
|
||||||
|
let actor = fromUuidSync(dataItem.uuid)
|
||||||
|
if (actor) {
|
||||||
|
game.system.malefices.charSummary.settings.npcList.push( actor.id )
|
||||||
|
game.system.malefices.charSummary.updateNPC()
|
||||||
|
|
||||||
|
} else {
|
||||||
|
ui.notifications.warn( "Pas d'acteur trouvé" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
/** @override */
|
||||||
|
async activateListeners(html) {
|
||||||
|
super.activateListeners(html);
|
||||||
|
|
||||||
|
html.find('.actor-open').click((event) => {
|
||||||
|
const li = $(event.currentTarget).parents(".item")
|
||||||
|
const actor = game.actors.get(li.data("actor-id"))
|
||||||
|
actor.sheet.render(true)
|
||||||
|
})
|
||||||
|
|
||||||
|
html.find('.summary-roll').click((event) => {
|
||||||
|
const li = $(event.currentTarget).parents(".item")
|
||||||
|
const actor = game.actors.get(li.data("actor-id"))
|
||||||
|
let type = $(event.currentTarget).data("type")
|
||||||
|
let key = $(event.currentTarget).data("key")
|
||||||
|
actor.rollAttribut(key)
|
||||||
|
})
|
||||||
|
|
||||||
|
html.find('.actor-delete').click(event => {
|
||||||
|
const li = $(event.currentTarget).parents(".item");
|
||||||
|
let actorId = li.data("actor-id")
|
||||||
|
let newList = game.system.malefices.charSummary.settings.npcList.filter(id => id != actorId)
|
||||||
|
game.system.malefices.charSummary.settings.npcList = newList
|
||||||
|
game.system.malefices.charSummary.updateNPC()
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -5,7 +5,7 @@ export class MaleficesTirageTarotDialog extends Dialog {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async create(actor, tirageData) {
|
static async create(actor, tirageData) {
|
||||||
|
|
||||||
let options = { classes: ["MaleficesDialog"], width: 820, height: 740, 'z-index': 99999 };
|
let options = { classes: ["MaleficesDialog"], width: 720, height: 740, 'z-index': 99999 };
|
||||||
let html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs', tirageData);
|
let html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs', tirageData);
|
||||||
|
|
||||||
return new MaleficesTirageTarotDialog(actor, tirageData, html, options);
|
return new MaleficesTirageTarotDialog(actor, tirageData, html, options);
|
||||||
|
@ -43,6 +43,14 @@ export class MaleficesUtility {
|
|||||||
Handlebars.registerHelper('add', function (a, b) {
|
Handlebars.registerHelper('add', function (a, b) {
|
||||||
return parseInt(a) + parseInt(b);
|
return parseInt(a) + parseInt(b);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
game.settings.register("world", "character-summary-data", {
|
||||||
|
name: "character-summary-data",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
default: { npcList: [], x: 200, y: 200 },
|
||||||
|
type: Object
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------- */
|
/*-------------------------------------------- */
|
||||||
@ -63,6 +71,7 @@ export class MaleficesUtility {
|
|||||||
static async ready() {
|
static async ready() {
|
||||||
const tarots = await MaleficesUtility.loadCompendium("fvtt-malefices.malefices-tarots")
|
const tarots = await MaleficesUtility.loadCompendium("fvtt-malefices.malefices-tarots")
|
||||||
this.tarots = tarots.map(i => i.toObject())
|
this.tarots = tarots.map(i => i.toObject())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -262,6 +271,125 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static processSpecialCard(actor, rollData) {
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("archange")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("archange"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>L'Archange : ${actor.name} gagne 1 point de Spiritualité.` })
|
||||||
|
actor.incDecAttr("spiritualite", 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("vicaire")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("vicaire"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Blanche (MPMB, secret).` })
|
||||||
|
actor.incDecMPMB(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("chance")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("chance"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>La Chance : ${actor.name} a gagné 1 point de Destin.` })
|
||||||
|
actor.incDecDestin(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("mort")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("mort"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>La Mort : ${actor.name} est pétrifié par la peur.` })
|
||||||
|
actor.incDecDestin(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("diable")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("diable"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>Le Diable : ${actor.name} gagne 1 point de Rationnalité.` })
|
||||||
|
actor.incDecAttr("rationnalite", 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("lune noire")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("lune noire"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).` })
|
||||||
|
actor.incDecFluide(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("grand livre")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("grand livre"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).` })
|
||||||
|
actor.incDecFluide(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (rollData.selectedCard.name.toLowerCase().includes("sorcier")) {
|
||||||
|
let actorCard = actor.items.find( c => c.type =="tarot" && c.name.toLowerCase().includes("sorcier"))
|
||||||
|
if (actorCard) {
|
||||||
|
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
|
||||||
|
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Noire (MPMN, secret).` })
|
||||||
|
actor.incDecMPMN(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static computeResults(rollData) {
|
||||||
|
rollData.isSuccess = false
|
||||||
|
if (rollData.total <= rollData.target) {
|
||||||
|
rollData.isSuccess = true
|
||||||
|
}
|
||||||
|
if (rollData.total == 1) {
|
||||||
|
rollData.isSuccess = true
|
||||||
|
rollData.isCritical = true
|
||||||
|
}
|
||||||
|
if (rollData.total == 20) {
|
||||||
|
rollData.isSuccess = false
|
||||||
|
rollData.isFumble = true
|
||||||
|
}
|
||||||
|
if (rollData.total <= Math.floor(rollData.target / 3)) {
|
||||||
|
rollData.isPart = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static async tirageConfrontationMalefices(rollData) {
|
||||||
|
let actor = game.actors.get(rollData.actorId)
|
||||||
|
|
||||||
|
rollData.target = rollData.attr.value - rollData.confrontationDegre + rollData.confrontationModif
|
||||||
|
|
||||||
|
let deck = this.getTarots()
|
||||||
|
let index = Math.round(Math.random() * (deck.length-1))
|
||||||
|
let selectedCard = deck[index]
|
||||||
|
selectedCard.system.ispositif = (Math.random() > 0.5)
|
||||||
|
selectedCard.value = (selectedCard.system.ispositif)? selectedCard.system.numericvalueup : selectedCard.system.numericvaluedown
|
||||||
|
rollData.total = selectedCard.value
|
||||||
|
rollData.selectedCard = selectedCard
|
||||||
|
await MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
|
||||||
|
})
|
||||||
|
|
||||||
|
this.computeResults(rollData)
|
||||||
|
|
||||||
|
if (rollData.isSuccess) {
|
||||||
|
rollData.gainAttr = Math.ceil(rollData.confrontationDegre/2) + ((rollData.isCritical ) ? 1 : 0)
|
||||||
|
actor.incDecAttr(rollData.attr.abbrev, rollData.gainAttr )
|
||||||
|
} else {
|
||||||
|
rollData.gainAttr = rollData.confrontationDegre
|
||||||
|
actor.incDecAttr(rollData.attr.abbrev, -rollData.gainAttr )
|
||||||
|
}
|
||||||
|
|
||||||
|
await MaleficesUtility.createChatMessage(actor.name, "gmroll", {
|
||||||
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/chat-confrontation-result.hbs`, rollData)
|
||||||
|
})
|
||||||
|
this.processSpecialCard(actor, rollData)
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async rollMalefices(rollData) {
|
static async rollMalefices(rollData) {
|
||||||
|
|
||||||
@ -280,22 +408,9 @@ export class MaleficesUtility {
|
|||||||
let myRoll = new Roll(diceFormula).roll({ async: false })
|
let myRoll = new Roll(diceFormula).roll({ async: false })
|
||||||
await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
|
await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
|
||||||
rollData.roll = myRoll
|
rollData.roll = myRoll
|
||||||
|
rollData.total = myRoll.total
|
||||||
|
|
||||||
rollData.isSuccess = false
|
this.computeResults(rollData)
|
||||||
if (myRoll.total <= rollData.target) {
|
|
||||||
rollData.isSuccess = true
|
|
||||||
}
|
|
||||||
if (myRoll.total == 1) {
|
|
||||||
rollData.isSuccess = true
|
|
||||||
rollData.isCritical = true
|
|
||||||
}
|
|
||||||
if (myRoll.total == 20) {
|
|
||||||
rollData.isSuccess = false
|
|
||||||
rollData.isFumble = true
|
|
||||||
}
|
|
||||||
if (myRoll.total <= Math.floor(rollData.target / 3)) {
|
|
||||||
rollData.isPart = true
|
|
||||||
}
|
|
||||||
|
|
||||||
let msg = await this.createChatWithRollMode(rollData.alias, {
|
let msg = await this.createChatWithRollMode(rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/chat-generic-result.hbs`, rollData)
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/chat-generic-result.hbs`, rollData)
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
{"name":"Le Moine","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Moine_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"1DRKmbzGzbCRCswc"}
|
{"name":"Le Moine","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Moine_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":9,"numericvaluedown":14,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"1DRKmbzGzbCRCswc"}
|
||||||
{"name":"La Lune Noire","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Lune%20Noire_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{"core":{"sourceId":"Item.uE5g6H5J0ccBe0ON"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109539,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"6jHm4eWelq7eLKwU"}
|
{"name":"La Lune Noire","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Lune%20Noire_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":18,"numericvaluedown":5,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"6jHm4eWelq7eLKwU"}
|
||||||
{"name":"Hippocrate","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Hippocrate_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109538,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"BCQenQMvFjLKkl56"}
|
{"name":"Hippocrate","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Hippocrate_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":16,"numericvaluedown":7,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"BCQenQMvFjLKkl56"}
|
||||||
{"name":"Eve","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Eve_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109538,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"IJaK9oxcsamMs4pw"}
|
{"name":"Eve","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Eve_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":3,"numericvaluedown":20,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"IJaK9oxcsamMs4pw"}
|
||||||
{"name":"Le Sorcier","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Sorcier_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"IwsZkMHLKGuCGUf7"}
|
{"name":"Le Sorcier","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Sorcier_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":22,"numericvaluedown":1,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"IwsZkMHLKGuCGUf7"}
|
||||||
{"name":"La Mort","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_La%20Mort_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109540,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"MHdmnX0tbbjhPbA0"}
|
{"name":"La Mort","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_La%20Mort_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":13,"numericvaluedown":10,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"MHdmnX0tbbjhPbA0"}
|
||||||
{"name":"L'Artiste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Artiste_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109539,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"NQBZmrYhEiyNxEo2"}
|
{"name":"L'Artiste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Artiste_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":1,"numericvaluedown":22,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"NQBZmrYhEiyNxEo2"}
|
||||||
{"name":"Le Savetier","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Savetier_600%20dpi%20copie.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"SClVaCgZjZoR1WiD"}
|
{"name":"Le Savetier","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Savetier_600%20dpi%20copie.webp","system":{"tarottype":"metier","numericvalueup":12,"numericvaluedown":11,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"SClVaCgZjZoR1WiD"}
|
||||||
{"name":"La Roue de la Fortune","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_La%20roue%20de%20la%20fortune_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109540,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"WRILaKwS1cjxZGRk"}
|
{"name":"La Roue de la Fortune","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_La%20roue%20de%20la%20fortune_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":10,"numericvaluedown":13,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"WRILaKwS1cjxZGRk"}
|
||||||
{"name":"L'Alchimiste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Alchimiste_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109538,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"WlsCeal346QfJweB"}
|
{"name":"L'Alchimiste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Alchimiste_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":19,"numericvaluedown":4,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"WlsCeal346QfJweB"}
|
||||||
{"name":"L'Archange","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Archange_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109539,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"bVvGkOVe3BQeK7HR"}
|
{"name":"L'Archange","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Archange_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":2,"numericvaluedown":21,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"bVvGkOVe3BQeK7HR"}
|
||||||
{"name":"La Chance","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Chance_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109539,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"ba7fmG0dYpV2jpIv"}
|
{"name":"La Chance","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Chance_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":7,"numericvaluedown":16,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"ba7fmG0dYpV2jpIv"}
|
||||||
{"name":"Le Vicaire","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Vicaire_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"dbc8W1qD0kj5rQ4s"}
|
{"name":"Le Vicaire","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Vicaire_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":5,"numericvaluedown":18,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"dbc8W1qD0kj5rQ4s"}
|
||||||
{"name":"Le Juge","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Le%20Juge_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"dkvHSWzgbOqbykUL"}
|
{"name":"Le Juge","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Le%20Juge_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":8,"numericvaluedown":15,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"dkvHSWzgbOqbykUL"}
|
||||||
{"name":"Le Diable","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Diable_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109540,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"earXcKB3NZ9sM8S7"}
|
{"name":"Le Diable","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Diable_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":15,"numericvaluedown":8,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"earXcKB3NZ9sM8S7"}
|
||||||
{"name":"Le Centurion","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Centurion_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109540,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"fIHWGqwcubToEjOK"}
|
{"name":"Le Centurion","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Centurion_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":11,"numericvaluedown":12,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"fIHWGqwcubToEjOK"}
|
||||||
{"name":"Le Cabaliste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Cabaliste_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109540,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"gS7fULIr9lPCl5Vb"}
|
{"name":"Le Cabaliste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Cabaliste_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":17,"numericvaluedown":6,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"gS7fULIr9lPCl5Vb"}
|
||||||
{"name":"Adam","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Adam_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109538,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"ooRr6cSNg73cPyaU"}
|
{"name":"Adam","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Adam_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":4,"numericvaluedown":19,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"ooRr6cSNg73cPyaU"}
|
||||||
{"name":"Le Medium","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Medium_600%20dpi.webp","system":{"tarottype":"mineur","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"rOgagyXv5RWxvyBa"}
|
{"name":"Le Medium","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Medium_600%20dpi.webp","system":{"tarottype":"mineur","numericvalueup":6,"numericvaluedown":17,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"rOgagyXv5RWxvyBa"}
|
||||||
{"name":"L'Archiviste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Archiviste_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109539,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"wHc7WwyWPZIqt219"}
|
{"name":"L'Archiviste","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Archiviste_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":14,"numericvaluedown":9,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789472,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"wHc7WwyWPZIqt219"}
|
||||||
{"name":"Le Laboureur","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Laboureur_600%20dpi.webp","system":{"tarottype":"metier","isdualside":true,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"wLFdvRd9eLiCtc7b"}
|
{"name":"Le Laboureur","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Laboureur_600%20dpi.webp","system":{"tarottype":"metier","numericvalueup":21,"numericvaluedown":2,"isdualside":true,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789474,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"wLFdvRd9eLiCtc7b"}
|
||||||
{"name":"Le Grand Livre","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Grand%20Livre_600%20dpi.webp","system":{"tarottype":"majeur","isdualside":false,"ispositif":true,"isgm":false,"description":"","isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.17","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675789109541,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"zbGGMEQFdwVdlKAf"}
|
{"name":"Le Grand Livre","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Grand%20Livre_600%20dpi.webp","system":{"tarottype":"majeur","numericvalueup":20,"numericvaluedown":3,"isdualside":false,"ispositif":true,"isgm":false,"description":"","numericvalue":0,"isreversed":false},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.21","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675867789473,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"zbGGMEQFdwVdlKAf"}
|
||||||
|
@ -1237,6 +1237,11 @@ ul, li {
|
|||||||
max-width: 10rem;
|
max-width: 10rem;
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
}
|
}
|
||||||
|
.item-name-label-short {
|
||||||
|
flex-grow:1;
|
||||||
|
max-width: 4rem;
|
||||||
|
min-width: 4rem;
|
||||||
|
}
|
||||||
.item-name-label-medium {
|
.item-name-label-medium {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
flex-grow:2;
|
flex-grow:2;
|
||||||
@ -1309,4 +1314,7 @@ ul, li {
|
|||||||
.tarot-title {
|
.tarot-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.character-summary-rollable {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
],
|
],
|
||||||
"title": "Maléfices, le Jeu de Rôle",
|
"title": "Maléfices, le Jeu de Rôle",
|
||||||
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
|
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
|
||||||
"version": "10.0.19",
|
"version": "10.0.23",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.19.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.23.zip",
|
||||||
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
||||||
}
|
}
|
@ -63,21 +63,23 @@
|
|||||||
},
|
},
|
||||||
"perception": {
|
"perception": {
|
||||||
"label": "Perception",
|
"label": "Perception",
|
||||||
"abbrev": "habilite",
|
"abbrev": "perception",
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"max": 0
|
"max": 0
|
||||||
},
|
},
|
||||||
"spiritualite": {
|
"spiritualite": {
|
||||||
"label": "Spiritualite",
|
"label": "Spiritualite",
|
||||||
"abbrev": "spiritualite",
|
"abbrev": "spiritualite",
|
||||||
"hasmax": true,
|
"hasmax": false,
|
||||||
|
"iscard": true,
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"max": 0
|
"max": 0
|
||||||
},
|
},
|
||||||
"rationnalite": {
|
"rationnalite": {
|
||||||
"label": "Rationnalite",
|
"label": "Rationnalite",
|
||||||
"abbrev": "rationnalite",
|
"abbrev": "rationnalite",
|
||||||
"hasmax": true,
|
"hasmax": false,
|
||||||
|
"iscard": true,
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"max": 0
|
"max": 0
|
||||||
}
|
}
|
||||||
@ -101,6 +103,7 @@
|
|||||||
"equipement",
|
"equipement",
|
||||||
"archetype",
|
"archetype",
|
||||||
"tarot",
|
"tarot",
|
||||||
|
"sortilege",
|
||||||
"elementbio"
|
"elementbio"
|
||||||
],
|
],
|
||||||
"templates": {},
|
"templates": {},
|
||||||
@ -112,13 +115,20 @@
|
|||||||
},
|
},
|
||||||
"tarot": {
|
"tarot": {
|
||||||
"tarottype": "",
|
"tarottype": "",
|
||||||
|
"numericvalueup": 0,
|
||||||
|
"numericvaluedown": 0,
|
||||||
"isdualside": false,
|
"isdualside": false,
|
||||||
"ispositif": true,
|
"ispositif": true,
|
||||||
"isgm": false,
|
"isgm": false,
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"archetype": {
|
"archetype": {
|
||||||
"lametutelaire": ""
|
"lametutelaire": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"sortilege": {
|
||||||
|
"seuil": 0,
|
||||||
|
"description": ""
|
||||||
},
|
},
|
||||||
"arme": {
|
"arme": {
|
||||||
"armetype": 0,
|
"armetype": 0,
|
||||||
|
@ -53,7 +53,14 @@
|
|||||||
</li>
|
</li>
|
||||||
{{#each system.attributs as |attr key|}}
|
{{#each system.attributs as |attr key|}}
|
||||||
<li class="item flexrow list-item">
|
<li class="item flexrow list-item">
|
||||||
<span class="item-name-label-long"><a class="roll-attribut" data-attr-key="{{key}}">{{attr.label}}<i class="fa-solid fa-dice-d20"></i></a></span>
|
<span class="item-name-label-long">
|
||||||
|
<a class="roll-attribut" data-attr-key="{{key}}">{{attr.label}}
|
||||||
|
{{#if attr.iscard}}
|
||||||
|
<i class="fa-solid fa-cards-blank"></i>
|
||||||
|
{{else}}
|
||||||
|
<i class="fa-solid fa-dice-d20"></i>
|
||||||
|
{{/if}}
|
||||||
|
</a></span>
|
||||||
<input type="text" class="item-field-label-short" name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number"/>
|
<input type="text" class="item-field-label-short" name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="Number"/>
|
||||||
{{#if attr.hasmax}}
|
{{#if attr.hasmax}}
|
||||||
<input type="text" class="item-field-label-short" name="system.attributs.{{key}}.max" value="{{attr.max}}" data-dtype="Number"/>
|
<input type="text" class="item-field-label-short" name="system.attributs.{{key}}.max" value="{{attr.max}}" data-dtype="Number"/>
|
||||||
@ -201,6 +208,36 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<ul class="item-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Sortilèges</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="short-label">Seuil</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="equipment" title="Create Item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
{{#each sorts as |sort key|}}
|
||||||
|
<li class="item list-item flexrow list-item-shadow" data-item-id="{{sort._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{sort.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{sort.name}}</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="short-label">{{sort.system.seuil}}</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
37
templates/chat/chat-confrontation-result.hbs
Normal file
37
templates/chat/chat-confrontation-result.hbs
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<div class="chat-message-header">
|
||||||
|
{{#if actorImg}}
|
||||||
|
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||||
|
{{/if}}
|
||||||
|
<h4 class="chat-actor-name">{{alias}}</h4>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{{#if img}}
|
||||||
|
<div >
|
||||||
|
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul>
|
||||||
|
<li>Confrontation de {{attr.label}} : {{attr.value}}
|
||||||
|
</li>
|
||||||
|
<li>Degré de la confrontation: {{confrontationDegre}} </li>
|
||||||
|
<li>Ajustement spécial : {{confrontationModif}} </li>
|
||||||
|
<li>Seuil final : {{target}} </li>
|
||||||
|
<li>Valeur de la carte : {{total}} </li>
|
||||||
|
|
||||||
|
{{#if isSuccess}}
|
||||||
|
<li><label class="chat-result-text chat-result-success ">Réussite !</label> Votre {{attr.label}} augmente de {{gainAttr}} points.</li>
|
||||||
|
{{else}}
|
||||||
|
<li><label class="chat-result-text chat-result-success ">Echec !</label> Votre {{attr.label}} diminue de {{gainAttr}} points.</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
@ -5,5 +5,8 @@
|
|||||||
{{#if system.isdualside}}
|
{{#if system.isdualside}}
|
||||||
<span class="tarot-title">{{#if system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
<span class="tarot-title">{{#if system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if value}}
|
||||||
|
<span class="tarot-title">Valeur : {{value}}</span>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
86
templates/dialogs/character-summary.hbs
Normal file
86
templates/dialogs/character-summary.hbs
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
<form class="{{cssClass}} flexcol character-summary-container" autocomplete="off">
|
||||||
|
|
||||||
|
<ol class="items-list">
|
||||||
|
|
||||||
|
<li class="item flexrow item-header">
|
||||||
|
<div class="item-field item-name item-name-label-long">Nom</div>
|
||||||
|
{{#each config.attributs as |attr key|}}
|
||||||
|
<div class="item-field item-name-label-short">{{attr}}</div>
|
||||||
|
{{/each}}
|
||||||
|
<div class="item-field item-name-label-short">Destin</div>
|
||||||
|
<div class="item-field item-name-label-short">Fluide</div>
|
||||||
|
<div class="item-field item-name-label-short">MPMB</div>
|
||||||
|
<div class="item-field item-name-label-short">MPMN</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each pcs as |pc key|}}
|
||||||
|
<li class="item flexrow" data-actor-id="{{pc.id}}">
|
||||||
|
<div class="item-field item-name item-name-label-long">
|
||||||
|
<a class="actor-open character-summary-rollable">{{pc.name}}</a>
|
||||||
|
</div>
|
||||||
|
{{#each pc.system.attributs as |attr key|}}
|
||||||
|
<div class="item-field flex2 item-name-label-short">
|
||||||
|
<a class="summary-roll character-summary-rollable" data-type="attribut" data-key="{{key}}">{{attr.value}}</a>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="destin" data-key="pointdestin">{{pc.system.pointdestin}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="fluide" data-key="fluide">{{pc.system.fluide}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="mpmb" data-key="mpmb">{{pc.system.mpmb}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="mpmn" data-key="mpmn">{{pc.system.mpmn}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
<li class="item flexrow item-header">
|
||||||
|
<div class="item-field item-name item-name-label-long">PNJs</div>
|
||||||
|
{{#each config.attributs as |attr key|}}
|
||||||
|
<div class="item-field flex2 item-name-label-short">attr</div>
|
||||||
|
{{/each}}
|
||||||
|
<div class="item-field flex2 item-name-label-short">Destin</div>
|
||||||
|
<div class="item-field flex2 item-name-label-short">Fluide</div>
|
||||||
|
<div class="item-field flex2 item-name-label-short">MPMB</div>
|
||||||
|
<div class="item-field flex2 item-name-label-short">MPMN</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each npcs as |pc key|}}
|
||||||
|
<li class="item flexrow" data-actor-id="{{pc.id}}">
|
||||||
|
<div class="item-field item-name item-name-label-long">
|
||||||
|
<a class="actor-open character-summary-rollable">{{pc.name}}</a>
|
||||||
|
</div>
|
||||||
|
{{#each pc.system.attributs as |attr key|}}
|
||||||
|
<div class="item-field flex2 item-name-label-short">
|
||||||
|
<a class="summary-roll character-summary-rollable" data-type="attribute" data-key="{{key}}">{{attr.value}}</a>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="destin" data-key="pointdestin">{{pc.system.pointdestin}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="fluide" data-key="fluide">{{pc.system.fluide}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="mpmb" data-key="mpmb">{{pc.system.mpmb}}</a>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex item-name-label-short">
|
||||||
|
<a class="summary-roll" data-type="mpmn" data-key="mpmn">{{pc.system.mpmn}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item-field flex1 right">
|
||||||
|
<a class="item-control actor-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
</form>
|
45
templates/dialogs/confrontation-dialog.hbs
Normal file
45
templates/dialogs/confrontation-dialog.hbs
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<form class="skill-roll-dialog">
|
||||||
|
<header class="roll-dialog-header">
|
||||||
|
{{#if img}}
|
||||||
|
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||||
|
{{/if}}
|
||||||
|
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{attr.label}} : </span>
|
||||||
|
<span class="roll-dialog-label">
|
||||||
|
{{attr.value}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">Degré de la confrontation : </span>
|
||||||
|
<select id="confrontationDegre" name="confrontationDegre">
|
||||||
|
{{#select confrontationDegre}}
|
||||||
|
<option value="0">0</option>
|
||||||
|
<option value="1">1</option>
|
||||||
|
<option value="2">2</option>
|
||||||
|
<option value="3">3</option>
|
||||||
|
<option value="4">4</option>
|
||||||
|
<option value="5">5</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">Modificateur de confrontation : </span>
|
||||||
|
<select id="confrontationModif" name="confrontationModif">
|
||||||
|
{{#select confrontationModif}}
|
||||||
|
<option value="-1">-1</option>
|
||||||
|
<option value="0">0</option>
|
||||||
|
<option value="1">+1</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
@ -77,7 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="roll-dialog-label">Pörtée : </span>
|
<span class="roll-dialog-label">Portée : </span>
|
||||||
<select id="bonusMalusPortee" name="bonusMalusPortee">
|
<select id="bonusMalusPortee" name="bonusMalusPortee">
|
||||||
{{#select bonusMalusPortee}}
|
{{#select bonusMalusPortee}}
|
||||||
<option value="1">+1 (Portée courte)</option>
|
<option value="1">+1 (Portée courte)</option>
|
||||||
|
30
templates/items/item-sortilege-sheet.hbs
Normal file
30
templates/items/item-sortilege-sheet.hbs
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<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-malefices/templates/items/partial-item-nav.hbs}}
|
||||||
|
|
||||||
|
|
||||||
|
{{!-- Sheet Body --}}
|
||||||
|
<section class="sheet-body">
|
||||||
|
|
||||||
|
{{> systems/fvtt-malefices/templates/items/partial-item-description.hbs}}
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
|
<div class="tab" data-group="primary">
|
||||||
|
<ul>
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Seuil de Fluide</label>
|
||||||
|
<input type="input" class="item-field-label-short" name="system.seuil" value="{{system.seuil}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
@ -35,6 +35,14 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{#if isGM}}
|
{{#if isGM}}
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Valeur endroit (ie positif) ?</label>
|
||||||
|
<input type="input" class="item-field-label-short" name="system.numericvalueup" value="{{system.numericvalueup}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Valeur envers (ie négatif) ?</label>
|
||||||
|
<input type="input" class="item-field-label-short" name="system.numericvaluedown" value="{{system.numericvaluedown}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label class="item-field-label-long">A un sens (ie positif/négatif)?</label>
|
<label class="item-field-label-long">A un sens (ie positif/négatif)?</label>
|
||||||
<input type="checkbox" class="item-field-label-short" name="system.isdualside" {{checked system.isdualside}} />
|
<input type="checkbox" class="item-field-label-short" name="system.isdualside" {{checked system.isdualside}} />
|
||||||
|
Loading…
Reference in New Issue
Block a user