MV Preemptive and surprise attacks

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:

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?
Are you getting into an encounter by the "normal" means? IIRC those rates won't be called unless it's a normal Random Encounter, and of course if you don't have things like a "No Surprise" feature on an actor/equip/state.
@Wavelength I already found where the problem is...
I noticed in BattleManager class (object) has two methods:

Battlemanager.onEncounter() - Random Encounters
BattleManager.startBattle() - Start Battle with Event on Map

the snippet in 1st post forces _preemptive and (or) _surprise variables to true when player hits Random Encounter, wich I totally skipped in my project. Applying this._susrprise = true in BattleManager.startBattle() solved it.

Original thread: https://forums.rpgmakerweb.com/threads/preemptive-and-surprise-attacks.132153/