mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Co-authored-by: Fikou <piotrbryla@onet.pl> Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com> Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
15 lines
703 B
Plaintext
15 lines
703 B
Plaintext
/// Strikes the target with a lightning bolt
|
|
/datum/smite/lightning
|
|
name = "Lightning bolt"
|
|
|
|
/datum/smite/lightning/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
var/turf/lightning_source = get_step(get_step(target, NORTH), NORTH)
|
|
lightning_source.Beam(target, icon_state="lightning[rand(1,12)]", time = 5)
|
|
target.adjustFireLoss(LIGHTNING_BOLT_DAMAGE)
|
|
playsound(get_turf(user), 'sound/magic/lightningbolt.ogg', 50, TRUE)
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/human_target = target
|
|
human_target.electrocution_animation(LIGHTNING_BOLT_ELECTROCUTION_ANIMATION_LENGTH)
|
|
to_chat(target, "<span class='userdanger'>The gods have punished you for your sins!</span>", confidential = TRUE)
|