Fixes Portable Chem Dispenser recharge delay

Now calculates properly, and matches up with the recently-reduced
recharge delay of the full-size dispensers
This commit is contained in:
Krausus
2015-04-29 07:38:26 -04:00
parent 0f292eef2e
commit fc9607d17b
+2 -2
View File
@@ -293,7 +293,7 @@
energy = 5
max_energy = 5
amount = 5
recharge_delay = 30
recharge_delay = 10
dispensable_reagents = list()
var/list/special_reagents = list(list("hydrogen", "oxygen", "silicon", "phosphorus", "sulfur", "carbon", "nitrogen"),
list("lithium", "sugar", "water", "copper", "mercury", "sodium"),
@@ -323,7 +323,7 @@
time += C.rating
for(var/obj/item/weapon/stock_parts/cell/P in component_parts)
time += round(P.maxcharge, 10000) / 10000
recharge_delay /= time/2 //delay between recharges, double the usual time on lowest 50% less than usual on highest
recharge_delay = 10 / (time/2) //delay between recharges, double the usual time on lowest 33% less than usual on highest
for(var/obj/item/weapon/stock_parts/manipulator/M in component_parts)
for(i=1, i<=M.rating, i++)
dispensable_reagents = sortList(dispensable_reagents | special_reagents[i])