Files
Polaris/code/game/gamemodes/technomancer/spells/instability_tap.dm
MistakeNot4892 2f0a618d45 /atom New() => Initialize() [MDB IGNORE] (#8298)
* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
2021-11-14 00:09:14 -08:00

30 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/weapon/spell/instability_tap
ability_icon_state = "tech_instabilitytap"
category = UTILITY_SPELLS
/obj/item/weapon/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/weapon/spell/instability_tap/Initialize()
. = ..()
set_light(3, 2, l_color = "#FA58F4")
/obj/item/weapon/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)