Skip to content

Commit

Permalink
Update area_atmos_computer.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
CampinKiller24 committed Sep 11, 2023
1 parent 54adc24 commit f1926d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/game/machinery/atmoalter/area_atmos_computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
scanscrubbers()

/obj/machinery/computer/area_atmos/attack_ai(var/mob/user as mob)
return src.attack_hand(user)
ui_interact(user)
return

/obj/machinery/computer/area_atmos/attack_hand(var/mob/user as mob)
ui_interact(user)
Expand All @@ -25,7 +26,7 @@
/obj/machinery/computer/area_atmos/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "AreaAtmos", ui_x=500, ui_y=300)
ui = new(user, src, "AreaAtmos")
ui.open()

/obj/machinery/computer/area_atmos/ui_data(mob/user)
Expand All @@ -51,7 +52,7 @@

if(action=="scan")
scanscrubbers()
. = TRUE
return TRUE

if(action=="cmode")
for(var/obj/machinery/portable_atmospherics/powered/scrubber/huge/scrubber in connectedscrubbers)
Expand All @@ -60,7 +61,7 @@
scrubber.update_icon()
break

. = TRUE
return TRUE

/obj/machinery/computer/area_atmos/proc/scanscrubbers()
connectedscrubbers = new()
Expand Down

0 comments on commit f1926d0

Please sign in to comment.