mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
d5849910e5
* Begin clickcode attack_self fix Begins the work to make everything call back to parent for attack_self so that signals are sacred. * Makes MORE things call the attack_self() parent Yes, I could make special_handling a var on obj/item HOWEVER i want it to be specific so it can be tracked down later and ONLY the objects that use it can be refactored instead of sitting there literally forever and it just becoming 'a thing'. * Finishes making the rest of attack_self call parent. As mentioned, things such as 'specialty_goggles' 'special_handling' and the such are only there to help with attack_self until the attack_self is recoded for those items. * begone foul demon * some more cleanup * These * GOD this was annoying * yeh * Fix this * fLARES * Thesee too * toys! * Even more! * More fixes * Even more * rest of em * these too * Update syndie.dm * hardref clear * Update code/game/gamemodes/nuclear/pinpointer.dm * Update code/game/objects/effects/mines.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/contraband_vr.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/weapons/gift_wrappaper.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * these too * Update maintpanel_stack.dm * angry warning * Fixes packaged snacks. Fixes improper var default. * Special handling for these * proper poly types * Fixes magclaws Makes the 'features' it had just part of base magboots that can be adjusted via varswap. * Fixes jackets Fixes https://github.com/VOREStation/VOREStation/issues/18941 * Small bugfix Makes p_Theyre properly capitialize Makes examine show proper wording * Update gift_wrappaper.dm
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
/obj/item/stack/telecrystal
|
|
name = "telecrystal"
|
|
desc = "It seems to be pulsing with suspiciously enticing energies."
|
|
description_antag = "Telecrystals can be activated by utilizing them on devices with an actively running uplink. They will not activate on unactivated uplinks."
|
|
singular_name = "telecrystal"
|
|
icon = 'icons/obj/stock_parts.dmi'
|
|
icon_state = "telecrystal"
|
|
w_class = ITEMSIZE_TINY
|
|
max_amount = 240
|
|
origin_tech = list(TECH_MATERIAL = 6, TECH_BLUESPACE = 4)
|
|
force = 1 //Needs a token force to ensure you can attack because for some reason you can't attack with 0 force things
|
|
custom_handling = TRUE
|
|
|
|
/obj/item/stack/telecrystal/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone)
|
|
if(amount >= 5)
|
|
target.visible_message(span_warning("\The [target] has been transported with \the [src] by \the [user]."))
|
|
safe_blink(target, 14)
|
|
use(5)
|
|
else
|
|
to_chat(user, span_warning("There are not enough telecrystals to do that."))
|
|
|
|
/obj/item/stack/telecrystal/attack_self(mob/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
if(user.mind.accept_tcrystals) //Checks to see if antag type allows for tcrystals
|
|
to_chat(user, span_notice("You use \the [src], adding [src.amount] to your balance."))
|
|
user.mind.tcrystals += amount
|
|
use(amount)
|
|
return
|