mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-07 23:09:28 +00:00
Converts most spans into span procs. Mostly used regex for this and sorted out any compile time errors afterwards so there could be some bugs. Was initially going to do defines, but ninja said to make it into a proc, and if there's any overhead, they can easily be changed to defines. Makes it easier to control the formatting and prevents typos when creating spans as it'll runtime if you misspell instead of silently failing. Reduces the code you need to write when writing spans, as you don't need to close the span as that's automatically handled by the proc. (Note from Lemon: This should be converted to defines once we update the minimum version to 514. Didn't do it now because byond pain and such)
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
/obj/item/implant/freedom
|
|
name = "freedom implant"
|
|
desc = "Use this to escape from those evil Red Shirts."
|
|
icon_state = "freedom"
|
|
implant_color = "r"
|
|
uses = 4
|
|
|
|
|
|
/obj/item/implant/freedom/activate()
|
|
. = ..()
|
|
uses--
|
|
to_chat(imp_in, span_hear("You feel a faint click."))
|
|
if(iscarbon(imp_in))
|
|
var/mob/living/carbon/C_imp_in = imp_in
|
|
C_imp_in.uncuff()
|
|
if(!uses)
|
|
qdel(src)
|
|
|
|
|
|
/obj/item/implant/freedom/get_data()
|
|
var/dat = {"
|
|
<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Freedom Beacon<BR>
|
|
<b>Life:</b> optimum 5 uses<BR>
|
|
<b>Important Notes:</b> <font color='red'>Illegal</font><BR>
|
|
<HR>
|
|
<b>Implant Details:</b> <BR>
|
|
<b>Function:</b> Transmits a specialized cluster of signals to override handcuff locking
|
|
mechanisms<BR>
|
|
<b>Special Features:</b><BR>
|
|
<i>Neuro-Scan</i>- Analyzes certain shadow signals in the nervous system<BR>
|
|
<HR>
|
|
No Implant Specifics"}
|
|
return dat
|
|
|
|
|
|
/obj/item/implanter/freedom
|
|
name = "implanter (freedom)"
|
|
imp_type = /obj/item/implant/freedom
|
|
|
|
/obj/item/implantcase/freedom
|
|
name = "implant case - 'Freedom'"
|
|
desc = "A glass case containing a freedom implant."
|
|
imp_type = /obj/item/implant/freedom
|