|
|
|
@ -32,28 +32,28 @@ library.item_blueprints = { |
|
|
|
|
sprite=37, sprite_recolor={[12]=0}, |
|
|
|
|
}, |
|
|
|
|
well_water = { |
|
|
|
|
title="well water", tags={"water"}, |
|
|
|
|
title="well water", |
|
|
|
|
quality_base=30, quality_range=20, |
|
|
|
|
trait_pool={"blue", "shiny"}, trait_chance=20, |
|
|
|
|
description="water from\na well", |
|
|
|
|
sprite=37, |
|
|
|
|
}, |
|
|
|
|
herb = { |
|
|
|
|
title="herb", tags={}, |
|
|
|
|
title="herb", |
|
|
|
|
quality_base = 40, quality_range=30, |
|
|
|
|
trait_pool={"green"}, trait_chance=30, |
|
|
|
|
description="healing herb", |
|
|
|
|
sprite=34, |
|
|
|
|
}, |
|
|
|
|
crystal = { |
|
|
|
|
title="crystal", tags={}, |
|
|
|
|
title="crystal", |
|
|
|
|
quality_base=40, quality_range=60, |
|
|
|
|
trait_pool={"shiny", "large", "blue"}, trait_chance=50, |
|
|
|
|
description="cliff \ncrystals", |
|
|
|
|
sprite=38, |
|
|
|
|
}, |
|
|
|
|
sand = { |
|
|
|
|
title="sand", tags={}, |
|
|
|
|
title="sand", |
|
|
|
|
quality_base=30, quality_range=40, |
|
|
|
|
trait_pool={"fine"}, trait_chance=40, |
|
|
|
|
description="beach sand", |
|
|
|
@ -61,49 +61,49 @@ library.item_blueprints = { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
distilled_water={ |
|
|
|
|
title="pure water",tags={"water", "pure"}, |
|
|
|
|
title="pure water", |
|
|
|
|
quality_base=50, quality_range=20, --this should only be crafted, so this will be mostly irrelevant |
|
|
|
|
trait_pool={}, trait_chance=0, -- again no use |
|
|
|
|
description="filtered \npure water", |
|
|
|
|
sprite=33, |
|
|
|
|
}, |
|
|
|
|
reagent = { |
|
|
|
|
title="reagent", tags={"red"}, |
|
|
|
|
title="reagent", |
|
|
|
|
quality_base = 50, quality_range=10, |
|
|
|
|
trait_pool={"shiny"}, trait_chance=20, |
|
|
|
|
description="red reagent", |
|
|
|
|
sprite=33, sprite_recolor={[12]=8}, |
|
|
|
|
}, |
|
|
|
|
bomb = { |
|
|
|
|
title="bomb", tags={"explosive"}, |
|
|
|
|
title="bomb", |
|
|
|
|
quality_base=60, quality_range=30, |
|
|
|
|
trait_pool={}, trait_chance=0, |
|
|
|
|
description="explodes for \nfun & profit", |
|
|
|
|
sprite=35, |
|
|
|
|
}, |
|
|
|
|
gunpowder={ |
|
|
|
|
title="gunpowder", tags={"explosive"}, |
|
|
|
|
title="gunpowder", |
|
|
|
|
quality_base=30, quality_range=10, |
|
|
|
|
trait_pool={"fine"}, trait_chance=30, |
|
|
|
|
description="be careful!", |
|
|
|
|
sprite=32, sprite_recolor={[6]=5}, |
|
|
|
|
}, |
|
|
|
|
potion = { |
|
|
|
|
title="potion", tags={}, |
|
|
|
|
title="potion", |
|
|
|
|
quality_base = 50, quality_range=10, |
|
|
|
|
trait_pool={"red", "shiny", "curing"}, trait_chance=10, |
|
|
|
|
description="a healing\npotion", |
|
|
|
|
sprite=33, sprite_recolor={[12]=11} |
|
|
|
|
}, |
|
|
|
|
polishing_powder = { |
|
|
|
|
title="polish", tags={}, |
|
|
|
|
title="polish", |
|
|
|
|
quality_base=70, quality_range=30, |
|
|
|
|
trait_pool={"shiny", "fine"}, trait_chance=30, |
|
|
|
|
description="polishing \npowder", |
|
|
|
|
sprite=32, |
|
|
|
|
}, |
|
|
|
|
starshine_gem={ |
|
|
|
|
title="starshine", tags={}, |
|
|
|
|
title="starshine", |
|
|
|
|
quality_base=100, quality_range=50, |
|
|
|
|
trait_pool={"shiny","large"}, trait_chance=40, |
|
|
|
|
description="starshine \ngem!~", |
|
|
|
@ -139,33 +139,16 @@ library.recipes={ |
|
|
|
|
}, |
|
|
|
|
polishing_powder={ |
|
|
|
|
title="polish", |
|
|
|
|
ingredients={"crystals","sand","charcoal"}, |
|
|
|
|
ingredients={"crystal","sand","charcoal"}, |
|
|
|
|
result="polishing_powder" |
|
|
|
|
}, |
|
|
|
|
starshine_gem={ |
|
|
|
|
title="starshine", |
|
|
|
|
ingredients={"crystals", "polish", "reagent"}, |
|
|
|
|
ingredients={"crystal", "polish", "reagent"}, |
|
|
|
|
result="starshine_gem" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if testing then |
|
|
|
|
inventory = {} |
|
|
|
|
|
|
|
|
|
for i=1,4 do |
|
|
|
|
local c = make_item(library.item_blueprints.charcoal) |
|
|
|
|
c.traits = {"fine", "red"} |
|
|
|
|
add(inventory, c) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
for i=1,4 do |
|
|
|
|
local w = make_item(library.item_blueprints.well_water) |
|
|
|
|
w.traits = {"shiny", "blue"} |
|
|
|
|
add(inventory, w) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
inventory = {} |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
grimoire = {library.recipes.distilled_water, library.recipes.potion} |