core gameplay in! scavenging working!

This commit is contained in:
Tabby 2026-01-11 19:06:59 +11:00
parent c6a6171a81
commit b773e224c0
5 changed files with 38 additions and 4 deletions

View file

@ -94,10 +94,16 @@ func style_none():
func _on_action_button_pressed() -> void:
if not matched_recipe:
return
if matched_recipe is CraftRecipe:
elif matched_recipe is CraftRecipe:
var crafting : CraftRecipe = matched_recipe
empty_grid()
add_item(crafting.output)
check_recipes()
elif matched_recipe is ScavengeRecipe:
empty_grid()
for x in range(matched_recipe.rolls):
add_item(matched_recipe.roll())
check_recipes()
pass # Replace with function body.
func empty_grid():