State after inventory clip (farming mechanic still WIP)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user