Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This hack causes melee animations to be used,
- "Str" to be displayed
- and melee weapon levels to be displayed
- for a unit that has a melee weapon equipped,
- and magic animations to be used,
- "Mag" to be displayed
- and magic weapon levels to be displayed
- for a unit that has a magic weapon equipped:
- .org 0x08018188
- .thumb
- push {lr} @
- @-------------------------------@Get uses/equipped weapon of unit pointed at by r0
- bl 0x08016958
- lsl r0, r0, #0x18 @
- lsr r0, r0, #0x18 @
- ldr r1, ITEM_TABLE_REF
- ldr r1, [r1] @r1 points to item table
- lsl r0, r0, #0x05 @
- add r0, r0, r1 @Indexing of item table complete
- ldrb r0, [r0, #0x08] @
- mov r1, #0x02 @"Use magic animation?"
- and r0, r1 @
- lsr r0, r0, #0x01 @r0 == 1 or 0, guaranteed
- pop {pc} @
- .align 2
- ITEM_TABLE_REF:
- .long 0x08016410
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement