Merge pull request #32641 from praisenarsie/patch-8

blah blah adds some initialize() for squeaky clean code and performance
This commit is contained in:
Jordan Brown
2017-11-13 12:37:22 -05:00
committed by GitHub
52 changed files with 186 additions and 181 deletions

View File

@@ -1,4 +1,4 @@
/obj/item/device/modular_computer/laptop/preset/New()
/obj/item/device/modular_computer/laptop/preset/Initialize()
. = ..()
install_component(new /obj/item/computer_hardware/processor_unit/small)
install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer))

View File

@@ -3,7 +3,7 @@
/obj/item/device/modular_computer/tablet/preset/cheap
desc = "A low-end tablet often seen among low ranked station personnel."
/obj/item/device/modular_computer/tablet/preset/cheap/New()
/obj/item/device/modular_computer/tablet/preset/cheap/Initialize()
. = ..()
install_component(new /obj/item/computer_hardware/processor_unit/small)
install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer/micro))
@@ -11,7 +11,7 @@
install_component(new /obj/item/computer_hardware/network_card)
// Alternative version, an average one, for higher ranked positions mostly
/obj/item/device/modular_computer/tablet/preset/advanced/New()
/obj/item/device/modular_computer/tablet/preset/advanced/Initialize()
. = ..()
install_component(new /obj/item/computer_hardware/processor_unit/small)
install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer))
@@ -20,7 +20,7 @@
install_component(new /obj/item/computer_hardware/card_slot)
install_component(new /obj/item/computer_hardware/printer/mini)
/obj/item/device/modular_computer/tablet/preset/cargo/New()
/obj/item/device/modular_computer/tablet/preset/cargo/Initialize()
. = ..()
install_component(new /obj/item/computer_hardware/processor_unit/small)
install_component(new /obj/item/computer_hardware/battery(src, /obj/item/stock_parts/cell/computer))

View File

@@ -121,9 +121,9 @@
stored_files = null
return ..()
/obj/item/computer_hardware/hard_drive/New()
/obj/item/computer_hardware/hard_drive/Initialize()
. = ..()
install_default_programs()
..()
/obj/item/computer_hardware/hard_drive/advanced