So I'm using Yanfly's Item Upgrade Slots to create "Enchantments", and Attachable Augments to create "Orbs" which increase the number of available Enchantment slots of weapons and armors. Every weapon and armor piece starts with 0 Enchantment slots, and you have to find an Orb to attach that will give you the slots. I have it mostly working, the only issue is that when I attach the orbs, the number of available enchantment slots does not change. It only changes it if the weapon or armor already has at least 1 slot.
This is the code for the Alpha Orb;
Is there another line of code I can put in that will make the number of available enchantment slots appear on an item that originally didn't have any?
Edit: Oh wait, I think I might not have explained my issue properly... as it is, the Alpha Orb does increase the number of available Enchantment slots, and as long as the item already had at least 1 slot to start with, the Enchantment Slot counter will increase. However, items that do not have any Enchantment slots will not display the Enchantment Slot counter at all, therefor the counter won't increase.
This is the code for the Alpha Orb;
Code:
<Augment Attach Eval: Orb>
item.upgradeSlots += 1;
item.originalUpgradeSlots = item.originalUpgradeSlots || DataManager.getBaseItem(item).upgradeSlots;
item.originalUpgradeSlots++;
</Augment Attach Eval: Orb>
<Augment Attach: Orb>
Price: +750
Cannot Detach
</Augment Attach: Orb>
Edit: Oh wait, I think I might not have explained my issue properly... as it is, the Alpha Orb does increase the number of available Enchantment slots, and as long as the item already had at least 1 slot to start with, the Enchantment Slot counter will increase. However, items that do not have any Enchantment slots will not display the Enchantment Slot counter at all, therefor the counter won't increase.