Use raw spells functions

This commit is contained in:
2023-10-14 11:28:48 +02:00
parent 541e2836ca
commit a15260bff7
37 changed files with 125 additions and 109 deletions

View File

@ -41,7 +41,7 @@ Hooks.once('init', () => {
}
/*---------------------------------------------------------------------*/
game.wfrp4e.entities.ItemWfrp4e.prototype.computeSpellDamage = function (formula, isMagicMissile) {
/* DEPRECATED : game.wfrp4e.entities.ItemWfrp4e.prototype.computeSpellDamage = function (formula, isMagicMissile) {
try {
formula = formula.toLowerCase();
@ -85,10 +85,10 @@ Hooks.once('init', () => {
catch (e) {
throw ui.notifications.error("Error: could not parse spell damage. See console for details")
}
}
}*/
/*---------------------------------------------------------------------*/
game.wfrp4e.entities.ItemWfrp4e.prototype.computeSpellPrayerFormula = function (type, aoe = false, formulaOverride) {
/* DEPRECATED : game.wfrp4e.entities.ItemWfrp4e.prototype.computeSpellPrayerFormula = function (type, aoe = false, formulaOverride) {
let formula = formulaOverride || this[type]?.value
if (Number.isNumeric(formula))
return formula
@ -134,7 +134,7 @@ Hooks.once('init', () => {
//console.log("calculateSpellAttributes -> " + formula );
return formula.capitalize();
}
}*/
/*---------------------------------------------------------------------*/
// Converters area