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
@@ -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)