RC-40 | Weapon | Range
This commit is contained in:
parent
40ce88ebf4
commit
0e9218fbd3
2 changed files with 17 additions and 0 deletions
|
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue