mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-11 08:14:26 +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:
@@ -1,4 +1,4 @@
|
||||
/obj/item/modular_computer/examine(var/mob/user)
|
||||
/obj/item/modular_computer/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
if(damage > broken_damage)
|
||||
. += "<span class='danger'>It is heavily damaged!</span>"
|
||||
@@ -52,4 +52,4 @@
|
||||
if(HALLOSS)
|
||||
take_damage(Proj.damage, Proj.damage / 3, 0)
|
||||
if(BURN)
|
||||
take_damage(Proj.damage, Proj.damage / 1.5)
|
||||
take_damage(Proj.damage, Proj.damage / 1.5)
|
||||
|
||||
Reference in New Issue
Block a user