mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-18 19:53:00 +01:00
978f4511a5
- 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.
20 lines
635 B
Plaintext
20 lines
635 B
Plaintext
/obj/item/magnetic_ammo
|
|
name = "flechette magazine"
|
|
desc = "A magazine containing steel flechettes."
|
|
icon = 'icons/obj/ammo.dmi'
|
|
icon_state = "caseless-mag"
|
|
w_class = ITEMSIZE_SMALL
|
|
matter = list(MAT_STEEL = 1800)
|
|
origin_tech = list(TECH_COMBAT = 1)
|
|
var/remaining = 9
|
|
preserve_item = 1
|
|
|
|
/obj/item/magnetic_ammo/examine(mob/user, distance, infix, suffix)
|
|
. = ..()
|
|
. += "There [(remaining == 1)? "is" : "are"] [remaining] flechette\s left!"
|
|
|
|
/obj/item/magnetic_ammo/pistol
|
|
name = "flechette magazine (small)"
|
|
desc = "A magazine containing smaller steel flechettes, intended for a pistol."
|
|
icon_state = "caseless-mag-short"
|