Confrontation stuff
This commit is contained in:
parent
4058cd530b
commit
dbb22bbeb7
23
lang/en.json
23
lang/en.json
@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
"ACTOR": {
|
"TYPES": {
|
||||||
"TypePersonnage": "PC"
|
"Actor":{
|
||||||
},
|
"Personnage": "PC"
|
||||||
"ITEM": {
|
},
|
||||||
"TypeTrait": "Trait",
|
"Item": {
|
||||||
"TypeWeapon": "Weapon",
|
"Trait": "Trait",
|
||||||
"TypeEquipment": "Equipment"
|
"Weapon": "Weapon",
|
||||||
|
"Equipment": "Equipment"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ECRY": {
|
"ECRY": {
|
||||||
"chat": {
|
"chat": {
|
||||||
@ -78,7 +80,12 @@
|
|||||||
"traitmalus": "Malus traits",
|
"traitmalus": "Malus traits",
|
||||||
"applyideal": "Apply ideal",
|
"applyideal": "Apply ideal",
|
||||||
"applyspleen": "Apply spleen",
|
"applyspleen": "Apply spleen",
|
||||||
"skilltranscendence": "Self Transcendence"
|
"skilltranscendence": "Self Transcendence",
|
||||||
|
"confrontation": "Confrontation",
|
||||||
|
"rollnormal": "Normal (4d6)",
|
||||||
|
"rollspleen": "With Spleen (5d6, worst 4 are kept)",
|
||||||
|
"rollideal": "With Ideal (5d6, best 4 are kept)"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
22
lang/fr.json
22
lang/fr.json
@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
"ACTOR": {
|
"TYPES": {
|
||||||
"TypePersonnage": "PC"
|
"Actor":{
|
||||||
},
|
"Personnage": "PJ"
|
||||||
"ITEM": {
|
},
|
||||||
"TypeTrait": "Trait",
|
"Item": {
|
||||||
"TypeWeapon": "Weapon",
|
"Trait": "Trait",
|
||||||
"TypeEquipment": "Equipment"
|
"Weapon": "Arme",
|
||||||
|
"Equipment": "Equipement"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ECRY": {
|
"ECRY": {
|
||||||
"chat": {
|
"chat": {
|
||||||
@ -78,7 +80,11 @@
|
|||||||
"traitmalus": "Traits malus",
|
"traitmalus": "Traits malus",
|
||||||
"applyideal": "Utiliser l'idéal",
|
"applyideal": "Utiliser l'idéal",
|
||||||
"applyspleen": "Utiliser le spleen",
|
"applyspleen": "Utiliser le spleen",
|
||||||
"skilltranscendence": "Dépassement de soi"
|
"skilltranscendence": "Dépassement de soi",
|
||||||
|
"confrontation": "Confrontation",
|
||||||
|
"rollnormal": "Normal (4d6)",
|
||||||
|
"rollspleen": "Avec le Spleen (5d6, 4 plus bas conservés)",
|
||||||
|
"rollideal": "Avec l'Idéal (5d6, 4 plus haut conservés)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -115,6 +115,12 @@ export class EcrymeActorSheet extends ActorSheet {
|
|||||||
let skillKey = $(event.currentTarget).data("skill-key")
|
let skillKey = $(event.currentTarget).data("skill-key")
|
||||||
this.actor.rollSkill(categKey, skillKey)
|
this.actor.rollSkill(categKey, skillKey)
|
||||||
});
|
});
|
||||||
|
html.find('.roll-skill-confront').click((event) => {
|
||||||
|
let categKey = $(event.currentTarget).data("category-key")
|
||||||
|
let skillKey = $(event.currentTarget).data("skill-key")
|
||||||
|
this.actor.rollSkillConfront(categKey, skillKey)
|
||||||
|
});
|
||||||
|
|
||||||
html.find('.roll-weapon').click((event) => {
|
html.find('.roll-weapon').click((event) => {
|
||||||
const armeId = $(event.currentTarget).data("arme-id")
|
const armeId = $(event.currentTarget).data("arme-id")
|
||||||
this.actor.rollArme(armeId)
|
this.actor.rollArme(armeId)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
import { EcrymeUtility } from "../common/ecryme-utility.js";
|
import { EcrymeUtility } from "../common/ecryme-utility.js";
|
||||||
import { EcrymeRollDialog } from "../dialogs/ecryme-roll-dialog.js";
|
import { EcrymeRollDialog } from "../dialogs/ecryme-roll-dialog.js";
|
||||||
|
import { EcrymeConfrontStartDialog } from "../dialogs/ecryme-confront-start-dialog.js";
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -82,7 +82,7 @@ export class EcrymeActor extends Actor {
|
|||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
getArchetype() {
|
getArchetype() {
|
||||||
let comp = duplicate(this.items.find(item => item.type == 'archetype') || {name: "Pas d'archetype"})
|
let comp = duplicate(this.items.find(item => item.type == 'archetype') || { name: "Pas d'archetype" })
|
||||||
if (comp && comp.system) {
|
if (comp && comp.system) {
|
||||||
comp.tarot = EcrymeUtility.getTarot(comp.system.lametutelaire)
|
comp.tarot = EcrymeUtility.getTarot(comp.system.lametutelaire)
|
||||||
}
|
}
|
||||||
@ -116,9 +116,9 @@ export class EcrymeActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
prepareSkills() {
|
prepareSkills() {
|
||||||
let skills = duplicate(this.system.skills)
|
let skills = duplicate(this.system.skills)
|
||||||
for (let categKey in skills) {
|
for (let categKey in skills) {
|
||||||
let category = skills[categKey]
|
let category = skills[categKey]
|
||||||
for (let skillKey in category.skilllist) {
|
for (let skillKey in category.skilllist) {
|
||||||
let skill = category.skilllist[skillKey]
|
let skill = category.skilllist[skillKey]
|
||||||
skill.spec = this.getSpecializations(skillKey)
|
skill.spec = this.getSpecializations(skillKey)
|
||||||
}
|
}
|
||||||
@ -221,13 +221,13 @@ export class EcrymeActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
clearInitiative(){
|
clearInitiative() {
|
||||||
this.getFlag("world", "initiative", -1)
|
this.getFlag("world", "initiative", -1)
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getInitiativeScore(combatId, combatantId) {
|
getInitiativeScore(combatId, combatantId) {
|
||||||
let init = Math.floor( (this.system.attributs.physique.value+this.system.attributs.habilite.value) / 2)
|
let init = Math.floor((this.system.attributs.physique.value + this.system.attributs.habilite.value) / 2)
|
||||||
let subvalue = new Roll("1d20").roll({async: false})
|
let subvalue = new Roll("1d20").roll({ async: false })
|
||||||
return init + (subvalue.total / 100)
|
return init + (subvalue.total / 100)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ export class EcrymeActor extends Actor {
|
|||||||
spentSkillTranscendence(skill, value) {
|
spentSkillTranscendence(skill, value) {
|
||||||
let newValue = this.system.skills[skill.categKey].skilllist[skill.skillKey].value - value
|
let newValue = this.system.skills[skill.categKey].skilllist[skill.skillKey].value - value
|
||||||
newValue = Math.max(0, newValue)
|
newValue = Math.max(0, newValue)
|
||||||
this.update( { [`system.skills.${skill.categKey}.skilllist.${skill.skillKey}.value`]: newValue})
|
this.update({ [`system.skills.${skill.categKey}.skilllist.${skill.skillKey}.value`]: newValue })
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -298,13 +298,13 @@ export class EcrymeActor extends Actor {
|
|||||||
rollData.isReroll = false
|
rollData.isReroll = false
|
||||||
rollData.traits = this.getRollTraits()
|
rollData.traits = this.getRollTraits()
|
||||||
rollData.spleen = this.getSpleen()
|
rollData.spleen = this.getSpleen()
|
||||||
rollData.ideal = this.getIdeal()
|
rollData.ideal = this.getIdeal()
|
||||||
|
|
||||||
return rollData
|
return rollData
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollSkill(categKey, skillKey) {
|
getCommonSkill(categKey, skillKey) {
|
||||||
let skill = this.system.skills[categKey].skilllist[skillKey]
|
let skill = this.system.skills[categKey].skilllist[skillKey]
|
||||||
let rollData = this.getCommonRollData()
|
let rollData = this.getCommonRollData()
|
||||||
skill = duplicate(skill)
|
skill = duplicate(skill)
|
||||||
@ -312,12 +312,29 @@ export class EcrymeActor extends Actor {
|
|||||||
skill.skillKey = skillKey
|
skill.skillKey = skillKey
|
||||||
skill.spec = this.getSpecializations(skillKey)
|
skill.spec = this.getSpecializations(skillKey)
|
||||||
rollData.skill = skill
|
rollData.skill = skill
|
||||||
rollData.mode = "skill"
|
|
||||||
rollData.title = game.i18n.localize(skill.name)
|
|
||||||
rollData.img = skill.img
|
rollData.img = skill.img
|
||||||
|
return rollData
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
rollSkill(categKey, skillKey) {
|
||||||
|
let rollData = this.getCommonSkill(categKey, skillKey)
|
||||||
|
rollData.mode = "skill"
|
||||||
|
rollData.title = game.i18n.localize(rollData.skill.name)
|
||||||
this.startRoll(rollData)
|
this.startRoll(rollData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async rollSkillConfront(categKey, skillKey) {
|
||||||
|
let rollData = this.getCommonSkill(categKey, skillKey)
|
||||||
|
rollData.mode = "skill"
|
||||||
|
rollData.title = game.i18n.localize("ECRY.ui.confrontation") + " : " + game.i18n.localize(rollData.skill.name)
|
||||||
|
rollData.executionDices = []
|
||||||
|
rollData.preservationDices = []
|
||||||
|
let confrontStartDialog = await EcrymeConfrontStartDialog.create(this, rollData)
|
||||||
|
confrontStartDialog.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
rollWeapon(weaponId) {
|
rollWeapon(weaponId) {
|
||||||
let weapon = this.items.get(weaponId)
|
let weapon = this.items.get(weaponId)
|
||||||
@ -325,7 +342,7 @@ export class EcrymeActor extends Actor {
|
|||||||
weapon = duplicate(weapon)
|
weapon = duplicate(weapon)
|
||||||
let rollData = this.getCommonRollData()
|
let rollData = this.getCommonRollData()
|
||||||
if (weapon.system.armetype == "mainsnues" || weapon.system.armetype == "epee") {
|
if (weapon.system.armetype == "mainsnues" || weapon.system.armetype == "epee") {
|
||||||
rollData.attr = { label: "(Physique+Habilité)/2", value: Math.floor( (this.getPhysiqueMalus()+this.system.attributs.physique.value+this.system.attributs.habilite.value) / 2) }
|
rollData.attr = { label: "(Physique+Habilité)/2", value: Math.floor((this.getPhysiqueMalus() + this.system.attributs.physique.value + this.system.attributs.habilite.value) / 2) }
|
||||||
} else {
|
} else {
|
||||||
rollData.attr = duplicate(this.system.attributs.habilite)
|
rollData.attr = duplicate(this.system.attributs.habilite)
|
||||||
}
|
}
|
||||||
@ -338,10 +355,9 @@ export class EcrymeActor extends Actor {
|
|||||||
ui.notifications.warn("Impossible de trouver l'arme concernée ")
|
ui.notifications.warn("Impossible de trouver l'arme concernée ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async startRoll(rollData) {
|
async startRoll(rollData) {
|
||||||
console.log("ROLLDATA", rollData)
|
|
||||||
let rollDialog = await EcrymeRollDialog.create(this, rollData)
|
let rollDialog = await EcrymeRollDialog.create(this, rollData)
|
||||||
rollDialog.render(true)
|
rollDialog.render(true)
|
||||||
}
|
}
|
||||||
|
@ -100,24 +100,24 @@ export class EcrymeUtility {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static chatMenuManager(html, options) {
|
static chatMenuManager(html, options) {
|
||||||
let canTranscendRoll = []
|
let canTranscendRoll = []
|
||||||
for(let i=1; i<=10; i++ ) {
|
for (let i = 1; i <= 10; i++) {
|
||||||
canTranscendRoll[i] = function (li) {
|
canTranscendRoll[i] = function (li) {
|
||||||
let message = game.messages.get(li.attr("data-message-id"))
|
let message = game.messages.get(li.attr("data-message-id"))
|
||||||
let rollData = message.getFlag("world", "rolldata")
|
let rollData = message.getFlag("world", "rolldata")
|
||||||
//console.log(">>>>>>>>>>>>>>>>>>>>>>>>>> Menu !!!!", rollData)
|
//console.log(">>>>>>>>>>>>>>>>>>>>>>>>>> Menu !!!!", rollData)
|
||||||
if (rollData.skill && i <= rollData.skill.value && !rollData.transcendUsed && rollData.spec ) {
|
if (rollData.skill && i <= rollData.skill.value && !rollData.transcendUsed && rollData.spec) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
options.push({
|
options.push({
|
||||||
name: game.i18.localize("ECRY.chat.spectranscend") + i,
|
name: game.i18n.localize("ECRY.chat.spectranscend") + i,
|
||||||
icon: '<i class="fas fa-plus-square"></i>',
|
icon: '<i class="fas fa-plus-square"></i>',
|
||||||
condition: canTranscendRoll[i],
|
condition: canTranscendRoll[i],
|
||||||
callback: li => {
|
callback: li => {
|
||||||
let message = game.messages.get(li.attr("data-message-id"))
|
let message = game.messages.get(li.attr("data-message-id"))
|
||||||
let rollData = message.getFlag("world", "rolldata")
|
let rollData = message.getFlag("world", "rolldata")
|
||||||
EcrymeUtility.transcendFromSpec(rollData, i)
|
EcrymeUtility.transcendFromSpec(rollData, i)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -149,7 +149,8 @@ export class EcrymeUtility {
|
|||||||
'systems/fvtt-ecryme/templates/actors/editor-notes-gm.hbs',
|
'systems/fvtt-ecryme/templates/actors/editor-notes-gm.hbs',
|
||||||
'systems/fvtt-ecryme/templates/items/partial-item-nav.hbs',
|
'systems/fvtt-ecryme/templates/items/partial-item-nav.hbs',
|
||||||
'systems/fvtt-ecryme/templates/items/partial-item-equipment.hbs',
|
'systems/fvtt-ecryme/templates/items/partial-item-equipment.hbs',
|
||||||
'systems/fvtt-ecryme/templates/items/partial-item-description.hbs'
|
'systems/fvtt-ecryme/templates/items/partial-item-description.hbs',
|
||||||
|
'systems/fvtt-ecryme/templates/dialogs/partial-common-roll-dialog.hbs'
|
||||||
]
|
]
|
||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
@ -303,22 +304,14 @@ export class EcrymeUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async rollEcryme(rollData) {
|
static computeRollFormula(rollData, isConfrontation = false) {
|
||||||
|
|
||||||
let actor = game.actors.get(rollData.actorId)
|
|
||||||
// Fix difficulty
|
|
||||||
if (!rollData.difficulty || rollData.difficulty == "-") {
|
|
||||||
rollData.difficulty = 0
|
|
||||||
}
|
|
||||||
rollData.difficulty = Number(rollData.difficulty)
|
|
||||||
|
|
||||||
// Build the dice formula
|
// Build the dice formula
|
||||||
let diceFormula = "2d6"
|
let diceFormula = (isConfrontation) ? "4d6" : "2d6"
|
||||||
if (rollData.useIdeal) {
|
if (rollData.useIdeal) {
|
||||||
diceFormula = "3d6kh2"
|
diceFormula = (isConfrontation) ? "5d6kh2" : "3d6kh2"
|
||||||
}
|
}
|
||||||
if (rollData.useSpleen) {
|
if (rollData.useSpleen) {
|
||||||
diceFormula = "3d6kl2"
|
diceFormula = (isConfrontation) ? "5d6kl2" : "3d6kl2"
|
||||||
}
|
}
|
||||||
if (rollData.skill) {
|
if (rollData.skill) {
|
||||||
diceFormula += "+" + rollData.skill.value
|
diceFormula += "+" + rollData.skill.value
|
||||||
@ -352,6 +345,20 @@ export class EcrymeUtility {
|
|||||||
diceFormula += "+" + rollData.bonusMalusTraits
|
diceFormula += "+" + rollData.bonusMalusTraits
|
||||||
diceFormula += "+" + rollData.bonusMalusPerso
|
diceFormula += "+" + rollData.bonusMalusPerso
|
||||||
rollData.diceFormula = diceFormula
|
rollData.diceFormula = diceFormula
|
||||||
|
return diceFormula
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static async rollEcryme(rollData) {
|
||||||
|
|
||||||
|
let actor = game.actors.get(rollData.actorId)
|
||||||
|
// Fix difficulty
|
||||||
|
if (!rollData.difficulty || rollData.difficulty == "-") {
|
||||||
|
rollData.difficulty = 0
|
||||||
|
}
|
||||||
|
rollData.difficulty = Number(rollData.difficulty)
|
||||||
|
|
||||||
|
let diceFormula = this.computeRollFormula(rollData)
|
||||||
|
|
||||||
// Performs roll
|
// Performs roll
|
||||||
let myRoll = new Roll(diceFormula).roll({ async: false })
|
let myRoll = new Roll(diceFormula).roll({ async: false })
|
||||||
@ -380,14 +387,14 @@ export class EcrymeUtility {
|
|||||||
rollData.transcendUsed = true
|
rollData.transcendUsed = true
|
||||||
this.computeResults(rollData)
|
this.computeResults(rollData)
|
||||||
//console.log("Adding spec", value, rollData.total)
|
//console.log("Adding spec", value, rollData.total)
|
||||||
|
|
||||||
let actor = game.actors.get(rollData.actorId)
|
let actor = game.actors.get(rollData.actorId)
|
||||||
actor.spentSkillTranscendence(rollData.skill, value)
|
actor.spentSkillTranscendence(rollData.skill, value)
|
||||||
|
|
||||||
let msg = await this.createChatWithRollMode(rollData.alias, {
|
let msg = await this.createChatWithRollMode(rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-ecryme/templates/chat/chat-generic-result.hbs`, rollData)
|
content: await renderTemplate(`systems/fvtt-ecryme/templates/chat/chat-generic-result.hbs`, rollData)
|
||||||
})
|
})
|
||||||
msg.setFlag("world", "rolldata", rollData)
|
msg.setFlag("world", "rolldata", rollData)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
90
modules/dialogs/ecryme-confront-dialog.js
Normal file
90
modules/dialogs/ecryme-confront-dialog.js
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
import { EcrymeUtility } from "../common/ecryme-utility.js";
|
||||||
|
import { EcrymeRollDialog } from "./ecryme-roll-dialog.js";
|
||||||
|
|
||||||
|
export class EcrymeConfrontDialog extends Dialog {
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static async create(actor, rollData) {
|
||||||
|
|
||||||
|
let options = mergeObject(super.defaultOptions, {
|
||||||
|
classes: ["fvtt-ecryme ecryme-confrontation-dialog"],
|
||||||
|
dragDrop: [{ dragSelector: ".confront-dice-container", dropSelector: null }],
|
||||||
|
width: 540, height: 'fit-content', 'z-index': 99999
|
||||||
|
});
|
||||||
|
|
||||||
|
let html = await renderTemplate('systems/fvtt-ecryme/templates/dialogs/confront-dialog.hbs', rollData);
|
||||||
|
return new EcrymeConfrontDialog(actor, rollData, html, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
constructor(actor, rollData, html, options, close = undefined) {
|
||||||
|
let conf = {
|
||||||
|
title: game.i18n.localize("ECRY.ui.confront"),
|
||||||
|
content: html,
|
||||||
|
buttons: {
|
||||||
|
rollNormal: {
|
||||||
|
icon: '<i class="fas fa-check"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.rollnormal"),
|
||||||
|
callback: () => { this.rollConfront("4d6") }
|
||||||
|
},
|
||||||
|
cancel: {
|
||||||
|
icon: '<i class="fas fa-times"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.cancel"),
|
||||||
|
callback: () => { this.close() }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
close: close
|
||||||
|
}
|
||||||
|
|
||||||
|
super(conf, options);
|
||||||
|
|
||||||
|
this.actor = actor;
|
||||||
|
this.rollData = rollData;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async roll() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ------------------ -------------------------- */
|
||||||
|
_onDragStart(event) {
|
||||||
|
super._onDragStart(event)
|
||||||
|
const diceData = {
|
||||||
|
diceIndex : $(event.srcElement).data("dice-idx"),
|
||||||
|
diceValue : $(event.srcElement).data("dice-value"),
|
||||||
|
}
|
||||||
|
event.dataTransfer.setData("text/plain", JSON.stringify( diceData ));
|
||||||
|
console.log(">>>>> DRAG START!!!!", event)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ------------------ -------------------------- */
|
||||||
|
async refreshDialog() {
|
||||||
|
const content = await renderTemplate("systems/fvtt-ecryme/templates/dialogs/confront-dialog.hbs", this.rollData)
|
||||||
|
this.data.content = content
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
_onDrop(event) {
|
||||||
|
let dataJSON = event.dataTransfer.getData('text/plain')
|
||||||
|
let data = JSON.parse(dataJSON)
|
||||||
|
let idx = Number(data.diceIndex)
|
||||||
|
console.log("DATA", data, event, event.srcElement.className)
|
||||||
|
if ( event.srcElement.className.includes("execution")) {
|
||||||
|
this.rollData.availableDices[idx].location = "execution"
|
||||||
|
}
|
||||||
|
if ( event.srcElement.className.includes("preservation")) {
|
||||||
|
this.rollData.availableDices[idx].location = "preservation"
|
||||||
|
}
|
||||||
|
if ( event.srcElement.className.includes("dice-list")) {
|
||||||
|
this.rollData.availableDices[idx].location = "mainpool"
|
||||||
|
}
|
||||||
|
this.refreshDialog()
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
74
modules/dialogs/ecryme-confront-start-dialog.js
Normal file
74
modules/dialogs/ecryme-confront-start-dialog.js
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
import { EcrymeUtility } from "../common/ecryme-utility.js";
|
||||||
|
import {EcrymeConfrontDialog } from "./ecryme-confront-dialog.js";
|
||||||
|
|
||||||
|
export class EcrymeConfrontStartDialog extends Dialog {
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static async create(actor, rollData) {
|
||||||
|
|
||||||
|
let options = { classes: ["fvtt-ecryme ecryme-confront-dialog"], width: 540, height: 'fit-content', 'z-index': 99999 }
|
||||||
|
let html = await renderTemplate('systems/fvtt-ecryme/templates/dialogs/confront-start-dialog.hbs', rollData);
|
||||||
|
return new EcrymeConfrontStartDialog(actor, rollData, html, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
constructor(actor, rollData, html, options, close = undefined) {
|
||||||
|
let conf = {
|
||||||
|
title: game.i18n.localize("ECRY.ui.confront"),
|
||||||
|
content: html,
|
||||||
|
buttons: {
|
||||||
|
rollNormal: {
|
||||||
|
icon: '<i class="fas fa-check"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.rollnormal"),
|
||||||
|
callback: () => { this.rollConfront("4d6") }
|
||||||
|
},
|
||||||
|
rollSpleen: {
|
||||||
|
icon: '<i class="fas fa-check"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.rollspleen"),
|
||||||
|
callback: () => { this.rollConfront("5d6kl4") }
|
||||||
|
},
|
||||||
|
rollIdeal: {
|
||||||
|
icon: '<i class="fas fa-check"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.rollideal"),
|
||||||
|
callback: () => { this.rollConfront("5d6kh4") }
|
||||||
|
},
|
||||||
|
cancel: {
|
||||||
|
icon: '<i class="fas fa-times"></i>',
|
||||||
|
label: game.i18n.localize("ECRY.ui.cancel"),
|
||||||
|
callback: () => { this.close() }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
close: close
|
||||||
|
}
|
||||||
|
|
||||||
|
super(conf, options);
|
||||||
|
|
||||||
|
this.actor = actor;
|
||||||
|
this.rollData = rollData;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
async rollConfront( diceFormula ) {
|
||||||
|
// Do the initial roll
|
||||||
|
let myRoll = new Roll(diceFormula).roll({async: false})
|
||||||
|
await EcrymeUtility.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
|
||||||
|
// Fill the available dice table
|
||||||
|
let rollData = this.rollData
|
||||||
|
rollData.roll = duplicate(myRoll)
|
||||||
|
rollData.availableDices = []
|
||||||
|
for (let result of myRoll.terms[0].results) {
|
||||||
|
if ( !result.discarded) {
|
||||||
|
let resultDup = duplicate(result)
|
||||||
|
resultDup.location = "mainpool"
|
||||||
|
rollData.availableDices.push(resultDup)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let confrontDialog = await EcrymeConfrontDialog.create(this.actor, rollData)
|
||||||
|
confrontDialog.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html);
|
||||||
|
}
|
||||||
|
}
|
@ -12,7 +12,6 @@ export class EcrymeRollDialog extends Dialog {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
constructor(actor, rollData, html, options, close = undefined) {
|
constructor(actor, rollData, html, options, close = undefined) {
|
||||||
let isCard = rollData.attr && rollData.attr.iscard
|
|
||||||
let conf = {
|
let conf = {
|
||||||
title: game.i18n.localize("ECRY.ui.rolltitle"),
|
title: game.i18n.localize("ECRY.ui.rolltitle"),
|
||||||
content: html,
|
content: html,
|
||||||
|
@ -8,7 +8,6 @@ export class EcrymeItemSheet extends ItemSheet {
|
|||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
|
|
||||||
return mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["fvtt-ecryme", "sheet", "item"],
|
classes: ["fvtt-ecryme", "sheet", "item"],
|
||||||
template: "systems/fvtt-ecryme/templates/item-sheet.hbs",
|
template: "systems/fvtt-ecryme/templates/item-sheet.hbs",
|
||||||
|
@ -1325,4 +1325,31 @@ ul, li {
|
|||||||
.skill-roll-dialog div {
|
.skill-roll-dialog div {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.confront-dice {
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
.confront-dice-container {
|
||||||
|
position: relative;
|
||||||
|
max-width: 128px;
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: center;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.confront-dice-centered {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
font-size: 2rem;
|
||||||
|
color: darkgreen;
|
||||||
|
font-family: MailartRubberstamp;
|
||||||
|
transform: translate(-50%, -80%);
|
||||||
|
}
|
||||||
|
.confront-area {
|
||||||
|
min-height: 96px;
|
||||||
|
border-width: 2px;
|
||||||
|
border-color: #000000;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 2px ridge #443307;
|
||||||
|
}
|
||||||
|
@ -1305,4 +1305,31 @@ ul, li {
|
|||||||
.skill-roll-dialog div {
|
.skill-roll-dialog div {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.confront-dice {
|
||||||
|
border-width: 0px;
|
||||||
|
}
|
||||||
|
.confront-dice-container {
|
||||||
|
position: relative;
|
||||||
|
max-width: 128px;
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: center;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
.confront-dice-centered {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
font-size: 2rem;
|
||||||
|
color: darkgreen;
|
||||||
|
font-family: MailartRubberstamp;
|
||||||
|
transform: translate(-50%, -80%);
|
||||||
|
}
|
||||||
|
.confront-area {
|
||||||
|
min-height: 96px;
|
||||||
|
border-width: 2px;
|
||||||
|
border-color: #000000;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 2px ridge #443307;
|
||||||
|
}
|
||||||
|
@ -75,6 +75,9 @@
|
|||||||
{{#each category.skilllist as |skill skillkey|}}
|
{{#each category.skilllist as |skill skillkey|}}
|
||||||
<li class="item flexrow list-item">
|
<li class="item flexrow list-item">
|
||||||
<span class="item-name-label-long">
|
<span class="item-name-label-long">
|
||||||
|
<a class="roll-skill-confront" data-category-key="{{categkey}}" data-skill-key="{{skillkey}}">
|
||||||
|
<i class="fa-regular fa-swords"></i>
|
||||||
|
</a>
|
||||||
<a class="roll-skill" data-category-key="{{categkey}}" data-skill-key="{{skillkey}}">
|
<a class="roll-skill" data-category-key="{{categkey}}" data-skill-key="{{skillkey}}">
|
||||||
<i class="fa-solid fa-dice-d6"></i>
|
<i class="fa-solid fa-dice-d6"></i>
|
||||||
{{localize skill.name}}
|
{{localize skill.name}}
|
||||||
|
58
templates/dialogs/confront-dialog.hbs
Normal file
58
templates/dialogs/confront-dialog.hbs
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<form class="confrontation-roll-dialog">
|
||||||
|
<header class="roll-dialog-header">
|
||||||
|
{{#if img}}
|
||||||
|
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||||
|
{{/if}}
|
||||||
|
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
|
||||||
|
<div class="flexrow confront-area confront-execution-area" >
|
||||||
|
{{#each availableDices as |dice idx|}}
|
||||||
|
{{#if (eq dice.location "execution")}}
|
||||||
|
<div class="confront-dice-container" >
|
||||||
|
<span draggable="true" data-dice-idx={{idx}} data-dice-value="{{dice.result}}">
|
||||||
|
<img class="confront-dice" src="icons/svg/d6-grey.svg">
|
||||||
|
<label class="confront-dice-centered">{{dice.result}}</label>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow confront-area confront-preservation-area" >
|
||||||
|
{{#each availableDices as |dice idx|}}
|
||||||
|
{{#if (eq dice.location "preservation")}}
|
||||||
|
<div class="confront-dice-container" >
|
||||||
|
<span draggable="true" data-dice-idx={{idx}} data-dice-value="{{dice.result}}">
|
||||||
|
<img class="confront-dice" src="icons/svg/d6-grey.svg">
|
||||||
|
<label class="confront-dice-centered">{{dice.result}}</label>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow confront-area confrontation-dice-list">
|
||||||
|
{{#each availableDices as |dice idx|}}
|
||||||
|
{{#if (eq dice.location "mainpool")}}
|
||||||
|
<div class="confront-dice-container" >
|
||||||
|
<span draggable="true" data-dice-idx={{idx}} data-dice-value="{{dice.result}}">
|
||||||
|
<img class="confront-dice" src="icons/svg/d6-grey.svg">
|
||||||
|
<label class="confront-dice-centered">{{dice.result}}</label>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{> systems/fvtt-ecryme/templates/dialogs/partial-common-roll-dialog.hbs}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
13
templates/dialogs/confront-start-dialog.hbs
Normal file
13
templates/dialogs/confront-start-dialog.hbs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<form class="confrontation-roll-dialog">
|
||||||
|
<header class="roll-dialog-header">
|
||||||
|
{{#if img}}
|
||||||
|
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||||
|
{{/if}}
|
||||||
|
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="flexcol">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
@ -1,45 +0,0 @@
|
|||||||
<form class="skill-roll-dialog">
|
|
||||||
<header class="roll-dialog-header">
|
|
||||||
{{#if img}}
|
|
||||||
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
|
|
||||||
{{/if}}
|
|
||||||
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="flexcol">
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{attr.label}} : </span>
|
|
||||||
<span class="roll-dialog-label">
|
|
||||||
{{attr.value}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">Degré de la confrontation : </span>
|
|
||||||
<select id="confrontationDegre" name="confrontationDegre">
|
|
||||||
{{#select confrontationDegre}}
|
|
||||||
<option value="0">0</option>
|
|
||||||
<option value="1">1</option>
|
|
||||||
<option value="2">2</option>
|
|
||||||
<option value="3">3</option>
|
|
||||||
<option value="4">4</option>
|
|
||||||
<option value="5">5</option>
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">Modificateur de confrontation : </span>
|
|
||||||
<select id="confrontationModif" name="confrontationModif">
|
|
||||||
{{#select confrontationModif}}
|
|
||||||
<option value="-1">-1</option>
|
|
||||||
<option value="0">0</option>
|
|
||||||
<option value="1">+1</option>
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
78
templates/dialogs/partial-common-roll-dialog.hbs
Normal file
78
templates/dialogs/partial-common-roll-dialog.hbs
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
{{#if skill}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize skill.name}} : </span>
|
||||||
|
<span class="roll-dialog-label">
|
||||||
|
{{skill.value}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.skilltranscendence"}} : </span>
|
||||||
|
<select class="" id="roll-select-transcendence" data-type="Number">
|
||||||
|
{{#select skillTranscendence}}
|
||||||
|
{{#for 0 skill.value 1}}
|
||||||
|
<option value="{{this}}">{{this}}</option>
|
||||||
|
{{/for}}
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.spec"}} : </span>
|
||||||
|
<select class="" id="roll-specialization" data-type="String" multiple>
|
||||||
|
{{#each skill.spec as | spec idx|}}
|
||||||
|
<option value="{{spec._id}}">{{spec.name}}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{#if spleen}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.applyspleen"}} {{spleen.name}}</span>
|
||||||
|
<input type="checkbox" class="item-field-label-short" id="roll-use-spleen" {{checked useSpleen}} />
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if ideal}}
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.applyideal"}} {{ideal.name}}</span>
|
||||||
|
<input type="checkbox" class="item-field-label-short" id="roll-use-ideal" {{checked useIdeal}} />
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.traitbonus"}} : </span>
|
||||||
|
<select class="" id="roll-trait-bonus" data-type="String" multiple>
|
||||||
|
{{#each traits as | trait idx|}}
|
||||||
|
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">{{localize "ECRY.ui.traitmalus"}} : </span>
|
||||||
|
<select class="" id="roll-trait-malus" data-type="String" multiple>
|
||||||
|
{{#each traits as | trait idx|}}
|
||||||
|
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="flexrow">
|
||||||
|
<span class="roll-dialog-label">Bonus/Malus : </span>
|
||||||
|
<select id="bonusMalusPerso" name="bonusMalusPerso">
|
||||||
|
{{#select bonusMalusPerso}}
|
||||||
|
<option value="-3">-3</option>
|
||||||
|
<option value="-2">-2</option>
|
||||||
|
<option value="-1">-1</option>
|
||||||
|
<option value="0">0</option>
|
||||||
|
<option value="1">+1</option>
|
||||||
|
<option value="2">+2</option>
|
||||||
|
<option value="3">+3</option>
|
||||||
|
{{/select}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
@ -8,83 +8,7 @@
|
|||||||
|
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
|
|
||||||
{{#if skill}}
|
{{> systems/fvtt-ecryme/templates/dialogs/partial-common-roll-dialog.hbs}}
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize skill.name}} : </span>
|
|
||||||
<span class="roll-dialog-label">
|
|
||||||
{{skill.value}}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.skilltranscendence"}} : </span>
|
|
||||||
<select class="" id="roll-select-transcendence" data-type="Number">
|
|
||||||
{{#select skillTranscendence}}
|
|
||||||
{{#for 0 skill.value 1}}
|
|
||||||
<option value="{{this}}">{{this}}</option>
|
|
||||||
{{/for}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.spec"}} : </span>
|
|
||||||
<select class="" id="roll-specialization" data-type="String" multiple>
|
|
||||||
{{#each skill.spec as | spec idx|}}
|
|
||||||
<option value="{{spec._id}}">{{spec.name}}</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{#if spleen}}
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.applyspleen"}} {{spleen.name}}</span>
|
|
||||||
<input type="checkbox" class="item-field-label-short" id="roll-use-spleen" {{checked useSpleen}} />
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if ideal}}
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.applyideal"}} {{ideal.name}}</span>
|
|
||||||
<input type="checkbox" class="item-field-label-short" id="roll-use-ideal" {{checked useIdeal}} />
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitbonus"}} : </span>
|
|
||||||
<select class="" id="roll-trait-bonus" data-type="String" multiple>
|
|
||||||
{{#each traits as | trait idx|}}
|
|
||||||
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitmalus"}} : </span>
|
|
||||||
<select class="" id="roll-trait-malus" data-type="String" multiple>
|
|
||||||
{{#each traits as | trait idx|}}
|
|
||||||
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="roll-dialog-label">Bonus/Malus : </span>
|
|
||||||
<select id="bonusMalusPerso" name="bonusMalusPerso">
|
|
||||||
{{#select bonusMalusPerso}}
|
|
||||||
<option value="-3">-3</option>
|
|
||||||
<option value="-2">-2</option>
|
|
||||||
<option value="-1">-1</option>
|
|
||||||
<option value="0">0</option>
|
|
||||||
<option value="1">+1</option>
|
|
||||||
<option value="2">+2</option>
|
|
||||||
<option value="3">+3</option>
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<span class="roll-dialog-label">Difficulté : </span>
|
<span class="roll-dialog-label">Difficulté : </span>
|
||||||
|
Loading…
Reference in New Issue
Block a user