MZ Changing the color of changed parameters for parameters that are stronger when negative?

As per the title.
In the equip and shop menus, whenever a weapon or armor is about to change an actor's parameters, those parameters change color according to whether they're being increased or decreased. This is of course nice and all, but it presents a problem I couldn't find much information on:
some parameters by default actually get stronger if their value is reduced (such as guard effect, MP cost, etc). For these parameters, if they're being strengthened, the game will think "oop! negative = bad" and changes the color to red, when green usually marks changes that are a good thing. While trying to fix this issue, I found the following in RMMZ's base code:

JavaScript:
Window_ShopStatus.prototype.drawActorParamChange = function(x, y, actor, item1) {
    const width = this.innerWidth - this.itemPadding() - x;
    const paramId = this.paramId();
    const change = this._item.params[paramId] - (item1 ? item1.params[paramId] : 0);
    this.changeTextColor(ColorManager.paramchangeTextColor(change));
    this.drawText((change > 0 ? "+" : "") + change, x, y, width, "right");
};

Window_EquipStatus.prototype.drawNewParam = function(x, y, paramId) {
    const paramWidth = this.paramWidth();
    const newValue = this._tempActor.param(paramId);
    const diffvalue = newValue - this._actor.param(paramId);
    this.changeTextColor(ColorManager.paramchangeTextColor(diffvalue));
    this.drawText(newValue, x, y, paramWidth, "right");
};

ColorManager.paramchangeTextColor = function(change) {
    if (change > 0) {
        return this.powerUpColor();
    } else if (change < 0) {
        return this.powerDownColor();
    } else {
        return this.normalColor();
    }
};

I think these snippets control the color changing when parameters are adjusted? What I couldn't find however, is which paramId(s) are connected to S- and X- parameters.
How can I make the game reverse the colors used for specific parameters, as in negative = green and positive = red?

(edit: forgot to mention, forcing S- and X- parameters to display through VS plugins)
What plugins are you using? By default, MZ doesn't show this.

The shop in MZ only shows one parameter comparison - ATK for weapons, DEF for armor.

If you're using a plugin to display more information than that, you'd have to modify that plugin. The code functions you pasted there aren't programmed to look at ex- or sp-parameters at all.
I think the plugin responsible for showing those parameters is VisuStella's core engine.
It includes a plugin parameter regarding the color thats being picked, but I'm not sure I see the option to check which parameter is being changed.
Well, if it's turning some of the sp/ex-parameters the wrong color for what's "good," and there isn't a plugin parameter that gives you access to the code for that window, you'd have to contact their customer support.

We on the forum can't find and modify a function in a plugin with obfuscated code.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-color-of-changed-parameters-for-parameters-that-are-stronger-when-negative.165850/