Compare commits
15 Commits
fvtt-malef
...
fvtt-malef
Author | SHA1 | Date | |
---|---|---|---|
e146c6ba5b | |||
04039513bc | |||
1923a63ebf | |||
06537cbcd9 | |||
925f15627c | |||
a4b0c44255 | |||
fbe77dcdc0 | |||
051d9ca943 | |||
c58e6ac4b8 | |||
2d6eb014c8 | |||
aa02ab878d | |||
ed62f00959 | |||
db846f944e | |||
326c29d87e | |||
513e43f169 |
31
README.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Système Foundry pour Maléfices (French RPG, Arkhane Asylum Publishing)
|
||||||
|
|
||||||
|
## EN
|
||||||
|
|
||||||
|
Unofficial system for Maléfices v4 (French version from Arkhane Asylum Publishing).
|
||||||
|
|
||||||
|
This system has been approved by Arkhane Asylum Publishing ( https://arkhane-asylum.fr ), thanks !
|
||||||
|
The Tarot assets, as well as other graphical elements has been provide by Arkhane Asylum.
|
||||||
|
|
||||||
|
Books are mandatory to play and are available at : https://arkhane-asylum.fr/en/malefices
|
||||||
|
|
||||||
|
## FR
|
||||||
|
|
||||||
|
Système non-officiel pour le JDR Maléfices, version 4 (Arkhane Asylum Publishing).
|
||||||
|
|
||||||
|
Ce système a été autorisé par le Arkhane Asylum Publishing ( https://arkhane-asylum.fr ), merci à eux !
|
||||||
|
Les images du Tarot et autres éléments graphiques ont été fournis par Arkhane Asylum.
|
||||||
|
|
||||||
|
Les livres du jeu sont nécessaires pour jouer, et sont disponibles ici : https://arkhane-asylum.fr/fr/malefices
|
||||||
|
|
||||||
|
# Credits
|
||||||
|
|
||||||
|
Maléfices, le jeu de rôle qui sent le souffre, is a property of Arkhane Asylum Publishing.
|
||||||
|
|
||||||
|
# Developmement
|
||||||
|
|
||||||
|
LeRatierBretonnien
|
||||||
|
|
||||||
|
# Tests, icones et saisie des données
|
||||||
|
|
||||||
|
Dame du Lac, Malik
|
BIN
fonts/rivanna.regular.otf
Normal file
BIN
fonts/rivanna.ttf
Normal file
BIN
images/icons/Artiste.webp
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
images/icons/Aventurier.webp
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
images/icons/Comedien.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/Commercant.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/Ecclesiastique.webp
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
images/icons/Ecrivain.webp
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
images/icons/Enseignant.webp
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
images/icons/Ingenieur.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/Journaliste.webp
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
images/icons/Juriste.webp
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
images/icons/Medecin.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/Medium.webp
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
images/icons/Militaire.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/Proletaire.webp
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
images/icons/Rentier.webp
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
images/icons/archetype.webp
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
images/icons/epee.webp
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
images/icons/equipement.webp
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
images/icons/tarot.webp
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
images/icons/wisdom.webp
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
images/tarots/Malefice_Tarot_Adam_600 dpi.webp
Normal file
After Width: | Height: | Size: 423 KiB |
BIN
images/tarots/Malefice_Tarot_Alchimiste_600 dpi.webp
Normal file
After Width: | Height: | Size: 488 KiB |
BIN
images/tarots/Malefice_Tarot_Archange_600 dpi.webp
Normal file
After Width: | Height: | Size: 492 KiB |
BIN
images/tarots/Malefice_Tarot_Archiviste_600 dpi.webp
Normal file
After Width: | Height: | Size: 538 KiB |
BIN
images/tarots/Malefice_Tarot_Artiste_600 dpi.webp
Normal file
After Width: | Height: | Size: 525 KiB |
BIN
images/tarots/Malefice_Tarot_Cabaliste_600 dpi.webp
Normal file
After Width: | Height: | Size: 494 KiB |
BIN
images/tarots/Malefice_Tarot_Centurion_600 dpi.webp
Normal file
After Width: | Height: | Size: 549 KiB |
BIN
images/tarots/Malefice_Tarot_Chance_600 dpi.webp
Normal file
After Width: | Height: | Size: 473 KiB |
BIN
images/tarots/Malefice_Tarot_Diable_600 dpi.webp
Normal file
After Width: | Height: | Size: 394 KiB |
BIN
images/tarots/Malefice_Tarot_Eve_600 dpi.webp
Normal file
After Width: | Height: | Size: 482 KiB |
BIN
images/tarots/Malefice_Tarot_Grand Livre_600 dpi.webp
Normal file
After Width: | Height: | Size: 538 KiB |
BIN
images/tarots/Malefice_Tarot_Hippocrate_600 dpi.webp
Normal file
After Width: | Height: | Size: 546 KiB |
BIN
images/tarots/Malefice_Tarot_La Mort_600 dpi.webp
Normal file
After Width: | Height: | Size: 449 KiB |
BIN
images/tarots/Malefice_Tarot_La roue de la fortune_600 dpi.webp
Normal file
After Width: | Height: | Size: 537 KiB |
BIN
images/tarots/Malefice_Tarot_Laboureur_600 dpi.webp
Normal file
After Width: | Height: | Size: 533 KiB |
BIN
images/tarots/Malefice_Tarot_Le Juge_600 dpi.webp
Normal file
After Width: | Height: | Size: 527 KiB |
BIN
images/tarots/Malefice_Tarot_Lune Noire_600 dpi.webp
Normal file
After Width: | Height: | Size: 517 KiB |
BIN
images/tarots/Malefice_Tarot_Medium_600 dpi.webp
Normal file
After Width: | Height: | Size: 531 KiB |
BIN
images/tarots/Malefice_Tarot_Moine_600 dpi.webp
Normal file
After Width: | Height: | Size: 571 KiB |
BIN
images/tarots/Malefice_Tarot_Savetier_600 dpi copie.webp
Normal file
After Width: | Height: | Size: 506 KiB |
BIN
images/tarots/Malefice_Tarot_Sorcier_600 dpi.webp
Normal file
After Width: | Height: | Size: 521 KiB |
BIN
images/tarots/Malefice_Tarot_Vicaire_600 dpi.webp
Normal file
After Width: | Height: | Size: 437 KiB |
BIN
images/tarots/background.webp
Normal file
After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 28 KiB |
BIN
images/ui/background_01.webp
Normal file
After Width: | Height: | Size: 132 KiB |
BIN
images/ui/background_01_clear.webp
Normal file
After Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 268 KiB |
Before Width: | Height: | Size: 62 KiB |
BIN
images/ui/separator_01.webp
Normal file
After Width: | Height: | Size: 5.7 KiB |
22
lang/fr.json
@ -1,22 +1,12 @@
|
|||||||
{
|
{
|
||||||
"ACTOR": {
|
"ACTOR": {
|
||||||
"TypeCharacter": "Character",
|
"TypePersonnage": "Personnage"
|
||||||
"TypeNpc": "NPC"
|
|
||||||
},
|
},
|
||||||
"ITEM": {
|
"ITEM": {
|
||||||
"TypeWeapon": "Weapon",
|
"TypeArme": "Arme",
|
||||||
"TypeShield": "Shield",
|
"TypeEquipement": "Equipement",
|
||||||
"TypeArmor": "Armor",
|
"TypeTarot": "Tarot",
|
||||||
"TypeSpell": "Spell",
|
"TypeElementbio": "Element Biographique",
|
||||||
"TypeModule": "Module",
|
"TypeArchetype": "Archetype"
|
||||||
"TypeMoney": "Money",
|
|
||||||
"TypeEquipment": "Equipment",
|
|
||||||
"TypeAction": "Action",
|
|
||||||
"TypeFreeaction": "Free Action",
|
|
||||||
"TypeReaction": "Reaction",
|
|
||||||
"TypeStance": "Stance",
|
|
||||||
"TypeTrait": "Trait",
|
|
||||||
"TypeCondition": "Condition",
|
|
||||||
"TypeCraftingskill": "Crafting Skill"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -15,7 +15,7 @@ export class MaleficesActorSheet extends ActorSheet {
|
|||||||
classes: ["fvtt-malefices", "sheet", "actor"],
|
classes: ["fvtt-malefices", "sheet", "actor"],
|
||||||
template: "systems/fvtt-malefices/templates/actors/actor-sheet.hbs",
|
template: "systems/fvtt-malefices/templates/actors/actor-sheet.hbs",
|
||||||
width: 640,
|
width: 640,
|
||||||
height: 640,
|
height:680,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "skills" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "skills" }],
|
||||||
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
||||||
editScore: true
|
editScore: true
|
||||||
@ -36,9 +36,13 @@ export class MaleficesActorSheet extends ActorSheet {
|
|||||||
system: duplicate(this.object.system),
|
system: duplicate(this.object.system),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
armes: duplicate(this.actor.getArmes()),
|
armes: duplicate(this.actor.getArmes()),
|
||||||
|
tarots: duplicate(this.actor.getTarots()),
|
||||||
|
tarotsCache: duplicate(this.actor.getHiddenTarots()),
|
||||||
|
archetype: duplicate(this.actor.getArchetype()),
|
||||||
equipements: duplicate(this.actor.getEquipements()),
|
equipements: duplicate(this.actor.getEquipements()),
|
||||||
subActors: duplicate(this.actor.getSubActors()),
|
subActors: duplicate(this.actor.getSubActors()),
|
||||||
encCurrent: this.actor.encCurrent,
|
phyMalus: this.actor.getPhysiqueMalus(),
|
||||||
|
elementsbio: this.actor.getElementsBio(),
|
||||||
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,32 @@ export class MaleficesActor extends Actor {
|
|||||||
MaleficesUtility.sortArrayObjectsByName(comp)
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
|
getArchetype() {
|
||||||
|
let comp = duplicate(this.items.find(item => item.type == 'archetype') || {name: "Pas d'archetype"})
|
||||||
|
if (comp && comp.system) {
|
||||||
|
comp.tarot = MaleficesUtility.getTarot(comp.system.lametutelaire)
|
||||||
|
}
|
||||||
|
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
getElementsBio() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'elementbio') || [])
|
||||||
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
getTarots() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'tarot' && !item.system.isgm) || [])
|
||||||
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
getHiddenTarots() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'tarot' && item.system.isgm) || [])
|
||||||
|
MaleficesUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getArmes() {
|
getArmes() {
|
||||||
let comp = duplicate(this.items.filter(item => item.type == 'arme') || [])
|
let comp = duplicate(this.items.filter(item => item.type == 'arme') || [])
|
||||||
@ -268,6 +294,12 @@ export class MaleficesActor extends Actor {
|
|||||||
return `systems/fvtt-malefices/images/icons/${attrKey}.webp`
|
return `systems/fvtt-malefices/images/icons/${attrKey}.webp`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
incDecDestin( value) {
|
||||||
|
let newValue = Math.max( this.system.pointdestin + value, 0)
|
||||||
|
this.update( {'system.pointdestin': newValue})
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCommonRollData() {
|
getCommonRollData() {
|
||||||
|
|
||||||
@ -277,6 +309,9 @@ export class MaleficesActor extends Actor {
|
|||||||
rollData.actorId = this.id
|
rollData.actorId = this.id
|
||||||
rollData.img = this.img
|
rollData.img = this.img
|
||||||
rollData.phyMalus = this.getPhysiqueMalus()
|
rollData.phyMalus = this.getPhysiqueMalus()
|
||||||
|
rollData.elementsbio = this.getElementsBio()
|
||||||
|
rollData.destin = this.system.pointdestin
|
||||||
|
rollData.isReroll = false
|
||||||
|
|
||||||
console.log("ROLLDATA", rollData)
|
console.log("ROLLDATA", rollData)
|
||||||
|
|
||||||
|
@ -2,6 +2,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"
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class MaleficesCommands {
|
export class MaleficesCommands {
|
||||||
@ -9,7 +10,7 @@ export class MaleficesCommands {
|
|||||||
static init() {
|
static init() {
|
||||||
if (!game.system.malefices.commands) {
|
if (!game.system.malefices.commands) {
|
||||||
const commands = new MaleficesCommands();
|
const commands = new MaleficesCommands();
|
||||||
//crucibleCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => crucibleCommands.createChar(msg), descr: "Create a new character" });
|
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" });
|
//crucibleCommands.registerCommand({ path: ["/pool"], func: (content, msg, params) => crucibleCommands.poolRoll(msg), descr: "Generic Roll Window" });
|
||||||
game.system.malefices.commands = commands;
|
game.system.malefices.commands = commands;
|
||||||
}
|
}
|
||||||
@ -104,14 +105,26 @@ export class MaleficesCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async poolRoll( msg) {
|
static async createTirage(msg) {
|
||||||
let rollData = MaleficesUtility.getBasicRollData()
|
if (game.user.isGM) {
|
||||||
rollData.alias = "Dice Pool Roll",
|
let tirageData = {
|
||||||
rollData.mode = "generic"
|
state: 'select-player',
|
||||||
rollData.title = `Dice Pool Roll`;
|
nbCard: 0,
|
||||||
|
maxPlayerCard: 5,
|
||||||
|
maxSecretCard: 1,
|
||||||
|
cards: [],
|
||||||
|
players: duplicate(game.users),
|
||||||
|
secretCards: [],
|
||||||
|
deck: MaleficesUtility.getTarots()
|
||||||
|
}
|
||||||
|
for (let i = 0; i < 5; i++) {
|
||||||
|
tirageData.cards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
||||||
|
}
|
||||||
|
tirageData.secretCards.push({ name: "???", img: "systems/fvtt-malefices/images/tarots/background.webp" })
|
||||||
|
|
||||||
let rollDialog = await MaleficesRollDialog.create( this, rollData);
|
let tirageDialog = await MaleficesTirageTarotDialog.create(this, tirageData)
|
||||||
rollDialog.render( true );
|
tirageDialog.render(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
export const MALEFICES_CONFIG = {
|
export const MALEFICES_CONFIG = {
|
||||||
|
|
||||||
|
tarotType: {
|
||||||
|
"majeur": "Arcane Majeur",
|
||||||
|
"mineur": "Arcane Mineur",
|
||||||
|
"metier": "Arcane de Métier",
|
||||||
|
},
|
||||||
|
|
||||||
armeTypes : {
|
armeTypes : {
|
||||||
"fusilchasse": "Fusil de Chasse",
|
"fusilchasse": "Fusil de Chasse",
|
||||||
"fusilguerre": "Fusil de Guerre",
|
"fusilguerre": "Fusil de Guerre",
|
||||||
|
@ -14,7 +14,7 @@ export class MaleficesItemSheet extends ItemSheet {
|
|||||||
template: "systems/fvtt-malefices/templates/item-sheet.hbs",
|
template: "systems/fvtt-malefices/templates/item-sheet.hbs",
|
||||||
dragDrop: [{ dragSelector: null, dropSelector: null }],
|
dragDrop: [{ dragSelector: null, dropSelector: null }],
|
||||||
width: 620,
|
width: 620,
|
||||||
height: 480,
|
height: 580,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }]
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -63,9 +63,14 @@ export class MaleficesItemSheet extends ItemSheet {
|
|||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner,
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, { async: true }),
|
description: await TextEditor.enrichHTML(this.object.system.description, { async: true }),
|
||||||
|
notes: await TextEditor.enrichHTML(this.object.system.notes, { async: true }),
|
||||||
isGM: game.user.isGM
|
isGM: game.user.isGM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( this.object.type == "archetype") {
|
||||||
|
formData.tarots = MaleficesUtility.getTarots()
|
||||||
|
}
|
||||||
|
|
||||||
this.options.editable = !(this.object.origin == "embeddedItem");
|
this.options.editable = !(this.object.origin == "embeddedItem");
|
||||||
console.log("ITEM DATA", formData, this);
|
console.log("ITEM DATA", formData, this);
|
||||||
return formData;
|
return formData;
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import { MaleficesUtility } from "./malefices-utility.js";
|
import { MaleficesUtility } from "./malefices-utility.js";
|
||||||
|
|
||||||
export const defaultItemImg = {
|
export const defaultItemImg = {
|
||||||
//skill: "systems/fvtt-malefices/images/icons/skill1.webp",
|
arme: "systems/fvtt-malefices/images/icons/arme.webp",
|
||||||
arme: "systems/fvtt-malefices/images/icones/arme.webp"
|
equipement: "systems/fvtt-malefices/images/icons/equipement.webp",
|
||||||
|
elementbio: "systems/fvtt-malefices/images/icons/wisdom.webp",
|
||||||
|
archetype: "systems/fvtt-malefices/images/icons/archetype.webp",
|
||||||
|
tarot: "systems/fvtt-malefices/images/icons/tarot.webp",
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,8 +71,11 @@ function welcomeMessage() {
|
|||||||
ChatMessage.create({
|
ChatMessage.create({
|
||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
whisper: [game.user.id],
|
whisper: [game.user.id],
|
||||||
content: `<div id="welcome-message-Malefices"><span class="rdd-roll-part">
|
content: `<div id="welcome-message-malefices"><span class="rdd-roll-part">
|
||||||
<strong>Bienvenu dans Malefices, le JDR qui sent le souffre !</strong>
|
<strong>Bienvenu dans Malefices, le JDR qui sent le souffre !</strong>
|
||||||
|
<p>Le Livre de Base de Maléfices v4 est nécessaire pour jouer : https://arkhane-asylum.fr/en/malefices/</p>
|
||||||
|
<p>Maléfices et un jeu de rôle publié par Arkhane Asylum Publishing, tout les droits leur appartiennent.</p>
|
||||||
|
<p>Système développé par LeRatierBretonnien avec l'aide de la Dame du Lac et Malik, support sur le <a href="https://discord.gg/pPSDNJk">Discord FR de Foundry</a>.</p>
|
||||||
` });
|
` });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +111,7 @@ Hooks.on("chatMessage", (html, content, msg) => {
|
|||||||
if (content[0] == '/') {
|
if (content[0] == '/') {
|
||||||
let regExp = /(\S+)/g;
|
let regExp = /(\S+)/g;
|
||||||
let commands = content.match(regExp);
|
let commands = content.match(regExp);
|
||||||
if (game.system.Malefices.commands.processChatCommand(commands, content, msg)) {
|
if (game.system.malefices.commands.processChatCommand(commands, content, msg)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,9 @@ export class MaleficesRollDialog extends Dialog {
|
|||||||
html.find('#bonusMalusDef').change((event) => {
|
html.find('#bonusMalusDef').change((event) => {
|
||||||
this.rollData.bonusMalusDef = Number(event.currentTarget.value)
|
this.rollData.bonusMalusDef = Number(event.currentTarget.value)
|
||||||
})
|
})
|
||||||
|
html.find('#bonusMalusPortee').change((event) => {
|
||||||
|
this.rollData.bonusMalusPortee = Number(event.currentTarget.value)
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
155
modules/malefices-tirage-tarot-dialog.js
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
import { MaleficesUtility } from "./malefices-utility.js";
|
||||||
|
|
||||||
|
export class MaleficesTirageTarotDialog extends Dialog {
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static async create(actor, tirageData) {
|
||||||
|
|
||||||
|
let options = { classes: ["MaleficesDialog"], width: 820, height: 740, 'z-index': 99999 };
|
||||||
|
let html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs', tirageData);
|
||||||
|
|
||||||
|
return new MaleficesTirageTarotDialog(actor, tirageData, html, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
constructor(actor, tirageData, html, options, close = undefined) {
|
||||||
|
let conf = {
|
||||||
|
title: "Tirage des tarots",
|
||||||
|
content: html,
|
||||||
|
buttons: {
|
||||||
|
cancel: {
|
||||||
|
icon: '<i class="fas fa-times"></i>',
|
||||||
|
label: "Fermer/Annuler",
|
||||||
|
callback: () => { this.close() }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
close: close
|
||||||
|
}
|
||||||
|
|
||||||
|
super(conf, options);
|
||||||
|
|
||||||
|
this.actor = actor;
|
||||||
|
this.tirageData = tirageData;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async sendCardRequest() {
|
||||||
|
this.tirageData.state = 'waiting-user-card'
|
||||||
|
let msg = await MaleficesUtility.createChatMessage(this.tirageData.user.name, "useronly", {
|
||||||
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/request-tarot-card.hbs`, this.tirageData)
|
||||||
|
})
|
||||||
|
//msg.setFlag("world", "tirage-data", this.tirageData)
|
||||||
|
console.log("MSG IS", msg)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
drawCard() {
|
||||||
|
let index = Math.round(Math.random() * (this.tirageData.deck.length-1))
|
||||||
|
let selectedCard = this.tirageData.deck[index]
|
||||||
|
selectedCard.system.ispositif = true
|
||||||
|
if ( selectedCard.system.isdualside) { // Cas des cartes pouvant avoir 2 sens
|
||||||
|
selectedCard.system.ispositif = (Math.random() > 0.5)
|
||||||
|
}
|
||||||
|
console.log("CARD SELECTED:", selectedCard)
|
||||||
|
// Cas spécial de la Roue de la Fortune
|
||||||
|
if ( selectedCard.name.toLowerCase().includes("fortune")) {
|
||||||
|
this.tirageData.maxPlayerCard += 1
|
||||||
|
this.tirageData.maxSecretCard += 1
|
||||||
|
}
|
||||||
|
let newList = []
|
||||||
|
for(let card of this.tirageData.deck) {
|
||||||
|
if (card.name != selectedCard.name) {
|
||||||
|
newList.push(card)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.tirageData.deck = newList
|
||||||
|
|
||||||
|
return selectedCard
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async addCard( msgId ) {
|
||||||
|
MaleficesUtility.removeChatMessageId(msgId)
|
||||||
|
|
||||||
|
let selectedCard = this.drawCard()
|
||||||
|
selectedCard.system.isgm = false
|
||||||
|
await MaleficesUtility.createChatMessage(this.tirageData.user.name, "gmroll", {
|
||||||
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
|
||||||
|
})
|
||||||
|
if (this.tirageData.cards[0].name == "???") {
|
||||||
|
this.tirageData.cards.shift()
|
||||||
|
}
|
||||||
|
this.tirageData.cards.push(selectedCard)
|
||||||
|
this.tirageData.nbCard++
|
||||||
|
|
||||||
|
if (this.tirageData.nbCard == this.tirageData.maxPlayerCard) {
|
||||||
|
for (let i=0; i<this.tirageData.maxSecretCard; i++) {
|
||||||
|
let selectedCard = this.drawCard()
|
||||||
|
selectedCard.system.isgm = true
|
||||||
|
await MaleficesUtility.createChatMessage(this.tirageData.user.name, "blindroll", {
|
||||||
|
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
|
||||||
|
})
|
||||||
|
if (this.tirageData.secretCards[0].name == "???") {
|
||||||
|
this.tirageData.secretCards.shift()
|
||||||
|
}
|
||||||
|
this.tirageData.secretCards.push(selectedCard)
|
||||||
|
}
|
||||||
|
this.tirageData.actors = duplicate(game.actors)
|
||||||
|
this.tirageData.state = 'attribute-to-actor'
|
||||||
|
}else {
|
||||||
|
this.sendCardRequest()
|
||||||
|
}
|
||||||
|
this.refreshDialog()
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async processSelectedPlayer() {
|
||||||
|
let user = game.users.get(this.tirageData.playerId)
|
||||||
|
this.tirageData.user = user
|
||||||
|
this.tirageData.players = null
|
||||||
|
console.log("Going to work with ", user.name)
|
||||||
|
game.system.malefices.currentTirage = this
|
||||||
|
this.refreshDialog()
|
||||||
|
this.sendCardRequest()
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
attributeToActor(actorId) {
|
||||||
|
let actor = game.actors.get(actorId)
|
||||||
|
if (actor) {
|
||||||
|
actor.createEmbeddedDocuments('Item', this.tirageData.cards)
|
||||||
|
actor.createEmbeddedDocuments('Item', this.tirageData.secretCards)
|
||||||
|
ui.notifications.info("Les cartes ont été attribuées à " + actor.name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async refreshDialog() {
|
||||||
|
const content = await renderTemplate("systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs", this.tirageData)
|
||||||
|
this.data.content = content
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html);
|
||||||
|
|
||||||
|
var dialog = this;
|
||||||
|
function onLoad() {
|
||||||
|
}
|
||||||
|
$(function () { onLoad(); });
|
||||||
|
|
||||||
|
html.find('#playerId').change((event) => {
|
||||||
|
if ( event.currentTarget.value != "none") {
|
||||||
|
dialog.tirageData.playerId = event.currentTarget.value
|
||||||
|
dialog.processSelectedPlayer()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
html.find('#actorId').change((event) => {
|
||||||
|
if ( event.currentTarget.value != "none") {
|
||||||
|
let actorId = event.currentTarget.value
|
||||||
|
dialog.attributeToActor(actorId)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,4 @@
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
import { MaleficesCombat } from "./malefices-combat.js";
|
|
||||||
import { MaleficesCommands } from "./malefices-commands.js";
|
import { MaleficesCommands } from "./malefices-commands.js";
|
||||||
|
|
||||||
|
|
||||||
@ -53,54 +52,17 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------- */
|
/*-------------------------------------------- */
|
||||||
static getSkills() {
|
static getTarots() {
|
||||||
return duplicate(this.skills)
|
return duplicate(this.tarots)
|
||||||
}
|
}
|
||||||
/*-------------------------------------------- */
|
static getTarot(tId) {
|
||||||
static getWeaponSkills() {
|
return this.tarots.find(t => t._id == tId)
|
||||||
return duplicate(this.weaponSkills)
|
|
||||||
}
|
|
||||||
/*-------------------------------------------- */
|
|
||||||
static getShieldSkills() {
|
|
||||||
return duplicate(this.shieldSkills)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static isModuleItemAllowed(type) {
|
|
||||||
return __ALLOWED_MODULE_TYPES[type]
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static buildBonusList() {
|
|
||||||
let bonusList = []
|
|
||||||
for (let key in game.system.model.Actor.character.bonus) {
|
|
||||||
let bonuses = game.system.model.Actor.character.bonus[key]
|
|
||||||
for (let bonus in bonuses) {
|
|
||||||
bonusList.push(key + "." + bonus)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (let key in game.system.model.Actor.character.attributes) {
|
|
||||||
let attrs = game.system.model.Actor.character.attributes[key]
|
|
||||||
for (let skillKey in attrs.skills) {
|
|
||||||
bonusList.push(key + ".skills." + skillKey + ".modifier")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (let key in game.system.model.Actor.character.universal.skills) {
|
|
||||||
bonusList.push("universal.skills." + key + ".modifier")
|
|
||||||
}
|
|
||||||
return bonusList
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async ready() {
|
static async ready() {
|
||||||
const skills = await MaleficesUtility.loadCompendium("fvtt-malefices.skills")
|
const tarots = await MaleficesUtility.loadCompendium("fvtt-malefices.malefices-tarots")
|
||||||
this.skills = skills.map(i => i.toObject())
|
this.tarots = tarots.map(i => i.toObject())
|
||||||
this.weaponSkills = duplicate(this.skills.filter(item => item.system.isweaponskill))
|
|
||||||
this.shieldSkills = duplicate(this.skills.filter(item => item.system.isshieldskill))
|
|
||||||
|
|
||||||
const rollTables = await MaleficesUtility.loadCompendium("fvtt-malefices.rolltables")
|
|
||||||
this.rollTables = rollTables.map(i => i.toObject())
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -116,35 +78,40 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isArmorLight(armor) {
|
static getActorFromRollData(rollData) {
|
||||||
if (armor && (armor.system.armortype.includes("light") || armor.system.armortype.includes("clothes"))) {
|
let actor = game.actors.get(rollData.actorId)
|
||||||
return true
|
if (rollData.tokenId) {
|
||||||
|
let token = canvas.tokens.placeables.find(t => t.id == rollData.tokenId)
|
||||||
|
if (token) {
|
||||||
|
actor = token.actor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return actor
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static drawDeckCard(msgId) {
|
||||||
|
if (game.user.isGM) {
|
||||||
|
game.system.malefices.currentTirage.addCard(msgId)
|
||||||
|
} else {
|
||||||
|
game.socket.emit( "system.fvtt-malefices", {name: "msg-draw-card", data: {msgId: msgId}})
|
||||||
}
|
}
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async chatListeners(html) {
|
static async chatListeners(html) {
|
||||||
|
|
||||||
html.on("click", '.view-item-from-chat', event => {
|
html.on("click", '.roll-destin', event => {
|
||||||
game.system.Malefices.creator.openItemView(event)
|
let messageId = MaleficesUtility.findChatMessageId(event.currentTarget)
|
||||||
|
let message = game.messages.get(messageId)
|
||||||
|
let rollData = message.getFlag("world", "rolldata")
|
||||||
|
let actor = this.getActorFromRollData(rollData)
|
||||||
|
actor.incDecDestin(-1)
|
||||||
|
rollData.isReroll = true
|
||||||
|
this.rollMalefices(rollData)
|
||||||
})
|
})
|
||||||
html.on("click", '.roll-defense-melee', event => {
|
html.on("click", '.draw-tarot-card', event => {
|
||||||
let rollId = $(event.currentTarget).data("roll-id")
|
let messageId = MaleficesUtility.findChatMessageId(event.currentTarget)
|
||||||
let rollData = MaleficesUtility.getRollData(rollId)
|
this.drawDeckCard(messageId)
|
||||||
rollData.defenseWeaponId = $(event.currentTarget).data("defense-weapon-id")
|
|
||||||
let actor = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
|
||||||
if (actor && (game.user.isGM || actor.isOwner)) {
|
|
||||||
actor.rollDefenseMelee(rollData)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
html.on("click", '.roll-defense-ranged', event => {
|
|
||||||
let rollId = $(event.currentTarget).data("roll-id")
|
|
||||||
let rollData = MaleficesUtility.getRollData(rollId)
|
|
||||||
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
|
||||||
if (defender && (game.user.isGM || defender.isOwner)) {
|
|
||||||
defender.rollDefenseRanged(rollData)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -226,177 +193,15 @@ export class MaleficesUtility {
|
|||||||
let newRollData = mergeObject(oldRollData, rollData)
|
let newRollData = mergeObject(oldRollData, rollData)
|
||||||
this.rollDataStore[id] = newRollData
|
this.rollDataStore[id] = newRollData
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
|
||||||
static saveRollData(rollData) {
|
|
||||||
game.socket.emit("system.fvtt-malefices", {
|
|
||||||
name: "msg_update_roll", data: rollData
|
|
||||||
}); // Notify all other clients of the roll
|
|
||||||
this.updateRollData(rollData)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getRollData(id) {
|
|
||||||
return this.rollDataStore[id]
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static async displayDefenseMessage(rollData) {
|
|
||||||
if (rollData.mode == "weapon" && rollData.defenderTokenId) {
|
|
||||||
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
|
||||||
if (game.user.isGM || (game.user.character && game.user.character.id == defender.id)) {
|
|
||||||
rollData.defender = defender
|
|
||||||
rollData.defenderWeapons = defender.getEquippedWeapons()
|
|
||||||
rollData.isRangedAttack = rollData.weapon?.system.isranged
|
|
||||||
this.createChatWithRollMode(defender.name, {
|
|
||||||
name: defender.name,
|
|
||||||
alias: defender.name,
|
|
||||||
//user: defender.id,
|
|
||||||
content: await renderTemplate(`systems/fvtt-malefices/templates/chat-request-defense.html`, rollData),
|
|
||||||
whisper: [defender.id].concat(ChatMessage.getWhisperRecipients('GM')),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getSuccessResult(rollData) {
|
|
||||||
if (rollData.sumSuccess <= -3) {
|
|
||||||
if (rollData.attackRollData.weapon.system.isranged) {
|
|
||||||
return { result: "miss", fumble: true, hpLossType: "melee" }
|
|
||||||
} else {
|
|
||||||
return { result: "miss", fumble: true, attackerHPLoss: "2d3", hpLossType: "melee" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess == -2) {
|
|
||||||
if (rollData.attackRollData.weapon.system.isranged) {
|
|
||||||
return { result: "miss", dangerous_fumble: true }
|
|
||||||
} else {
|
|
||||||
return { result: "miss", dangerous_fumble: true, attackerHPLoss: "1d3", hpLossType: "melee" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess == -1) {
|
|
||||||
return { result: "miss" }
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess == 0) {
|
|
||||||
if (rollData.attackRollData.weapon.system.isranged) {
|
|
||||||
return { result: "target_space", aoe: true }
|
|
||||||
} else {
|
|
||||||
return { result: "clash", hack_vs_shields: true }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess == 1) {
|
|
||||||
return { result: "hit", defenderDamage: "1", entangle: true, knockback: true }
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess == 2) {
|
|
||||||
return { result: "hit", defenderDamage: "2", critical_1: true, entangle: true, knockback: true, penetrating_impale: true, hack_armors: true }
|
|
||||||
}
|
|
||||||
if (rollData.sumSuccess >= 3) {
|
|
||||||
return { result: "hit", defenderDamage: "3", critical_2: true, entangle: true, knockback: true, penetrating_impale: true, hack_armors: true }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static async getFumble(weapon) {
|
|
||||||
const pack = game.packs.get("fvtt-malefices.rolltables")
|
|
||||||
const index = await pack.getIndex()
|
|
||||||
let entry
|
|
||||||
|
|
||||||
if (weapon.isranged) {
|
|
||||||
entry = index.find(e => e.name === "Fumble! (ranged)")
|
|
||||||
}
|
|
||||||
if (!weapon.isranged) {
|
|
||||||
entry = index.find(e => e.name === "Fumble! (melee)")
|
|
||||||
}
|
|
||||||
let table = await pack.getDocument(entry._id)
|
|
||||||
const draw = await table.draw({ displayChat: false, rollMode: "gmroll" })
|
|
||||||
return draw.results.length > 0 ? draw.results[0] : undefined
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static async processSuccessResult(rollData) {
|
|
||||||
if (game.user.isGM) { // Only GM process this
|
|
||||||
let result = rollData.successDetails
|
|
||||||
let attacker = game.actors.get(rollData.actorId)
|
|
||||||
let defender = game.canvas.tokens.get(rollData.attackRollData.defenderTokenId).actor
|
|
||||||
|
|
||||||
if (attacker && result.attackerHPLoss) {
|
|
||||||
result.attackerHPLossValue = await attacker.incDecHP("-" + result.attackerHPLoss)
|
|
||||||
}
|
|
||||||
if (attacker && defender && result.defenderDamage) {
|
|
||||||
let dmgDice = (rollData.attackRollData.weapon.system.isranged) ? "d6" : "d8"
|
|
||||||
result.damageWeaponFormula = result.defenderDamage + dmgDice
|
|
||||||
result.defenderHPLossValue = await defender.incDecHP("-" + result.damageWeaponFormula)
|
|
||||||
}
|
|
||||||
if (result.fumble || (result.dangerous_fumble && MaleficesUtility.isWeaponDangerous(rollData.attackRollData.weapon))) {
|
|
||||||
result.fumbleDetails = await this.getFumble(rollData.weapon)
|
|
||||||
}
|
|
||||||
if (result.critical_1 || result.critical_2) {
|
|
||||||
let isDeadly = MaleficesUtility.isWeaponDeadly(rollData.attackRollData.weapon)
|
|
||||||
result.critical = await this.getCritical((result.critical_1) ? "I" : "II", rollData.attackRollData.weapon)
|
|
||||||
result.criticalText = result.critical.text
|
|
||||||
}
|
|
||||||
this.createChatWithRollMode(rollData.alias, {
|
|
||||||
content: await renderTemplate(`systems/fvtt-malefices/templates/chat-attack-defense-result.html`, rollData)
|
|
||||||
})
|
|
||||||
console.log("Results processed", rollData)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static async processAttackDefense(rollData) {
|
|
||||||
if (rollData.attackRollData) {
|
|
||||||
//console.log("Defender token, ", rollData, rollData.defenderTokenId)
|
|
||||||
let defender = game.canvas.tokens.get(rollData.attackRollData.defenderTokenId).actor
|
|
||||||
let sumSuccess = rollData.attackRollData.nbSuccess - rollData.nbSuccess
|
|
||||||
if (sumSuccess > 0) {
|
|
||||||
let armorResult = await defender.rollArmorDie(rollData)
|
|
||||||
rollData.armorResult = armorResult
|
|
||||||
sumSuccess += rollData.armorResult.nbSuccess
|
|
||||||
if (sumSuccess < 0) { // Never below 0
|
|
||||||
sumSuccess = 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rollData.sumSuccess = sumSuccess
|
|
||||||
rollData.successDetails = this.getSuccessResult(rollData)
|
|
||||||
if (game.user.isGM) {
|
|
||||||
this.processSuccessResult(rollData)
|
|
||||||
} else {
|
|
||||||
game.socket.emit("system.fvtt-malefices", { msg: "msg_gm_process_attack_defense", data: rollData });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async onSocketMesssage(msg) {
|
static async onSocketMesssage(msg) {
|
||||||
console.log("SOCKET MESSAGE", msg.name)
|
console.log("SOCKET MESSAGE", msg.name)
|
||||||
if (msg.name == "msg_update_roll") {
|
if (msg.name == "msg-draw-card") {
|
||||||
this.updateRollData(msg.data)
|
if ( game.user.isGM && game.system.malefices.currentTirage) {
|
||||||
}
|
game.system.malefices.currentTirage.addCard(msg.data.msgId)
|
||||||
if (msg.name == "msg_gm_process_attack_defense") {
|
|
||||||
this.processSuccessResult(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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static computeFocusData(focus) {
|
|
||||||
let focusData = {
|
|
||||||
focusPoints: __focusCore[focus.core] + __focusPointTreatment[focus.treatment],
|
|
||||||
burnChance: __burnChanceTreatment[focus.treatment],
|
|
||||||
focusRegen: __focusRegenBond[focus.bond],
|
|
||||||
spellAttackBonus: __bonusSpellAttackBond[focus.bond],
|
|
||||||
spellDamageBonus: __bonusSpellDamageBond[focus.bond]
|
|
||||||
}
|
|
||||||
return focusData
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -412,19 +217,6 @@ export class MaleficesUtility {
|
|||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getSpellCost(spell) {
|
|
||||||
return __spellCost[spell.system.level]
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getArmorPenalty( item ) {
|
|
||||||
if (item && (item.type == "shield" || item.type == "armor")) {
|
|
||||||
return __armorPenalties[item.system.category]
|
|
||||||
}
|
|
||||||
return {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static chatDataSetup(content, modeOverride, isRoll = false, forceWhisper) {
|
static chatDataSetup(content, modeOverride, isRoll = false, forceWhisper) {
|
||||||
let chatData = {
|
let chatData = {
|
||||||
@ -470,27 +262,6 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static updateSkill(skill) {
|
|
||||||
skill.system.level = skill.system.background + skill.system.basic + skill.system.class + skill.system.explevel
|
|
||||||
if (skill.system.level > 7) { skill.system.level = 7 }
|
|
||||||
skill.system.skilldice = __skillLevel2Dice[skill.system.level]
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getDiceFromCover(cover) {
|
|
||||||
if (cover == "cover50") return 1
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static getDiceFromSituational(cover) {
|
|
||||||
if (cover == "prone") return 1
|
|
||||||
if (cover == "dodge") return 1
|
|
||||||
if (cover == "moving") return 1
|
|
||||||
if (cover == "engaged") return 1
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async rollMalefices(rollData) {
|
static async rollMalefices(rollData) {
|
||||||
|
|
||||||
@ -498,16 +269,16 @@ export class MaleficesUtility {
|
|||||||
|
|
||||||
// Build the dice formula
|
// Build the dice formula
|
||||||
let diceFormula = "1d20"
|
let diceFormula = "1d20"
|
||||||
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef
|
rollData.target = rollData.attr.value + rollData.bonusMalusPerso + rollData.bonusMalusSituation + rollData.bonusMalusDef + rollData.bonusMalusPortee
|
||||||
|
if (rollData.attr.abbrev == "physique") {
|
||||||
|
rollData.target += rollData.phyMalus
|
||||||
|
}
|
||||||
rollData.diceFormula = diceFormula
|
rollData.diceFormula = diceFormula
|
||||||
|
|
||||||
// Performs roll
|
// Performs roll
|
||||||
console.log("Roll formula", diceFormula)
|
console.log("Roll formula", diceFormula)
|
||||||
let myRoll = rollData.roll
|
let myRoll = new Roll(diceFormula).roll({ async: false })
|
||||||
if (!myRoll) { // New rolls only of no rerolls
|
|
||||||
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.isSuccess = false
|
rollData.isSuccess = false
|
||||||
@ -561,11 +332,17 @@ export class MaleficesUtility {
|
|||||||
switch (rollMode) {
|
switch (rollMode) {
|
||||||
case "blindroll": return this.getUsers(user => user.isGM);
|
case "blindroll": return this.getUsers(user => user.isGM);
|
||||||
case "gmroll": return this.getWhisperRecipientsAndGMs(name);
|
case "gmroll": return this.getWhisperRecipientsAndGMs(name);
|
||||||
|
case "useronly": return this.getWhisperRecipientsOnly(name);
|
||||||
case "selfroll": return [game.user.id];
|
case "selfroll": return [game.user.id];
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
static getWhisperRecipientsOnly(name) {
|
||||||
|
let recep1 = ChatMessage.getWhisperRecipients(name) || [];
|
||||||
|
return recep1
|
||||||
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
static getWhisperRecipientsAndGMs(name) {
|
static getWhisperRecipientsAndGMs(name) {
|
||||||
let recep1 = ChatMessage.getWhisperRecipients(name) || [];
|
let recep1 = ChatMessage.getWhisperRecipients(name) || [];
|
||||||
return recep1.concat(ChatMessage.getWhisperRecipients('GM'));
|
return recep1.concat(ChatMessage.getWhisperRecipients('GM'));
|
||||||
@ -599,7 +376,7 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createChatMessage(name, rollMode, chatOptions) {
|
static async createChatMessage(name, rollMode, chatOptions) {
|
||||||
switch (rollMode) {
|
switch (rollMode) {
|
||||||
case "blindroll": // GM only
|
case "blindroll": // GM only
|
||||||
if (!game.user.isGM) {
|
if (!game.user.isGM) {
|
||||||
@ -617,7 +394,7 @@ export class MaleficesUtility {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
chatOptions.alias = chatOptions.alias || name;
|
chatOptions.alias = chatOptions.alias || name;
|
||||||
return ChatMessage.create(chatOptions);
|
return await ChatMessage.create(chatOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -627,6 +404,7 @@ export class MaleficesUtility {
|
|||||||
bonusMalusPerso: 0,
|
bonusMalusPerso: 0,
|
||||||
bonusMalusSituation: 0,
|
bonusMalusSituation: 0,
|
||||||
bonusMalusDef: 0,
|
bonusMalusDef: 0,
|
||||||
|
bonusMalusPortee: 0,
|
||||||
rollMode: game.settings.get("core", "rollMode")
|
rollMode: game.settings.get("core", "rollMode")
|
||||||
}
|
}
|
||||||
MaleficesUtility.updateWithTarget(rollData)
|
MaleficesUtility.updateWithTarget(rollData)
|
||||||
@ -642,8 +420,8 @@ export class MaleficesUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createChatWithRollMode(name, chatOptions) {
|
static async createChatWithRollMode(name, chatOptions) {
|
||||||
return this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions)
|
return await this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
23
packs/malefices-archetypes.db
Normal file
9
packs/malefices-armes.db
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{"name":"Pistolet (Petit calibre)","type":"arme","img":"systems/fvtt-malefices/images/icons/revolver.webp","system":{"armetype":"pistoletpetit","porteecourte":5,"porteemoyenne":30,"dommagenormale":3,"dommagepart":5,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799547,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"5J6qIaWdnhEGMAXJ"}
|
||||||
|
{"name":"Arc","type":"arme","img":"systems/fvtt-malefices/images/icons/arc.webp","system":{"armetype":"arc","porteecourte":10,"porteemoyenne":30,"dommagenormale":3,"dommagepart":5,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799550,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"7keD0tMsa49zblQQ"}
|
||||||
|
{"name":"Fusil de Guerre","type":"arme","img":"systems/fvtt-malefices/images/icons/fusil.webp","system":{"armetype":"fusilguerre","porteecourte":50,"porteemoyenne":200,"dommagenormale":6,"dommagepart":8,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799544,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"CSwB7XBdCzNVmQg5"}
|
||||||
|
{"name":"Pistolet (Moyen calibre)","type":"arme","img":"systems/fvtt-malefices/images/icons/revolver.webp","system":{"armetype":"pistoletmoyen","porteecourte":5,"porteemoyenne":30,"dommagenormale":4,"dommagepart":6,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799546,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"CT2fhwqIafHniF8e"}
|
||||||
|
{"name":"Epée","type":"arme","img":"systems/fvtt-malefices/images/icons/epee.webp","system":{"armetype":"arc","porteecourte":1,"porteemoyenne":1,"dommagenormale":4,"dommagepart":5,"dommagecritique":6,"dommagecritiqueKO":true,"dommagecritiquemort":false,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799550,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"V3rk42gTKrm3O8Tj"}
|
||||||
|
{"name":"Pistolet (Gros calibre)","type":"arme","img":"systems/fvtt-malefices/images/icons/revolver.webp","system":{"armetype":"pistoletgros","porteecourte":5,"porteemoyenne":30,"dommagenormale":5,"dommagepart":7,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799545,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"d9D0KtChngKMBoqQ"}
|
||||||
|
{"name":"Fusil de Chasse","type":"arme","img":"systems/fvtt-malefices/images/icons/fusil.webp","system":{"armetype":"fusilchasse","porteecourte":30,"porteemoyenne":120,"dommagenormale":5,"dommagepart":7,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.nz5QUOYDWhfuuoB6"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799545,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"kywMcn4Jxr5JonVt"}
|
||||||
|
{"name":"Arbalete","type":"arme","img":"systems/fvtt-malefices/images/icons/arbalete.webp","system":{"armetype":"arbalete","porteecourte":10,"porteemoyenne":30,"dommagenormale":4,"dommagepart":6,"dommagecritique":0,"dommagecritiqueKO":false,"dommagecritiquemort":true,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799549,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"lULKUHca9kDlhnxl"}
|
||||||
|
{"name":"Mains Nues","type":"arme","img":"systems/fvtt-malefices/images/icons/mainsnues.webp","system":{"armetype":"mainsnues","porteecourte":1,"porteemoyenne":1,"dommagenormale":2,"dommagepart":4,"dommagecritique":5,"dommagecritiqueKO":true,"dommagecritiquemort":false,"description":""},"effects":[],"flags":{"core":{"sourceId":"Item.JVpvjDTWDo4boT7A"}},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.4","coreVersion":"10.291","createdTime":1675260395590,"modifiedTime":1675372799551,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"nkRQU81L1gWOfaeo"}
|
22
packs/malefices-tarots.db
Normal file
@ -0,0 +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":"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":"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":"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":"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":"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":"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":"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":"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":"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'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":"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":"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 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 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 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 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":"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":"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":"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":"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 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"}
|
@ -1,4 +1,8 @@
|
|||||||
/* ==================== (A) Fonts ==================== */
|
/* ==================== (A) Fonts ==================== */
|
||||||
|
@font-face {
|
||||||
|
font-family: "Rivanna";
|
||||||
|
src: url('../fonts/rivanna.ttf') format("truetype");
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* =================== 1. ACTOR SHEET FONT STYLES =========== */
|
/* =================== 1. ACTOR SHEET FONT STYLES =========== */
|
||||||
@ -48,7 +52,7 @@
|
|||||||
.sheet nav.sheet-tabs {
|
.sheet nav.sheet-tabs {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
} /* For nav and title */
|
} /* For nav and title */
|
||||||
.window-app input, .fvtt-avd12 .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle {
|
.window-app input, .fvtt-malefices .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,7 +202,7 @@ table {border: 1px solid #7a7971;}
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Styles limited to sheets */
|
/* Styles limited to sheets */
|
||||||
.fvtt-avd12 .sheet-header {
|
.fvtt-malefices .sheet-header {
|
||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 0 210px;
|
-ms-flex: 0 0 210px;
|
||||||
flex: 0 0 210px;
|
flex: 0 0 210px;
|
||||||
@ -218,13 +222,13 @@ table {border: 1px solid #7a7971;}
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-header .profile-img {
|
.fvtt-malefices .sheet-header .profile-img {
|
||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 0 128px;
|
-ms-flex: 0 0 128px;
|
||||||
flex: 0 0 128px;
|
flex: 0 0 128px;
|
||||||
width: 256px;
|
width: 128px;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height:256px;
|
max-height:128px;
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
@ -262,41 +266,45 @@ table {border: 1px solid #7a7971;}
|
|||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-header .header-fields {
|
.fvtt-malefices .sheet-header .header-fields {
|
||||||
-webkit-box-flex: 1;
|
-webkit-box-flex: 1;
|
||||||
-ms-flex: 1;
|
-ms-flex: 1;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-header h1.charname {
|
.fvtt-malefices .sheet-header h1.charname {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-header h1.charname input {
|
.fvtt-malefices .sheet-header h1.charname input {
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 3rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-tabs {
|
.fvtt-malefices .sheet-tabs {
|
||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0;
|
-ms-flex: 0;
|
||||||
flex: 0;
|
flex: 0;
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 2.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .sheet-body,
|
.fvtt-malefices .sheet-body,
|
||||||
.fvtt-avd12 .sheet-body .tab,
|
.fvtt-malefices .sheet-body .tab,
|
||||||
.fvtt-avd12 .sheet-body .tab .editor {
|
.fvtt-malefices .sheet-body .tab .editor {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor {
|
.editor {
|
||||||
border: 2;
|
border: 2;
|
||||||
height: 300px;
|
height: 100%;
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -312,83 +320,86 @@ table {border: 1px solid #7a7971;}
|
|||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .tox .tox-editor-container {
|
.fvtt-malefices .tox .tox-editor-container {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .tox .tox-edit-area {
|
.fvtt-malefices .tox .tox-edit-area {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .resource-label {
|
.fvtt-malefices .resource-label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .tabs {
|
.fvtt-malefices .tabs {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border-top: 1px solid #AAA;
|
border-top: 1px solid #AAA;
|
||||||
border-bottom: 1px solid #AAA;
|
border-bottom: 1px solid #AAA;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .tabs .item {
|
.fvtt-malefices .tabs .item {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .tabs .item.active {
|
.fvtt-malefices .tabs .item.active {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list {
|
.fvtt-malefices .items-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 1px 0;
|
margin: 1px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item-header {
|
.fvtt-malefices .items-list .item-header {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item {
|
.fvtt-malefices .items-list .item {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
padding: 1px 0;
|
padding: 1px 0;
|
||||||
border-bottom: 1px solid #BBB;
|
border-bottom: 1px solid #BBB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item .item-image {
|
.fvtt-malefices .items-list .item .item-image {
|
||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 0 24px;
|
-ms-flex: 0 0 24px;
|
||||||
flex: 0 0 24px;
|
flex: 0 0 24px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item img {
|
.fvtt-malefices .items-list .item img {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item-name {
|
.fvtt-malefices .items-list .item-name {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fvtt-avd12 .items-list .item-controls {
|
.fvtt-malefices .items-list .item-controls {
|
||||||
-webkit-box-flex: 0;
|
-webkit-box-flex: 0;
|
||||||
-ms-flex: 0 0 86px;
|
-ms-flex: 0 0 86px;
|
||||||
flex: 0 0 86px;
|
flex: 0 0 86px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li.folder > .folder-header h3 {
|
||||||
|
color: rgba(19, 18, 18, 0.95);
|
||||||
|
}
|
||||||
|
|
||||||
/* ======================================== */
|
/* ======================================== */
|
||||||
/* Sheet */
|
/* Sheet */
|
||||||
.window-app.sheet .window-content .sheet-header{
|
.window-app.sheet .window-content .sheet-header{
|
||||||
color: rgba(228, 240, 240, 0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
/*background: url("../images/ui/pc_sheet_bg.webp");*/
|
background: url("../images/ui/background_01_clear.webp");
|
||||||
background: #494e6b;
|
/*background: #494e6b;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"], select[type="text"] {
|
input[type="text"], select[type="text"] {
|
||||||
@ -403,29 +414,29 @@ select {
|
|||||||
/* background: #011d33 url("../images/ui/fond1.webp") repeat left top;*/
|
/* background: #011d33 url("../images/ui/fond1.webp") repeat left top;*/
|
||||||
/*color: rgba(168, 139, 139, 0.5);*/
|
/*color: rgba(168, 139, 139, 0.5);*/
|
||||||
.window-app.sheet .window-content .sheet-header select[type="text"], .window-app.sheet .window-content .sheet-header input[type="text"], .window-app.sheet .window-content .sheet-header input[type="number"], .window-app.sheet .window-content .sheet-body input[type="text"], .window-app.sheet .window-content .sheet-body input[type="number"], .window-app.sheet .window-content .sheet-body select[type="text"] {
|
.window-app.sheet .window-content .sheet-header select[type="text"], .window-app.sheet .window-content .sheet-header input[type="text"], .window-app.sheet .window-content .sheet-header input[type="number"], .window-app.sheet .window-content .sheet-body input[type="text"], .window-app.sheet .window-content .sheet-body input[type="number"], .window-app.sheet .window-content .sheet-body select[type="text"] {
|
||||||
background:white;
|
color: rgba(19, 18, 18, 0.95);
|
||||||
color: #494e6b;
|
/*color: #494e6b;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-app.sheet .window-content .sheet-header input[type="password"], .window-app.sheet .window-content .sheet-header input[type="date"], .window-app.sheet .window-content .sheet-header input[type="time"] {
|
.window-app.sheet .window-content .sheet-header input[type="password"], .window-app.sheet .window-content .sheet-header input[type="date"], .window-app.sheet .window-content .sheet-header input[type="time"] {
|
||||||
color: #494e6b;
|
color: rgba(19, 18, 18, 0.95);
|
||||||
background: #494e6b;
|
background: url("../images/ui/background_01_clear.webp");
|
||||||
border: 1 none;
|
border: 1 none;
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-app.sheet .window-content .sheet-body input[type="password"], .window-app.sheet .window-content .sheet-body input[type="date"], .window-app.sheet .window-content .sheet-body input[type="time"] {
|
.window-app.sheet .window-content .sheet-body input[type="password"], .window-app.sheet .window-content .sheet-body input[type="date"], .window-app.sheet .window-content .sheet-body input[type="time"] {
|
||||||
color: rgba(228, 240, 240, 0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
background: #494e6b;
|
background: url("../images/ui/background_01_clear.webp");
|
||||||
border: 1 none;
|
border: 1 none;
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.window-app.sheet .window-content .sheet-body select, .window-app.sheet .window-content .sheet-header select {
|
.window-app.sheet .window-content .sheet-body select, .window-app.sheet .window-content .sheet-header select {
|
||||||
color: rgba(228, 240, 240, 0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
background: #494e6b;
|
background: #fff;
|
||||||
border: 1 none;
|
border: 1 none;
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
@ -434,8 +445,8 @@ select {
|
|||||||
.window-app .window-content, .window-app.sheet .window-content .sheet-body{
|
.window-app .window-content, .window-app.sheet .window-content .sheet-body{
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
/*background: url("../images/ui/pc_sheet_bg.webp") repeat left top;*/
|
/*background: url("../images/ui/pc_sheet_bg.webp") repeat left top;*/
|
||||||
background: #494e6b;
|
background: url("../images/ui/background_01_clear.webp");
|
||||||
color: rgba(228, 240, 240, 0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* background: rgba(245,245,240,0.6) url("../images/ui/sheet_background.webp") left top;*/
|
/* background: rgba(245,245,240,0.6) url("../images/ui/sheet_background.webp") left top;*/
|
||||||
@ -450,7 +461,7 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sheet nav.sheet-tabs {
|
.sheet nav.sheet-tabs {
|
||||||
font-size: 0.70rem;
|
font-size: 1.2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
flex: 0 0 3rem;
|
flex: 0 0 3rem;
|
||||||
@ -566,7 +577,7 @@ ul, li {
|
|||||||
padding: 0.125rem;
|
padding: 0.125rem;
|
||||||
flex: 1 1 5rem;
|
flex: 1 1 5rem;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
color: rgba(228, 240, 240, 0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
}
|
}
|
||||||
.list-item-shadow {
|
.list-item-shadow {
|
||||||
background:rgba(87, 60, 32, 0.35);
|
background:rgba(87, 60, 32, 0.35);
|
||||||
@ -675,70 +686,20 @@ ul, li {
|
|||||||
margin-right: 0.25rem;
|
margin-right: 0.25rem;
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
}
|
}
|
||||||
.competence-xp {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 2rem;
|
|
||||||
margin-right: 0.25rem;
|
|
||||||
margin-left: 0.25rem;
|
|
||||||
}
|
|
||||||
.blessures-title {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.alchimie-title {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.blessure-data {
|
|
||||||
flex-direction: row;
|
|
||||||
align-content: flex-start;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
.blessures-soins {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 32px;
|
|
||||||
margin-right: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
.blessures-loc {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 96px;
|
|
||||||
margin-right: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
.pointsreve-value {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 64px;
|
|
||||||
margin-right: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-sante-header,
|
|
||||||
.stress-style {
|
|
||||||
flex-grow: 0;
|
|
||||||
flex-basis: 64px;
|
|
||||||
margin-right: 4px;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-label {
|
.small-label {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.padd-right {
|
.padd-right {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
.padd-left {
|
.padd-left {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stack-left {
|
.stack-left {
|
||||||
align-items:center;
|
align-items:center;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
}
|
}
|
||||||
.npc-ability-label {
|
|
||||||
flex-grow: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.packed-left {
|
.packed-left {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
@ -825,8 +786,12 @@ ul, li {
|
|||||||
/* Sidebar CSS */
|
/* Sidebar CSS */
|
||||||
#sidebar {
|
#sidebar {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
background-position: 100%;
|
/*background-position: 100%;*/
|
||||||
color: rgba(220,220,220,0.75);
|
background-color:#f5f5f5;
|
||||||
|
background-position: 0px 35px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-image: url("../images/ui/background_01_clear.webp");
|
||||||
|
color: rgba(19, 18, 18, 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* background: rgb(105,85,65) url("../images/ui/texture_feuille_perso_onglets.webp") no-repeat right bottom;*/
|
/* background: rgb(105,85,65) url("../images/ui/texture_feuille_perso_onglets.webp") no-repeat right bottom;*/
|
||||||
@ -836,7 +801,7 @@ ul, li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#sidebar-tabs > .collapsed, #chat-controls .chat-control-icon {
|
#sidebar-tabs > .collapsed, #chat-controls .chat-control-icon {
|
||||||
color: rgba(220,220,220,0.75);
|
color: rgba(19, 18, 18, 0.95);
|
||||||
text-shadow: 1px 1px 0 rgba(0,0,0,0.75);
|
text-shadow: 1px 1px 0 rgba(0,0,0,0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -863,10 +828,19 @@ ul, li {
|
|||||||
.chat-message .message-header .flavor-text, .chat-message .message-header .whisper-to {
|
.chat-message .message-header .flavor-text, .chat-message .message-header .whisper-to {
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
.chat-result-text,
|
||||||
.chat-actor-name {
|
.chat-actor-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: Rivanna;
|
||||||
|
font-size: 1.2rem;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
.chat-result-success {
|
||||||
|
color:darkgreen;
|
||||||
|
}
|
||||||
|
.chat-result-failure {
|
||||||
|
color:darkred;
|
||||||
|
}
|
||||||
.chat-img {
|
.chat-img {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
@ -914,18 +888,6 @@ ul, li {
|
|||||||
padding-bottom: .2rem;
|
padding-bottom: .2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.div-river-full {
|
|
||||||
height: 5rem;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.div-river {
|
|
||||||
align-content: center;
|
|
||||||
margin-left: 8px;
|
|
||||||
align-content:space-around;
|
|
||||||
justify-content: space-around;
|
|
||||||
}
|
|
||||||
|
|
||||||
.div-center {
|
.div-center {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
@ -1194,7 +1156,7 @@ ul, li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
content : url(../images/ui/crucible_game_logo.png);
|
content : url(../images/ui/logo_pause.webp);
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
@ -1229,8 +1191,8 @@ ul, li {
|
|||||||
}
|
}
|
||||||
.items-title-bg {
|
.items-title-bg {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
background: black;
|
color: rgba(19, 18, 18, 0.95);
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
.items-title-text {
|
.items-title-text {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
@ -1270,11 +1232,19 @@ ul, li {
|
|||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
}
|
}
|
||||||
.item-name-label-long {
|
.item-name-label-long {
|
||||||
|
margin-top: 4px;
|
||||||
flex-grow:2;
|
flex-grow:2;
|
||||||
max-width: 12rem;
|
max-width: 10rem;
|
||||||
min-width: 12rem;
|
min-width: 10rem;
|
||||||
|
}
|
||||||
|
.item-name-label-medium {
|
||||||
|
margin-top: 4px;
|
||||||
|
flex-grow:2;
|
||||||
|
max-width: 6rem;
|
||||||
|
min-width: 6rem;
|
||||||
}
|
}
|
||||||
.item-name-label-long2 {
|
.item-name-label-long2 {
|
||||||
|
margin-top: 4px;
|
||||||
flex-grow:2;
|
flex-grow:2;
|
||||||
max-width: 22rem;
|
max-width: 22rem;
|
||||||
min-width: 22rem;
|
min-width: 22rem;
|
||||||
@ -1300,7 +1270,6 @@ ul, li {
|
|||||||
min-width: 6.8rem;
|
min-width: 6.8rem;
|
||||||
}
|
}
|
||||||
.item-field-label-long {
|
.item-field-label-long {
|
||||||
margin-top: 4px;
|
|
||||||
flex-grow:1;
|
flex-grow:1;
|
||||||
max-width: 10rem;
|
max-width: 10rem;
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
@ -1330,27 +1299,14 @@ ul, li {
|
|||||||
max-width: 16px;
|
max-width: 16px;
|
||||||
max-height: 12px;
|
max-height: 12px;
|
||||||
}
|
}
|
||||||
.drop-module-step {
|
.flip-tarot {
|
||||||
background: linear-gradient(to bottom, #6c95b9fc 5%, #105177ab 100%);
|
transform: scaleY(-1);
|
||||||
background-color: #7d5d3b00;
|
|
||||||
border-radius: 3px;
|
|
||||||
border: 2px ridge #846109;
|
|
||||||
}
|
}
|
||||||
.module-level-box {
|
.tarot-fixed-width {
|
||||||
background: linear-gradient(to bottom, #6c95b9fc 5%, #105177ab 100%);
|
width: 140px;
|
||||||
border-radius: 5px;
|
max-width: 140px;
|
||||||
padding: 4px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
margin-left: 12px;
|
|
||||||
border: 2px ridge #846109;
|
|
||||||
max-width: 45%;
|
|
||||||
min-height: 64px;
|
|
||||||
align-content: center;
|
|
||||||
}
|
}
|
||||||
.color-selected {
|
.tarot-title {
|
||||||
background: linear-gradient(to bottom, #9ae470fc 5%, #247e30ab 100%);
|
text-align: center;
|
||||||
}
|
font-weight: bold;
|
||||||
.flex-center {
|
|
||||||
align-items: center;
|
|
||||||
align-content: space-between;
|
|
||||||
}
|
}
|
35
system.json
@ -19,6 +19,35 @@
|
|||||||
"flags": {}
|
"flags": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"packs": [
|
||||||
|
{
|
||||||
|
"type": "Item",
|
||||||
|
"label": "Tarots",
|
||||||
|
"name": "malefices-tarots",
|
||||||
|
"path": "packs/malefices-tarots.db",
|
||||||
|
"system": "fvtt-malefices",
|
||||||
|
"private": false,
|
||||||
|
"flags": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Item",
|
||||||
|
"label": "Armes",
|
||||||
|
"name": "malefices-armes",
|
||||||
|
"path": "packs/malefices-armes.db",
|
||||||
|
"system": "fvtt-malefices",
|
||||||
|
"private": false,
|
||||||
|
"flags": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Item",
|
||||||
|
"label": "Archetypes",
|
||||||
|
"name": "malefices-archetypes",
|
||||||
|
"path": "packs/malefices-archetypes.db",
|
||||||
|
"system": "fvtt-malefices",
|
||||||
|
"private": false,
|
||||||
|
"flags": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-malefices/raw/branch/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-malefices/raw/branch/master/system.json",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
@ -33,11 +62,9 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"packs": [
|
|
||||||
],
|
|
||||||
"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.1",
|
"version": "10.0.19",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.1.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.19.zip",
|
||||||
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
|
||||||
}
|
}
|
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Actor": {
|
"Actor": {
|
||||||
"types": [
|
"types": [
|
||||||
"personnage",
|
"personnage"
|
||||||
"pnj"
|
|
||||||
],
|
],
|
||||||
"templates": {
|
"templates": {
|
||||||
"biodata": {
|
"biodata": {
|
||||||
@ -34,6 +33,8 @@
|
|||||||
"lamesdestin": [],
|
"lamesdestin": [],
|
||||||
"pointdestin": 1,
|
"pointdestin": 1,
|
||||||
"fluide": 5,
|
"fluide": 5,
|
||||||
|
"mpmb": 0,
|
||||||
|
"mpmn": 0,
|
||||||
"attributs": {
|
"attributs": {
|
||||||
"constitution": {
|
"constitution": {
|
||||||
"label": "Constitution",
|
"label": "Constitution",
|
||||||
@ -97,15 +98,32 @@
|
|||||||
"Item": {
|
"Item": {
|
||||||
"types": [
|
"types": [
|
||||||
"arme",
|
"arme",
|
||||||
"equipement"
|
"equipement",
|
||||||
|
"archetype",
|
||||||
|
"tarot",
|
||||||
|
"elementbio"
|
||||||
],
|
],
|
||||||
"templates": {
|
"templates": {},
|
||||||
|
"elementbio": {
|
||||||
|
"description": ""
|
||||||
},
|
},
|
||||||
"equipement": {
|
"equipement": {
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"tarot": {
|
||||||
|
"tarottype": "",
|
||||||
|
"isdualside": false,
|
||||||
|
"ispositif": true,
|
||||||
|
"isgm": false,
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"archetype": {
|
||||||
|
"lametutelaire": ""
|
||||||
|
},
|
||||||
"arme": {
|
"arme": {
|
||||||
"armetype": 0,
|
"armetype": 0,
|
||||||
|
"porteecourte": "",
|
||||||
|
"porteemoyenne": "",
|
||||||
"dommagenormale": 0,
|
"dommagenormale": 0,
|
||||||
"dommagepart": 0,
|
"dommagepart": 0,
|
||||||
"dommagecritique": 0,
|
"dommagecritique": 0,
|
||||||
|
@ -9,18 +9,29 @@
|
|||||||
<h1 class="charname margin-right"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
<h1 class="charname margin-right"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
||||||
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
|
<ul>
|
||||||
|
<li class="flexrow item">
|
||||||
|
<label class="item-name-label-long">Milieu social</label>
|
||||||
|
<input type="text" class="item-field-label-long" name="system.biodata.milieusocial" value="{{system.biodata.milieusocial}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
<li class="item flexrow">
|
||||||
|
<label class="item-name-label-long">Profession</label>
|
||||||
|
<input type="text" class="item-field-label-long" name="system.biodata.profession" value="{{system.biodata.profession}}" data-dtype="String" />
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{!-- Sheet Tab Navigation --}}
|
{{!-- Sheet Tab Navigation --}}
|
||||||
<nav class="sheet-tabs tabs" data-group="primary">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
<a class="item" data-tab="main">Principal</a>
|
<a class="item" data-tab="main">Principal</a>
|
||||||
<a class="item" data-tab="equipements">Equipements</a>
|
<a class="item" data-tab="equipements">Equipement</a>
|
||||||
<a class="item" data-tab="biodata">Biographie</a>
|
<a class="item" data-tab="biodata">Biographie</a>
|
||||||
<a class="item" data-tab="notes">Notes</a>
|
<a class="item" data-tab="notes">Notes</a>
|
||||||
</nav>
|
</nav>
|
||||||
@ -31,6 +42,7 @@
|
|||||||
{{!-- Skills Tab --}}
|
{{!-- Skills Tab --}}
|
||||||
<div class="tab main" data-group="primary" data-tab="main">
|
<div class="tab main" data-group="primary" data-tab="main">
|
||||||
|
|
||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div>
|
<div>
|
||||||
<ul class="stat-list alternate-list item-list">
|
<ul class="stat-list alternate-list item-list">
|
||||||
@ -41,13 +53,39 @@
|
|||||||
</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-field-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}}<i class="fa-solid fa-dice-d20"></i></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"/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{#if (eq key "physique")}}
|
||||||
|
{{#if @root.phyMalus}}
|
||||||
|
({{@root.phyMalus}})
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
|
<li class="item flexrow list-item">
|
||||||
|
<span class="item-field-label-long">Points de Destin</span>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.pointdestin" value="{{system.pointdestin}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#if isGM}}
|
||||||
|
<li class="item flexrow list-item">
|
||||||
|
<span class="item-field-label-long">Fluide (MJ)</span>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.fluide" value="{{system.fluide}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
<li class="item flexrow list-item">
|
||||||
|
<span class="item-field-label-long">MPMB (MJ)</span>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.mpmb" value="{{system.mpmb}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
<li class="item flexrow list-item">
|
||||||
|
<span class="item-field-label-long">MPMN (MJ)</span>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.mpmn" value="{{system.mpmn}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -65,6 +103,32 @@
|
|||||||
</li>
|
</li>
|
||||||
{{/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">Elements biographiques</label></h3>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="elementbio" title="Create Item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each elementsbio as |elem key|}}
|
||||||
|
<li class="item list-item flexrow list-item-shadow" data-item-id="{{elem._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{elem.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{elem.name}}</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>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -143,61 +207,67 @@
|
|||||||
|
|
||||||
{{!-- Biography Tab --}}
|
{{!-- Biography Tab --}}
|
||||||
<div class="tab biodata" data-group="primary" data-tab="biodata">
|
<div class="tab biodata" data-group="primary" data-tab="biodata">
|
||||||
|
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<div>
|
<div>
|
||||||
<ul class="item-list alternate-list">
|
<ul class="item-list alternate-list">
|
||||||
|
<li class="item flexrow" data-item-id="{{archetype._id}}">
|
||||||
|
<label class="item-name-label-medium">Archetype</label>
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{archetype.img}}" /></a>
|
||||||
|
<span class="item-name-label-medium">{{archetype.name}}</span>
|
||||||
|
<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>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Lieu de naissance</label>
|
<label class="item-name-label-medium">Lieu de naissance</label>
|
||||||
<input type="text" class="" name="system.biodata.lieunaissance" value="{{data.biodata.origin}}"
|
<input type="text" class="" name="system.biodata.lieunaissance" value="{{system.biodata.lieunaissance}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Age</label>
|
<label class="item-name-label-medium">Age</label>
|
||||||
<input type="text" class="" name="system.biodata.age" value="{{data.biodata.age}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.age" value="{{system.biodata.age}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Nationalité</label>
|
<label class="item-name-label-medium">Nationalité</label>
|
||||||
<input type="text" class="" name="system.biodata.nationalite" value="{{data.biodata.nationalite}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.nationalite" value="{{system.biodata.nationalite}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Enfance</label>
|
<label class="item-name-label-medium">Enfance</label>
|
||||||
<input type="text" class="" name="system.biodata.enfance" value="{{data.biodata.enfance}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.enfance" value="{{system.biodata.enfance}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Vie d'adulte</label>
|
<label class="item-name-label-medium">Vie d'adulte</label>
|
||||||
<input type="text" class="" name="system.biodata.adulte" value="{{data.biodata.adulte}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.adulte" value="{{system.biodata.adulte}}" data-dtype="String" />
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label class="generic-label">Loisirs</label>
|
|
||||||
<input type="text" class="" name="system.biodata.loisirs" value="{{data.biodata.loisirs}}" data-dtype="String" />
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow item">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Milieu social</label>
|
<label class="item-name-label-medium">Lame tutélaire</label>
|
||||||
<input type="text" class="" name="system.biodata.milieusocial" value="{{data.biodata.milieusocial}}" data-dtype="String" />
|
<span class="item-name-label-medium">{{archetype.tarot.name}}</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Profession</label>
|
<label class="item-name-label-medium">Résidence</label>
|
||||||
<input type="text" class="" name="system.biodata.profession" value="{{data.biodata.profession}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.residence" value="{{system.biodata.residence}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Résidence</label>
|
<label class="item-name-label-medium">Singularité</label>
|
||||||
<input type="text" class="" name="system.biodata.residence" value="{{data.biodata.residence}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.singularite" value="{{system.biodata.singularite}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Singularité</label>
|
<label class="item-name-label-medium">Loisirs</label>
|
||||||
<input type="text" class="" name="system.biodata.singularite" value="{{data.biodata.singularite}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.loisirs" value="{{system.biodata.loisirs}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Orientation politique</label>
|
<label class="item-name-label-medium">Orientation politique</label>
|
||||||
<input type="text" class="" name="system.biodata.politique" value="{{data.biodata.politique}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.politique" value="{{system.biodata.politique}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<label class="generic-label">Orientation religieuse</label>
|
<label class="item-name-label-medium">Orientation religieuse</label>
|
||||||
<input type="text" class="" name="system.biodata.religion" value="{{data.biodata.religion}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.religion" value="{{system.biodata.religion}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -208,23 +278,83 @@
|
|||||||
<label class="generic-label">Position vis-à-vis du fantastique</label>
|
<label class="generic-label">Position vis-à-vis du fantastique</label>
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow">
|
<li class="item flexrow">
|
||||||
<input type="text" class="" name="system.biodata.fantastique" value="{{data.biodata.fantastique}}" data-dtype="String" />
|
<input type="text" class="" name="system.biodata.fantastique" value="{{system.biodata.fantastique}}" data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
</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">Tarots</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="item-field-label-medium">Sens</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each tarots as |tarot key|}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{tarot._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{tarot.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{tarot.name}}</span>
|
||||||
|
<span class="item-field-label-medium"><label>{{#if tarot.system.ispositif}}Positif{{else}}Négatif{{/if}}</label></span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
{{#if @root.isGM}}
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</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">Tarot secret(MJ)</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="item-field-label-medium">Sens</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each tarotsCache as |tarot key|}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{tarot._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{tarot.img}}" /></a>
|
||||||
|
<span class="item-name-label">{{tarot.name}}</span>
|
||||||
|
<span class="item-field-label-medium"><label>{{#if tarot.system.ispositif}}Positif{{else}}Négatif{{/if}}</label></span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
{{#if @root.isGM}}
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab notes" data-group="primary" data-tab="notes">
|
<div class="tab notes" data-group="primary" data-tab="notes">
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Background : </h3>
|
<span class="item-name-label-header items-title-bg">
|
||||||
|
<h3><label class="items-title-text">Background</label></h3>
|
||||||
|
</span>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor data.biodata.description target="system.biodata.description" button=true owner=owner
|
{{editor description target="system.biodata.description" button=true owner=owner
|
||||||
editable=editable}}
|
editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Notes : </h3>
|
<span class="item-name-label-header items-title-bg">
|
||||||
|
<h3><label class="items-title-text">Notes</label></h3>
|
||||||
|
</span>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor data.biodata.notes target="system.biodata.notes" button=true owner=owner editable=editable}}
|
{{editor notes target="system.biodata.notes" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</article>
|
</article>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{#if actorImg}}
|
{{#if actorImg}}
|
||||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<h4 class=chat-actor-name>{{alias}}</h4>
|
<h4 class="chat-actor-name">{{alias}}</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -30,36 +30,43 @@
|
|||||||
|
|
||||||
{{#if isSuccess}}
|
{{#if isSuccess}}
|
||||||
{{#if isCritical}}
|
{{#if isCritical}}
|
||||||
<li><strong>Réussite Critique !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Réussite Critique !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
{{#if arme.system.dommagecritiquemort}}
|
{{#if arme.system.dommagecritiquemort}}
|
||||||
<li><strong>La victime est morte !</strong></li>
|
<li><label class="chat-result-text chat-result-success">La victime est morte !</label></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if arme.system.dommagecritiqueko}}
|
{{#if arme.system.dommagecritiqueko}}
|
||||||
<li><strong>La victime est KO !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime est KO !</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagecritique}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagecritique}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isPart}}
|
{{#if isPart}}
|
||||||
<li><strong>Réussite Particulière !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Réussite Particulière !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagepart}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagepart}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<li><strong>Succés !</strong></li>
|
<li><label class="chat-result-text chat-result-success ">Succés !</label></li>
|
||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
<li><strong>La victime subit {{arme.system.dommagenormale}} dommages</strong></li>
|
<li><label class="chat-result-text chat-result-success ">La victime subit {{arme.system.dommagenormale}} dommages</label></li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if isFumble}}
|
{{#if isFumble}}
|
||||||
<li><strong>Echec Critique !</strong></li>
|
<li><label class="chat-result-text chat-result-failure ">Echec Critique !</label></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li><strong>Echec !</strong></li>
|
<li><label class="chat-result-text chat-result-failure">Echec !</label></li>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if isReroll}}
|
||||||
|
{{else}}
|
||||||
|
{{#if (gt destin 0)}}
|
||||||
|
<button class="chat-card-button roll-destin">Relancer (1 Destin)</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
9
templates/chat/display-tarot-card.hbs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
</div>
|
||||||
|
<div class="flexcol">
|
||||||
|
<img class="{{#if system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{img}}">
|
||||||
|
<span class="tarot-title">{{name}}</span>
|
||||||
|
{{#if system.isdualside}}
|
||||||
|
<span class="tarot-title">{{#if system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
4
templates/chat/request-tarot-card.hbs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<div>
|
||||||
|
<button class="chat-card-button draw-tarot-card">Tirer une carte de Tarot</button>
|
||||||
|
</div>
|
||||||
|
|
@ -11,10 +11,28 @@
|
|||||||
{{#if attr}}
|
{{#if attr}}
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="roll-dialog-label">{{attr.label}} : </span>
|
<span class="roll-dialog-label">{{attr.label}} : </span>
|
||||||
<span class="roll-dialog-label">{{attr.value}}</span>
|
<span class="roll-dialog-label">
|
||||||
|
{{attr.value}}
|
||||||
|
{{#if (eq attr.abbrev "physique")}}
|
||||||
|
{{#if phyMalus}}
|
||||||
|
({{phyMalus}})
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
<span class="roll-dialog-label">Rappel des élements biographiques : </span>
|
||||||
|
<ul class="ul-level1 item-list alternate-list">
|
||||||
|
{{#each elementsbio as |elem key|}}
|
||||||
|
<li class="item flexrow">
|
||||||
|
<span class="roll-dialog-label">{{elem.name}}</span>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="roll-dialog-label">Bonus/Malus biographique : </span>
|
<span class="roll-dialog-label">Bonus/Malus biographique : </span>
|
||||||
<select id="bonusMalusPerso" name="bonusMalusPerso">
|
<select id="bonusMalusPerso" name="bonusMalusPerso">
|
||||||
@ -48,8 +66,8 @@
|
|||||||
{{#if arme}}
|
{{#if arme}}
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="roll-dialog-label">Défense : </span>
|
<span class="roll-dialog-label">Défense : </span>
|
||||||
<select id="bonusMalusSituation" name="bonusMalusSituation">
|
<select id="bonusMalusDef" name="bonusMalusDef">
|
||||||
{{#select bonusMalusSituation}}
|
{{#select bonusMalusDef}}
|
||||||
<option value="-3">-6 (réussite critique)</option>
|
<option value="-3">-6 (réussite critique)</option>
|
||||||
<option value="-3">-3 (réussite)</option>
|
<option value="-3">-3 (réussite)</option>
|
||||||
<option value="0">0 (echec ou pas d'esquive)</option>
|
<option value="0">0 (echec ou pas d'esquive)</option>
|
||||||
@ -57,6 +75,17 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">Pörtée : </span>
|
||||||
|
<select id="bonusMalusPortee" name="bonusMalusPortee">
|
||||||
|
{{#select bonusMalusPortee}}
|
||||||
|
<option value="1">+1 (Portée courte)</option>
|
||||||
|
<option value="0">0 (Portée moyenne)</option>
|
||||||
|
<option value="-1">-1 (Portée longue)</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
72
templates/dialogs/tirage-tarot-dialog.hbs
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
<form class="skill-roll-dialog">
|
||||||
|
<header class="roll-dialog-header">
|
||||||
|
<h1 class="dialog-roll-title roll-dialog-header">Joueur : {{user.name}}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
|
||||||
|
{{#if (eq state "select-player")}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>Sélectionnez le joueur pour faire le tirage</span>
|
||||||
|
<select id="playerId" name="playerId">
|
||||||
|
{{#select playerId}}
|
||||||
|
<option value="none"></option>
|
||||||
|
{{#each players as |player id|}}
|
||||||
|
<option value="{{player._id}}">{{player.name}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (eq state "attribute-to-actor")}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>Sélectionnez l'acteur pour lui attribuer les tarots</span>
|
||||||
|
<select id="actorId" name="actorId">
|
||||||
|
{{#select actorId}}
|
||||||
|
<option value="none"></option>
|
||||||
|
{{#each actors as |actor id|}}
|
||||||
|
<option value="{{actor._id}}">{{actor.name}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
<span><h2>Main du joueur : </h2></span>
|
||||||
|
<div class="flexrow">
|
||||||
|
{{#each cards as |card index|}}
|
||||||
|
<div class="flexcol">
|
||||||
|
<div class="tarot-fixed-width flexcol">
|
||||||
|
<img class="tarot-fixed-width {{#if card.system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{card.img}}">
|
||||||
|
<span class="tarot-title">{{card.name}}</span>
|
||||||
|
{{#if card.system.isdualside}}
|
||||||
|
<span class="tarot-title">{{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<span><h2>Main secrête : </h2></span>
|
||||||
|
<div class="flexrow">
|
||||||
|
{{#each secretCards as |card index|}}
|
||||||
|
<div class="flexcol">
|
||||||
|
<div class="tarot-fixed-width flexcol">
|
||||||
|
<img class="tarot-fixed-width {{#if card.system.ispositif}} {{else}}flip-tarot{{/if}}" src="{{card.img}}">
|
||||||
|
<span class="tarot-title">{{card.name}}</span>
|
||||||
|
{{#if card.system.isdualside}}
|
||||||
|
<span class="tarot-title">{{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}}</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
37
templates/items/item-archetype-sheet.hbs
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<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">Lame tutélaire</label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.lametutelaire" value="{{system.lametutelaire}}" data-dtype="String">
|
||||||
|
{{#select system.lametutelaire}}
|
||||||
|
{{#each tarots as |carte key| }}
|
||||||
|
<option value="{{carte._id}}">{{carte.name}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
@ -30,6 +30,15 @@
|
|||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Portee courte (max)</label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.porteecourte" value="{{system.porteecourte}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Portee moyenne (max)</label>
|
||||||
|
<input type="text" class="item-field-label-short" name="system.porteemoyenne" value="{{system.porteemoyenne}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label class="item-field-label-long">Dommages normaux</label>
|
<label class="item-field-label-long">Dommages normaux</label>
|
||||||
<input type="text" class="item-field-label-short" name="system.dommagenormale" value="{{system.dommagenormale}}" data-dtype="Number"/>
|
<input type="text" class="item-field-label-short" name="system.dommagenormale" value="{{system.dommagenormale}}" data-dtype="Number"/>
|
||||||
|
27
templates/items/item-elementbio-sheet.hbs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<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>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
60
templates/items/item-tarot-sheet.hbs
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
|
<header class="sheet-header">
|
||||||
|
<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">
|
||||||
|
<div class="flexrow">
|
||||||
|
<div>
|
||||||
|
<img class="item-tarot-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{> 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">Type </label>
|
||||||
|
<select class="item-field-label-long" type="text" name="system.tarottype" value="{{system.tarottype}}" data-dtype="String">
|
||||||
|
{{#select system.tarottype}}
|
||||||
|
{{#each config.tarotType as |type key| }}
|
||||||
|
<option value="{{key}}">{{type}}</option>
|
||||||
|
{{/each}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#if isGM}}
|
||||||
|
<li class="flexrow">
|
||||||
|
<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}} />
|
||||||
|
</li>
|
||||||
|
{{#if system.isdualside}}
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">En positif ?</label>
|
||||||
|
<input type="checkbox" class="item-field-label-short" name="system.ispositif" {{checked system.ispositif}} />
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
<li class="flexrow">
|
||||||
|
<label class="item-field-label-long">Carte cachée (ie MJ seulement) ?</label>
|
||||||
|
<input type="checkbox" class="item-field-label-short" name="system.isgm" {{checked system.isgm}} />
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
@ -1,8 +1,3 @@
|
|||||||
<div class="tab description" data-group="primary" data-tab="description">
|
<div class="tab description" data-group="primary" data-tab="description">
|
||||||
<div>
|
|
||||||
<label class="generic-label">Description</label>
|
|
||||||
<div class="medium-editor item-text-long-line">
|
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
@ -2,7 +2,4 @@
|
|||||||
<nav class="sheet-tabs tabs" data-group="primary">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
<a class="item" data-tab="description">Description</a>
|
<a class="item" data-tab="description">Description</a>
|
||||||
<a class="item" data-tab="details">Details</a>
|
<a class="item" data-tab="details">Details</a>
|
||||||
{{#if builder}}
|
|
||||||
<a class="item" data-tab="builder">Builder (GM only)</a>
|
|
||||||
{{/if}}
|
|
||||||
</nav>
|
</nav>
|
||||||
|