Added the function to merge items in the depository

A function has been added to merge items when they are put in and out while the L button is held down in the depository.

This is a now familiar function that appeared in DSFE. Items that have decreased in number of uses can be combined together, so the item boxes can be compressed. The operation method follows that of the GBA FE hack.

The specifications are as follows:

  • When two items with the same ID are found, the number of times they have been used are combined and consolidated into a single item.
  • When receiving the item, the unit's possessions, and when depositing the item, the list of items in the depository is searched from top to bottom, and the first item found that can be combined is combined.
  • If the total value will exceed the maximum number, they will not be combined.
  • Broken weapons are not combined.
  • If the list is searched to the end and cannot be combined, the items will be moved in and out as usual.

In addition, the processing of fe5_item_list_lr.asm has been changed, because it interferes with the key operation of item combination. If you press the cross key up/down while holding down the R button, the conventional page forwarding process by L/R button will be performed.

Some items can be merged beyond the limit

Ring items, Knight Proof, and Master Proof can be merged beyond the limit.

Although it would not normally happen, the maximum number of items that can be merged is 99, so if you try to merge more than 100 items, the overflow will silently disappear.