mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
999bde8f84
## About The Pull Request Most screen alerts that use the midnight hud style no longer have the button baked in their icon. Other screen alerts with their own background or shape (robot and mech alerts, atmos, heretic buffs or debuffs etc.) are not affected. Also updated a couple sprites but didn't spend too much time on them. Mostly reusing existing assets. Montage of how the alerts look on threee different hud styles (Operative, Trasen-Knox, Detective, ALSO I FIXED THE BUCKLED ALERT ALREADY): <img width="293" height="323" alt="image" src="https://github.com/user-attachments/assets/3a2b972b-aa5a-4c27-a454-c8c39acf6e20" /> It looks only a smidge iffy on the syndicate since the top and bottom borders aren't layered over all the overlays, but it isn't something to worry about in this PR. ## Why It's Good For The Game Screen alerts always had the midnight hud button baked in their icon states (now overlays), which completely disregard the player's hud setting, much unlike action alerts buttons. Melbert has also said that it'd be nice if the code for action buttons could also be used in screen alerts and viceversa, to slim things down. That's obviously not what I'm doing today, but having most of the screen alerts already without the baked background will surely help if we ever pursue that objective. ## Changelog 🆑 refactor: Refactored screen alerts a little. Most should now fit the player's hud style. Report any issue. imageadd: A few screen alerts have been polished/updated a little. /🆑
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
/// How much terror is applied upon first cast of Terrify
|
|
#define TERROR_INITIAL_AMOUNT 100
|
|
/// Amount of terror caused by subsequent casting of the Terrify spell.
|
|
#define STACK_TERROR_AMOUNT 135
|
|
|
|
/datum/status_effect/terrified
|
|
id = "terrified"
|
|
status_type = STATUS_EFFECT_REFRESH
|
|
remove_on_fullheal = TRUE
|
|
alert_type = /atom/movable/screen/alert/status_effect/terrified
|
|
|
|
/datum/status_effect/terrified/on_apply()
|
|
to_chat(owner, span_alert("The darkness closes in around you, shadows dance around the corners of your vision... It feels like something is watching you!"))
|
|
owner.emote("scream")
|
|
owner.AddComponentFrom("terrified", /datum/component/fearful, list(/datum/terror_handler/simple_source/nyctophobia/terrified), TERROR_INITIAL_AMOUNT)
|
|
return TRUE
|
|
|
|
/datum/status_effect/terrified/on_remove()
|
|
owner.RemoveComponentSource("terrified", /datum/component/fearful)
|
|
|
|
/datum/status_effect/terrified/refresh(effect, ...)
|
|
// Jank way of adding terror to the existing component
|
|
owner.AddComponentFrom("terrified", /datum/component/fearful, null, STACK_TERROR_AMOUNT)
|
|
|
|
/// The status effect popup for the terror status effect
|
|
/atom/movable/screen/alert/status_effect/terrified
|
|
name = "Terrified!"
|
|
desc = "You feel a supernatural darkness settle in around you, overwhelming you with panic! Get into the light!"
|
|
use_user_hud_icon = TRUE
|
|
overlay_state = "terrified"
|
|
|
|
#undef TERROR_INITIAL_AMOUNT
|
|
#undef STACK_TERROR_AMOUNT
|