Skip to content

Commit

Permalink
changes and more load bearing vars
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jun 28, 2023
1 parent 0c35dcb commit b090c01
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions code/game/bioscans.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,20 @@ GLOBAL_DATUM_INIT(bioscan_data, /datum/bioscan_data, new)
var/marine_planet_location_string = "[marine_planet_location ? ", including one in [marine_planet_location]." : "."]"
var/marine_ship_location_string = "[marine_ship_location ? ", including one in [marine_ship_location]." : "."]"

var/ghost_scan = SPAN_ALERT("[xenos_on_planet] xenos on planet, with [larva] larva. [xenos_on_ship] xenos on the ship. [marines_on_planet] humans on the planet. [marines_on_ship] humans on the ship.")
var/yautja_scan = SPAN_ALERT("[xenos_on_planet] serpents present in the hunting ground[xeno_planet_location_string], with [larva] larva.\n[xenos_on_ship] serpents present on the human ship[xeno_ship_location_string]\n[marines_on_planet] humans present in the hunting ground[marine_planet_location_string]\n[marines_on_ship] humans present on the human ship[marine_ship_location_string]")
log_game("BIOSCAN: A Yautja/Ghost bioscan has completed.")
log_game("BIOSCAN: [xenos_on_planet] xenos on planet, with [larva] larva. [xenos_on_ship] xenos on the ship. [marines_on_planet] humans on the planet. [marines_on_ship] humans on the ship.")
log_game("BIOSCAN: [ghost_scan]")

//Announce the numbers to Yautja, they have good scanners
for(var/mob/living/carbon/human/yautja as anything in GLOB.yautja_mob_list)
to_chat(yautja, "<h2 class='alert'>Bioscan complete</h2>")
to_chat(yautja, SPAN_ALERT("[xenos_on_planet] serpents present in the hunting ground[xeno_planet_location_string], with [larva] larva.\n[xenos_on_ship] serpents present on the human ship[xeno_ship_location_string]\n[marines_on_planet] humans present in the hunting ground[marine_planet_location_string]\n[marines_on_ship] humans present on the human ship[marine_ship_location_string]"))
to_chat(yautja, yautja_scan)

//Let the ghosts know what's up, they also get good numbers
for(var/mob/dead/observer/ghost as anything in GLOB.observer_list)
to_chat(ghost, "<h2 class='alert'>Bioscan complete</h2>")
to_chat(ghost, SPAN_ALERT("[xenos_on_planet] xenos on planet, with [larva] larva.\n[xenos_on_ship] xenos on the ship.\n[marines_on_planet] humans on the planet.\n[marines_on_ship] humans on the ship."))
to_chat(ghost, ghost_scan)


/// This will do something after Project ARES.
Expand All @@ -124,13 +126,12 @@ GLOBAL_DATUM_INIT(bioscan_data, /datum/bioscan_data, new)
return
//Adjust the randomness there so everyone gets the same thing
var/fake_xenos_on_planet = max(0, xenos_on_planet + rand(-variance, variance))

log_game("BIOSCAN: ARES bioscan completed.")
log_game("BIOSCAN: Bioscan complete. Sensors indicate [xenos_on_ship_uncontained ? "[xenos_on_ship_uncontained]" : "no"] unknown lifeform signature[!xenos_on_ship_uncontained || xenos_on_ship_uncontained > 1 ? "s":""] present on the ship[xenos_on_ship_uncontained && xenos_ship_location ? ", including one in [xenos_ship_location]," : ""] and [fake_xenos_on_planet ? "approximately [fake_xenos_on_planet]" : "no"] signature[!fake_xenos_on_planet || fake_xenos_on_planet > 1 ? "s":""] located elsewhere[fake_xenos_on_planet && xenos_planet_location ? ", including one in [xenos_planet_location]":""].")

var/name = "[MAIN_AI_SYSTEM] Bioscan Status"
var/input = "Bioscan complete.\n\nSensors indicate [xenos_on_ship_uncontained ? "[xenos_on_ship_uncontained]" : "no"] unknown lifeform signature[!xenos_on_ship_uncontained || xenos_on_ship_uncontained > 1 ? "s":""] present on the ship[xenos_on_ship_uncontained && xenos_ship_location ? ", including one in [xenos_ship_location]," : ""] and [fake_xenos_on_planet ? "approximately [fake_xenos_on_planet]" : "no"] signature[!fake_xenos_on_planet || fake_xenos_on_planet > 1 ? "s":""] located elsewhere[fake_xenos_on_planet && xenos_planet_location ? ", including one in [xenos_planet_location]":""]."

log_game("BIOSCAN: ARES bioscan completed.")
log_game("BIOSCAN: [input]")

var/datum/ares_link/link = GLOB.ares_link
link.log_ares_bioscan(name, input)
if(forced || (link.p_interface && !link.p_interface.inoperable()))
Expand All @@ -146,11 +147,13 @@ GLOBAL_DATUM_INIT(bioscan_data, /datum/bioscan_data, new)
var/planet_hosts = "[marines_on_planet ? "[marines_on_planet]" : "none"]"
var/planet_location = "[marines_on_planet && marine_planet_location ? ", including one in [marine_planet_location]" : ""]"

log_game("BIOSCAN: Queen Mother bioscan completed.")
log_game("BIOSCAN: To my children and their Queen. I sense [metalhive_hosts] host[plural] in the metal hive [metalhive_location] and [planet_hosts] scattered elsewhere[planet_location].")
var/title = SPAN_XENOANNOUNCE("The Queen Mother reaches into your mind from worlds away.")
var/content = SPAN_XENOANNOUNCE("To my children and their Queen. I sense [metalhive_hosts] host[plural] in the metal hive [metalhive_location] and [planet_hosts] scattered elsewhere[planet_location].")

log_game("BIOSCAN: Queen Mother bioscan completed.")
log_game("BIOSCAN: [content]")
/// Shout it at everyone
for(var/mob/current_mob as anything in GLOB.living_xeno_list)
current_mob << sound(get_sfx("queen"), wait = 0, volume = 50)
to_chat(current_mob, SPAN_XENOANNOUNCE("The Queen Mother reaches into your mind from worlds away."))
to_chat(current_mob, SPAN_XENOANNOUNCE("To my children and their Queen. I sense [metalhive_hosts] host[plural] in the metal hive [metalhive_location] and [planet_hosts] scattered elsewhere[planet_location]."))
to_chat(current_mob, title)
to_chat(current_mob, content)

0 comments on commit b090c01

Please sign in to comment.