Add socket event handling foundations and an updateSands event in anticipation of hasty rolls
This commit is contained in:
parent
7c0fb75e0f
commit
c0a9731b02
5 changed files with 73 additions and 1 deletions
3
module/utils/clamp.mjs
Normal file
3
module/utils/clamp.mjs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function clamp(min, ideal, max) {
|
||||
return Math.max(min, Math.min(ideal, max));
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue