mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Merge pull request #6721 from Markolie/firelockdoorclose
Minor firelock/airlock force change and firelock explosion change
This commit is contained in:
@@ -891,8 +891,12 @@ About the new airlock wires panel:
|
||||
|
||||
if(arePowerSystemsOn())
|
||||
var/obj/item/weapon/crowbar/power/P = C
|
||||
playsound(src, 'sound/machines/airlock_alien_prying.ogg',100,1) //is it aliens or just the CE being a dick?
|
||||
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 100, 1) //is it aliens or just the CE being a dick?
|
||||
user.visible_message("<span class='notice'>[user] starts forcing [src] with \the [P]...</span>", \
|
||||
"<span class='notice'>You begin forcing [src] with \the [P]...</span>")
|
||||
if(do_after(user, P.airlock_open_time, target = src))
|
||||
user.visible_message("<span class='notice'>[user] forces [src] with \the [P].</span>", \
|
||||
"<span class='notice'>You force [src] with \the [P].</span>")
|
||||
open(2)
|
||||
if(density && !open(2))
|
||||
to_chat(user, "<span class='warning'>Despite your attempts, the [src] refuses to open.</span>")
|
||||
|
||||
@@ -36,6 +36,14 @@
|
||||
if(!density)
|
||||
return ..()
|
||||
return 0
|
||||
|
||||
/obj/machinery/door/firedoor/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
qdel(src)
|
||||
if(2.0)
|
||||
if(prob(50))
|
||||
qdel(src)
|
||||
|
||||
/obj/machinery/door/firedoor/power_change()
|
||||
if(powered(power_channel))
|
||||
@@ -93,7 +101,6 @@
|
||||
user.visible_message("[user] forces \the [src] with [C].",
|
||||
"You force \the [src] with [C].")
|
||||
if(density)
|
||||
autoclose = TRUE
|
||||
open()
|
||||
else
|
||||
close()
|
||||
@@ -110,7 +117,6 @@
|
||||
if(do_after(user, force_open_time, target = src))
|
||||
user.visible_message("<span class='notice'>[user] forces \the [src].</span>", \
|
||||
"<span class='notice'>You force \the [src].</span>")
|
||||
autoclose = TRUE
|
||||
open()
|
||||
else if(glass)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
@@ -160,9 +166,12 @@
|
||||
active_alarm = FALSE
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/door/firedoor/open()
|
||||
/obj/machinery/door/firedoor/open(auto_close = TRUE)
|
||||
. = ..()
|
||||
latetoggle()
|
||||
latetoggle(auto_close)
|
||||
|
||||
if(auto_close)
|
||||
autoclose = TRUE
|
||||
|
||||
/obj/machinery/door/firedoor/close()
|
||||
. = ..()
|
||||
@@ -174,22 +183,22 @@
|
||||
if(active_alarm)
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/door/firedoor/proc/latetoggle()
|
||||
/obj/machinery/door/firedoor/proc/latetoggle(auto_close = TRUE)
|
||||
if(operating || stat & NOPOWER || !nextstate)
|
||||
return
|
||||
switch(nextstate)
|
||||
if(OPEN)
|
||||
nextstate = null
|
||||
open()
|
||||
open(auto_close)
|
||||
if(CLOSED)
|
||||
nextstate = null
|
||||
close()
|
||||
|
||||
/obj/machinery/door/firedoor/proc/forcetoggle(magic = FALSE)
|
||||
/obj/machinery/door/firedoor/proc/forcetoggle(magic = FALSE, auto_close = TRUE)
|
||||
if(!magic && (operating || stat & NOPOWER))
|
||||
return
|
||||
if(density)
|
||||
open()
|
||||
open(auto_close)
|
||||
else
|
||||
close()
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
/datum/station_goal/bluespace_cannon/get_report()
|
||||
return {"<b>Bluespace Artillery position construction</b><br>
|
||||
Our military presence is inadequate in your sector. We need you to construct BSA-[rand(1,99)] Artillery position aboard your station.
|
||||
Our military presence is inadequate in your sector. We need you to construct a BSA-[rand(1,99)] Artillery position aboard your station.
|
||||
<br><br>
|
||||
Its base parts should be available for shipping by your cargo shuttle.
|
||||
<br>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
return {"<b>Station Shield construction</b><br>
|
||||
The station is located in a zone full of space debris. We have a prototype shielding system you will deploy to reduce collision related accidents.
|
||||
<br><br>
|
||||
You can order the satellites and control systems through cargo shuttle."}
|
||||
You can order the satellites and control systems through the cargo shuttle."}
|
||||
|
||||
/datum/station_goal/station_shield/on_report()
|
||||
//Unlock
|
||||
|
||||
Reference in New Issue
Block a user