mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 12:50:29 +01:00
4f8e9f7ef8
* some more new to init * rigs * rigs * intellisense moment * telcoms and landmarks * fix that as well * some more minor things * re add missing message * fix trash eating...
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
/datum/technomancer/spell/instability_tap
|
|
name = "Instability Tap"
|
|
desc = "Creates a large sum of energy (5,000 at normal spell power), at the cost of a very large amount of instability afflicting you."
|
|
enhancement_desc = "50% more energy gained, 20% less instability gained."
|
|
spell_power_desc = "Amount of energy gained scaled with spell power."
|
|
cost = 100
|
|
obj_path = /obj/item/spell/instability_tap
|
|
ability_icon_state = "tech_instabilitytap"
|
|
category = UTILITY_SPELLS
|
|
|
|
/obj/item/spell/instability_tap
|
|
name = "instability tap"
|
|
desc = "Short term gain for long term consequences never end bad, right?"
|
|
cast_methods = CAST_USE
|
|
aspect = ASPECT_UNSTABLE
|
|
|
|
/obj/item/spell/instability_tap/Initialize(mapload, coreless)
|
|
. = ..()
|
|
set_light(3, 2, l_color = "#FA58F4")
|
|
|
|
/obj/item/spell/instability_tap/on_use_cast(mob/user)
|
|
var/amount = calculate_spell_power(5000)
|
|
if(check_for_scepter())
|
|
core.give_energy(amount * 1.5)
|
|
adjust_instability(40)
|
|
else
|
|
core.give_energy(amount)
|
|
adjust_instability(50)
|
|
playsound(src, 'sound/effects/supermatter.ogg', 75, 1)
|
|
qdel(src)
|