stealing action auto-fails if amount is 0
This commit is contained in:
parent
1b72e899af
commit
5526098a05
@ -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(", "));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user