* fuck pubby * fuck you too ceres * ree * this is going to be a disaster isn't it * disaster * dme * -_- * tg * woops * proper sync * Welcome to conflict hell. * lets hope this fixes more things than it breaks * gdi * goddamnit
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
/obj/item/implant/uplink
|
|
name = "uplink implant"
|
|
desc = "Sneeki breeki."
|
|
icon = 'icons/obj/radio.dmi'
|
|
icon_state = "radio"
|
|
lefthand_file = 'icons/mob/inhands/misc/devices_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/misc/devices_righthand.dmi'
|
|
origin_tech = "materials=4;magnets=4;programming=4;biotech=4;syndicate=5;bluespace=5"
|
|
var/starting_tc = 0
|
|
|
|
/obj/item/implant/uplink/New()
|
|
hidden_uplink = new(src)
|
|
hidden_uplink.telecrystals = starting_tc
|
|
..()
|
|
|
|
/obj/item/implant/uplink/implant(mob/living/target, mob/user, silent = 0)
|
|
for(var/X in target.implants)
|
|
if(istype(X, type))
|
|
var/obj/item/implant/imp_e = X
|
|
imp_e.hidden_uplink.telecrystals += hidden_uplink.telecrystals
|
|
qdel(src)
|
|
return 1
|
|
|
|
if(..())
|
|
hidden_uplink.owner = "[user.key]"
|
|
return 1
|
|
return 0
|
|
|
|
/obj/item/implant/uplink/activate()
|
|
if(hidden_uplink)
|
|
hidden_uplink.interact(usr)
|
|
|
|
/obj/item/implanter/uplink
|
|
name = "implanter (uplink)"
|
|
imp_type = /obj/item/implant/uplink
|
|
|
|
/obj/item/implanter/uplink/precharged
|
|
name = "implanter (precharged uplink)"
|
|
imp_type = /obj/item/implant/uplink/precharged
|
|
|
|
/obj/item/implant/uplink/precharged
|
|
starting_tc = 10
|