Merge pull request #2080 from nichlas0010/tgui

removes chem recipes
This commit is contained in:
Ling
2018-08-10 09:52:09 +02:00
committed by GitHub
3 changed files with 11 additions and 18 deletions

View File

@@ -230,6 +230,7 @@
beaker = null
update_icon()
. = TRUE
/* yogs - removes chem recipes
if("dispense_recipe")
if(!is_operational() || QDELETED(cell))
return
@@ -283,6 +284,7 @@
if (resmismatch && alert("[src] is not yet capable of replicating this recipe with the precision it needs, do you want to save it anyway?",, "Yes","No") == "No")
return
saved_recipes += list(list("recipe_name" = name, "contents" = recipe))
yogs - removed chem recipes */
/obj/machinery/chem_dispenser/attackby(obj/item/I, mob/user, params)
if(default_unfasten_wrench(user, I))
@@ -550,7 +552,7 @@
"ammonia",
"ash",
"diethylamine")
/obj/machinery/chem_dispenser/mutagensaltpeter/Initialize()
. = ..()
component_parts = list()

File diff suppressed because one or more lines are too long

View File

@@ -3,15 +3,6 @@
<ui-bar min='0' max='{{data.maxEnergy}}' value='{{data.energy}}'>{{Math.fixed(adata.energy)}} Units</ui-bar>
</ui-section>
</ui-display>
<ui-display title='Saved Recipes' button>
<ui-section>
<ui-button icon='plus' action='add_recipe'>Add Recipe</ui-button>
<ui-button icon='minus' action='clear_recipes'>Clear Recipes</ui-button>
{{#each data.recipes}}
<ui-button grid icon='tint' action='dispense_recipe' params='{"recipe": "{{contents}}"}'>{{recipe_name}}</ui-button>
{{/each}}
</ui-section>
</ui-display>
<ui-display title='Dispense' button>
{{#partial button}}
{{#each data.beakerTransferAmounts}}