Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: Событие для тушения плазменых пожаров #6475

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions code/modules/events/plasma_decon.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/datum/event/plasma_decon
name = "Дезакцивация плазмы"

/datum/event/plasma_decon/announce()
GLOB.priority_announcement.Announce("Активирована экспериментальная система дезакцивации плазмы. Пожалуйста, стойте подальше от вентиляционных отверстий и не вдыхайте выходящий дым.", "ВНИМАНИЕ: ПРОТОКОЛ DECON!")

/datum/event/plasma_decon/start()// This only contains vent_pumps so don't bother with type checking
for(var/obj/machinery/atmospherics/unary/vent_pump/vent as anything in GLOB.all_vent_pumps)
if(vent && vent.loc && is_station_level(vent.loc.z))
var/datum/effect_system/fluid_spread/smoke/freezing/decon/smoke = new
smoke.set_up(7, location = get_turf(vent), blast_radius = 7)
smoke.start()
1 change: 1 addition & 0 deletions paradise.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,7 @@
#include "code\modules\events\money_lotto.dm"
#include "code\modules\events\money_spam.dm"
#include "code\modules\events\ninja.dm"
#include "code\modules\events\plasma_decon.dm"
#include "code\modules\events\prison_break.dm"
#include "code\modules\events\radiation_storm.dm"
#include "code\modules\events\rogue_drones.dm"
Expand Down
Loading