mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
A tad more descriptive Air Alarm interface (and valves) (#17715)
* More descriptive atmos machines * filter out spurious "other" * spacing Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com> Co-authored-by: dearmochi <1496804+dearmochi@users.noreply.github.com>
This commit is contained in:
@@ -636,24 +636,24 @@
|
||||
|
||||
cur_tlv = TLV["oxygen"]
|
||||
var/oxygen_dangerlevel = cur_tlv.get_danger_level(environment.oxygen*GET_PP)
|
||||
var/oxygen_percent = round(environment.oxygen / total * 100, 2)
|
||||
var/oxygen_percent = environment.oxygen / total * 100
|
||||
|
||||
cur_tlv = TLV["nitrogen"]
|
||||
var/nitrogen_dangerlevel = cur_tlv.get_danger_level(environment.nitrogen*GET_PP)
|
||||
var/nitrogen_percent = round(environment.nitrogen / total * 100, 2)
|
||||
var/nitrogen_percent = environment.nitrogen / total * 100
|
||||
|
||||
cur_tlv = TLV["carbon dioxide"]
|
||||
var/co2_dangerlevel = cur_tlv.get_danger_level(environment.carbon_dioxide*GET_PP)
|
||||
var/co2_percent = round(environment.carbon_dioxide / total * 100, 2)
|
||||
var/co2_percent = environment.carbon_dioxide / total * 100
|
||||
|
||||
cur_tlv = TLV["plasma"]
|
||||
var/plasma_dangerlevel = cur_tlv.get_danger_level(environment.toxins*GET_PP)
|
||||
var/plasma_percent = round(environment.toxins / total * 100, 2)
|
||||
var/plasma_percent = environment.toxins / total * 100
|
||||
|
||||
cur_tlv = TLV["other"]
|
||||
var/other_moles = total - known_total
|
||||
var/other_dangerlevel = cur_tlv.get_danger_level(other_moles*GET_PP)
|
||||
var/other_percent = round(other_moles / total * 100, 2)
|
||||
var/other_percent = other_moles / total * 100
|
||||
|
||||
cur_tlv = TLV["temperature"]
|
||||
var/temperature_dangerlevel = cur_tlv.get_danger_level(environment.temperature)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
icon_state = "map_valve0"
|
||||
|
||||
name = "manual valve"
|
||||
desc = "A pipe valve"
|
||||
desc = "A pipe valve."
|
||||
|
||||
can_unwrench = 1
|
||||
|
||||
@@ -11,6 +11,10 @@
|
||||
|
||||
req_one_access_txt = "24;10"
|
||||
|
||||
/obj/machinery/atmospherics/binary/valve/examine(mob/user)
|
||||
. = ..()
|
||||
. += "It is currently [open ? "open" : "closed"]."
|
||||
|
||||
/obj/machinery/atmospherics/binary/valve/detailed_examine()
|
||||
return "Click this to turn the valve. If red, the pipes on each end are separated. Otherwise, they are connected."
|
||||
|
||||
@@ -65,6 +69,7 @@
|
||||
close()
|
||||
else
|
||||
open()
|
||||
to_chat(user, "<span class='notice'>You [open ? "open" : "close"] [src].</span>")
|
||||
|
||||
/obj/machinery/atmospherics/binary/valve/digital // can be controlled by AI
|
||||
name = "digital valve"
|
||||
|
||||
Reference in New Issue
Block a user