Make tool upgrades cost money

This commit is contained in:
2026-11-01 22:48:49 -03:00
parent 12702520dd
commit c1871a7bf7
37 changed files with 185 additions and 23 deletions
+1 -1
View File
@@ -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);
},
+1 -1
View File
@@ -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);