Skip to content

Commit

Permalink
Merge pull request Aurorastation#6717 from Menshin/ambiguous_expressi…
Browse files Browse the repository at this point in the history
…on_fix

Fixes being unable to craft 1x multiplier items from stacks
  • Loading branch information
MistakeNot4892 committed Oct 14, 2014
2 parents 00e39c1 + 70b2c9a commit bbd6fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -117,7 +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 <= 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)
Expand Down

0 comments on commit bbd6fdc

Please sign in to comment.