Sends a station announcement when a heretic is 1 sacrifice away from ascending (#2854)

## About The Pull Request
title
## Why It's Good For The Game
This makes it so stealth ascending is pretty much impossible, giving
security some time to really get their act together and go stop the bad
guy
## Proof Of Testing

![image](https://github.com/user-attachments/assets/5b83b86b-da7e-4778-a566-ef1c921bc198)
<details>
<summary>Screenshots/Videos</summary>

</details>

## Changelog
🆑
balance: Heretics announce themselves when they are 1 off ascending
/🆑

---------

Co-authored-by: The Sharkening <95130227+StrangeWeirdKitten@users.noreply.github.com>
This commit is contained in:
Odairu
2025-01-08 14:00:06 -05:00
committed by GitHub
parent 2255603150
commit 2840d238af
2 changed files with 13 additions and 1 deletions

View File

@@ -210,6 +210,7 @@
var/datum/antagonist/cult/cultist_datum = GET_CULTIST(sacrifice)
// Heads give 3 points, cultists give 1 point (and a special reward), normal sacrifices give 2 points.
heretic_datum.total_sacrifices++
check_sacrifice_total(user, heretic_datum) //BUBBER EDIT
if((sac_job_flag & JOB_HEAD_OF_STAFF))
heretic_datum.knowledge_points += 3
heretic_datum.high_value_sacrifices++

View File

@@ -1,4 +1,15 @@
/datum/objective/minor_sacrifice/New(text)
. = ..()
target_amount = rand(5, 6) // Essentially +1 from the amount /tg/ has. Can be edited later if needed.
target_amount = rand(4, 5) // Essentially +1 from the amount /tg/ has. Can be edited later if needed.
update_explanation_text()
/datum/heretic_knowledge/hunt_and_sacrifice/proc/check_sacrifice_total(mob/living/user, datum/antagonist/heretic/heretic_datum)
var/datum/objective/minor_sacrifice/sac_objective = locate() in heretic_datum.objectives
if(heretic_datum.total_sacrifices == (sac_objective.target_amount - 1))
priority_announce(
text = "High levels of eldri[generate_heretic_text()] energy detected - Threat levels elevated stop [generate_heretic_text(4)][user][generate_heretic_text(4)] at all costs. station loss imminent!",
title = generate_heretic_text(),
sound = "sound/music/antag/bloodcult/bloodcult_halos.ogg",
color_override = "purple",
)