mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
[MIRROR] Begin clickcode attack_self fix (#12173)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
063cf6cf48
commit
3cac28f9ad
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user