Radiant burst quality pass (#22344)

* Update radiantburst.dm

* Update radiantburst.dm

* Update code/datums/mutations/radiantburst.dm

Co-authored-by: SapphicOverload <93578146+SapphicOverload@users.noreply.github.com>

---------

Co-authored-by: SapphicOverload <93578146+SapphicOverload@users.noreply.github.com>
This commit is contained in:
Molti
2024-07-14 22:39:39 -05:00
committed by GitHub
parent 425ea6893f
commit b751d8b1d6

View File

@@ -4,8 +4,8 @@
quality = POSITIVE quality = POSITIVE
difficulty = 12 difficulty = 12
locked = TRUE locked = TRUE
text_gain_indication = span_notice("There is no darkness, even when you close your eyes!") text_gain_indication = span_notice("The light surges within you! Ah, such bliss.") //changing this to be a reference because who's gonna stop me, I made the gene in the first place
text_lose_indication = span_notice("The blinding light fades.") text_lose_indication = span_notice("The shadow returns to your night sky.") //really hamfist in those references
power_path = /datum/action/cooldown/spell/aoe/radiantburst power_path = /datum/action/cooldown/spell/aoe/radiantburst
instability = 30 instability = 30
power_coeff = 1 //increases aoe power_coeff = 1 //increases aoe
@@ -22,7 +22,8 @@
if(GET_MUTATION_SYNCHRONIZER(src) < 1) if(GET_MUTATION_SYNCHRONIZER(src) < 1)
to_modify.safe = TRUE //don't blind yourself to_modify.safe = TRUE //don't blind yourself
if(GET_MUTATION_POWER(src) > 1) if(GET_MUTATION_POWER(src) > 1)
to_modify.strong = TRUE //damages darkspawns more and bypasses blindness check to_modify.bonus_strength += 1 //damages darkspawns more and blinds more
to_modify.aoe_radius += 1
/datum/action/cooldown/spell/aoe/radiantburst /datum/action/cooldown/spell/aoe/radiantburst
name = "Radiant Burst" name = "Radiant Burst"
@@ -38,22 +39,24 @@
cooldown_time = 15 SECONDS cooldown_time = 15 SECONDS
sound = 'sound/magic/blind.ogg' sound = 'sound/magic/blind.ogg'
var/safe = FALSE var/safe = FALSE
var/strong = FALSE var/bonus_strength = 0
/datum/action/cooldown/spell/aoe/radiantburst/cast(atom/cast_on) /datum/action/cooldown/spell/aoe/radiantburst/cast(atom/cast_on)
. = ..() . = ..()
if(!safe && iscarbon(owner)) if(!safe && iscarbon(owner))
var/mob/living/carbon/dummy = owner var/mob/living/carbon/dummy = owner
dummy.flash_act(3, strong) //it's INSIDE you, it's gonna blind dummy.flash_act(3 + bonus_strength) //it's INSIDE you, it's gonna blind
owner.visible_message(span_warning("[owner] releases a blinding light from within themselves."), span_notice("You release all the light within you.")) owner.visible_message(span_warning("[owner] releases a blinding light from within themselves."), span_notice("You release all the light within you."))
owner.color = LIGHT_COLOR_HOLY_MAGIC owner.color = LIGHT_COLOR_HOLY_MAGIC
animate(owner, 0.5 SECONDS, color = null) animate(owner, 0.5 SECONDS, color = null)
/datum/action/cooldown/spell/aoe/radiantburst/cast_on_thing_in_aoe(atom/victim, atom/caster) /datum/action/cooldown/spell/aoe/radiantburst/cast_on_thing_in_aoe(atom/victim, atom/caster)
if(!can_see(victim, caster))
return
if(ishuman(victim)) if(ishuman(victim))
var/mob/living/carbon/human/hurt = victim var/mob/living/carbon/human/hurt = victim
hurt.flash_act(1, strong)//only strength of 1, so sunglasses protect from it unless strengthened hurt.flash_act(1 + bonus_strength)//only strength of 1, so sunglasses protect from it unless strengthened
if(isdarkspawn(hurt)) if(isdarkspawn(hurt))
hurt.adjustFireLoss(strong? (-30) : (-20)) hurt.adjustFireLoss(bonus_strength ? (-30) : (-20))
to_chat(hurt, span_userdanger("The blinding light sears you!")) to_chat(hurt, span_userdanger("The blinding light sears you!"))
playsound(hurt, 'sound/weapons/sear.ogg', 75, TRUE) playsound(hurt, 'sound/weapons/sear.ogg', 75, TRUE)