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