Complete Inverse implementation, fix type matchups

Issues occurred resulting from an incomplete implementation of Inverse Battles from Commit #e59cc2b329.

Attempts to fix have been made through completing the implementation, which also accounts for proto-Fairy.

Additionally, some semi-invulnerable glitches have attempts made to resolve them, involving a generic list and 16bitification of the compare commands.

Damage processing seems iffy but this needs more testing. Type matchups function correctly, though.
This commit is contained in:
Llinos Evans 2025-01-11 06:33:35 +00:00
parent 90fe97fcb1
commit a14e978b98
4 changed files with 425 additions and 181 deletions

View file

@ -8,12 +8,12 @@ DebugRoom_MapScripts:
DebugPokemon1Script:
opentext
getmonname STRING_BUFFER_3, AZUMARILL
getmonname STRING_BUFFER_3, BIPULLA
writetext ReceivedDebugPokemonText
playsound SFX_CAUGHT_MON
waitsfx
promptbutton
givepoke AZUMARILL, 4, HM_WATER_SPORT
givepoke BIPULLA, 15, HM_WATER_SPORT
closetext
end
@ -39,11 +39,11 @@ DebugPokemon3Script:
faceplayer
opentext
writetext DebugTextA
cry STROMEN
cry BELLSPROUT
pause 15
closetext
loadvar VAR_BATTLETYPE, BATTLETYPE_SHINY
loadwildmon COATL, 75
loadvar VAR_BATTLETYPE, BATTLETYPE_INVERSE
loadwildmon BELLSPROUT, 10
startbattle
reloadmapafterbattle
end
@ -56,11 +56,11 @@ DebugPokemon4Script:
faceplayer
opentext
writetext DebugTextB
cry STROMEN
cry BELLSPROUT
pause 15
closetext
loadvar VAR_BATTLETYPE, BATTLETYPE_SUICUNE
loadwildmon COATL, 75
loadwildmon BELLSPROUT, 10
startbattle
reloadmapafterbattle
end