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

This commit is contained in:
MistakeNot4892
2021-11-14 03:09:51 -05:00
committed by VirgoBot
parent 47c8115916
commit 3f9af78f3a
587 changed files with 12315 additions and 2669 deletions
@@ -46,11 +46,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/New(var/obj/L)
..()
/obj/item/weapon/computer_hardware/Initialize()
. = ..()
w_class = hardware_size
if(istype(L, /obj/item/modular_computer))
holder2 = L
if(istype(loc, /obj/item/modular_computer))
holder2 = loc
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/New()
..()
/obj/item/weapon/computer_hardware/battery_module/lambda/Initialize()
. = ..()
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/New()
/obj/item/weapon/computer_hardware/battery_module/Initialize()
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)
@@ -162,6 +162,6 @@
stored_files = null
return ..()
/obj/item/weapon/computer_hardware/hard_drive/New()
/obj/item/weapon/computer_hardware/hard_drive/Initialize()
install_default_programs()
..()
. = ..()
@@ -25,8 +25,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/New(var/l)
..(l)
/obj/item/weapon/computer_hardware/network_card/Initialize()
. = ..()
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/New()
..()
/obj/item/weapon/computer_hardware/hard_drive/portable/Initialize()
. = ..()
stored_files = list()
recalculate_size()