10-15-2019, 11:47 AM
surgery checks for:
this should be:
The intent clearly was to have red staplers work for surgery, as staplers used to literally just be staple guns with a manually edited sprite on the map:
My guess is that some coder decided that office closets should probably contain regular staplers instead of stapleguns like they used to:
and made a child object; probably /obj/item/staple_gun/red and since the surgery tool check does .type == instead of istype()... whatever coder did this broke office supply surgery.
Code:
surgery(var/obj/item/tool) if(remove_stage > 1 && tool.type == /obj/item/staple_gun) remove_stage = 0
Code:
surgery(var/obj/item/tool) if(remove_stage > 1 && istype(tool,/obj/item/staple_gun)) remove_stage = 0
Code:
/obj/item/staple_gun{desc = "A red stapler. No, not THAT red stapler."; icon = 'icons/obj/items.dmi'; icon_state = "stapler"; item_state = "stapler"; layer = 7; name = "stapler"}
Code:
/obj/storage/closet/office name = "office supply closet" desc = "Various supplies for the modern office." make_my_stuff() ..() [SNIP] var/obj/item/staple_gun/B6 = new /obj/item/staple_gun(src) B6.pixel_y = -5 B6.pixel_x = -4