[MIRROR] Adds new announcements to hallucination announcements [MDB IGNORE] (#24535)

* Adds new announcements to hallucination announcements (#79179)

## About The Pull Request
Currently, `/datum/hallucination/station_message` uses old style
announcements, this pull request refactors it to use new announcement
style.

## Why It's Good For The Game

Old announcement style gives away that this announcement is fake.

## Changelog
🆑
fix: hallucination announcements use new announcement style
/🆑

* Adds new announcements to hallucination announcements

---------

Co-authored-by: loanselot <63502313+exdal@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-10-24 20:38:40 +02:00
committed by GitHub
parent a6995da07d
commit 7b343b7fa2

View File

@@ -9,17 +9,15 @@
/datum/hallucination/station_message/blob_alert /datum/hallucination/station_message/blob_alert
/datum/hallucination/station_message/blob_alert/start() /datum/hallucination/station_message/blob_alert/start()
to_chat(hallucinator, span_priorityannounce("Biohazard Alert")) priority_announce("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", \
to_chat(hallucinator, span_priorityalert("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.")) "Biohazard Alert", ANNOUNCER_OUTBREAK5, players = list(hallucinator))
SEND_SOUND(hallucinator, sound(SSstation.announcer.event_sounds[ANNOUNCER_OUTBREAK5]))
return ..() return ..()
/datum/hallucination/station_message/shuttle_dock /datum/hallucination/station_message/shuttle_dock
/datum/hallucination/station_message/shuttle_dock/start() /datum/hallucination/station_message/shuttle_dock/start()
to_chat(hallucinator, span_priorityannounce("Priority Announcement")) priority_announce("[SSshuttle.emergency || "The Emergency Shuttle"] has docked with the station. You have 3 minutes to board the Emergency Shuttle.", \
to_chat(hallucinator, span_priorityalert("[SSshuttle.emergency || "The Emergency Shuttle"] has docked with the station. You have 3 minutes to board the Emergency Shuttle.")) null, ANNOUNCER_SHUTTLEDOCK, ANNOUNCEMENT_TYPE_PRIORITY, players = list(hallucinator))
SEND_SOUND(hallucinator, sound(SSstation.announcer.event_sounds[ANNOUNCER_SHUTTLEDOCK]))
return ..() return ..()
/datum/hallucination/station_message/malf_ai /datum/hallucination/station_message/malf_ai
@@ -28,9 +26,8 @@
if(!(locate(/mob/living/silicon/ai) in GLOB.silicon_mobs)) if(!(locate(/mob/living/silicon/ai) in GLOB.silicon_mobs))
return FALSE return FALSE
to_chat(hallucinator, span_priorityannounce("Anomaly Alert")) priority_announce("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.", \
to_chat(hallucinator, span_priorityalert("Hostile runtimes detected in all station systems, please deactivate your AI to prevent possible damage to its morality core.")) "Anomaly Alert", ANNOUNCER_AIMALF, players = list(hallucinator))
SEND_SOUND(hallucinator, sound(SSstation.announcer.event_sounds[ANNOUNCER_AIMALF]))
return ..() return ..()
/datum/hallucination/station_message/heretic /datum/hallucination/station_message/heretic
@@ -52,10 +49,7 @@
var/message_with_name = pick(ascension_bodies) var/message_with_name = pick(ascension_bodies)
message_with_name = replacetext(message_with_name, "%FAKENAME%", totally_real_heretic.real_name) message_with_name = replacetext(message_with_name, "%FAKENAME%", totally_real_heretic.real_name)
priority_announce("[generate_heretic_text()] [message_with_name] [generate_heretic_text()]","[generate_heretic_text()]", ANNOUNCER_SPANOMALIES, players = list(hallucinator))
to_chat(hallucinator, span_priorityannounce("[generate_heretic_text()]"))
to_chat(hallucinator, span_priorityalert("[generate_heretic_text()] [message_with_name] [generate_heretic_text()]"))
SEND_SOUND(hallucinator, sound(SSstation.announcer.event_sounds[ANNOUNCER_SPANOMALIES]))
return ..() return ..()
/datum/hallucination/station_message/cult_summon /datum/hallucination/station_message/cult_summon
@@ -71,20 +65,17 @@
var/area/fake_summon_area_type = pick(GLOB.the_station_areas - hallucinator_area.type) var/area/fake_summon_area_type = pick(GLOB.the_station_areas - hallucinator_area.type)
var/area/fake_summon_area = GLOB.areas_by_type[fake_summon_area_type] var/area/fake_summon_area = GLOB.areas_by_type[fake_summon_area_type]
to_chat(hallucinator, span_priorityannounce("Central Command Higher Dimensional Affairs")) priority_announce("Figments from an eldritch god are being summoned by [totally_real_cult_leader.real_name] \
to_chat(hallucinator, span_priorityalert("Figments from an eldritch god are being summoned by [totally_real_cult_leader.real_name] \ into [fake_summon_area] from an unknown dimension. Disrupt the ritual at all costs!", \
into [fake_summon_area] from an unknown dimension. Disrupt the ritual at all costs!")) "Central Command Higher Dimensional Affairs", \
sound = 'sound/ambience/antag/bloodcult/bloodcult_scribe.ogg', has_important_message = TRUE, players = list(hallucinator))
SEND_SOUND(hallucinator, 'sound/ambience/antag/bloodcult/bloodcult_scribe.ogg')
return ..() return ..()
/datum/hallucination/station_message/meteors /datum/hallucination/station_message/meteors
random_hallucination_weight = 2 random_hallucination_weight = 2
/datum/hallucination/station_message/meteors/start() /datum/hallucination/station_message/meteors/start()
to_chat(hallucinator, span_priorityannounce("Meteor Alert")) priority_announce("Meteors have been detected on collision course with the station.", "Meteor Alert", ANNOUNCER_METEORS, players = list(hallucinator))
to_chat(hallucinator, span_priorityalert("Meteors have been detected on collision course with the station."))
SEND_SOUND(hallucinator, sound(SSstation.announcer.event_sounds[ANNOUNCER_METEORS]))
return ..() return ..()
/datum/hallucination/station_message/supermatter_delam /datum/hallucination/station_message/supermatter_delam