Skip to content

Commit

Permalink
Define constants for in-game trades
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Jul 16, 2020
1 parent b9a113a commit 8c83ebe
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 9 deletions.
13 changes: 13 additions & 0 deletions constants/script_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ SLOTSFISH EQU $0E0C
SLOTSBIRD EQU $1210
SLOTSMOUSE EQU $1614

; in game trades
const_def
const TRADE_FOR_TERRY
const TRADE_FOR_MARCEL
const TRADE_FOR_CHIKUCHIKU
const TRADE_FOR_SAILOR
const TRADE_FOR_DUX
const TRADE_FOR_MARC
const TRADE_FOR_LOLA
const TRADE_FOR_DORIS
const TRADE_FOR_CRINKLES
const TRADE_FOR_SPOT

; in game trade dialog sets
const_def
const TRADE_DIALOGSET_CASUAL
Expand Down
2 changes: 1 addition & 1 deletion scripts/CeruleanTradeHouse.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CeruleanHouse1Text1:

CeruleanHouse1Text2:
text_asm
ld a, $6
ld a, TRADE_FOR_LOLA
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
2 changes: 1 addition & 1 deletion scripts/CinnabarLabFossilRoom.asm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Lab4Text_75dd5:

Lab4Text2:
text_asm
ld a, $3
ld a, TRADE_FOR_SAILOR
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
Expand Down
4 changes: 2 additions & 2 deletions scripts/CinnabarLabTradeRoom.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Lab2Text1:

Lab2Text2:
text_asm
ld a, $7
ld a, TRADE_FOR_DORIS
ld [wWhichTrade], a
jr Lab2DoTrade

Lab2Text3:
text_asm
ld a, $8
ld a, TRADE_FOR_CRINKLES
ld [wWhichTrade], a
Lab2DoTrade:
predef DoInGameTradeDialogue
Expand Down
2 changes: 1 addition & 1 deletion scripts/Route11Gate2F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Route11Gate2F_TextPointers:

Route11GateUpstairsText1:
text_asm
xor a
xor a ; TRADE_FOR_TERRY
ld [wWhichTrade], a
predef DoInGameTradeDialogue
Route11GateUpstairsScriptEnd:
Expand Down
2 changes: 1 addition & 1 deletion scripts/Route18Gate2F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Route18Gate2F_TextPointers:

Route18GateUpstairsText1:
text_asm
ld a, $5
ld a, TRADE_FOR_MARC
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
Expand Down
2 changes: 1 addition & 1 deletion scripts/Route2TradeHouse.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Route2HouseText1:

Route2HouseText2:
text_asm
ld a, $1
ld a, TRADE_FOR_MARCEL
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd
2 changes: 1 addition & 1 deletion scripts/UndergroundPathRoute5.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ UndergroundPathRoute5_TextPointers:

UndergroundPathEntranceRoute5Text1:
text_asm
ld a, $9
ld a, TRADE_FOR_SPOT
ld [wWhichTrade], a
predef DoInGameTradeDialogue
ld hl, UndergroundPathEntranceRoute5_TextScriptEndingText
Expand Down
2 changes: 1 addition & 1 deletion scripts/VermilionTradeHouse.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VermilionTradeHouse_TextPointers:

VermilionHouse3Text1:
text_asm
ld a, $4
ld a, TRADE_FOR_DUX
ld [wWhichTrade], a
predef DoInGameTradeDialogue
jp TextScriptEnd

0 comments on commit 8c83ebe

Please sign in to comment.