Revert "[MIRROR] /atom New() => Initialize() [MDB IGNORE]"

This commit is contained in:
Novacat
2022-08-27 08:49:56 -04:00
committed by GitHub
parent 0be7af4774
commit 1aa4c73e8d
599 changed files with 3329 additions and 4983 deletions
@@ -59,11 +59,11 @@
/obj/item/weapon/computer_hardware/proc/diagnostics(var/mob/user)
to_chat(user, "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]")
/obj/item/weapon/computer_hardware/Initialize()
. = ..()
/obj/item/weapon/computer_hardware/New(var/obj/L)
..()
w_class = hardware_size
if(istype(loc, /obj/item/modular_computer))
holder2 = loc
if(istype(L, /obj/item/modular_computer))
holder2 = L
return
/obj/item/weapon/computer_hardware/Destroy()
@@ -56,19 +56,19 @@
hardware_size = 1
battery_rating = 30000
/obj/item/weapon/computer_hardware/battery_module/lambda/Initialize()
. = ..()
/obj/item/weapon/computer_hardware/battery_module/lambda/New()
..()
battery = new/obj/item/weapon/cell/infinite(src)
/obj/item/weapon/computer_hardware/battery_module/diagnostics(var/mob/user)
..()
to_chat(user, "Internal battery charge: [battery.charge]/[battery.maxcharge] CU")
/obj/item/weapon/computer_hardware/battery_module/Initialize()
/obj/item/weapon/computer_hardware/battery_module/New()
battery = new/obj/item/weapon/cell(src)
battery.maxcharge = battery_rating
battery.charge = 0
. = ..()
..()
/obj/item/weapon/computer_hardware/battery_module/Destroy()
qdel_null(battery)
@@ -167,6 +167,6 @@
stored_files = null
return ..()
/obj/item/weapon/computer_hardware/hard_drive/Initialize()
/obj/item/weapon/computer_hardware/hard_drive/New()
install_default_programs()
. = ..()
..()
@@ -33,8 +33,8 @@ var/global/ntnet_card_uid = 1
if(ethernet)
to_chat(user, "OpenEth (Physical Connection) - Physical network connection port")
/obj/item/weapon/computer_hardware/network_card/Initialize()
. = ..()
/obj/item/weapon/computer_hardware/network_card/New(var/l)
..(l)
identification_id = ntnet_card_uid
ntnet_card_uid++
@@ -26,8 +26,8 @@
max_capacity = 256
origin_tech = list(TECH_DATA = 4)
/obj/item/weapon/computer_hardware/hard_drive/portable/Initialize()
. = ..()
/obj/item/weapon/computer_hardware/hard_drive/portable/New()
..()
stored_files = list()
recalculate_size()