Resolved some runtimes for mimic turfs on examine (#20097)

Resolved some runtimes for mimic turfs on examine.
All examine headers respect the proc signature.
All examine that do not explicitly need not to, passthrough the arglist
to references examine target procs.
This commit is contained in:
Fluffy
2024-10-25 17:55:29 +00:00
committed by GitHub
parent a0632afa95
commit 30ab355943
16 changed files with 85 additions and 22 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
return TRUE
return ..()
/obj/item/holomenu/examine(mob/user, distance, is_adjacent, show_extended)
/obj/item/holomenu/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
if(anchored && length(menu_text))
interact(user)
return TRUE
+6 -3
View File
@@ -13,7 +13,7 @@
slowdown = 10
layer = ABOVE_HUMAN_LAYER
/obj/structure/ecd/examine(mob/living/user, distance, is_adjacent, infix, suffix, show_extended)
/obj/structure/ecd/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
. = ..()
switch(state)
if(ECD_LOOSE)
@@ -22,8 +22,11 @@
to_chat(user, SPAN_NOTICE("\The [src] is bolted to the floor."))
if(ECD_WELDED)
to_chat(user, SPAN_NOTICE("\The [src] is bolted and welded to the floor."))
if(user.isSynthetic())
to_chat(user, SPAN_NOTICE("\The [src] does not seem to be doing anything, but you can feel it. A signal, beyond anything you can consciously understand, weaving and scratching a shield around the back of your mind."))
if(istype(user, /mob/living))
var/mob/living/living_user = user
if(living_user.isSynthetic())
to_chat(living_user, SPAN_NOTICE("\The [src] does not seem to be doing anything, but you can feel it. A signal, beyond anything you can consciously understand, weaving and scratching a shield around the back of your mind."))
/obj/structure/ecd/attackby(obj/item/attacking_item, mob/user, params)
if(attacking_item.iswrench())
+1 -1
View File
@@ -22,7 +22,7 @@
playsound(src.loc, 'sound/weapons/blade_open.ogg', 50, 1)
closed = !closed
/obj/item/pocketwatch/examine(mob/user, distance, is_adjacent, show_extended)
/obj/item/pocketwatch/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
. = ..()
if (distance <= 1)
checktime()