mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-18 03:32:56 +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:
@@ -10,7 +10,7 @@
|
||||
stacktype = "hide"
|
||||
no_variants = TRUE
|
||||
// This needs to be very clearly documented for players. Whether it should stay in the main description is up for debate.
|
||||
/obj/item/stack/animalhide/examine(var/mob/user)
|
||||
/obj/item/stack/animalhide/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
. += description_info
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
if(HS.amount < HS.max_amount)
|
||||
H = HS
|
||||
break
|
||||
|
||||
|
||||
// Either we found a valid stack, in which case increment amount,
|
||||
// Or we need to make a new stack
|
||||
if(istype(H))
|
||||
@@ -38,7 +38,7 @@
|
||||
// Increment the amount
|
||||
src.use(1)
|
||||
scraped++
|
||||
|
||||
|
||||
if(scraped)
|
||||
to_chat(user, SPAN_NOTICE("You scrape the hair off [scraped] hide\s."))
|
||||
else
|
||||
@@ -87,4 +87,4 @@
|
||||
desc = "The skin of a terrible creature."
|
||||
singular_name = "alien hide piece"
|
||||
icon_state = "sheet-xeno"
|
||||
stacktype = "hide-xeno"
|
||||
stacktype = "hide-xeno"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
max_amount = 20
|
||||
stacktype = "hairlesshide"
|
||||
|
||||
/obj/item/stack/hairlesshide/examine(var/mob/user)
|
||||
/obj/item/stack/hairlesshide/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
. += description_info
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
/obj/item/stack/wetleather/get_drying_state(var/obj/rack)
|
||||
return (drying_wetness > 0 ? "leather_wet" : "leather_dry")
|
||||
|
||||
/obj/item/stack/wetleather/examine(var/mob/user)
|
||||
/obj/item/stack/wetleather/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
. += description_info
|
||||
. += "\The [src] is [get_dryness_text()]."
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
drying.forceMove(src)
|
||||
update_icon()
|
||||
|
||||
/obj/structure/drying_rack/examine(var/mob/user)
|
||||
/obj/structure/drying_rack/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
if(drying)
|
||||
. += "\The [drying] is [drying.get_dryness_text()]."
|
||||
@@ -82,7 +82,7 @@
|
||||
update_icon()
|
||||
return ..()
|
||||
|
||||
/obj/structure/drying_rack/attack_robot(var/mob/user)
|
||||
/obj/structure/drying_rack/attack_robot(mob/user)
|
||||
if(Adjacent(user))
|
||||
return attack_hand(user)
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user