mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -4,8 +4,8 @@
|
||||
quality = POSITIVE
|
||||
difficulty = 12
|
||||
locked = TRUE
|
||||
text_gain_indication = span_notice("There is no darkness, even when you close your eyes!")
|
||||
text_lose_indication = span_notice("The blinding light fades.")
|
||||
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 shadow returns to your night sky.") //really hamfist in those references
|
||||
power_path = /datum/action/cooldown/spell/aoe/radiantburst
|
||||
instability = 30
|
||||
power_coeff = 1 //increases aoe
|
||||
@@ -22,7 +22,8 @@
|
||||
if(GET_MUTATION_SYNCHRONIZER(src) < 1)
|
||||
to_modify.safe = TRUE //don't blind yourself
|
||||
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
|
||||
name = "Radiant Burst"
|
||||
@@ -38,22 +39,24 @@
|
||||
cooldown_time = 15 SECONDS
|
||||
sound = 'sound/magic/blind.ogg'
|
||||
var/safe = FALSE
|
||||
var/strong = FALSE
|
||||
var/bonus_strength = 0
|
||||
|
||||
/datum/action/cooldown/spell/aoe/radiantburst/cast(atom/cast_on)
|
||||
. = ..()
|
||||
if(!safe && iscarbon(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.color = LIGHT_COLOR_HOLY_MAGIC
|
||||
animate(owner, 0.5 SECONDS, color = null)
|
||||
|
||||
/datum/action/cooldown/spell/aoe/radiantburst/cast_on_thing_in_aoe(atom/victim, atom/caster)
|
||||
if(!can_see(victim, caster))
|
||||
return
|
||||
if(ishuman(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))
|
||||
hurt.adjustFireLoss(strong? (-30) : (-20))
|
||||
hurt.adjustFireLoss(bonus_strength ? (-30) : (-20))
|
||||
to_chat(hurt, span_userdanger("The blinding light sears you!"))
|
||||
playsound(hurt, 'sound/weapons/sear.ogg', 75, TRUE)
|
||||
|
||||
Reference in New Issue
Block a user