Skip to content

Commit

Permalink
Fix: Sending a caught Pokémon to the PC asks whether to nickname in N…
Browse files Browse the repository at this point in the history
…uzlocke mode.

Remove some unused Nuzlocke-related code.
  • Loading branch information
roukaour committed Sep 9, 2016
1 parent f2bdd4e commit ec63b36
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 32 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ These changes have been made since the previous 2.0.0 release. If you build the
* Fix: Icicle Crash is still called Razor Shell.
* Fix: A battle with Lyra is skippable.
* Fix: Two trainers overlap on the S.S. Aqua.
* Fix: Sending a caught Pokémon to the PC asks whether to nickname in Nuzlocke mode.
* Fix: Plural trainers say "are about to use", not "is about to use".
* Fix: Viridian Forest is dark.
* Fix: S.S. Aqua location on Town Map.
Expand Down
18 changes: 0 additions & 18 deletions engine/scripting.asm
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ ScriptCommandTable: ; 96cb1
dw Script_count_unown_caught ; ab
dw Script_trainerpic ; ac
dw Script_check_nuzlocke ; ad
dw Script_nuzlocke_on ; ae
dw Script_nuzlocke_off ; af
; 96e05

StartScript: ; 96e05
Expand Down Expand Up @@ -3276,19 +3274,3 @@ Script_check_nuzlocke:
bit NUZLOCKE_MODE, a
ld [ScriptVar], a
ret

Script_nuzlocke_on:
; script command 0xae

ld a, [Options2]
set NUZLOCKE_MODE, a
ld [Options2], a
ret

Script_nuzlocke_off:
; script command 0xaf

ld a, [Options2]
res NUZLOCKE_MODE, a
ld [Options2], a
ret
4 changes: 1 addition & 3 deletions event/whiteout.asm
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ Script_Whiteout: ; 0x124ce
db "@"

Script_NuzlockeWhiteout:
nuzlocke_off
special HealParty
nuzlocke_on
special HealPartyEvenForNuzlocke
checkflag ENGINE_BUG_CONTEST_TIMER
iftrue .bug_contest
callasm GetWhiteoutSpawn
Expand Down
5 changes: 5 additions & 0 deletions items/item_effects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ endr
.SkipBoxMonFriendBall:
call CloseSRAM

ld a, [Options2]
bit NUZLOCKE_MODE, a
jr nz, .AlwaysNicknameBox

ld hl, Text_AskNicknameNewlyCaughtMon
call PrintText

Expand All @@ -696,6 +700,7 @@ endr
call YesNoBox
jr c, .SkipBoxMonNickname

.AlwaysNicknameBox:
xor a
ld [CurPartyMon], a
ld a, BOXMON
Expand Down
10 changes: 0 additions & 10 deletions macros/event.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1085,13 +1085,3 @@ trainerpic: macro
check_nuzlocke: macro
db check_nuzlocke_command
endm

enum nuzlocke_on_command
nuzlocke_on: macro
db nuzlocke_on_command
endm

enum nuzlocke_off_command
nuzlocke_off: macro
db nuzlocke_off_command
endm
2 changes: 1 addition & 1 deletion main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,7 @@ CheckPartyFullAfterContest: ; 4d9e5

GiveANickname_YesNo: ; 4db3b
ld a, [Options2]
and 1 << NUZLOCKE_MODE
bit NUZLOCKE_MODE, a
jr nz, .AlwaysNickname
ld hl, TextJump_GiveANickname
call PrintText
Expand Down

0 comments on commit ec63b36

Please sign in to comment.