mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
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  <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:
@@ -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++
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user