Artemystra / eclipsephase

The second edition character sheet for FoundryVTT
18 stars 17 forks source link

Using Roll Heal with empty timeframe textbox always uses 1 hour regardless of selected unit #63

Closed ava5627 closed 11 months ago

ava5627 commented 11 months ago

Changing the unit in roll heal to days or weeks does not change the timeframe from hours if the textbox is empty. Same issue in mental health only with days instead of weeks

Artemystra commented 11 months ago

Oh you mean it should register it as „1 week“ in the case of selecting „weeks“ without a value in the input field?

Artemystra commented 11 months ago

Ich believe that I found the reason: Giving no input in the input field leads to defaulting to 0 - A week in that example multiplies the time measured in hours by 168 which is still 0 and then defaults to 1 hour since 0 hours is not possible.

I'll change the input field to defaulting to 1 if no input has been made!

Artemystra commented 11 months ago

This has been implemented and will be part of the upcoming release! Thanks for bringing this up!