forked from GitHub-Mirrors/foundry-sw5e
Powercasting works based on school of power
Updated power items to automatically change mod used when set to powercasting
This commit is contained in:
parent
8134ee4f09
commit
ad50d1549f
5 changed files with 45 additions and 12 deletions
|
@ -94,7 +94,7 @@ export default class Actor5e extends Actor {
|
|||
// Prepare power-casting data
|
||||
data.attributes.powerForceLightDC = 8 + data.abilities.wis.mod + data.attributes.prof ?? 10;
|
||||
data.attributes.powerForceDarkDC = 8 + data.abilities.cha.mod + data.attributes.prof ?? 10;
|
||||
data.attributes.powerForceUnivDC = Math.ceil(data.attributes.powerForceLightDC,data.attributes.powerForceDarkDC) ?? 10;
|
||||
data.attributes.powerForceUnivDC = Math.max(data.attributes.powerForceLightDC,data.attributes.powerForceDarkDC) ?? 10;
|
||||
data.attributes.powerTechDC = 8 + data.abilities.int.mod + data.attributes.prof ?? 10;
|
||||
this._computePowercastingProgression(this.data);
|
||||
|
||||
|
@ -1119,8 +1119,6 @@ export default class Actor5e extends Actor {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Note the change in HP and HD and TP which occurred
|
||||
const dhd = this.data.data.attributes.hd - hd0;
|
||||
const dhp = this.data.data.attributes.hp.value - hp0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue