mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Powercell and Charging tweaks (#796)
changes: bugfix: "Newly protolathed/fabricated power cells now spawn with no charge." rscdel: "Added entropy to all cell-charging operations." tweak: "Most chargers are now faster. Cyborg charging stations are significantly slower." bugfix: "Fixed newly spawned cells showing the incorrect charge state."
This commit is contained in:
@@ -5,11 +5,17 @@
|
||||
/obj/item/weapon/cell/New()
|
||||
..()
|
||||
charge = maxcharge
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/initialize()
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/Created()
|
||||
//Newly built cells spawn with no charge to prevent power exploits
|
||||
charge = 0
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/drain_power(var/drain_check, var/surge, var/power = 0)
|
||||
|
||||
if(drain_check)
|
||||
|
||||
@@ -383,6 +383,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
linked_lathe.busy = 0
|
||||
screen = 3.1
|
||||
errored = 0
|
||||
new_item.Created()
|
||||
updateUsrDialog()
|
||||
|
||||
else if(href_list["imprint"]) //Causes the Circuit Imprinter to build something.
|
||||
|
||||
Reference in New Issue
Block a user