mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Don't save carryables if they haven't been found yet.
This commit is contained in:
+4
-2
@@ -175,11 +175,13 @@ var Path = {
|
||||
for(var k in carryable) {
|
||||
var lk = _(k);
|
||||
var store = carryable[k];
|
||||
var have = $SM.get('stores["'+k+'"]', true);
|
||||
var have = $SM.get('stores["'+k+'"]');
|
||||
var num = Path.outfit[k];
|
||||
num = typeof num == 'number' ? num : 0;
|
||||
if (have !== undefined) {
|
||||
if (have < num) { num = have; }
|
||||
$SM.set('outfit["'+k+'"]', num, true);
|
||||
$SM.set(k, num, true);
|
||||
}
|
||||
|
||||
var row = $('div#outfit_row_' + k.replace(' ', '-'), outfit);
|
||||
if((store.type == 'tool' || store.type == 'weapon') && have > 0) {
|
||||
|
||||
Reference in New Issue
Block a user