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
+5 -5
View File
@@ -152,7 +152,7 @@
/atom/movable/openspace/mimic/attack_hand(mob/user)
to_chat(user, SPAN_NOTICE("You cannot reach \the [src] from here."))
/atom/movable/openspace/mimic/examine(..., show_extended)
/atom/movable/openspace/mimic/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
SHOULD_CALL_PARENT(FALSE)
. = associated_atom.examine(arglist(args)) // just pass all the args to the copied atom
@@ -187,9 +187,9 @@
/atom/movable/openspace/turf_proxy/attack_generic(mob/user as mob)
loc.attack_generic(user)
/atom/movable/openspace/turf_proxy/examine(mob/examiner, show_extended)
/atom/movable/openspace/turf_proxy/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
SHOULD_CALL_PARENT(FALSE)
. = loc.examine(examiner, show_extended = show_extended)
. = loc.examine(arglist(args))
// -- TURF MIMIC --
@@ -214,6 +214,6 @@
/atom/movable/openspace/turf_mimic/attack_generic(mob/user as mob)
to_chat(user, SPAN_NOTICE("You cannot reach \the [src] from here."))
/atom/movable/openspace/turf_mimic/examine(mob/examiner, show_extended)
/atom/movable/openspace/turf_mimic/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
SHOULD_CALL_PARENT(FALSE)
. = delegate.examine(examiner, show_extended = show_extended)
. = delegate.examine(arglist(args))