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:
nmajask
2021-11-16 10:01:57 -05:00
committed by GitHub
parent 2a535ba7d4
commit f2e7f65846
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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