Add socket event handling foundations and an updateSands event in anticipation of hasty rolls

This commit is contained in:
Eldritch-Oliver 2025-10-06 23:25:27 -06:00
parent 7c0fb75e0f
commit c0a9731b02
5 changed files with 73 additions and 1 deletions

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

@ -0,0 +1,3 @@
export function clamp(min, ideal, max) {
return Math.max(min, Math.min(ideal, max));
};