mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-07 07:22:56 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
/obj/item/stack/telecrystal//SKYRAT EDIT - ICON OVERRIDEN BY AESTHETICS - SEE MODULE
|
|
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
|
|
merge_type = /obj/item/stack/telecrystal
|
|
|
|
/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?.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_notice("You press [src] onto yourself and charge your hidden uplink."))
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/stack/telecrystal/five
|
|
amount = 5
|
|
|
|
/obj/item/stack/telecrystal/twenty
|
|
amount = 20
|