Skip to content

Commit

Permalink
admin: Событие для тушения плазменых пожаров (#6475)
Browse files Browse the repository at this point in the history
* admin: Событие для тушения плазменых пожаров

* fix
  • Loading branch information
dageavtobusnick authored Jan 28, 2025
1 parent be30205 commit 11e98e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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 @@ -2168,6 +2168,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

0 comments on commit 11e98e1

Please sign in to comment.