mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-30 08:38:13 +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:
@@ -9,7 +9,7 @@
|
||||
var/remaining = 9
|
||||
preserve_item = 1
|
||||
|
||||
/obj/item/magnetic_ammo/examine(mob/user)
|
||||
/obj/item/magnetic_ammo/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
. += "There [(remaining == 1)? "is" : "are"] [remaining] flechette\s left!"
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
last_production_time = world.time
|
||||
produce()
|
||||
|
||||
/obj/item/ammo_magazine/smart/examine(mob/user)
|
||||
/obj/item/ammo_magazine/smart/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
|
||||
if(attached_cell)
|
||||
@@ -223,4 +223,4 @@
|
||||
ammo_type = null
|
||||
production_cost = null
|
||||
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user