mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
another case of update_icon in NEW (#8500)
This commit is contained in:
@@ -45,9 +45,15 @@
|
||||
//random starting power! gives us a random number of shots in the battery between 0 and the max possible
|
||||
if(random_start_ammo && cell_type)
|
||||
power_supply.charge = charge_cost*rand(0,power_supply.maxcharge/charge_cost)
|
||||
update_icon()
|
||||
//update_icon() //CHOMPRemove
|
||||
..() //CHOMPEdit if you see this, it is a cry for help. Please tell people to stop putting ..() at the top of New() :(
|
||||
|
||||
//CHOMPEdit Start
|
||||
/obj/item/weapon/gun/energy/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
//CHOMPEdit End
|
||||
|
||||
/obj/item/weapon/gun/energy/Destroy()
|
||||
if(self_recharge)
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
|
||||
Reference in New Issue
Block a user