mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes Atmospheric Scanner & DoS Traffic Generator (#12676)
* fixed mod pc atmo scanner and dos Turns out monster forgot to update the scanner and someone tried to compare two strings with == * forgot to press the save button removes the admin messages used for debugging
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
switch(action)
|
||||
if("PRG_target_relay")
|
||||
for(var/obj/machinery/ntnet_relay/R in SSnetworks.station_network.relays)
|
||||
if("[R.uid]" == params["targid"])
|
||||
if(R.uid == text2num(params["targid"]))
|
||||
target = R
|
||||
break
|
||||
return TRUE
|
||||
|
||||
@@ -31,9 +31,10 @@
|
||||
data["AirTemp"] = round(environment.return_temperature() - T0C)
|
||||
if (total_moles)
|
||||
for(var/id in env_gases)
|
||||
var/gas_level = env_gases[id][MOLES]/total_moles
|
||||
var/moles = environment.get_moles(id)
|
||||
var/gas_level = moles/total_moles
|
||||
if(gas_level > 0)
|
||||
airlist += list(list("name" = "[env_gases[id][GAS_META][META_GAS_NAME]]", "percentage" = round(gas_level*100, 0.01)))
|
||||
airlist += list(list("name" = "[GLOB.meta_gas_info[id][META_GAS_NAME]]", "percentage" = round(gas_level*100, 0.01)))
|
||||
data["AirData"] = airlist
|
||||
else
|
||||
data["AirPressure"] = 0
|
||||
|
||||
Reference in New Issue
Block a user