MV Plugin to award specific amount of experience no matter what

Got a somewhat odd request here.

We all know how gaining experience points works. You smite your foes, and you get awarded however many experience points the enemy gives out. What I need is a way to ignore that number and force a character to only receive a set amount of experience from any fight, on a class by class basis. In clearer terms, no matter how much experience might be awarded at the end of a battle, I might only want a class to ever gain 10 experience per fight at the maximum, unless the mob gives less than that.

I know that sounds weird, but I have a reason for it. It's meant to work in conjunction with Yanfly's Subclass plugin. Link to the plugin page is below.
You can just modify the subclass experience method.
Code:
Game_Actor.prototype.gainExpSubclass = function(exp) {
    if (!this.subclass()) return;
    var curExp = this._exp[this._subclassId] || 0;
    this._exp[this._subclassId] = curExp+Math.min(exp, 10);
};

That ignores the plugin parameter about what percentage of experience the subclass should get. If you want both taken into account, the appropriate line can get added back in.
Well damn, that was an easy one. Thanks, @ATT_Turan!
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-award-specific-amount-of-experience-no-matter-what.161174/