Split examine verb and function, and improve it (#17251)

* Split examine verb and function, and include adjacency and distance checking in examine function

* Fix various issues

* Update code/modules/mob/examinations.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

* Add required define vars

* Update code/game/objects/items/stacks/wrap.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

---------

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
Cody Brittain
2023-09-09 08:07:36 +00:00
committed by GitHub
co-authored by SleepyGemmy
parent 39228d3a2c
commit ce5ac79e3c
241 changed files with 617 additions and 518 deletions
+3 -3
View File
@@ -154,9 +154,9 @@
return //no eating the limb until everything's been removed
return ..()
/obj/item/organ/external/examine()
..()
if(in_range(usr, src) || istype(usr, /mob/abstract/observer))
/obj/item/organ/external/examine(mob/user, distance, is_adjacent)
. = ..()
if(distance <= 1)
for(var/obj/item/I in contents)
if(istype(I, /obj/item/organ))
continue