Files
Bubberstation/code/modules/admin/smites/petrify.dm
T
itseasytosee 65703df45d Petrify Smite (#75538)
## About The Pull Request
adds a smite to petrify someone forever, works like the wizard spell.
Adds support to make petrification brainless.
Creates a var to remove those annoying "you can not move while buckled
to X" messages for abstract items like statues.
## Why It's Good For The Game
Smite good. Message spam bad.
## Changelog
🆑 itseasytosee
spellcheck: You should see a lot less "you can not move while bucked too
X" messages where they don't make sense.
admin: Added a petrify smite. Try it out on your least favorite player!
/🆑

---------

Co-authored-by: san7890 <the@san7890.com>
2023-07-03 13:10:18 -04:00

13 lines
390 B
Plaintext

/// Turn pur target to stone, forever
/datum/smite/petrify
name = "Petrify"
/datum/smite/petrify/effect(client/user, mob/living/target)
. = ..()
if(!ishuman(target))
to_chat(user, span_warning("This must be used on a human subtype."), confidential = TRUE)
return
var/mob/living/carbon/human/human_target = target
human_target.petrify(statue_timer = INFINITY, save_brain = FALSE)