What I want to do is to change how game calculates preemptive and surprise attacks and what I've done so far, simple for testing purposes:
... But BattleManager._preemptive and BattleManager._surprise stubbornly shows in console "false" value.
What I've forgot or did I do wrong?
JavaScript:
BattleManager.onEncounter = function() {
this._preemptive = true;
this._surprise = true;
};
BattleManager.ratePreemptive = function() {
return 100;
};
BattleManager.rateSurprise = function() {
return 100;
};
Game_Party.prototype.ratePreemptive = function(troopAgi) {
return 100;
};
Game_Party.prototype.rateSurprise = function(troopAgi) {
return 100;
};
... But BattleManager._preemptive and BattleManager._surprise stubbornly shows in console "false" value.
What I've forgot or did I do wrong?