RC-40 | Weapon | Range

This commit is contained in:
Oliver-Akins 2024-12-25 22:12:22 -07:00
parent 40ce88ebf4
commit 0e9218fbd3
2 changed files with 17 additions and 0 deletions

View file

@ -18,3 +18,14 @@ export function barAttribute(min, initial, max = undefined) {
}),
});
};
export function optionalInteger({min, initial = null, max} = {}) {
return new fields.NumberField({
min,
initial,
max,
required: true,
nullable: true,
integer: true,
});
};