mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Update filter.dm
This commit is contained in:
@@ -186,7 +186,6 @@
|
|||||||
|
|
||||||
/obj/machinery/atmospherics/trinary/atmos_filter/tgui_act(action, params)
|
/obj/machinery/atmospherics/trinary/atmos_filter/tgui_act(action, params)
|
||||||
if(..())
|
if(..())
|
||||||
<<<<<<< HEAD
|
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
switch(action)
|
switch(action)
|
||||||
@@ -217,47 +216,10 @@
|
|||||||
if(3) //removing CO2
|
if(3) //removing CO2
|
||||||
filtered_out += "carbon_dioxide"
|
filtered_out += "carbon_dioxide"
|
||||||
if(4)//removing N2O
|
if(4)//removing N2O
|
||||||
filtered_out += "sleeping_agent"
|
filtered_out += "nitrous_oxide"
|
||||||
|
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
update_icon()
|
update_icon()
|
||||||
=======
|
|
||||||
return 1
|
|
||||||
usr.set_machine(src)
|
|
||||||
src.add_fingerprint(usr)
|
|
||||||
if(href_list["filterset"])
|
|
||||||
filter_type = text2num(href_list["filterset"])
|
|
||||||
|
|
||||||
filtered_out.Cut() //no need to create new lists unnecessarily
|
|
||||||
switch(filter_type)
|
|
||||||
if(0) //removing hydrocarbons
|
|
||||||
filtered_out += "phoron"
|
|
||||||
filtered_out += "oxygen_agent_b"
|
|
||||||
if(1) //removing O2
|
|
||||||
filtered_out += "oxygen"
|
|
||||||
if(2) //removing N2
|
|
||||||
filtered_out += "nitrogen"
|
|
||||||
if(3) //removing CO2
|
|
||||||
filtered_out += "carbon_dioxide"
|
|
||||||
if(4)//removing N2O
|
|
||||||
filtered_out += "nitrous_oxide"
|
|
||||||
|
|
||||||
if (href_list["temp"])
|
|
||||||
src.temp = null
|
|
||||||
if(href_list["set_flow_rate"])
|
|
||||||
var/new_flow_rate = input(usr,"Enter new flow rate (0-[air1.volume]L/s)","Flow Rate Control",src.set_flow_rate) as num
|
|
||||||
src.set_flow_rate = max(0, min(air1.volume, new_flow_rate))
|
|
||||||
if(href_list["power"])
|
|
||||||
update_use_power(!use_power)
|
|
||||||
src.update_icon()
|
|
||||||
src.updateUsrDialog()
|
|
||||||
/*
|
|
||||||
for(var/mob/M in viewers(1, src))
|
|
||||||
if ((M.client && M.machine == src))
|
|
||||||
src.attack_hand(M)
|
|
||||||
*/
|
|
||||||
return
|
|
||||||
>>>>>>> ee5190f... Merge pull request #7576 from Rykka-Stormheart/shep-dev-gas-overlay-updoot
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Mirrored Orientation - Flips the output dir to opposite side from normal.
|
// Mirrored Orientation - Flips the output dir to opposite side from normal.
|
||||||
|
|||||||
Reference in New Issue
Block a user