#92 Armes à 2 mains gérées dans le HUD

This commit is contained in:
2021-01-02 00:04:27 +01:00
parent 65d5b1c45e
commit aeb2c43688
5 changed files with 31 additions and 23 deletions

View File

@ -898,11 +898,12 @@ export class RdDUtility {
// Gestion du bouton payer
html.on("click", '#payer-button', event => {
let sumdenier = event.currentTarget.attributes['data-somme-denier'].value;
let jsondata = event.currentTarget.attributes['data-jsondata'].value
let jsondata = event.currentTarget.attributes['data-jsondata']
let objData
if ( jsondata)
objData = JSON.parse(jsondata)
console.log("Demande payr : ", objData);
if ( jsondata ) {
objData = JSON.parse(jsondata.value)
}
console.log("Demande payer : ", objData);
if (game.user.character ) {
game.user.character.payerDenier(sumdenier, objData);
} else {