mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
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:
co-authored by
SleepyGemmy
parent
39228d3a2c
commit
ce5ac79e3c
@@ -53,10 +53,10 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/item/ship_ammunition/examine(mob/user, distance)
|
||||
/obj/item/ship_ammunition/examine(mob/user, distance, is_adjacent)
|
||||
. = ..()
|
||||
if(written_message)
|
||||
if(get_dist(user, src) > 3)
|
||||
if(distance > 3)
|
||||
to_chat(user, "It has something written on it, but you'd need to get closer to tell what the writing says.")
|
||||
else
|
||||
to_chat(user, "It has a message written on the casing: <span class='notice'><i>[written_message]</i></span>")
|
||||
|
||||
Reference in New Issue
Block a user