Modifying Luck

I'm pretty sure that you've seen a billion different threads about modifying the luck formula. Sorry.
But, anyways, here's what the luck formula looks like by default rpg_objects.js:
return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
This formula is horrendous, so I changed it to this:
return Math.max(1.0 + (this.subject().luk - target.luk) * 0.01);
So, since my javascript is nonexistent, I want to know whether what I'm trying to do actually works...
So, I changed it for 1% chance ailment increase per point of luck, that probably works as intended... However, I also wanted luck to affect resist chances so stopped the luck% from capping at 0% by removing the last part.

So, if a character has 80 luck and another 100, will the chance of the character inflicting the state be reduced by 20% from the base chance if the character with 80 lck tries to inflict a status effect on the character with 100 lck. And will the chance of the state being inflicted increase by 20% if the reverse happens?

Original thread: https://forums.rpgmakerweb.com/threads/modifying-luck.118886/