Alright, so what I'm trying to accomplish is getting the game timer to not abort battles when it comes to a close. To that end, the following works:
The second step is to make it to where the numbers do not display while you're in battle.
This, however, does not work, and it also renders the first portion not working as well.
I realize there are several steps after this, and I don't even know if I'm entirely on the right track, or what problems I'll encounter, such as.... making the timer resume where it was when it stopped. But I'll get there when I get there.
I just need to understand one step at a time, why is this not stopping the timer on battle start and why is it killing my entire JS from working at all?
Code:
(function() {
var _Game_Timer_onExpire = Game_Timer.prototype.onExpire;
Game_Timer.prototype.onExpire = function() {
_Game_Timer_onExpire.call(this);
};
})();
The second step is to make it to where the numbers do not display while you're in battle.
Code:
(function() {
var _Game_Timer_onExpire = Game_Timer.prototype.onExpire;
Game_Timer.prototype.onExpire = function() {
_Game_Timer_onExpire.call(this);
};
var _BattleManager_setup = BattleManager.setup;
BattleManager.setup = function(troopId, canEscape, canLose) {
_BattleManager_setup.call(this, troopId, canEscape, canLose);
Game_Timer.prototype.stop;
};
})();
This, however, does not work, and it also renders the first portion not working as well.
I realize there are several steps after this, and I don't even know if I'm entirely on the right track, or what problems I'll encounter, such as.... making the timer resume where it was when it stopped. But I'll get there when I get there.
I just need to understand one step at a time, why is this not stopping the timer on battle start and why is it killing my entire JS from working at all?