mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user