mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Adds ability to sort the spells section of the catalog into categories. The categories available are 'All', 'Offensive', 'Defensive', 'Utility', and 'Support'. Removes preset section on catalog as it was unused. Projectile spells now have a sound when fired. Haste lasts five seconds instead of three. Repel Missiles lasts for five minutes instead of two. All healing spells work five times as fast, healing in five seconds instead of twenty five seconds. The amount of instability and healing done has been multiplied to remain consistent. Passwall can now be used on more than just walls, if there's something dense on the same tile. Force Missile is now 25% cheaper to cast, and has a cooldown of .5 seconds instead of one second, and does 5 more damage. Beam's damage is increased by 10, and energy cost decreased by 25%. Lightning's warm-up time is now one second instead of two. Overload now costs 10% of total energy instead of 15%, and damage scaled with 4% of their current energy reserves, and 5% with the Scepter, instead of 3%/4%. Additionally, instability per shot is lowered to 12 from 15. Track now costs 25 points instead of 30 in the catalog, because roundness. Fire Aura should look more impressive without a Scepter. Fixes bug where shooting Lightning made you motionless for twenty seconds.
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
/datum/technomancer/spell/oxygenate
|
|
name = "Oxygenate"
|
|
desc = "This function creates oxygen at a location of your chosing. If used on a humanoid entity, it heals oxygen deprivation. \
|
|
If casted on the envirnment, air (oxygen and nitrogen) is moved from a distant location to your target."
|
|
cost = 70
|
|
obj_path = /obj/item/weapon/spell/oxygenate
|
|
ability_icon_state = "oxygenate"
|
|
category = SUPPORT_SPELLS
|
|
|
|
/obj/item/weapon/spell/oxygenate
|
|
name = "oxygenate"
|
|
desc = "Atmospherics is obsolete."
|
|
icon_state = "darkness" //wip
|
|
cast_methods = CAST_RANGED
|
|
aspect = ASPECT_AIR
|
|
cooldown = 30
|
|
|
|
/obj/item/weapon/spell/oxygenate/on_ranged_cast(atom/hit_atom, mob/user)
|
|
if(ishuman(hit_atom))
|
|
var/mob/living/carbon/human/H = hit_atom
|
|
if(pay_energy(1500))
|
|
H.adjustOxyLoss(-35)
|
|
owner.adjust_instability(10)
|
|
return
|
|
else if(isturf(hit_atom))
|
|
var/turf/T = hit_atom
|
|
if(pay_energy(1500))
|
|
T.assume_gas("oxygen", 200)
|
|
T.assume_gas("nitrogen", 800)
|
|
playsound(src.loc, 'sound/effects/spray.ogg', 50, 1, -3)
|
|
owner.adjust_instability(10) |