mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-11 00:03:01 +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.
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
/obj/item/implant/integrated_circuit
|
|
name = "electronic implant"
|
|
desc = "It's a case, for building very tiny electronics with."
|
|
icon = 'icons/obj/integrated_electronics/electronic_setups.dmi'
|
|
icon_state = "setup_implant"
|
|
var/obj/item/electronic_assembly/implant/IC = null
|
|
|
|
/obj/item/implant/integrated_circuit/islegal()
|
|
return TRUE
|
|
|
|
/obj/item/implant/integrated_circuit/Initialize()
|
|
. = ..()
|
|
IC = new(src)
|
|
IC.implant = src
|
|
|
|
/obj/item/implant/integrated_circuit/Destroy()
|
|
IC.implant = null
|
|
qdel(IC)
|
|
..()
|
|
|
|
/obj/item/implant/integrated_circuit/get_data()
|
|
var/dat = {"
|
|
<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Modular Implant<BR>
|
|
<b>Life:</b> 3 years.<BR>
|
|
<b>Important Notes: EMP can cause malfunctions in the internal electronics of this implant.</B><BR>
|
|
<HR>
|
|
<b>Implant Details:</b><BR>
|
|
<b>Function:</b> Contains no innate functions until other components are added.<BR>
|
|
<b>Special Features:</b>
|
|
<i>Modular Circuitry</i>- Can be loaded with specific modular circuitry in order to fulfill a wide possibility of functions.<BR>
|
|
<b>Integrity:</b> Implant is not shielded from electromagnetic interference, otherwise it is independent of subject's status."}
|
|
return dat
|
|
|
|
/obj/item/implant/integrated_circuit/emp_act(severity)
|
|
IC.emp_act(severity)
|
|
|
|
/obj/item/implant/integrated_circuit/examine(mob/user, distance, infix, suffix)
|
|
return IC.examine(user, distance, infix, suffix)
|
|
|
|
/obj/item/implant/integrated_circuit/attackby(var/obj/item/O, var/mob/user)
|
|
if(O.is_crowbar() || istype(O, /obj/item/integrated_electronics) || istype(O, /obj/item/integrated_circuit) || O.is_screwdriver() || istype(O, /obj/item/cell/device) )
|
|
IC.attackby(O, user)
|
|
else
|
|
..()
|
|
|
|
/obj/item/implant/integrated_circuit/attack_self(mob/user)
|
|
IC.attack_self(user)
|