Critical Hit damage multiplier depending on actors level, how?

I decided to do little mess in Game_action.prototype.applyCritical function to make it deal a damage depending on currently
taking action hero, but there is small problem...

Code:
    Game_Action.prototype.applyCritical = function(damage) {
       
        var CriticalValues = [1.1, 1.15, 1.2, 1.25, 1.5, 1.7, 1.8, 2, 2.45, 3];
        var arg = xxx;
        return Math.floor(damage * CriticalValues[arg]);
       
    };
How can I access variable storing actor's level inside function? And I don't mean game variable, but global (or property) inside Game_actor class?

Or simplier, what I need to type in place of xxx to access currently selected actor's level?
Code:
this.subject().level
this.subject() will return the battler that deal the damage.
Because this can also be applied to enemies, you have to check whether the subject is an actor or not, so you might use it like this
Code:
var level = this.subject().isActor() ? this.subject().level : 1;
Yes!! Works perfectly, thank you very much! 😀

Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-damage-multiplier-depending-on-actors-level-how.103241/