New to init final (#17512)

* Initial

* some more

* next few

* only light left

* fix things up

* some rmore fixes

* guh

* Update ai_vr.dm

* comment

* lets try something

* .

* hmm

* .

* .

* hmm

* push that here

* fix layout

* grrr
This commit is contained in:
Kashargul
2025-04-14 00:07:35 +02:00
committed by GitHub
parent 53ee76ad92
commit cdfa1c853f
170 changed files with 1262 additions and 1219 deletions
@@ -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()