[MIRROR] migrate power cells to initialize (#9423)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-11-06 13:55:20 -07:00
committed by GitHub
parent f7fa760102
commit 1d918c276f
6 changed files with 104 additions and 109 deletions

View File

@@ -18,7 +18,7 @@
var/emp_proof = FALSE
var/static/cell_uid = 1 // Unique ID of this power cell. Used to reduce bunch of uglier code in nanoUI.
var/c_uid
var/charge = 0 // note %age conveted to actual charge in New
var/charge = 1000 // maximum charge on spawn
var/maxcharge = 1000
var/rigged = 0 // true if rigged to explode
var/minor_fault = 0 //If not 100% reliable, it will build up faults.
@@ -36,11 +36,10 @@
var/standard_overlays = TRUE
var/last_overlay_state = null // Used to optimize update_icon() calls.
/obj/item/cell/New()
..()
/obj/item/cell/Initialize()
. = ..()
c_uid = cell_uid++
charge = maxcharge
//update_icon() //CHOMPRemove
update_icon()
if(self_recharge)
START_PROCESSING(SSobj, src)