Files
Bubberstation/code/modules/admin/smites/smite.dm
Jared-Fogle 39fd90b17a Refactors smiting, adds smite build mode (#55327)
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.
2020-12-11 00:22:00 +00:00

18 lines
636 B
Plaintext

/// A smite, used by admins to punish players, or for their own amusement
/datum/smite
/// The name of the smite, shown in the menu
var/name
/// Should this smite write to logs?
var/should_log = TRUE
/// Called once after either choosing the option to smite a player, or when selected in smite build mode.
/// Use this to prompt the user configuration options.
/// Return FALSE if the smite should not be used.
/datum/smite/proc/configure(client/user)
/// The effect of the smite, make sure to call this in your own smites
/datum/smite/proc/effect(client/user, mob/living/target)
if (should_log)
user.punish_log(target, name)