mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-22 04:07:04 +01:00
AKA [PORT] Refactors smiting, adds smite build mode tgstation/tgstation#55327 !! NOT!! A!! RUNNING!! BUILD!! LIGHTNING IS BROKEN IMMERSE IS COMMENTED OUT HALF OF THIS SHIT IS BROKEN DO NOT BASE YOURSELF ON THIS BUILD!!
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)
|