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:
NanakoAC
2016-09-04 19:43:40 +02:00
committed by skull132
parent 2c59299902
commit 3c693545a1
9 changed files with 79 additions and 16 deletions
+6
View File
@@ -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)
+1
View File
@@ -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.