MV Changing the "Encounter half" trait

Hehyo!

I'd like to change the trait "encounter half" to not reducing the encounter count by 0.5 each step but to something like 0.75 instead.
Is it as easy as changing a number in the script?

Some of my maps are so small that cutting the encounter map in half would lead to no random encounters at all. I would prefer to not just raise the encounter rate for that maps, because the player could also visit these areas without the "encounter half" trait and be showered in random battles.

Thanks in adavance 🙂
Is it as easy as changing a number in the script?
From a bit of poking around in the code, it does seem like that's the case. The function that handles this appears to be Game_Player.encounterProgressValue in rpg_objects. So you could just replace

JavaScript:
if ($gameParty.hasEncounterHalf()) {
    value *= 0.5;
}
with
JavaScript:
if ($gameParty.hasEncounterHalf()) {
    value *= 0.75;
}
Alternatively, if you'd prefer not to modify the corescripts and to alias it you could do:

JavaScript:
var _Game_Player_encounterProgressValue = Game_Player.prototype.encounterProgressValue;
Game_Player.prototype.encounterProgressValue = function () {
    var value = _Game_Player_encounterProgressValue.call(this);
    if($gameParty.hasEncounterHalf()) return value * 1.5;
    else return value;
};
Which will increase the value if the trait is present (0.5*1.5=0.75).
Nice! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-encounter-half-trait.152802/