orffen / basicfantasyrpg

The Basic Fantasy RPG system for FoundryVTT!
Other
10 stars 8 forks source link

XP calculation issue when HD includes negative modifier #37

Closed totallybanjaxed closed 1 year ago

totallybanjaxed commented 1 year ago

Hey, just another small XP bug I've noticed. When a monster has a negative modifier to their HD, the XP is not being calculated correctly (the modifier should not change the XP total, only the main HD number should).

e.g. image

If I recreate this then it calculates as 10 XP instead of 145 XP e.g. image

If I remove the negative modifier then it calculates it correctly, e.g. image

orffen commented 1 year ago

data.xp.value = function () { in _prepareMonsterData(actorData)