State after inventory clip (farming mechanic still WIP)

This commit is contained in:
2025-05-21 00:13:58 +02:00
parent 83f4144b43
commit 708aa8cca4
4 changed files with 73 additions and 53 deletions
@@ -31,21 +31,13 @@ public partial class FarmingControls2D : Node2D
bool activate;
//if our hands are empty, activate
if (_toolId == -1)
if (toolId == -1)
{
activate = true;
activate = false;
}
else
{
//if we're already carrying a tool, deactivate or fail return
if (_toolId == toolId)
{
activate = false;
}
else
{
return false;
}
activate = true;
}
_toolId = activate ? toolId : -1;