mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
Fixes crafting multiples of recipes in a sublist (#26315)
* Fixes crafting multiples of recipes in a sublist * Reduces some As * missed one * But wait there is more. I think I got them all now.
This commit is contained in:
committed by
GitHub
parent
5a5670c382
commit
fde4125a14
@@ -169,7 +169,7 @@
|
||||
title += "[R.title]"
|
||||
title += " ([R.req_amount] [src.singular_name]\s)"
|
||||
if(can_build)
|
||||
t1 += "<A href='byond://?src=[UID()];sublist=[recipes_sublist];make=[i]'>[title]</A> "
|
||||
t1 += "<a href='byond://?src=[UID()];sublist=[recipes_sublist];make=[i]'>[title]</a> "
|
||||
else
|
||||
t1 += "[title]"
|
||||
continue
|
||||
@@ -180,9 +180,9 @@
|
||||
var/list/multipliers = list(5, 10, 25)
|
||||
for(var/n in multipliers)
|
||||
if(max_multiplier >= n)
|
||||
t1 += " <A href='byond://?src=[UID()];make=[i];multiplier=[n]'>[n * R.res_amount]x</A>"
|
||||
t1 += " <a href='byond://?src=[UID()];sublist=[recipes_sublist];make=[i];multiplier=[n]'>[n * R.res_amount]x</a>"
|
||||
if(!(max_multiplier in multipliers))
|
||||
t1 += " <A href='byond://?src=[UID()];make=[i];multiplier=[max_multiplier]'>[max_multiplier * R.res_amount]x</A>"
|
||||
t1 += " <a href='byond://?src=[UID()];sublist=[recipes_sublist];make=[i];multiplier=[max_multiplier]'>[max_multiplier * R.res_amount]x</a>"
|
||||
|
||||
var/datum/browser/popup = new(user, "stack", name, recipe_width, recipe_height)
|
||||
popup.set_content(t1)
|
||||
|
||||
Reference in New Issue
Block a user