fix logic error

This commit is contained in:
Rokas Puzonas 2024-08-01 01:00:55 +03:00
parent d7032977a2
commit 72d70c5d43

View File

@ -10,7 +10,7 @@ fn waitForCooldown(remaining_seconds: i64) void {
}
pub fn depositIfNeeded(api: *ArtifactsAPI, char: *ArtifactsAPI.Character) !void {
if (char.getItemCount() == char.inventory_max_items) return;
if (char.getItemCount() < char.inventory_max_items) return;
{
const move_result = try api.actionMove(char.name, 4, 1);