Fixed bug where player could take unavailable items onto dusty path

This commit is contained in:
Dan Apczynski
2014-08-03 01:34:10 -07:00
parent bc368511c6
commit 41592e79c7
+1
View File
@@ -178,6 +178,7 @@ var Path = {
var have = $SM.get('stores["'+k+'"]');
var num = Path.outfit[k];
num = typeof num == 'number' ? num : 0;
if (have < num) { num = have; }
var numAvailable = $SM.get('stores["'+k+'"]', true);
var row = $('div#outfit_row_' + k.replace(' ', '-'), outfit);
if((store.type == 'tool' || store.type == 'weapon') && have > 0) {