Fix the admin sizeguns so that they can actually be set (#11186)

This commit is contained in:
TheGreatKitsune
2025-07-14 07:39:00 -05:00
committed by GitHub
parent 1ea0ede88a
commit 24c3804378
+1
View File
@@ -131,6 +131,7 @@
var/size_select = tgui_input_number(user, "Put the desired size (1-600%)", "Set Size", size_set_to * 100, 600, 1)
if(!size_select)
return //cancelled
size_set_to = clamp((size_select/100), RESIZE_MINIMUM_DORMS, RESIZE_MAXIMUM_DORMS)
to_chat(usr, span_notice("You set the size to [size_select]%"))
/obj/item/gun/energy/sizegun/afterattack(atom/A, mob/living/user, adjacent, params)