diff --git a/module/controllers/bol-rolls.js b/module/controllers/bol-rolls.js index d3454c5..d806ee0 100644 --- a/module/controllers/bol-rolls.js +++ b/module/controllers/bol-rolls.js @@ -123,11 +123,10 @@ export class BoLRoll { attrValue: actor.data.data.attributes.mind.value, aptValue: 0, careerBonus: actor.getAlchemistBonus(), - pcCost: alchemyData.properties.pccost, - pcCostCurrent: alchemyData.properties.pccurrent, - mod: alchemyData.properties.difficulty, + pcCost: Number(alchemyData.properties.pccost), + pcCostCurrent: Number(alchemyData.properties.pccurrent), + mod: Number(alchemyData.properties.difficulty), label: alchemy.name, - adv: "2", description: actor.name + " - " + game.i18n.localize('BOL.ui.makeAlchemy'), } console.log("ALCHEMY!", alchemyDef); @@ -156,12 +155,11 @@ export class BoLRoll { attribute: actor.data.data.attributes.mind, attrValue: actor.data.data.attributes.mind.value, aptValue: 0, - ppCurrent: actor.data.data.resources.power.value, + ppCurrent: Number(actor.data.data.resources.power.value), careerBonus: actor.getSorcererBonus(), - ppCost: spell.data.data.properties.ppcost, - mod: spellData.properties.difficulty, + ppCost: Number(spell.data.data.properties.ppcost), + mod: Number(spellData.properties.difficulty), label: spell.name, - adv: "2", description: actor.name + " - " + game.i18n.localize('BOL.ui.focusSpell'), } console.log("SPELL!", spellDef); diff --git a/packs/spells.db b/packs/spells.db new file mode 100644 index 0000000..2a0845a --- /dev/null +++ b/packs/spells.db @@ -0,0 +1,4 @@ +{"_id":"2svd3uio8Hp4e5Wy","name":"Javelot de Methyn Sarr","type":"item","img":"icons/magic/symbols/runes-triangle-blue.webp","data":{"category":"spell","subtype":"armor","description":"
Description
\nPermet de projeter un javelot de flammes magiques sur la cible.
\nEffet
\nLe sorcier réalise un test de tir classique. En cas de réussite, le javelot inflige d6B points de dégâts. Si le résultat du dé de dégât est un 6, la cible s’enflamme.
","properties":{"ranged":false,"melee":false,"spell":false,"protection":false,"weapon":false,"armor":false,"helm":false,"shield":false,"equipable":false,"consumable":false,"magical":false,"2H":false,"reloadable":false,"bow":false,"crossbow":false,"throwing":false,"stackable":false,"circle":1,"difficulty":"-1","ppcost":5,"duration":"Instantanée","nbmandatoryconditions":2,"nboptionnalconditions":2,"spellkeep":false,"concentrate":false,"mandatoryconditions":{"0":"Ligne de Vue","1":"Ostentation","2":"Avoir une arme à disposition"},"optionnalconditions":{"0":"Objet spécial : une pincée de souffre.","1":"Posséder une lance ou un javelot.","2":"Etre Druide de Zaggath"}},"quantity":1,"weight":0,"price":0,"worn":false},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.2cKoUTmP4K04UjN5"}}} +{"name":"Mauvais Oeil","type":"item","img":"icons/magic/symbols/runes-triangle-blue.webp","data":{"category":"spell","subtype":"armor","description":"Description
\nPermet d’infliger à la cible une malédiction qui affecte sa capacité d’agir.
\nEffet
\nLa victime reçoit 1 dé malus sur tous ses jets d’action pendant la durée du sortilège. La difficulté est modifiée par l'Esprit de la cible.
","properties":{"ranged":false,"melee":false,"spell":false,"protection":false,"weapon":false,"armor":false,"helm":false,"shield":false,"equipable":false,"consumable":false,"magical":false,"2H":false,"reloadable":false,"bow":false,"crossbow":false,"throwing":false,"stackable":false,"circle":1,"difficulty":"-1","ppcost":5,"duration":"d6 rounds","nbmandatoryconditions":2,"nboptionnalconditions":2,"spellkeep":false,"concentrate":false,"mandatoryconditions":{"0":"Ligne de Vue","1":"Lancer une imprécation audible à la cible (ex : Toi le Valgardien, sois maudit par les Dieux Sombres !).","2":"Avoir une arme à disposition"},"optionnalconditions":{"0":"Blessures (-d3 points de vitalité)","1":"Temps d'incantation (d6 x 30 minutes)","2":"Etre Druide de Zaggath"}},"quantity":1,"weight":0,"price":0,"worn":false},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.2cKoUTmP4K04UjN5"}},"_id":"ry2zrFXRMS4xdJBq"} +{"name":"Arme Démoniaque","type":"item","img":"icons/magic/symbols/runes-triangle-blue.webp","data":{"category":"spell","subtype":"armor","description":"Description
\nPermet d’animer une arme de corps à corps qui s’attaque aux ennemis du sorcier en obéissant à ses injonctions mentales.
\nEffet
\nLes jets d’attaque et de dégâts de l’arme sont réalisés avec l’esprit du sorcier et non son agilité et sa vigueur.
","properties":{"ranged":false,"melee":false,"spell":false,"protection":false,"weapon":false,"armor":false,"helm":false,"shield":false,"equipable":false,"consumable":false,"magical":false,"2H":false,"reloadable":false,"bow":false,"crossbow":false,"throwing":false,"stackable":false,"circle":1,"difficulty":"-1","ppcost":5,"duration":"1 scène","nbmandatoryconditions":3,"nboptionnalconditions":2,"spellkeep":false,"concentrate":false,"mandatoryconditions":{"0":"Ligne de Vue","1":"Ostentation","2":"Avoir une arme à disposition"},"optionnalconditions":{"0":"Objet spécial : Grimoire","1":"Blessures (-1d3 Points de Vitalité)"}},"quantity":1,"weight":0,"price":0,"worn":false},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.2cKoUTmP4K04UjN5"}},"_id":"tFJQKvmlrWfMbB19"} +{"name":"Caresse de Zaggath","type":"item","img":"icons/magic/symbols/runes-triangle-blue.webp","data":{"category":"spell","subtype":"armor","description":"Description
\nPermet de prendre le contrôle d’une source de feu et de la faire exploser.
\nEffet
\nLa source de feu explose dans un déluge de flammes causant d6 dégâts à tous ceux se trouvant à portée de l’explosion.
","properties":{"ranged":false,"melee":false,"spell":false,"protection":false,"weapon":false,"armor":false,"helm":false,"shield":false,"equipable":false,"consumable":false,"magical":false,"2H":false,"reloadable":false,"bow":false,"crossbow":false,"throwing":false,"stackable":false,"circle":1,"difficulty":"0","ppcost":5,"duration":"Instantanée","nbmandatoryconditions":2,"nboptionnalconditions":3,"spellkeep":false,"concentrate":false,"mandatoryconditions":{"0":"Ligne de Vue","1":"Objet spécial : Poudre de Pyrite","2":"Avoir une arme à disposition"},"optionnalconditions":{"0":"Ostentation","1":"Blessures (-1d3 Points de Vitalité)","2":"Etre Druide de Zaggath"}},"quantity":1,"weight":0,"price":0,"worn":false},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.2cKoUTmP4K04UjN5"}},"_id":"zq5h9kCpo8gK4oIH"} diff --git a/system.json b/system.json index b4573be..859fa04 100644 --- a/system.json +++ b/system.json @@ -7,7 +7,7 @@ "url": "https://github.com/ZigmundKreud/bol", "license": "LICENSE.txt", "flags": {}, - "version": "1.0.8", + "version": "1.0.9", "templateVersion": 20, "minimumCoreVersion": "0.8.6", "compatibleCoreVersion": "9", @@ -117,6 +117,15 @@ "system": "bol", "entity": "Item", "private": false + }, + { + "label": "Sorts", + "type": "Item", + "name": "spells", + "path": "packs/spells.db", + "system": "bol", + "entity": "Item", + "private": false } ], "system": [],