up
This commit is contained in:
parent
6170b412ad
commit
19d0a485f9
1 changed files with 6 additions and 2 deletions
|
|
@ -31,12 +31,16 @@ util.vacuum_icon = { icon="__base__/graphics/icons/fluid/steam.png", tint={r=.1,
|
||||||
util.vacuum_icon_small = { icon="__base__/graphics/icons/fluid/steam.png", tint={r=.1, g=.1, b=.5, a=.5}, scale=0.25, shift={-8,-8}, }
|
util.vacuum_icon_small = { icon="__base__/graphics/icons/fluid/steam.png", tint={r=.1, g=.1, b=.5, a=.5}, scale=0.25, shift={-8,-8}, }
|
||||||
util.vacuum_vis = {r=.1, g=.1, b=.5}
|
util.vacuum_vis = {r=.1, g=.1, b=.5}
|
||||||
|
|
||||||
function util.item(item, quantity)
|
function util.item(item, quantity, probability)
|
||||||
if not quantity then
|
if not quantity then
|
||||||
quantity = 1
|
quantity = 1
|
||||||
end
|
end
|
||||||
|
if probability then
|
||||||
|
return {type="item", name=item, amount=quantity, probability=probability}
|
||||||
|
else
|
||||||
return {type="item", name=item, amount=quantity}
|
return {type="item", name=item, amount=quantity}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function util.fluid(fluid, quantity)
|
function util.fluid(fluid, quantity)
|
||||||
if not quantity then
|
if not quantity then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue