test_battle.asm 664 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. TestBattle:
  2. ret
  3. .loop
  4. call GBPalNormal
  5. ; Don't mess around
  6. ; with obedience.
  7. ld a, %10000000 ; EARTHBADGE
  8. ld [wObtainedBadges], a
  9. ld hl, wFlags_D733
  10. set BIT_TEST_BATTLE, [hl]
  11. ; Reset the party.
  12. ld hl, wPartyCount
  13. xor a
  14. ld [hli], a
  15. dec a
  16. ld [hl], a
  17. ; Give the player a
  18. ; level 20 Rhydon.
  19. ld a, RHYDON
  20. ld [wcf91], a
  21. ld a, 20
  22. ld [wCurEnemyLVL], a
  23. xor a
  24. ld [wMonDataLocation], a
  25. ld [wCurMap], a
  26. call AddPartyMon
  27. ; Fight against a
  28. ; level 20 Rhydon.
  29. ld a, RHYDON
  30. ld [wCurOpponent], a
  31. predef InitOpponent
  32. ; When the battle ends,
  33. ; do it all again.
  34. ld a, 1
  35. ld [wUpdateSpritesEnabled], a
  36. ld [H_AUTOBGTRANSFERENABLED], a
  37. jr .loop