Fix spells
This commit is contained in:
parent
caf990737e
commit
83188e6aae
@ -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
4
packs/spells.db
Normal 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 cible.</p>\n<p>Effet</p>\n<p>Le 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.</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’infliger à la cible une malédiction qui affecte sa capacité d’agir.</p>\n<p>Effet</p>\n<p>La 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.</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’animer une arme de corps à corps qui s’attaque aux ennemis du sorcier en obéissant à ses injonctions mentales.</p>\n<p>Effet</p>\n<p>Les 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.</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ôle d’une source de feu et de la faire exploser. </p>\n<p>Effet</p>\n<p>La source de feu explose dans un déluge de flammes causant d6 dégâts à tous ceux se trouvant à portée de l’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"}
|
11
system.json
11
system.json
@ -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": [],
|
||||||
|
Loading…
Reference in New Issue
Block a user