mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 09:31:30 +00:00
* get_tool_quality has numerical meaning * Basic tools set tool quality * Toolspeed is replaced by tool quality checks * Addresses assorted results from live test * Extra cleanup
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
/obj/item/weapon/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/device/electronic_assembly/implant/IC = null
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/islegal()
|
|
return TRUE
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/Initialize()
|
|
. = ..()
|
|
IC = new(src)
|
|
IC.implant = src
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/Destroy()
|
|
IC.implant = null
|
|
qdel(IC)
|
|
..()
|
|
|
|
/obj/item/weapon/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/weapon/implant/integrated_circuit/emp_act(severity)
|
|
IC.emp_act(severity)
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/examine(mob/user)
|
|
return IC.examine(user)
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/attackby(var/obj/item/O, var/mob/user)
|
|
if(O.get_tool_quality(TOOL_CROWBAR) || istype(O, /obj/item/device/integrated_electronics) || istype(O, /obj/item/integrated_circuit) || O.get_tool_quality(TOOL_SCREWDRIVER) || istype(O, /obj/item/weapon/cell/device) )
|
|
IC.attackby(O, user)
|
|
else
|
|
..()
|
|
|
|
/obj/item/weapon/implant/integrated_circuit/attack_self(mob/user)
|
|
IC.attack_self(user)
|