Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3+ ascended heretics = lambda alert (+ fix nar'sie/ratvar alert levels) #4442

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Dec 1, 2024

About The Pull Request

according to Huk on discord:

Lambda is "supposed" to happen when more then 2 heretics ascend

so, if a heretic ascends, while 2 other ascended heretics are alive, this will automatically raise the alert to Lambda (5 secs after the announcement)

I also ported the refactor portion of my upstream PR, tgstation/tgstation#88149, and made it so nar'sie and ratvar properly set the alert to lambda instead of delta (also, clock cult code actually uses the security level defines now instead of just plain numbers)

also made it so ascended heretics are in the ghost orbit menu
image

Changelog

🆑
add: 3+ living ascended heretics will automatically raise the alert level to Lambda.
fix: Nar'sie and Ratvar now properly raise the alert level to Lambda.
qol: Ascended heretics are now in their own category in the ghost orbit menu.
refactor: Cleaned up code relating to heretic ascension announcements and traits.
/:cl:

… (#88149)

I kinda did a small refactor of heretic ascension announcement code,
based on what I did in
BeeStation/BeeStation-Hornet#11925

instead of each heretic ascension individually doing `priority_announce`
in `on_finished_recipe`, there's just `announcement_text` and
`announcement_sound` vars now, and a `announce_ascension` proc is called
in the shared `on_finished_recipe` of all final rituals.

The only reason the `announce_ascension` proc is needed is because lock
path uses a different format from all the other announcements, so the
final lock ritual needs to override the announcement so it can stay the
same.

Also made all heretic ascensions which apply traits use the type as the
trait source - before, they were inconsistently either using the type,
name, `REF(src)`, or `MAGIC_TRAIT` as the trait source.

also ash ascension did not need a `if(length(traits_to_apply))` check
before adding traits, bc it's adding traits from a *static, populated
list*.

ascension doesn't feel like a real word anymore with how much I've typed
and read it in the past 20 mins or so lol

cleaner code = good

:cl:
refactor: Cleaned up code relating to heretic ascension announcements
and traits.
/:cl:
@Absolucy Absolucy merged commit e6ad209 into Monkestation:master Dec 12, 2024
25 checks passed
@Absolucy Absolucy deleted the ascension-alert branch December 12, 2024 05:26
github-actions bot added a commit that referenced this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant