From 5526098a0584f71b0476f910c231007d5cf3855d Mon Sep 17 00:00:00 2001 From: Nicole O'Connor Date: Tue, 5 Aug 2025 18:00:26 -0700 Subject: [PATCH] stealing action auto-fails if amount is 0 --- static/js/seagull.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/seagull.js b/static/js/seagull.js index 7bfc334..78f619f 100644 --- a/static/js/seagull.js +++ b/static/js/seagull.js @@ -121,7 +121,7 @@ async function steal_resource(resource, amount, items) { .then(res => { return res.json(); }) .catch(e => { throw e; }); - if (stealdata["success"]) { + if (stealdata["success"] && amount > 0) { gamestate[resource] += amount; record_log("Stole " + resource + " from a human: " + items.join(", ")); }