Added research display to the game

This commit is contained in:
2026-05-06 21:10:04 +02:00
parent a9475aaaf9
commit ce99936298
31 changed files with 414 additions and 52 deletions
-3
View File
@@ -12,10 +12,8 @@ public class Item
public CraftingResult Craft(int amount, double delta)
{
elapsedCraftTime += delta;
GD.Print(elapsedCraftTime);
if (elapsedCraftTime >= data.CraftTime)
{
GD.Print("Crafted!");
elapsedCraftTime -= data.CraftTime;
if(!GameData.inventory.AddItem(this, 1))
{
@@ -28,7 +26,6 @@ public class Item
amountCrafted++;
if (amountCrafted >= amount)
{
GD.Print("Finished!");
amountCrafted = 0;
elapsedCraftTime = 0;
return CraftingResult.FINISHED;