Screen Tint Floor Damage/Negative Status Effects

I'm making a game with a specific color palette (CGA) and I want to change the color of the screen when you take floor damage and negative status effects like poison. (By default is red)

Someone knows where is the exact part that allows me to make this change? (I was unable to find it on my own.)
I believe it's this:
JavaScript:
Game_Screen.prototype.startFlashForDamage = function() {
    this.startFlash([255, 0, 0, 128], 8);
};
So you could stick that in a .js file, edit the numbers ([red, green, blue, alpha], duration), and import as a plugin: that should override the existing method. 🙂

In case you're interested, I found it by searching for "mapdamage".
Thank you a lot! Next time i'm going to ask right away in the forums because i was months trying to find it on my own! 😤

Original thread: https://forums.rpgmakerweb.com/threads/screen-tint-floor-damage-negative-status-effects.116594/