mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
As a continuation of #9389 As a bonus, any drugs that mentioned their IRL counterpart in their description now describe their predecessor as ancient, and the new ones as modern. The biggest difference here is just the Antihistamine which was given a full new name. They're similar enough that they'll be recognized (most of them) but different enough for us to call our own and not care what the real medicines are/do since these are our sci-fantasy versions just inspired by them.
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
|
|
/datum/event/vent_clog
|
|
announceWhen = 1
|
|
startWhen = 5
|
|
endWhen = 35
|
|
var/interval = 2
|
|
var/list/vents = list()
|
|
var/list/gunk = list(
|
|
/datum/reagent/water,
|
|
/datum/reagent/carbon,
|
|
/datum/reagent/nutriment/flour,
|
|
/datum/reagent/spacecleaner,
|
|
/datum/reagent/nutriment,
|
|
/datum/reagent/capsaicin/condensed,
|
|
/datum/reagent/mindbreaker,
|
|
/datum/reagent/lube,
|
|
/datum/reagent/paint,
|
|
/datum/reagent/paint,
|
|
/datum/reagent/drink/banana,
|
|
/datum/reagent/space_drugs,
|
|
/datum/reagent/water/holywater,
|
|
/datum/reagent/drink/hot_coco,
|
|
/datum/reagent/hyperzine,
|
|
/datum/reagent/paint,
|
|
/datum/reagent/luminol,
|
|
/datum/reagent/fuel,
|
|
/datum/reagent/blood,
|
|
/datum/reagent/sterilizine,
|
|
/datum/reagent/verunol,
|
|
/datum/reagent/toxin/fertilizer/monoammoniumphosphate
|
|
)
|
|
var/list/gunk_data = list(
|
|
/datum/reagent/paint = list("#FE191A", "FDFE7D")
|
|
)
|
|
|
|
|
|
|
|
/datum/event/vent_clog/setup()
|
|
endWhen = rand(25, 100)
|
|
for(var/obj/machinery/atmospherics/unary/vent_scrubber/temp_vent in SSmachinery.processing_machines)
|
|
if(!temp_vent)
|
|
continue
|
|
if(isStationLevel(temp_vent.z))
|
|
if(temp_vent.network && temp_vent.network.normal_members.len > 20)
|
|
vents += temp_vent
|
|
if(!vents.len)
|
|
return kill()
|
|
|
|
/datum/event/vent_clog/tick()
|
|
if(activeFor % interval == 0)
|
|
var/obj/machinery/atmospherics/unary/vent_scrubber/vent = pick_n_take(vents)
|
|
|
|
if(vent && vent.loc && !vent.is_welded())
|
|
|
|
var/datum/reagents/R = new/datum/reagents(35)
|
|
R.my_atom = vent
|
|
var/chem = pick(gunk)
|
|
R.add_reagent(chem, 35, pick(gunk_data[chem]))
|
|
|
|
var/datum/effect/effect/system/smoke_spread/chem/smoke = new
|
|
smoke.show_log = 0 // This displays a log on creation
|
|
smoke.show_touch_log = 1 // This displays a log when a player is chemically affected
|
|
smoke.set_up(R, 10, 0, vent, 120)
|
|
playsound(vent.loc, 'sound/effects/smoke.ogg', 50, 1, -3)
|
|
smoke.start()
|
|
qdel(R)
|
|
|
|
|
|
/datum/event/vent_clog/announce()
|
|
command_announcement.Announce("The scrubbers network is experiencing a backpressure surge. Some ejection of contents may occur.", "Atmospherics alert", new_sound = 'sound/AI/scrubbers.ogg')
|