mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] New to init final (#10649)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e1b14a3570
commit
5853b61b55
@@ -59,12 +59,11 @@
|
||||
/obj/item/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/computer_hardware/New(var/obj/L)
|
||||
..()
|
||||
/obj/item/computer_hardware/Initialize(mapload)
|
||||
. = ..()
|
||||
w_class = hardware_size
|
||||
if(istype(L, /obj/item/modular_computer))
|
||||
holder2 = L
|
||||
return
|
||||
if(istype(loc, /obj/item/modular_computer))
|
||||
holder2 = loc
|
||||
|
||||
/obj/item/computer_hardware/Destroy()
|
||||
holder2 = null
|
||||
|
||||
@@ -56,19 +56,21 @@
|
||||
hardware_size = 1
|
||||
battery_rating = 30000
|
||||
|
||||
/obj/item/computer_hardware/battery_module/lambda/New()
|
||||
..()
|
||||
battery = new/obj/item/cell/infinite(src)
|
||||
/obj/item/computer_hardware/battery_module/lambda/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/cell/infinite)
|
||||
|
||||
/obj/item/computer_hardware/battery_module/diagnostics(var/mob/user)
|
||||
..()
|
||||
to_chat(user, "Internal battery charge: [battery.charge]/[battery.maxcharge] CU")
|
||||
|
||||
/obj/item/computer_hardware/battery_module/New()
|
||||
battery = new/obj/item/cell(src)
|
||||
/obj/item/computer_hardware/battery_module/Initialize(mapload, cell_type)
|
||||
if(ispath(cell_type))
|
||||
battery = new cell_type(src)
|
||||
else
|
||||
battery = new/obj/item/cell(src)
|
||||
battery.maxcharge = battery_rating
|
||||
battery.charge = 0
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/computer_hardware/battery_module/Destroy()
|
||||
qdel_null(battery)
|
||||
|
||||
@@ -182,6 +182,6 @@
|
||||
stored_files = null
|
||||
return ..()
|
||||
|
||||
/obj/item/computer_hardware/hard_drive/New()
|
||||
/obj/item/computer_hardware/hard_drive/Initialize(mapload)
|
||||
. = ..()
|
||||
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/computer_hardware/network_card/New(var/l)
|
||||
..(l)
|
||||
/obj/item/computer_hardware/network_card/Initialize(mapload)
|
||||
. = ..()
|
||||
identification_id = ntnet_card_uid
|
||||
ntnet_card_uid++
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
max_capacity = 256
|
||||
origin_tech = list(TECH_DATA = 4)
|
||||
|
||||
/obj/item/computer_hardware/hard_drive/portable/New()
|
||||
..()
|
||||
/obj/item/computer_hardware/hard_drive/portable/Initialize(mapload)
|
||||
. = ..()
|
||||
stored_files = list()
|
||||
recalculate_size()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user