39fd90b17a
Refactors smiting out from being a large switch/case into datums. Adds a new smite option to build mode. This lets you choose a smite and rapidly apply it to a lot of people, presumably for EORG. Requested for by...one of the admins, I forget which.
9 lines
268 B
Plaintext
9 lines
268 B
Plaintext
/// Turns the user into a sliding puzzle
|
|
/datum/smite/puzzle
|
|
name = "Puzzle"
|
|
|
|
/datum/smite/puzzle/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
if(!puzzle_imprison(target))
|
|
to_chat(user, "<span class='warning'>Imprisonment failed!</span>", confidential = TRUE)
|