mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Tracking Slugs (#10287)
This commit is contained in:
@@ -83,6 +83,12 @@
|
||||
desc = "Track with this."
|
||||
var/id = 1.0
|
||||
|
||||
/obj/item/implant/tracking/Initialize()
|
||||
var/list/tracking_list = list()
|
||||
for(var/obj/item/implant/tracking/T in implants)
|
||||
tracking_list += T
|
||||
id = length(tracking_list) + 1
|
||||
. = ..()
|
||||
|
||||
/obj/item/implant/tracking/get_data()
|
||||
. = {"<b>Implant Specifications:</b><BR>
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
if(src.case.imp)
|
||||
if(istype(src.case.imp, /obj/item/implant))
|
||||
dat += src.case.imp.get_data()
|
||||
if(istype(src.case.imp, /obj/item/implant/tracking))
|
||||
dat += {"ID (1-100):
|
||||
<A href='byond://?src=\ref[src];tracking_id=-10'>-</A>
|
||||
<A href='byond://?src=\ref[src];tracking_id=-1'>-</A> [case.imp:id]
|
||||
<A href='byond://?src=\ref[src];tracking_id=1'>+</A>
|
||||
<A href='byond://?src=\ref[src];tracking_id=10'>+</A><BR>"}
|
||||
else
|
||||
dat += "The implant casing is empty."
|
||||
else
|
||||
@@ -65,11 +59,6 @@
|
||||
return
|
||||
if ((usr.contents.Find(src)) || ((in_range(src, usr) && istype(src.loc, /turf))))
|
||||
usr.set_machine(src)
|
||||
if (href_list["tracking_id"])
|
||||
var/obj/item/implant/tracking/T = src.case.imp
|
||||
T.id += text2num(href_list["tracking_id"])
|
||||
T.id = min(100, T.id)
|
||||
T.id = max(1, T.id)
|
||||
|
||||
if (istype(src.loc, /mob))
|
||||
attack_self(src.loc)
|
||||
|
||||
@@ -261,6 +261,14 @@
|
||||
pickup_sound = 'sound/items/pickup/ammobox.ogg'
|
||||
starts_with = list(/obj/item/ammo_casing/shotgun/incendiary = 8)
|
||||
|
||||
/obj/item/storage/box/trackingslugs
|
||||
name = "box of tracking slugs"
|
||||
desc = "It has a picture of a shotgun shell and several warning symbols on the front.<br>WARNING: Live ammunition. Misuse may result in serious injury or death."
|
||||
icon_state = "trackingshot_box"
|
||||
drop_sound = 'sound/items/drop/ammobox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/ammobox.ogg'
|
||||
starts_with = list(/obj/item/ammo_casing/shotgun/tracking = 4)
|
||||
|
||||
/obj/item/storage/box/sniperammo
|
||||
name = "box of 14.5mm shells"
|
||||
desc = "It has a picture of a gun and several warning symbols on the front.<br>WARNING: Live ammunition. Misuse may result in serious injury or death."
|
||||
|
||||
Reference in New Issue
Block a user