How to change critical hit mechanics?

Currently, critical hits in my game do more damage than I want them to. I also don't know how, where, or what plugins to use to change the base critical rate besides setting a flat rate in actor/enemy settings.

I'd like to be able to make it so critical hits are calculated based on the Luck stat instead of a flat rate per actor/enemy. I'd also like to change them to do 1.5x the normal damage instead of whatever it's doing now (unless that *is* what it's doing now).
JavaScript:
Game_Action.prototype.applyCritical = function(damage) {
    return damage * 2;
};

JavaScript:
Game_Action.prototype.itemCri = function(target) {
    return this.item().damage.critical ? this.subject().cri * (1 - target.cev) : 0;
};

so, i don't generally mince around with making plugins on things I intend to change permanently, so i just go right in to the js files and alter what i need.

if you open up rpg_objects.js and ctrl + F looking for crit, you will find all of this. change return damage * 2 to whatever value you desire.

as for the crit, i'm not actually sure if that particular line affects all crits, but you'd want to alter that a small bit such that luk is part of each side.

now i think from playing around, if you put these in a text doc, name it myalterations.js (or something), put it in plugins and activate it, if it's first in list, it'll change those BEFORE other plugins that affect crit calcs, or at the bottom, it'll make plugins not affect them anymore. probably someone better to ask for more info.
nvmd. someone beat me to it

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-critical-hit-mechanics.146540/