[MIRROR] Begin clickcode attack_self fix (#12173)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-29 15:51:44 -05:00
committed by GitHub
co-authored by Cameron Lennox
parent 063cf6cf48
commit 3cac28f9ad
361 changed files with 2676 additions and 998 deletions
+9
View File
@@ -31,6 +31,10 @@
var/strict_color_stacking = FALSE // Will the stack merge with other stacks that are different colors? (Dyed cloth, wood, etc)
var/is_building = FALSE
var/custom_handling = FALSE
var/beacons = FALSE
var/sandbags = FALSE
/obj/item/stack/Initialize(mapload, var/starting_amount)
. = ..()
if(!stacktype)
@@ -84,6 +88,11 @@
. += get_examine_string()
/obj/item/stack/attack_self(mob/user)
. = ..(user)
if(.)
return TRUE
if(custom_handling)
return FALSE
tgui_interact(user)
/obj/item/stack/tgui_interact(mob/user, datum/tgui/ui, datum/tgui/parent_ui)