com3tiin
Soy chamber...
- 108
- Posts
- 12
- Years
- Seen Mar 3, 2024
@xAreum: I purposely removed the link to the next release. Do not despair
@BalletDuckNinja:
To implement Physical / Special Split I base me on a routine of Koolboyman, that complete with the help of my fellow of WaH. This is the corrected routine, but if you dont know much about ASM can ´see this link and download the patch that I made:
https://wahackforo.com/t-24427/gbc-parche-clasificacion-movientos-fisico-especial
@BalletDuckNinja:
To implement Physical / Special Split I base me on a routine of Koolboyman, that complete with the help of my fellow of WaH. This is the corrected routine, but if you dont know much about ASM can ´see this link and download the patch that I made:
https://wahackforo.com/t-24427/gbc-parche-clasificacion-movientos-fisico-especial
Code:
Original routine:
//Stats the new routine
0D:543F - jp $7FA0 ; C3 A0 7F
//Main routine
0D:7FA0
ld hl, $5300 ; 21 00 53
ld a, $26 ; 3E 26
rst $8 ; CF //Moves to a new bank
ld a,[$DEFF] ; FA FF DE // Load result into a
dec a ; 3D // Decreases the value you got so it can easily check if it's special or not.
jp z, $5467 ; CA 67 54 // If it's zero, it's a special attack.
jp $5443 ; C3 43 54// Else is a physical.
//Getting the type
26:5300
ld a,[$CE60] ; FA 60 CE // Get the move ID
ld hl,$5400 ; 21 00 54 // Pointer to type array
ld l,a ; 6F // Increase the pointer by the move being used
ld a, [hl] ; 7E // Load the result into a
ld [$DEFF] ; EA FF DE //Save result into RAM
ret ; C9
//Rival moves
0D:5548 - jp $7FB0 ; C3 B0 7F
//Main routine
0D:7FB0
ld hl, $5300 ; 21 00 53
ld a, $26 ; 3E 26
rst $8 ; CF
ld a,[$DEFF] ; FA FF DE
dec a ; 3D
jp z,$5570 ; CA 70 55
jp $554C ; C3 4C 55
26:5400
0 - Physical
1 - Special