Utility module with tweaks, enhancements and macros to help GMs with game management when running Warhammer Fantasy Roleplay (4e) sessions in Foundry Virtual Tabletop.
MIT License
15
stars
9
forks
source link
Add template support for non-integer numeric settings #224
[x] Enhancement (non-breaking change which improves functionality)
Related Issue(s)
Fixes or addresses #issue(s): #223
Description
Motivation and context
Foundry validation of number input fields defaults validation to nearest 1. This works reasonably well for integer fields, but prevents fractions, such as for vision ranges.
Summary of changes
Add step: any key:value to selected Number-based settings (specifically, default ranges for normal and dark vision)
Adds template support for settings form app to handle variable steps for number inputs
Defaults step to 1 if not specified for number based settings (to mimic previous defulat behaviour)
Type of change
Related Issue(s)
Fixes or addresses #issue(s): #223
Description
Motivation and context
Foundry validation of number input fields defaults validation to nearest 1. This works reasonably well for integer fields, but prevents fractions, such as for vision ranges.
Summary of changes
step: any
key:value to selected Number-based settings (specifically, default ranges for normal and dark vision)Development / Testing Environment