mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Fixed issue where path stores animation would not run.
This commit is contained in:
+4
-4
@@ -93,7 +93,7 @@ var Path = {
|
|||||||
return Path.getCapacity() - num;
|
return Path.getCapacity() - num;
|
||||||
},
|
},
|
||||||
|
|
||||||
updatePerks: function() {
|
updatePerks: function(ignoreStores) {
|
||||||
if($SM.get('character.perks')) {
|
if($SM.get('character.perks')) {
|
||||||
var perks = $('#perks');
|
var perks = $('#perks');
|
||||||
var needsAppend = false;
|
var needsAppend = false;
|
||||||
@@ -115,7 +115,7 @@ var Path = {
|
|||||||
perks.appendTo(Path.panel);
|
perks.appendTo(Path.panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Engine.activeModule === Path) {
|
if(!ignoreStores && Engine.activeModule === Path) {
|
||||||
$('#storesContainer').css({top: perks.height() + 26 + 'px'});
|
$('#storesContainer').css({top: perks.height() + 26 + 'px'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ var Path = {
|
|||||||
onArrival: function(transition_diff) {
|
onArrival: function(transition_diff) {
|
||||||
Path.setTitle();
|
Path.setTitle();
|
||||||
Path.updateOutfitting();
|
Path.updateOutfitting();
|
||||||
Path.updatePerks();
|
Path.updatePerks(true);
|
||||||
|
|
||||||
Engine.moveStoresView($('#perks'), transition_diff);
|
Engine.moveStoresView($('#perks'), transition_diff);
|
||||||
},
|
},
|
||||||
@@ -309,4 +309,4 @@ var Path = {
|
|||||||
Path.updatePerks();
|
Path.updatePerks();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user