mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-06 15:02:29 +00:00
* Replace alert usage with tgui_alert * a * Update observer.dm Co-authored-by: Celotajs <81999976+celotajstg@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
18 lines
715 B
Plaintext
18 lines
715 B
Plaintext
/// Gives the target bad luck, optionally permanently
|
|
/datum/smite/bad_luck
|
|
name = "Bad Luck"
|
|
|
|
/// Should the target know they've received bad luck?
|
|
var/silent
|
|
|
|
/// Is this permanent?
|
|
var/permanent
|
|
|
|
/datum/smite/bad_luck/configure(client/user)
|
|
silent = tgui_alert(user, "Do you want to apply the omen with a player notification?", "Notify Player?", list("Notify", "Silent")) == "Silent"
|
|
permanent = tgui_alert(user, "Would you like this to be permanent or removed automatically after the first accident?", "Permanent?", list("Permanent", "Temporary")) == "Permanent"
|
|
|
|
/datum/smite/bad_luck/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
target.AddComponent(/datum/component/omen, silent, null, permanent)
|