mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
* LINDA -> MILLA * Tiles now change their atmos mode properly. * Fixed a bug that made walls generate supercold air when deconstructed/destroyed. * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Begone, var! * MILLA -> milla * Lint. * More lint. * Prevent negative/NaN atmos from spreading. * Made fires start more reliably. * Undef what the rest should not see. * Enums are nice. * Match LINDA better. * Debugging verbs. * Debug verb fixes. * Labelled more lavaland stuff with ATMOS_MODE_LAVALAND * Block superconductivity on a couple more things for Lavaland. * Updated milla.dll * Lavaland map fixes. * Missed a spot. * Begone, var! (again) * Add libmilla_ci.so for continuous integration tests. * Install/contributing instructions for MILLA. * Directional plasmaglass windows on shuttles shouldn't stop protecting from heat after moving. * Banish bad naming. * Better naming and debug stats for SSair. * Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Magic numbers and formatting. * Don't screw up the temperature during reactions. * Efficiency and readability. * Fix hotspots. * Removed redundant safety (MILLA will already output an error) * Optimizations. * oops * TGS build script update. * Change API of gas_mixture and how you get one from a turf. * Get in there. * so many vars * MILLA binary updates. * Lint * Made MT cost more honest. * Gave MILLA a read-only mode. * More read-only vs synchronized mode work. * Even more. * Synchronize disposals. * Updated a bunch of stuff to use SSair.synchronize or GM.synchronize. * MILLA <3 Tracy * lint * cargo fmt * more lint * Test needed MILLA sync. * Silence atmos machinery that's behaving as intended, but continue objecting to other potential failures to synchronize. * Push new MILLA DLL * Build MILLA * Update PR instructions for MILLA. * Add some fancy plasmaglass windows to the Lifebringers' ship. * The golems remembered that they should insulate *all* their engines. * First round of TM bugfixes. * Build MILLA * fix two lavaland ruin turf types * bunch more maps * fixes milla ci and makes the interesting turf verb better * Solid turfs can no longer conduct heat (for now...) * Made indoor tiles in beach and winter biodomes not lavaland air. * Re-added random IT teleport, adjusted warning message * Fixed a tinted window on Lavaland to be a plasglass window instead. * Made firelocks and holofans heatproof * Made RPD auto-wrench pipes if you have a wrench in your offhand. * Runtime fixes. * Made visuals update more reliably. * Lint * Update .github/CONTRIBUTING.md Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Build MILLA * The Syndicate have installed tiny fans on their research base. * The syndicate have figured out how to make plastitanium windows heatproof. * This is getting out of hand. Now there are two of them. * Un-break the auto-wrenching that I broke before committing. * Build MILLA * Build MILLA * Massive MILLA refactor, assorted bugfixes. * Build MILLA * Explicit typing. * Less sleeping/blocking. * Build MILLA * Yes, yes, this part can sleep. * Build MILLA * SSair reporting improvements. * Build MILLA * Please do not dock twice and splat yourself. * Build MILLA * Pls to not make SM go nuts. * Build MILLA * Build MILLA * Added stricter lower bounds on plasmafire, fixing perpetually-burning SM. * Build MILLA * Lint * Temporary logging, begone. * Build MILLA * Prevent hotspot strobing. * Add in radiate_to_spess behavior. * Build MILLA * progress * Compiling is good. * bugfixes * Progress. * Ruins update. * This one exists. * Fixup temporary hotspots to last longer than one tick. * Add/fix comments. * Cut the slash. * Fix test. * No sleep for you. * Build MILLA * Prevent nested MILLA safety from runtiming. * Build MILLA * Runtime fix. * Build MILLA * Fix canisters not updating icon when gas contents change. * Build MILLA * Build MILLA * Fixed an issue that made mechs very cold on environment air. * Build MILLA * oops * Build MILLA * Walls can make loud noises again. * Build MILLA * Fixes a rare runtime. * Build MILLA * Update .github/DOWNLOADING.md Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Review suggestions * Lint * Build MILLA * bound_mixtures now only contains mixtures that can be written * Build MILLA * Apply suggestions from code review Co-authored-by: Matt <116982774+Burzah@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> * Build MILLA * Restore the original async behavior of pyro anomalies. * Build MILLA * Build MILLA * Make the safety assertion in /datum/milla_safe safer. * Build MILLA --------- Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: GDN <Roanrichards1@Gmail.com>
220 lines
6.6 KiB
Plaintext
220 lines
6.6 KiB
Plaintext
/datum/supermatter_event
|
|
var/name = "Unknown X-K (Report this to coders)"
|
|
var/obj/machinery/atmospherics/supermatter_crystal/supermatter
|
|
/// Probability of the event not running, higher tiers being rarer
|
|
var/threat_level
|
|
var/duration
|
|
var/turf/supermatter_turf
|
|
|
|
/datum/supermatter_event/New(obj/machinery/atmospherics/supermatter_crystal/_supermatter)
|
|
. = ..()
|
|
supermatter = _supermatter
|
|
supermatter_turf = get_turf(supermatter)
|
|
if(!supermatter)
|
|
stack_trace("a /datum/supermatter_event was called without an involved supermatter.")
|
|
return
|
|
if(!istype(supermatter))
|
|
stack_trace("a /datum/supermatter_event was called with (name: [supermatter], type: [supermatter.type]) instead of a supermatter!")
|
|
return
|
|
|
|
/datum/supermatter_event/proc/start_event()
|
|
supermatter.event_active = src
|
|
on_start()
|
|
alert_engi()
|
|
supermatter.investigate_log("event [src] has been triggered", "supermatter")
|
|
if(duration)
|
|
addtimer(CALLBACK(src, PROC_REF(on_end)), duration)
|
|
|
|
/datum/supermatter_event/proc/on_start()
|
|
return
|
|
|
|
/datum/supermatter_event/proc/alert_engi()
|
|
return
|
|
|
|
/datum/supermatter_event/proc/on_end()
|
|
sm_radio_say("<b>Anomalous crystal activity has ended.</b>")
|
|
supermatter.heat_penalty_threshold = SUPERMATTER_HEAT_PENALTY_THRESHOLD
|
|
supermatter.gas_multiplier = 1
|
|
supermatter.power_additive = 0
|
|
supermatter.heat_multiplier = 1
|
|
supermatter.event_active = null
|
|
|
|
/datum/supermatter_event/proc/sm_radio_say(text)
|
|
if(!text)
|
|
return
|
|
supermatter.radio.autosay(text, supermatter, "Engineering")
|
|
|
|
/datum/supermatter_event/proc/general_radio_say(text)
|
|
if(!text)
|
|
return
|
|
supermatter.radio.autosay(text, supermatter, null)
|
|
|
|
// Below this are procs used for the SM events, in order of severity
|
|
|
|
//D class events
|
|
|
|
/datum/supermatter_event/delta_tier
|
|
threat_level = SM_EVENT_THREAT_D
|
|
duration = 10 SECONDS
|
|
|
|
/datum/supermatter_event/delta_tier/alert_engi()
|
|
sm_radio_say("Abnormal crystal activity detected! Activity class: [name].")
|
|
|
|
// sleeping gas
|
|
/datum/supermatter_event/delta_tier/sleeping_gas
|
|
name = "D-1"
|
|
|
|
/datum/supermatter_event/delta_tier/sleeping_gas/on_start()
|
|
var/datum/gas_mixture/air = new()
|
|
air.set_sleeping_agent(200)
|
|
supermatter_turf.blind_release_air(air)
|
|
|
|
// nitrogen
|
|
/datum/supermatter_event/delta_tier/nitrogen
|
|
name = "D-2"
|
|
|
|
/datum/supermatter_event/delta_tier/nitrogen/on_start()
|
|
var/datum/gas_mixture/air = new()
|
|
air.set_nitrogen(200)
|
|
supermatter_turf.blind_release_air(air)
|
|
|
|
// carbon dioxide
|
|
/datum/supermatter_event/delta_tier/carbon_dioxide
|
|
name = "D-3"
|
|
|
|
/datum/supermatter_event/delta_tier/carbon_dioxide/on_start()
|
|
var/datum/gas_mixture/air = new()
|
|
air.set_carbon_dioxide(250)
|
|
supermatter_turf.blind_release_air(air)
|
|
|
|
|
|
// C class events
|
|
|
|
/datum/supermatter_event/charlie_tier
|
|
threat_level = SM_EVENT_THREAT_C
|
|
duration = 15 SECONDS
|
|
|
|
/datum/supermatter_event/charlie_tier/alert_engi()
|
|
sm_radio_say("Anomalous crystal activity detected. Activity class: [name]. Operator intervention may be required.")
|
|
|
|
// oxygen
|
|
/datum/supermatter_event/charlie_tier/oxygen
|
|
name = "C-1"
|
|
|
|
/datum/supermatter_event/charlie_tier/oxygen/on_start()
|
|
var/datum/gas_mixture/air = new()
|
|
air.set_oxygen(250)
|
|
supermatter_turf.blind_release_air(air)
|
|
|
|
// plasma
|
|
/datum/supermatter_event/charlie_tier/plasma
|
|
name = "C-2"
|
|
|
|
/datum/supermatter_event/charlie_tier/plasma/on_start()
|
|
var/datum/gas_mixture/air = new()
|
|
air.set_toxins(200)
|
|
supermatter_turf.blind_release_air(air)
|
|
|
|
// lowers the temp required for the SM to take damage.
|
|
/datum/supermatter_event/charlie_tier/heat_penalty_threshold
|
|
name = "C-3"
|
|
duration = 5 MINUTES
|
|
|
|
/datum/supermatter_event/charlie_tier/heat_penalty_threshold/on_start()
|
|
supermatter.heat_penalty_threshold -= -73
|
|
|
|
//Class B events
|
|
/datum/supermatter_event/bravo_tier
|
|
threat_level = SM_EVENT_THREAT_B
|
|
duration = 1 MINUTES
|
|
|
|
/datum/supermatter_event/bravo_tier/alert_engi()
|
|
sm_radio_say("<b>Anomalous crystal activity detected! Activity class: [name]. Operator intervention is required!</b>")
|
|
|
|
|
|
// more gas
|
|
/datum/supermatter_event/bravo_tier/gas_multiply
|
|
name = "B-1"
|
|
|
|
/datum/supermatter_event/bravo_tier/gas_multiply/on_start()
|
|
supermatter.gas_multiplier = 1.5
|
|
|
|
|
|
/datum/supermatter_event/bravo_tier/heat_multiplier
|
|
name = "B-2"
|
|
|
|
/datum/supermatter_event/bravo_tier/heat_multiplier/on_start()
|
|
supermatter.heat_multiplier = 1.25
|
|
|
|
/datum/supermatter_event/bravo_tier/power_additive
|
|
name = "B-3"
|
|
|
|
/datum/supermatter_event/bravo_tier/power_additive/on_start()
|
|
supermatter.power += 3000
|
|
duration = 10 SECONDS
|
|
|
|
//A class events
|
|
/datum/supermatter_event/alpha_tier
|
|
threat_level = SM_EVENT_THREAT_A
|
|
duration = 10 SECONDS
|
|
|
|
/datum/supermatter_event/alpha_tier/alert_engi()
|
|
sm_radio_say("<span class='big'>ALERT: Critical anomalous crystal activity detected! Activity class: [name]. IMMEDIATE Operator intervention is REQUIRED!</span>")
|
|
|
|
/datum/supermatter_event/alpha_tier/apc_short
|
|
name = "A-1"
|
|
|
|
/datum/supermatter_event/alpha_tier/apc_short/on_start()
|
|
var/area/current_area = get_area(supermatter)
|
|
var/obj/machinery/power/apc/A = current_area.get_apc()
|
|
A.apc_short()
|
|
|
|
/datum/supermatter_event/alpha_tier/air_siphon
|
|
name = "A-2"
|
|
|
|
/datum/supermatter_event/alpha_tier/air_siphon/on_start()
|
|
var/area/current_area = get_area(supermatter)
|
|
for(var/obj/machinery/alarm/A in current_area)
|
|
A.apply_mode(AALARM_MODE_OFF)
|
|
|
|
/datum/supermatter_event/alpha_tier/gas_multiplier
|
|
name = "A-3"
|
|
duration = 2 MINUTES
|
|
|
|
/datum/supermatter_event/alpha_tier/gas_multiplier/on_start()
|
|
supermatter.gas_multiplier = 4
|
|
|
|
// S-tier events are special. They are very dangerous, but give a 5 minute warning to the engis.
|
|
/datum/supermatter_event/sierra_tier
|
|
threat_level = SM_EVENT_THREAT_S
|
|
duration = 7 MINUTES // 2 MINUTES of s-tier anomaly
|
|
|
|
/datum/supermatter_event/sierra_tier/alert_engi()
|
|
general_radio_say("<span class='big'>ALERT: Anomalous supermatter state expected in: 5 minutes.</span>")
|
|
sm_radio_say("<span class='reallybig'>EMERGENCY ALERT: 5 MINUTES UNTIL [supermatter] EXHIBITS [name] CLASS ANOMALOUS ACTIVITY!</span>")
|
|
|
|
/datum/supermatter_event/sierra_tier/on_start()
|
|
addtimer(CALLBACK(src, PROC_REF(start_sierra_event)), 5 MINUTES)
|
|
supermatter.has_run_sclass = TRUE
|
|
|
|
/datum/supermatter_event/sierra_tier/proc/start_sierra_event()
|
|
general_radio_say("<span class='big'>ALERT: ANOMALOUS SUPERMATTER STATE DETECTED!</span>")
|
|
sm_radio_say("<span class='reallybig'>EMERGENCY ALERT: Class [name] anomalous behavior in progress!</span>")
|
|
|
|
//S class events
|
|
//Arc-type
|
|
/datum/supermatter_event/sierra_tier/arc
|
|
name = "S-ARC"
|
|
|
|
/datum/supermatter_event/sierra_tier/arc/start_sierra_event()
|
|
..()
|
|
supermatter.power_additive = 6000
|
|
|
|
// Laminate type
|
|
/datum/supermatter_event/sierra_tier/laminate
|
|
name = "S-LAMINATE REJECTION"
|
|
|
|
/datum/supermatter_event/sierra_tier/laminate/start_sierra_event()
|
|
..()
|
|
supermatter.heat_multiplier = 10
|