Skip to content

Commit

Permalink
Remove some old terminal code
Browse files Browse the repository at this point in the history
  • Loading branch information
PsyCommando committed Oct 4, 2024
1 parent b849bd4 commit a47cf35
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
19 changes: 11 additions & 8 deletions mods/persistence/modules/atmospherics/components/injector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
/obj/item/stock_parts/radio/receiver/buildable,
/obj/item/stock_parts/radio/transmitter/on_event/buildable,
)
stock_part_presets = list(
/decl/stock_part_preset/terminal_setup,
)

/obj/machinery/atmospherics/unary/outlet_injector/cabled/populate_parts(full_populate)
if(persistent_id) // Only objects that have been loaded with have this var set at creation, so we prevent recreating additional components.
return
. = ..()
var/obj/item/stock_parts/power/terminal/term = get_component_of_type(/obj/item/stock_parts/power/terminal)
term.terminal_dir = dir
term.make_terminal(src) // intentional crash if there is no terminal
queue_icon_update()
// /obj/machinery/atmospherics/unary/outlet_injector/cabled/populate_parts(full_populate)
// if(persistent_id) // Only objects that have been loaded with have this var set at creation, so we prevent recreating additional components.
// return
// . = ..()
// var/obj/item/stock_parts/power/terminal/term = get_component_of_type(/obj/item/stock_parts/power/terminal)
// term.terminal_dir = dir
// term.make_terminal(src) // intentional crash if there is no terminal
// queue_icon_update()

/obj/machinery/atmospherics/unary/outlet_injector/cabled/on
icon_state = "on"
Expand Down
18 changes: 9 additions & 9 deletions mods/persistence/modules/atmospherics/components/vents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
/decl/stock_part_preset/terminal_setup/offset_dir,
)

/obj/machinery/atmospherics/unary/vent_pump/cabled/populate_parts(full_populate)
if(persistent_id) // Only objects that have been loaded with have this var set at creation, so we prevent recreating additional components.
return
. = ..()
//#FIXME: What is going on here? This is kind of dangerous and a weird way to go about things??
var/obj/item/stock_parts/power/terminal/term = get_component_of_type(/obj/item/stock_parts/power/terminal)
term.terminal_dir = dir
term.make_terminal(src) // intentional crash if there is no terminal
queue_icon_update()
// /obj/machinery/atmospherics/unary/vent_pump/cabled/populate_parts(full_populate)
// if(persistent_id) // Only objects that have been loaded with have this var set at creation, so we prevent recreating additional components.
// return
// . = ..()
// //#FIXME: What is going on here? This is kind of dangerous and a weird way to go about things??
// var/obj/item/stock_parts/power/terminal/term = get_component_of_type(/obj/item/stock_parts/power/terminal)
// term.terminal_dir = dir
// term.make_terminal(src) // intentional crash if there is no terminal
// queue_icon_update()

/obj/machinery/atmospherics/unary/vent_pump/cabled/on
use_power = POWER_USE_IDLE
Expand Down

0 comments on commit a47cf35

Please sign in to comment.