Added code to allow adding more steel or glass to the synth body printer.

This commit is contained in:
Leshana
2017-02-19 17:34:50 -05:00
parent bdfc9be908
commit ca425ce968
2 changed files with 38 additions and 10 deletions
+4 -4
View File
@@ -111,7 +111,7 @@
var/spods_list_ui[0]
for(var/obj/machinery/transhuman/synthprinter/spod in spods)
spods_list_ui[++spods_list_ui.len] = list("spod" = spod, "steel" = spod.steel, "glass" = spod.glass)
spods_list_ui[++spods_list_ui.len] = list("spod" = spod, "steel" = spod.stored_material[DEFAULT_WALL_MATERIAL], "glass" = spod.stored_material["glass"])
var/sleevers_list_ui[0]
for(var/obj/machinery/transhuman/resleever/resleever in sleevers)
@@ -229,9 +229,9 @@
temp = "Error: SynthFab is currently busy."
//Not enough steel or glass
else if(spod.steel < spod.body_cost)
temp = "Error: Not enough steel in SynthFab."
else if(spod.glass < spod.body_cost)
else if(spod.stored_material[DEFAULT_WALL_MATERIAL] < spod.body_cost)
temp = "Error: Not enough [DEFAULT_WALL_MATERIAL] in SynthFab."
else if(spod.stored_material["glass"] < spod.body_cost)
temp = "Error: Not enough glass in SynthFab."
//Gross pod (broke mid-cloning or something).