Attribute Item Subtype #76

Merged
Oliver merged 50 commits from feature/attribute-items into main 2026-04-27 02:12:56 +00:00
Showing only changes of commit 7970cb64c8 - Show all commits

5
module/utils/clamp.mjs Normal file
View file

@ -0,0 +1,5 @@
export function clamp(min, ideal, max) {
min ??= Number.NEGATIVE_INFINITY;
max ??= Number.POSITIVE_INFINITY;
return Math.max(min, Math.min(ideal, max));
};