if (allowInfiniteStamina) { // if "true" then don't run out of stamina
// Reset stamina counter back to 0
Game_Map.prototype.update = function (sceneActive) {
Game_Map.prototype.update = function (sceneActive) {
this.refreshIfNeeded();
if (sceneActive) {
this.updateInterpreter();
}
this.updateScroll();
this.updateEvents();
this.updateVehicles();
this.updateParallax();
if (this._useUltraMode7) {
this.updateUltraMode7();
}
$gameVariables.setValue(2714, 0); //HERE
};
};
}