How do you get rid of Luck's State Resist effect?

I am aware of the fact that the Luck stat has some way of getting rid of states that enemies put on you, but I don't want this to be in my game at all.


I tried searching for a plug-in on the internet, but I kept getting irrelevant results.


Regardless of whether plug-ins are necessary or not, I was wondering if there was some sort of way of getting rid of that.


And if not, is there a way I could hide the Luck stat from the game entirely?
The method that allows LUK to affect the chance of inflicting statuses (it doesn't help remove statuses like you imply that it does) is lukEffectRate in the rpg_objects core script that comes with every game when you create it.


Game_Action.prototype.lukEffectRate = function(target) {
    return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
};


You need to modify this method to return 1.0 so that the chance to inflict a status is always multiplied by 1:


Game_Action.prototype.lukEffectRate = function(target) {
    return 1.0;
};


You can either place this method in its own .js plugin and activate it in your game, or you can simply modify the existing method in the rpg_objects script.  The latter is easier, but may have no effect if you have other plugins that overwrite this method.
The method that allows LUK to affect the chance of inflicting statuses (it doesn't help remove statuses like you imply that it does)....

Sorry, that's what I meant, I just worded it weirdly.


I never would have been able to find that on my own, thanks for helping me with that!
No problem.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-get-rid-of-lucks-state-resist-effect.66002/