[FE8] Durability based Stat boosters

Here’s another niche patch.

StatBoost

They look like vanilla stat boosters, right?

But they are in fact a durability based item.
image

This frees up to 9 item slots and item effect IDs

Download here.

This requires IER, Icon Rework, and Durability Based items to work, it probably requires Str/Mag split too, but I’m not sure since I only tested this with that patch.

To implement this, go to EngineHacks/Necessary/DurabilityBasedItems/DurabilityBasedItems.event and add some lines:

ALIGN 4
DurabilityBasedItemNameList: //used for item name
DurabilityTextEntry(0xFFFF,True,SkillDescTable)
DurabilityTextEntry(0xFFFD,False,BoostNameTable)
DurabilityTextEnd

ALIGN 4
DurabilityBasedItemDescList: //used for item desc
DurabilityTextEntry(0xFFFF,False,SkillDescTable)
DurabilityTextEntry(0xFFFD,False,BoostDescriptionTable)
DurabilityTextEnd

ALIGN 4
DurabilityItemList: //used for durability
DurabilityItem(SkillScroll)
DurabilityItem(StatBoostItem)
DurabilityItemEnd

ALIGN 4
DurabilityBasedItemIconList: //used for icons
DurabilityIcon(SkillScroll,5)
DurabilityIcon(StatBoostItem,6)
DurabilityIconEnd

ALIGN 4
BoostNameTable:
SHORT 0x0000
SHORT 0x03D4 //Seraph Robe
SHORT 0x03D5 //Energy Ring
SHORT SpiritDustName //Spirit Dust
SHORT 0x03D6 //Secret Book
SHORT 0x03D7 //Speedwings
SHORT 0x03D8 //Godess Icon
SHORT 0x03D9 //Dragon Shield
SHORT 0x03DA //Talisman
SHORT 0x03DB //Boots
SHORT 0x03DC //Body Ring
SHORT 0x0000
SHORT 0x0000
	
BoostDescriptionTable:
SHORT 0x0000
SHORT 0x0483 //Seraph Robe
SHORT 0x0484 //Energy Ring
SHORT SpiritDustDescription //Spirit Dust
SHORT 0x0485 //Secret Book
SHORT 0x0486 //Speedwings
SHORT 0x0487 //Godess Icon
SHORT 0x0488 //Dragon Shield
SHORT 0x0489 //Talisman
SHORT 0x048A //Boots
SHORT 0x048B //Body Ring
SHORT 0x0000
SHORT 0x0000

Then add the icons:

EngineHacks/Necessary/IconRework/IconRework.event

[...]

#define ICON_SHEET_COUNT 6

[...]

InjectIconGfxGetter(6, (prGetStatBoostIconGfx+1))

[...]


prGetStatBoostIconGfx:
	#incbin "asm/GetSheetIconGfx.bin"
	POIN StatBoostIcons

[...]
EngineHacks/Necessary/IconRework/IconRework_internal.event

[...]

ALIGN 4
StatBoostIcons:
#incext Png2Dmp "bin/ItemBoostIcons.png"

[...]

In the StatBoostTable the boost applied is indicated by the durability of the item, the vanilla boosts are set in the slots 0x01 thru 0x0A, you can start adding from there or modify the existent ones.
In the item table assign any item effect ID from 0x10 to 0x18, any of those should do the work as long as you don’t modify them.
For the name and description, use 0xFFFE or any other text ID you set in the Durability Item lists.

Now you can have 254 stat boosters, so, get crazy.

12 Likes