mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 16:41:48 +00:00
* 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. * Refactors smiting, adds smite build mode Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
18 lines
636 B
Plaintext
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)
|