Added Mana Restore Components, Implemented Split Mana Bars Mechanic

I rewrote this MR from scratch because a bunch of merges accidentally got mixed in.

This MR adds support for the following features:

  1. Mana Restore item components to allow restoring Mana similar to HP.
  2. Mana Empower Components which work the same as Heal Empower.
  3. Reworks HP Bars in combat windows to be flexible and to support multiple bars where requested.
    1. This includes splitting the interface into separate files, so any overrides will be broken by this update.
    2. image.png
  4. Added a method to item_funcs (maybe this isn't the right place for it?) to determine which bars are needed for the unit and item.
  5. Reworked healing and mana restore so that "allow heal" is determined by if any healing-related component on the item can heal, instead of just one single one.
  6. Added a constant to include MP / Max MP on Unit Info right below HP. This moves MANA from its original location entirely.
    1. This constant also permanently enables support for MANA/MP Bars even if ManaRestore isn't enabled.
    2. image.png
    3. NOTE: This always says MP here. Other locations will say MANA unless it is overridden.

TO DO:

The unit_mp PNG file is not used at this time. Its for the info window, but I'm not exactly sure how to fit it in there at this time.

IMO, it won't fit in the box and making the box bigger won't work well. I think the best thing to do is have it on a rotation; every few seconds it swaps between HP and MP. And any other bars you may add in the future. But I'm not sure how to do this yet so its not implemented at this time. This I feel is a minor thing anyway and can easily be added later.

image.png

There's no MP or MANA distinction anywhere in the full combat window:

image.png

I'm not really sure where to put it here. All of the space is taken up. If those HP bars are filled the same thing happens, so using those bars isn't a good idea. My best guess here would be a separate box above the weapon similar to the Guard Gauge, but I would need to know how much space is filled out if everything is on screen at once. So for now, I haven't changed the main combat window. The backend is heavily restructure to support the ability to add separate bars, but its still only displaying HP for now.

Edited by JaidynReiman

Merge request reports

Loading