Item use text displays based on if it’s a weapon
In vanilla, the use text of a staff or consumable item only displays if that item is of a set few types. This is great and functional and all, but a common solution to make un-stealable items is to make them classed as a sword, for example, instead of an item. This means that they will display the use text for a weapon where it calculates attack, hit and whatnot. This is not ideal so I made an inline edit to check if an item is a weapon, and if not then draw the item use text.
EA script:
// Bases item use text displaying in the item menu on whether the item can be equipped as a weapon,
// instead of what item type it is
// By Ditto
PUSH
ORG 0x1E7E6 // In UpdateMenuItemPanel
SHORT 0xF7F8 0xFEC1 // bl 0x0801756C (GetItemAttributes)
SHORT 0x2101 // mov r1, #0x1
SHORT 0x4208 // tst r0, r1
SHORT 0xD159 // bne 0x0801E8A4
SHORT 0xE006 // b 0x0801E800
POP