stop item usage when another item is already in use

This commit is contained in:
2025-04-18 16:47:50 +02:00
parent a1c93ef64b
commit b56f179717
3 changed files with 22 additions and 7 deletions

View File

@@ -26,3 +26,9 @@ export async function changeItemCount(user: HelixUser, item: string, amount = -1
return { result: true, reason: '', count: inv[item], inv }
}
export let ITEMBUSY = false
export function toggleBusy() {
ITEMBUSY = !ITEMBUSY
}