diff --git a/images/tarots/Malefice_Tarot_Adam_600 dpi.webp b/images/tarots/Malefice_Tarot_Adam_600 dpi.webp index f775e2e..359edfc 100644 Binary files a/images/tarots/Malefice_Tarot_Adam_600 dpi.webp and b/images/tarots/Malefice_Tarot_Adam_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Alchimiste_600 dpi.webp b/images/tarots/Malefice_Tarot_Alchimiste_600 dpi.webp index 700a8e4..037b710 100644 Binary files a/images/tarots/Malefice_Tarot_Alchimiste_600 dpi.webp and b/images/tarots/Malefice_Tarot_Alchimiste_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Archange_600 dpi.webp b/images/tarots/Malefice_Tarot_Archange_600 dpi.webp index d38e7ae..d3b9aa6 100644 Binary files a/images/tarots/Malefice_Tarot_Archange_600 dpi.webp and b/images/tarots/Malefice_Tarot_Archange_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Archiviste_600 dpi.webp b/images/tarots/Malefice_Tarot_Archiviste_600 dpi.webp index 4d8421f..f63c4a9 100644 Binary files a/images/tarots/Malefice_Tarot_Archiviste_600 dpi.webp and b/images/tarots/Malefice_Tarot_Archiviste_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Artiste_600 dpi.webp b/images/tarots/Malefice_Tarot_Artiste_600 dpi.webp index ffe82c0..a10c90e 100644 Binary files a/images/tarots/Malefice_Tarot_Artiste_600 dpi.webp and b/images/tarots/Malefice_Tarot_Artiste_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Cabaliste_600 dpi.webp b/images/tarots/Malefice_Tarot_Cabaliste_600 dpi.webp index 9eb9534..a08806d 100644 Binary files a/images/tarots/Malefice_Tarot_Cabaliste_600 dpi.webp and b/images/tarots/Malefice_Tarot_Cabaliste_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Centurion_600 dpi.webp b/images/tarots/Malefice_Tarot_Centurion_600 dpi.webp index b7479bb..81cba8c 100644 Binary files a/images/tarots/Malefice_Tarot_Centurion_600 dpi.webp and b/images/tarots/Malefice_Tarot_Centurion_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Chance_600 dpi.webp b/images/tarots/Malefice_Tarot_Chance_600 dpi.webp index 7bfb307..57e8356 100644 Binary files a/images/tarots/Malefice_Tarot_Chance_600 dpi.webp and b/images/tarots/Malefice_Tarot_Chance_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Diable_600 dpi.webp b/images/tarots/Malefice_Tarot_Diable_600 dpi.webp index ff5c5fc..138e4cf 100644 Binary files a/images/tarots/Malefice_Tarot_Diable_600 dpi.webp and b/images/tarots/Malefice_Tarot_Diable_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Eve_600 dpi.webp b/images/tarots/Malefice_Tarot_Eve_600 dpi.webp index 837c10b..d68b08f 100644 Binary files a/images/tarots/Malefice_Tarot_Eve_600 dpi.webp and b/images/tarots/Malefice_Tarot_Eve_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Grand Livre_600 dpi.webp b/images/tarots/Malefice_Tarot_Grand Livre_600 dpi.webp index f46dfec..80b3c85 100644 Binary files a/images/tarots/Malefice_Tarot_Grand Livre_600 dpi.webp and b/images/tarots/Malefice_Tarot_Grand Livre_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Hippocrate_600 dpi.webp b/images/tarots/Malefice_Tarot_Hippocrate_600 dpi.webp index f7efb7a..c6d71f4 100644 Binary files a/images/tarots/Malefice_Tarot_Hippocrate_600 dpi.webp and b/images/tarots/Malefice_Tarot_Hippocrate_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_La Mort_600 dpi.webp b/images/tarots/Malefice_Tarot_La Mort_600 dpi.webp index 377b947..28527c7 100644 Binary files a/images/tarots/Malefice_Tarot_La Mort_600 dpi.webp and b/images/tarots/Malefice_Tarot_La Mort_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_La roue de la fortune_600 dpi.webp b/images/tarots/Malefice_Tarot_La roue de la fortune_600 dpi.webp index b0e852d..79c6586 100644 Binary files a/images/tarots/Malefice_Tarot_La roue de la fortune_600 dpi.webp and b/images/tarots/Malefice_Tarot_La roue de la fortune_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Laboureur_600 dpi.webp b/images/tarots/Malefice_Tarot_Laboureur_600 dpi.webp index 32c959c..849cc6f 100644 Binary files a/images/tarots/Malefice_Tarot_Laboureur_600 dpi.webp and b/images/tarots/Malefice_Tarot_Laboureur_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Le Juge_600 dpi.webp b/images/tarots/Malefice_Tarot_Le Juge_600 dpi.webp index 9efb8f0..1cfad77 100644 Binary files a/images/tarots/Malefice_Tarot_Le Juge_600 dpi.webp and b/images/tarots/Malefice_Tarot_Le Juge_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Lune Noire_600 dpi.webp b/images/tarots/Malefice_Tarot_Lune Noire_600 dpi.webp index b22157d..81c0a78 100644 Binary files a/images/tarots/Malefice_Tarot_Lune Noire_600 dpi.webp and b/images/tarots/Malefice_Tarot_Lune Noire_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Medium_600 dpi.webp b/images/tarots/Malefice_Tarot_Medium_600 dpi.webp index fd09c9a..1ea32a8 100644 Binary files a/images/tarots/Malefice_Tarot_Medium_600 dpi.webp and b/images/tarots/Malefice_Tarot_Medium_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Moine_600 dpi.webp b/images/tarots/Malefice_Tarot_Moine_600 dpi.webp index 6298d39..8fb21fc 100644 Binary files a/images/tarots/Malefice_Tarot_Moine_600 dpi.webp and b/images/tarots/Malefice_Tarot_Moine_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Savetier_600 dpi copie.webp b/images/tarots/Malefice_Tarot_Savetier_600 dpi copie.webp index 3a86c88..ca11fb4 100644 Binary files a/images/tarots/Malefice_Tarot_Savetier_600 dpi copie.webp and b/images/tarots/Malefice_Tarot_Savetier_600 dpi copie.webp differ diff --git a/images/tarots/Malefice_Tarot_Sorcier_600 dpi.webp b/images/tarots/Malefice_Tarot_Sorcier_600 dpi.webp index 8c5b6a2..900dc1c 100644 Binary files a/images/tarots/Malefice_Tarot_Sorcier_600 dpi.webp and b/images/tarots/Malefice_Tarot_Sorcier_600 dpi.webp differ diff --git a/images/tarots/Malefice_Tarot_Vicaire_600 dpi.webp b/images/tarots/Malefice_Tarot_Vicaire_600 dpi.webp index d2e4049..7d1e83e 100644 Binary files a/images/tarots/Malefice_Tarot_Vicaire_600 dpi.webp and b/images/tarots/Malefice_Tarot_Vicaire_600 dpi.webp differ diff --git a/images/tarots/background.webp b/images/tarots/background.webp new file mode 100644 index 0000000..89a2930 Binary files /dev/null and b/images/tarots/background.webp differ diff --git a/modules/malefices-commands.js b/modules/malefices-commands.js index 97abf44..aa05290 100644 --- a/modules/malefices-commands.js +++ b/modules/malefices-commands.js @@ -2,6 +2,7 @@ import { MaleficesUtility } from "./malefices-utility.js"; import { MaleficesRollDialog } from "./malefices-roll-dialog.js"; +import { MaleficesTirageTarotDialog } from "./malefices-tirage-tarot-dialog.js" /* -------------------------------------------- */ export class MaleficesCommands { @@ -9,7 +10,7 @@ export class MaleficesCommands { static init() { if (!game.system.malefices.commands) { 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" }); game.system.malefices.commands = commands; } @@ -100,18 +101,30 @@ export class MaleficesCommands { static _chatAnswer(msg, content) { msg.whisper = [game.user.id]; msg.content = content; - ChatMessage.create(msg); + ChatMessage.create(msg); } /* -------------------------------------------- */ - async poolRoll( msg) { - let rollData = MaleficesUtility.getBasicRollData() - rollData.alias = "Dice Pool Roll", - rollData.mode = "generic" - rollData.title = `Dice Pool Roll`; - - let rollDialog = await MaleficesRollDialog.create( this, rollData); - rollDialog.render( true ); + static async createTirage(msg) { + if (game.user.isGM) { + let tirageData = { + state: 'select-player', + 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 tirageDialog = await MaleficesTirageTarotDialog.create(this, tirageData) + tirageDialog.render(true) + } } } \ No newline at end of file diff --git a/modules/malefices-main.js b/modules/malefices-main.js index 1aea5b5..a70aeed 100644 --- a/modules/malefices-main.js +++ b/modules/malefices-main.js @@ -111,7 +111,7 @@ Hooks.on("chatMessage", (html, content, msg) => { if (content[0] == '/') { let regExp = /(\S+)/g; 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; } } diff --git a/modules/malefices-tirage-tarot-dialog.js b/modules/malefices-tirage-tarot-dialog.js new file mode 100644 index 0000000..37f8b7b --- /dev/null +++ b/modules/malefices-tirage-tarot-dialog.js @@ -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: '', + 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 { + 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) + } + }) + + } +} \ No newline at end of file diff --git a/modules/malefices-utility.js b/modules/malefices-utility.js index 164194c..e3ad792 100644 --- a/modules/malefices-utility.js +++ b/modules/malefices-utility.js @@ -1,5 +1,4 @@ /* -------------------------------------------- */ -import { MaleficesCombat } from "./malefices-combat.js"; import { MaleficesCommands } from "./malefices-commands.js"; @@ -89,6 +88,14 @@ export class MaleficesUtility { } 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}}) + } + } /* -------------------------------------------- */ static async chatListeners(html) { @@ -102,6 +109,11 @@ export class MaleficesUtility { rollData.isReroll = true this.rollMalefices(rollData) }) + html.on("click", '.draw-tarot-card', event => { + let messageId = MaleficesUtility.findChatMessageId(event.currentTarget) + this.drawDeckCard(messageId) + }) + } /* -------------------------------------------- */ @@ -185,21 +197,10 @@ export class MaleficesUtility { /* -------------------------------------------- */ static async onSocketMesssage(msg) { console.log("SOCKET MESSAGE", msg.name) - if (msg.name == "msg_update_roll") { - this.updateRollData(msg.data) - } - 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) + if (msg.name == "msg-draw-card") { + if ( game.user.isGM && game.system.malefices.currentTirage) { + game.system.malefices.currentTirage.addCard(msg.data.msgId) } - this.addItemDropToActor(actor, item) } } @@ -331,11 +332,17 @@ export class MaleficesUtility { switch (rollMode) { case "blindroll": return this.getUsers(user => user.isGM); case "gmroll": return this.getWhisperRecipientsAndGMs(name); + case "useronly": return this.getWhisperRecipientsOnly(name); case "selfroll": return [game.user.id]; } return undefined; } /* -------------------------------------------- */ + static getWhisperRecipientsOnly(name) { + let recep1 = ChatMessage.getWhisperRecipients(name) || []; + return recep1 + } + /* -------------------------------------------- */ static getWhisperRecipientsAndGMs(name) { let recep1 = ChatMessage.getWhisperRecipients(name) || []; return recep1.concat(ChatMessage.getWhisperRecipients('GM')); @@ -369,7 +376,7 @@ export class MaleficesUtility { } /* -------------------------------------------- */ - static createChatMessage(name, rollMode, chatOptions) { + static async createChatMessage(name, rollMode, chatOptions) { switch (rollMode) { case "blindroll": // GM only if (!game.user.isGM) { @@ -387,7 +394,7 @@ export class MaleficesUtility { break; } chatOptions.alias = chatOptions.alias || name; - return ChatMessage.create(chatOptions); + return await ChatMessage.create(chatOptions); } /* -------------------------------------------- */ @@ -413,8 +420,8 @@ export class MaleficesUtility { } /* -------------------------------------------- */ - static createChatWithRollMode(name, chatOptions) { - return this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions) + static async createChatWithRollMode(name, chatOptions) { + return await this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions) } /* -------------------------------------------- */ diff --git a/packs/malefices-tarots.db b/packs/malefices-tarots.db index eec7ac6..655d1dd 100644 --- a/packs/malefices-tarots.db +++ b/packs/malefices-tarots.db @@ -1,22 +1,22 @@ -{"name":"Le Moine","type":"tarot","img":"systems/fvtt-malefices/images/tarots/Malefice_Tarot_Moine_600%20dpi.webp","system":{"tarottype":"metier","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053851,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053846,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053843,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053842,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053852,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053847,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053845,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053852,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053847,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053844,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053844,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053846,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053853,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053849,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053848,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053848,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053847,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053841,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053850,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053845,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053850,"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","isreversed":false,"description":""},"effects":[],"flags":{},"_stats":{"systemId":"fvtt-malefices","systemVersion":"10.0.3","coreVersion":"10.291","createdTime":1675369447354,"modifiedTime":1675372053849,"lastModifiedBy":"R9gIh86vXDB4IFn1"},"folder":null,"sort":0,"ownership":{"default":0,"R9gIh86vXDB4IFn1":3},"_id":"zbGGMEQFdwVdlKAf"} +{"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"} diff --git a/styles/simple.css b/styles/simple.css index 5dca71d..e1eb25d 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1299,3 +1299,14 @@ ul, li { max-width: 16px; max-height: 12px; } +.flip-tarot { + transform: scaleY(-1); +} +.tarot-fixed-width { + width: 140px; + max-width: 140px; +} +.tarot-title { + text-align: center; + font-weight: bold; +} \ No newline at end of file diff --git a/system.json b/system.json index 0fe8df6..90d8700 100644 --- a/system.json +++ b/system.json @@ -64,7 +64,7 @@ ], "title": "Maléfices, le Jeu de Rôle", "url": "https://www.uberwald.me/gitea/public/fvtt-malefices", - "version": "10.0.16", - "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.16.zip", + "version": "10.0.18", + "download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v10.0.18.zip", "background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp" } \ No newline at end of file diff --git a/template.json b/template.json index 339cc55..e527cc0 100644 --- a/template.json +++ b/template.json @@ -110,6 +110,7 @@ }, "tarot": { "tarottype": "", + "isdualside": false, "ispositif": true, "isgm": false, "description": "" diff --git a/templates/chat/display-tarot-card.hbs b/templates/chat/display-tarot-card.hbs new file mode 100644 index 0000000..8fd42f3 --- /dev/null +++ b/templates/chat/display-tarot-card.hbs @@ -0,0 +1,9 @@ + +
+ + {{name}} + {{#if system.isdualside}} + {{#if system.ispositif}}Positif{{else}}Négatif{{/if}} + {{/if}} +
+ diff --git a/templates/chat/request-tarot-card.hbs b/templates/chat/request-tarot-card.hbs new file mode 100644 index 0000000..3e260f0 --- /dev/null +++ b/templates/chat/request-tarot-card.hbs @@ -0,0 +1,4 @@ +
+ +
+ diff --git a/templates/dialogs/tirage-tarot-dialog.hbs b/templates/dialogs/tirage-tarot-dialog.hbs new file mode 100644 index 0000000..ce7473c --- /dev/null +++ b/templates/dialogs/tirage-tarot-dialog.hbs @@ -0,0 +1,72 @@ +
+
+

Joueur : {{user.name}}

+
+ +
+ + {{#if (eq state "select-player")}} +
+ Sélectionnez le joueur pour faire le tirage + +
+ {{/if}} + + {{#if (eq state "attribute-to-actor")}} +
+ Sélectionnez l'acteur pour lui attribuer les tarots + +
+ {{/if}} + +
+

Main du joueur :

+
+ {{#each cards as |card index|}} +
+
+ + {{card.name}} + {{#if card.system.isdualside}} + {{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}} + {{/if}} +
+
+ {{/each}} +
+ +
+

Main secrête :

+
+ {{#each secretCards as |card index|}} +
+
+ + {{card.name}} + {{#if card.system.isdualside}} + {{#if card.system.ispositif}}Positif{{else}}Négatif{{/if}} + {{/if}} +
+
+ {{/each}} +
+ +
+ +
+ +
\ No newline at end of file diff --git a/templates/items/item-tarot-sheet.hbs b/templates/items/item-tarot-sheet.hbs index 88308fa..e225e80 100644 --- a/templates/items/item-tarot-sheet.hbs +++ b/templates/items/item-tarot-sheet.hbs @@ -36,9 +36,15 @@ {{#if isGM}}
  • - - + +
  • + {{#if system.isdualside}} +
  • + + +
  • + {{/if}}