Files
Bubberstation/code/game/objects/items/stacks/telecrystal.dm
T
Mike LongandGitHub 4915ead7d9 Fix F.R.A.M.E. cartridge and use attackby rather than afterattack (#50248)
* Fixes the FRAME cart not unlocking the target's PDA as expected.
* Refactor to the ability to insert TCs into the cart.
2020-03-28 21:41:45 -07:00

29 lines
948 B
Plaintext

/obj/item/stack/telecrystal
name = "telecrystal"
desc = "It seems to be pulsing with suspiciously enticing energies."
singular_name = "telecrystal"
icon = 'icons/obj/telescience.dmi'
icon_state = "telecrystal"
dye_color = DYE_SYNDICATE
w_class = WEIGHT_CLASS_TINY
max_amount = 50
item_flags = NOBLUDGEON
/obj/item/stack/telecrystal/attack(mob/target, mob/user)
if(target == user) //You can't go around smacking people with crystals to find out if they have an uplink or not.
for(var/obj/item/implant/uplink/I in target)
if(I && I.imp_in)
var/datum/component/uplink/hidden_uplink = I.GetComponent(/datum/component/uplink)
if(hidden_uplink)
hidden_uplink.telecrystals += amount
use(amount)
to_chat(user, "<span class='notice'>You press [src] onto yourself and charge your hidden uplink.</span>")
else
return ..()
/obj/item/stack/telecrystal/five
amount = 5
/obj/item/stack/telecrystal/twenty
amount = 20