mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-28 15:47:38 +01:00
examine signature changed to include distance
- distance is INFINITE, 0, or a positive integer based on get_dist() between the examiner and examinee's turfs when they are on the same Z. When the examiner is dead or a ghost, distance is always 0. - also updates /examine( implementations to use it! - adds w_class_to_name proc for reusing "It is a X item." examine behavior.
This commit is contained in:
@@ -32,11 +32,11 @@
|
||||
/obj/item/material/fishing_rod/built
|
||||
strung = FALSE
|
||||
|
||||
/obj/item/material/fishing_rod/examine(mob/user)
|
||||
/obj/item/material/fishing_rod/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
if(Bait)
|
||||
. += "<span class='notice'>It has [Bait] hanging on its hook: </span>"
|
||||
. += Bait.examine(user)
|
||||
. += Bait.examine(user, distance, infix, suffix)
|
||||
|
||||
/obj/item/material/fishing_rod/CtrlClick(mob/user)
|
||||
if((src.loc == user || Adjacent(user)) && Bait)
|
||||
|
||||
Reference in New Issue
Block a user