Fix spells

This commit is contained in:
sladecraven 2022-02-19 17:25:42 +01:00
parent caf990737e
commit 83188e6aae
3 changed files with 20 additions and 9 deletions

View File

@ -123,11 +123,10 @@ export class BoLRoll {
attrValue: actor.data.data.attributes.mind.value, attrValue: actor.data.data.attributes.mind.value,
aptValue: 0, aptValue: 0,
careerBonus: actor.getAlchemistBonus(), careerBonus: actor.getAlchemistBonus(),
pcCost: alchemyData.properties.pccost, pcCost: Number(alchemyData.properties.pccost),
pcCostCurrent: alchemyData.properties.pccurrent, pcCostCurrent: Number(alchemyData.properties.pccurrent),
mod: alchemyData.properties.difficulty, mod: Number(alchemyData.properties.difficulty),
label: alchemy.name, label: alchemy.name,
adv: "2",
description: actor.name + " - " + game.i18n.localize('BOL.ui.makeAlchemy'), description: actor.name + " - " + game.i18n.localize('BOL.ui.makeAlchemy'),
} }
console.log("ALCHEMY!", alchemyDef); console.log("ALCHEMY!", alchemyDef);
@ -156,12 +155,11 @@ export class BoLRoll {
attribute: actor.data.data.attributes.mind, attribute: actor.data.data.attributes.mind,
attrValue: actor.data.data.attributes.mind.value, attrValue: actor.data.data.attributes.mind.value,
aptValue: 0, aptValue: 0,
ppCurrent: actor.data.data.resources.power.value, ppCurrent: Number(actor.data.data.resources.power.value),
careerBonus: actor.getSorcererBonus(), careerBonus: actor.getSorcererBonus(),
ppCost: spell.data.data.properties.ppcost, ppCost: Number(spell.data.data.properties.ppcost),
mod: spellData.properties.difficulty, mod: Number(spellData.properties.difficulty),
label: spell.name, label: spell.name,
adv: "2",
description: actor.name + " - " + game.i18n.localize('BOL.ui.focusSpell'), description: actor.name + " - " + game.i18n.localize('BOL.ui.focusSpell'),
} }
console.log("SPELL!", spellDef); console.log("SPELL!", spellDef);

4
packs/spells.db Normal file
View File

@ -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":"<p>Description</p>\n<p>Permet de projeter un javelot de flammes magiques sur la&nbsp;cible.</p>\n<p>Effet</p>\n<p>Le sorcier r&eacute;alise un test de tir classique. En cas de r&eacute;ussite,&nbsp;le javelot inflige d6B points de d&eacute;g&acirc;ts. Si le r&eacute;sultat du d&eacute; de&nbsp;d&eacute;g&acirc;t est un 6, la cible s&rsquo;enflamme.</p>","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":"<p>Description</p>\n<p>Permet d&rsquo;infliger &agrave; la cible une mal&eacute;diction qui affecte sa&nbsp;capacit&eacute; d&rsquo;agir.</p>\n<p>Effet</p>\n<p>La victime re&ccedil;oit 1 d&eacute; malus sur tous ses jets d&rsquo;action&nbsp;pendant la dur&eacute;e du sortil&egrave;ge. La difficult&eacute; est modifi&eacute;e par l'Esprit de la cible.</p>","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":"<p>Description</p>\n<p>Permet d&rsquo;animer une arme de corps &agrave; corps qui s&rsquo;attaque&nbsp;aux ennemis du sorcier en ob&eacute;issant &agrave; ses injonctions&nbsp;mentales.</p>\n<p>Effet</p>\n<p>Les jets d&rsquo;attaque et de d&eacute;g&acirc;ts de l&rsquo;arme sont r&eacute;alis&eacute;s avec&nbsp;l&rsquo;esprit du sorcier et non son agilit&eacute; et sa vigueur.</p>","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":"<p>Description</p>\n<p>Permet de prendre le contr&ocirc;le d&rsquo;une source de feu et de la faire exploser.&nbsp;</p>\n<p>Effet</p>\n<p>La source de feu explose dans un d&eacute;luge de flammes&nbsp;causant d6 d&eacute;g&acirc;ts &agrave; tous ceux se trouvant &agrave; port&eacute;e de&nbsp;l&rsquo;explosion.</p>","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"}

View File

@ -7,7 +7,7 @@
"url": "https://github.com/ZigmundKreud/bol", "url": "https://github.com/ZigmundKreud/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"flags": {}, "flags": {},
"version": "1.0.8", "version": "1.0.9",
"templateVersion": 20, "templateVersion": 20,
"minimumCoreVersion": "0.8.6", "minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",
@ -117,6 +117,15 @@
"system": "bol", "system": "bol",
"entity": "Item", "entity": "Item",
"private": false "private": false
},
{
"label": "Sorts",
"type": "Item",
"name": "spells",
"path": "packs/spells.db",
"system": "bol",
"entity": "Item",
"private": false
} }
], ],
"system": [], "system": [],