Closed Typhos closed 8 months ago
thanks, I'll review today :)
I noticed a bug in the encumbrance percentage calculation when I was transferring my fixes manually into my local instance so I could have them for my next session. It looks like the delta value was actually causing the percentages to be incorrect if you use non-standard carrying weights (I have STR modify carrying capacity by 300 per +1). It was working as expected when capacity had a delta of zero.
I removed this.#delta
from the calculations, which fixed this bug for the bar color feature. I didn't remove #delta
from the model incase there might be a use for it later in some other feature.
We thank you so much for your contribution. It turns out that another contributor was able to come up with a nice solution and answer the review feedback before you did. Thanks a lot though!
I noticed that the encumbrance bar seemed to be broken, so I updated the code to return it to its working state. Additionally, I added a quick function to change the color of the bar to indicate how encumbered a character is (green, yellow, orange, red).