Make tool upgrades cost money
This commit is contained in:
@@ -100,7 +100,7 @@ function base_categories(tags: TagApi): RecipeCategory[] {
|
||||
draw(recipe, layout) {
|
||||
layout.slot({ ids: [recipe.tool], count: 1 }, 0, 0);
|
||||
layout.slot(stack(recipe.material), SLOT, 0);
|
||||
layout.slot(recipe.addition ? { ids: [recipe.addition], count: 1 } : undefined, SLOT * 2, 0);
|
||||
layout.slot(recipe.addition && stack(recipe.addition), SLOT * 2, 0);
|
||||
layout.texture("bworld:arrow_full", 61, 1, ARROW, ARROW);
|
||||
layout.slot({ ids: [recipe.result], count: 1 }, 90, 0);
|
||||
},
|
||||
|
||||
@@ -60,7 +60,7 @@ export function inputs(recipe: Recipe, tags: TagApi): Ingredient[] {
|
||||
return [{ ids: tags.expand(recipe.item), count: 1 }];
|
||||
case "bworld:smithing":
|
||||
return [{ ids: [recipe.tool], count: 1 }, stack(recipe.material)].concat(
|
||||
recipe.addition ? [{ ids: [recipe.addition], count: 1 }] : [],
|
||||
recipe.addition ? [stack(recipe.addition)] : [],
|
||||
);
|
||||
default: {
|
||||
const { grid, extras } = mod_recipe_inputs(recipe, tags);
|
||||
|
||||
Reference in New Issue
Block a user