Who thought it was a good idea to omit multiplier for 1x ?!?

This commit is contained in:
Menshin
2014-10-14 22:48:48 +02:00
parent 6387c96bb5
commit 70b2c9a1fa

View File

@@ -81,7 +81,7 @@
title+= "[R.title]"
title+= " ([R.req_amount] [src.singular_name]\s)"
if (can_build)
t1 += text("<A href='?src=\ref[src];sublist=[recipes_sublist];make=[i]'>[title]</A> ")
t1 += text("<A href='?src=\ref[src];sublist=[recipes_sublist];make=[i];multiplier=1'>[title]</A> ")
else
t1 += text("[]", title)
continue
@@ -117,9 +117,7 @@
recipes_list = srl.recipes
var/datum/stack_recipe/R = recipes_list[text2num(href_list["make"])]
var/multiplier = text2num(href_list["multiplier"])
if(!multiplier) //if multiplier is null
multiplier = 1
if (multiplier <= 0) //href exploit protection
if (!multiplier || (multiplier <= 0)) //href exploit protection
return
if (src.amount < R.req_amount*multiplier)
if (R.req_amount*multiplier>1)