[Solved] Is there a way to change the number of non-reserve party members?

How can I change the max number of non-reserve party members? The default is four, and I want to change it to two, so that all members added to the party when there are two or more will become reserve members.
PHP:
Game_Party.prototype.maxBattleMembers = function() {
    return 2;
};

Copy this into a new .js and import it as a new plugin. Place it at the bottom of the list.
Thank you very much! 🙂
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/solved-is-there-a-way-to-change-the-number-of-non-reserve-party-members.82646/