Skip to content

Commit

Permalink
Merge pull request #179 from suloku/master
Browse files Browse the repository at this point in the history
Bugfixed
  • Loading branch information
PiaCarrot authored May 7, 2024
2 parents fd105d4 + 493f752 commit afab465
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 13 deletions.
Empty file modified audio/music/orangedive.asm
100755 → 100644
Empty file.
Empty file modified audio/music/orangeencounter.asm
100755 → 100644
Empty file.
Empty file modified audio/music/routeextra.asm
100755 → 100644
Empty file.
9 changes: 5 additions & 4 deletions battle/core.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4125,16 +4125,17 @@ RecallPlayerMon: ; 3dce6
; 3dcf9

HandleBugBiteEatBerry:
ld a, [hLinkPlayerNumber]
cp $1
jr z, .player_1
ld a, [hBattleTurn]
and a
jr nz, .player_consumeberry
;enemyturn
call SetEnemyTurn
call UseHPHealingEatenBerry
call UseHeldStatusHealingItem
call UseConfusionHealingItem
call SetPlayerTurn
ret
.player_1
.player_consumeberry
call SetPlayerTurn
call UseHPHealingEatenBerry
call UseHeldStatusHealingItem
Expand Down
5 changes: 3 additions & 2 deletions engine/move_mon.asm
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ endr
.initializetrainermonpersonality
pop de

; CaughtData/CaughtTime/CaughtLevel
xor a
; CaughtData/CaughtTime/CaughtLevel --> this byte has been repurposedf for the personality value
; xor a ; don't erase it, since we will use the generated personality
ld [de], a
inc de
; CaughtGender/CaughtLocation
xor a ;this is initialized as zero
ld [de], a
inc de

Expand Down
8 changes: 7 additions & 1 deletion maps/MurcottIsland.asm
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ MurcottIslandTMRainDance:
itemball TM_RAIN_DANCE
CrossBattle3Script1:
checkevent EVENT_MURCOTT_ISLAND_CROSS
iftrue .End
faceplayer
showemote EMOTE_SHOCK, PLAYER, 15
applymovement PLAYER, CrossMurcottIslandApproach1_Movement
Expand Down Expand Up @@ -247,9 +249,12 @@ CrossBattle3Script1:
pause 10
domaptrigger MURCOTT_ISLAND, $1
setevent EVENT_MURCOTT_ISLAND_CROSS
.End
end
CrossBattle3Script2:
CrossBattle3Script2:
checkevent EVENT_MURCOTT_ISLAND_CROSS
iftrue .End
faceplayer
showemote EMOTE_SHOCK, PLAYER, 15
applymovement PLAYER, CrossMurcottIslandApproach2_Movement
Expand Down Expand Up @@ -302,6 +307,7 @@ CrossBattle3Script2:
pause 10
domaptrigger MURCOTT_ISLAND, $1
setevent EVENT_MURCOTT_ISLAND_CROSS
.End
end
CrossMurcottIslandText:
Expand Down
9 changes: 6 additions & 3 deletions maps/Trovitopolis.asm
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ TrovitopolisGrampsScript:
opentext
writetext TrovitopolisGrampsText
waitbutton
checkevent EVENT_CROSS_ON_PUMMELO
iffalse .done
checkitem RAINBOW_WING
;failsafe to give the rainbow wing on old saves that already beat Cross at Pummelo
checkevent EVENT_BEAT_ORANGE_LEAGUE
iffalse .done ;if you haven't beat the league, we are done (to beat the league you must beat Cross at Pummelo first)
checkevent EVENT_CROSS_CORRUPTED_SUNRAY
iftrue .done ;if you triggered this event, you already got the rainbow wing (but may not have it until you beat Cross at route 51)
checkitem RAINBOW_WING ;you beat Cross on Pummelo, but haven't triggered Marshadow's event (and thus losing the Rainbow Wing), so assume old save and give it to the player
iftrue .done
verbosegiveitem RAINBOW_WING
Expand Down
Empty file modified patches/deprecated-historical-only/DO NOT USE THESE PATCHES.txt
100755 → 100644
Empty file.
Empty file modified patches/deprecated-historical-only/movie-2000-no-pss.ips
100755 → 100644
Empty file.
Empty file modified patches/deprecated-historical-only/movie-2000-pss.ips
100755 → 100644
Empty file.
Empty file modified patches/suloku-patch-no-pss.ips
100755 → 100644
Empty file.
Empty file modified patches/suloku-patch-pss.ips
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions trainers/trainers.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3899,7 +3899,7 @@ CrossGroup:

db $ff ; end

; ================ PUMMELO (PICK CHARMANDER)
; ================ ROUTE 51 (PICK CHARMANDER)

; CROSS (16)
db "CROSS@"
Expand Down Expand Up @@ -3945,7 +3945,7 @@ CrossGroup:

db $ff ; end

; ================ PUMMELO (PICK SQUIRTLE)
; ================ ROUTE 51 (PICK SQUIRTLE)

; CROSS (17)
db "CROSS@"
Expand Down Expand Up @@ -3991,7 +3991,7 @@ CrossGroup:

db $ff ; end

; ================ PUMMELO (PICK BULBASAUR)
; ================ ROUTE 51 (PICK BULBASAUR)

; CROSS (18)
db "CROSS@"
Expand Down

0 comments on commit afab465

Please sign in to comment.