Weapon-/Armor Upgrade System

I did some playing around in RPG Maker MZ and found some ways on how to make a working Upgrading/Crafting Event work without bugging out on me.

But I do have a question though, How did you guys tackle a Weapon and Armor Upgrade system where is shows the player that they upgraded their Equipment to +9?

I tried several methods already which were "working" as in they worked both in visual and functionality terms, BUT the problem was that the Shops started selling Upgraded gear instead of the base Equipment. I was using the following Code to change the numbers from the Equipment into what it needs to be once the Variable for the weapon has changed.

JavaScript:
// Revolver MK2 Upgrade from 0 to +1
if (this._data[265] === 0){$dataWeapons[65].name = "Revolver MK2";$dataWeapons[65].params[0] =0;$dataWeapons[65].params[1] =40;$dataWeapons[65].params[2] =30;$dataWeapons[65].params[3] =10;$dataWeapons[65].params[4] =30;$dataWeapons[65].params[5] =5;$dataWeapons[65].params[6] =20;$dataWeapons[65].params[7] =0;};
if (this._data[265] === 1){$dataWeapons[65].name = "Revolver MK2 +1";$dataWeapons[65].params[0] =0;$dataWeapons[65].params[1] =50;$dataWeapons[65].params[2] =38;$dataWeapons[65].params[3] =13;$dataWeapons[65].params[4] =38;$dataWeapons[65].params[5] =6;$dataWeapons[65].params[6] =25;$dataWeapons[65].params[7] =0;};

As you can see, it DOES work for everything that needs changing but it also means that Shops will sell that "upgraded equipment" because the game pulls the same weapon Id from the actual weapon.

my current solution to this is to actually create a weapon/armor piece for EACH Weapon and Armor, so that I won't run into that issue again.

IF anybody gives Weapons/Armors to the player outside from shops and won't sell them in shops ever, changing the values is actually the easiest way to "Upgrade" your Weapon/Armor.
Well, that is because you are actually updating the information on the name value of the particular item. As you mentioned, the shop is geting the information based on the item(weapon/armor) id, and since you are updating that particular id, then the shop will get the updated values from it.
In this case, a possible solution would be that, any base weapon/armor is not really updated, you have a separate weapon/armor that, once the base weapon is updated, you unequip the base weapon/armor and equip the upgraded weapon/armor and keep upgrading that one, assuming it will never be used for crafting another one.
You use independent items.

Ramza made a patch for Yanfly's Item Core to work in MZ, and Dungeonmind wrote a native MZ version.

Original thread: https://forums.rpgmakerweb.com/threads/weapon-armor-upgrade-system.165841/