- 88
- Posts
- 8
- Years
- Seen Jan 16, 2020
I want to have the master ball fail upon usage against a specific pokemon and/or map. I know it skips the catch rate calculation subroutine, so I'm wondering where this subroutine is called from? In other words, where does the game check to see if the master ball is being used?
Alternatively, I am thinking of just making it an even better Ultra Ball.
My current idea is to link to a new subroutine if the master ball is used with something along these lines:
Please let me know if you can help / have any suggestions. Thanks!
Alternatively, I am thinking of just making it an even better Ultra Ball.
My current idea is to link to a new subroutine if the master ball is used with something along these lines:
Code:
mov r0, #0x67
lsl r0, r0, #0x2
sub r0, r0, #0x1 @ID 411 or whichever ID I would use
ldr r1, =(0x0202402C) @enemy pokemon
cmp r1, r0
beq Fail
mov r4, #0x50 @if not specified pokemon, catch rate becomes 8x (or jump to wherever it originally jumps to. I haven't decided if I will make it just an absurd catch rate)
b Ending
Fail:
mov r4, #0x0
Ending:
ldr r0, =(0x0802D62A)
mov pc, r0
Please let me know if you can help / have any suggestions. Thanks!
Last edited: