- Fixed dice pool to be min 2 and max 9 on manual entry

This commit is contained in:
Simon Brooke
2026-02-11 08:16:52 +00:00
parent 7dc5009aa7
commit 4b042f343a
+18
View File
@@ -1007,5 +1007,23 @@
setAttrs({lastroll: ""});
});
/*
*
*/
on("change:num_dice", function(e) {
let attrs;
if(+e.newValue < 2) {
attrs = {num_dice: 2};
}
if(+e.newValue > 9) {
attrs = {num_dice: 9};
}
if(attrs) {
setAttrs(attrs);
}
});
</script>
</div>