Skip to content

Commit

Permalink
[MIRROR] Adds a suicide_act() to the smite spell (#838) (#1864)
Browse files Browse the repository at this point in the history
* Adds a suicide_act() to the smite spell (#81252)

## About The Pull Request
What it says on the tin
## Why It's Good For The Game

https://youtu.be/cvfLHTyDv9o?t=4
## Changelog
:cl: Wallem
add: Adds a new suicide_act() to the smite spell
/:cl:

* Adds a suicide_act() to the smite spell

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Wallem <[email protected]>
  • Loading branch information
3 people authored Feb 9, 2024
1 parent 4bba66e commit df6fdc4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/modules/spells/spell_types/touch/smite.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,13 @@
icon = 'icons/obj/weapons/hand.dmi'
icon_state = "disintegrate"
inhand_icon_state = "disintegrate"

/obj/item/melee/touch_attack/smite/suicide_act(mob/living/user)

user.visible_message(span_suicide("[user] spreads [user.p_their()] arms apart, lightning arcing between them! It looks like [user.p_theyre()] going out with a bang!"))
user.say("SHIA KAZING!!", forced = "smite suicide")
do_sparks(4, FALSE, get_turf(user))
explosion(user, heavy_impact_range = 2, explosion_cause = src) //Cheap explosion imitation because putting detonate() here causes runtimes
user.gib(DROP_BODYPARTS)
qdel(src)
return MANUAL_SUICIDE

0 comments on commit df6fdc4

Please sign in to comment.