Merge pull request #5080 from Citadel-Station-13/upstream-merge-34746

[MIRROR] Makes the autolathe repeat it's animation while it's still printing.
This commit is contained in:
LetterJay
2018-01-24 20:48:03 -06:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
+2 -3
View File
@@ -170,8 +170,7 @@
if((materials.amount(MAT_METAL) >= metal_cost*multiplier*coeff) && (materials.amount(MAT_GLASS) >= glass_cost*multiplier*coeff))
busy = TRUE
use_power(power)
icon_state = "autolathe"
flick("autolathe_n",src)
icon_state = "autolathe_n"
var/time = is_stack ? 32 : 32*coeff*multiplier
addtimer(CALLBACK(src, .proc/make_item, power, metal_cost, glass_cost, multiplier, coeff, is_stack), time)
@@ -207,7 +206,7 @@
for(var/mat in materials_used)
new_item.materials[mat] = materials_used[mat] / multiplier
new_item.autolathe_crafted(src)
icon_state = "autolathe"
busy = FALSE
updateDialog()