Skip to content

Commit 4abbaaf

Browse files
Document Veilstone Department Store (#796)
1 parent a9af4c6 commit 4abbaaf

File tree

116 files changed

+682
-653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+682
-653
lines changed

asm/macros/scrcmd.inc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2652,6 +2652,22 @@
26522652
.short \destVarID
26532653
.endm
26542654

2655+
.macro GivePoketchApp
2656+
CallCommonScript 0x7D9
2657+
.endm
2658+
2659+
.macro GiveAccessoryWaitForConfirm
2660+
CallCommonScript 0x7DF
2661+
.endm
2662+
2663+
.macro MessageBagIsFull
2664+
CallCommonScript 0x7E1
2665+
.endm
2666+
2667+
.macro GiveItemQuantity
2668+
CallCommonScript 0x7FC
2669+
.endm
2670+
26552671
.macro ScrCmd_Unused_1D4 arg0, arg1, arg2
26562672
.short 468
26572673
.short \arg0

generated/vars_flags.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ FLAG_UNK_0x00B5
183183
FLAG_UNK_0x00B6
184184
FLAG_UNK_0x00B7
185185
FLAG_UNK_0x00B8
186-
FLAG_UNK_0x00B9
186+
FLAG_VEILSTONE_STORE_B1F_SPOKEN_TO_PROF_ROWAN
187187
FLAG_TEAM_GALACTIC_LEFT_LAKE_VERITY
188188
FLAG_UNK_0x00BB
189189
FLAG_UNK_0x00BC
@@ -259,7 +259,7 @@ FLAG_UNK_0x0101
259259
FLAG_UNK_0x0102
260260
FLAG_UNK_0x0103
261261
FLAG_UNK_0x0104
262-
FLAG_UNK_0x0105
262+
FLAG_VEILSTONE_STORE_5F_RECEIVED_STICKY_BARB
263263
FLAG_UNK_0x0106
264264
FLAG_UNK_0x0107
265265
FLAG_UNK_0x0108
@@ -295,7 +295,7 @@ FLAG_MESPRIT_CAUGHT
295295
FLAG_AZELF_CAUGHT
296296
FLAG_UXIE_CAUGHT
297297
FLAG_UNK_0x0128
298-
FLAG_UNK_0x0129
298+
FLAG_VEILSTONE_STORE_1F_RECEIVED_MASK
299299
FLAG_UNK_0x012A
300300
FLAG_UNK_0x012B
301301
FLAG_UNK_0x012C
@@ -387,7 +387,7 @@ FLAG_UNK_0x0181
387387
FLAG_UNK_0x0182
388388
FLAG_UNK_0x0183
389389
FLAG_UNK_0x0184
390-
FLAG_UNK_0x0185
390+
FLAG_VEILSTONE_STORE_B1F_HIDE_PROF_ROWAN
391391
FLAG_UNK_0x0186
392392
FLAG_UNK_0x0187
393393
FLAG_UNK_0x0188
@@ -4361,7 +4361,7 @@ VAR_UNK_0x4103
43614361
VAR_UNK_0x4104
43624362
VAR_UNK_0x4105
43634363
VAR_UNK_0x4106
4364-
VAR_UNK_0x4107
4364+
VAR_VEILSTONE_STORE_MASK
43654365
VAR_UNK_0x4108
43664366
VAR_UNK_0x4109
43674367
VAR_UNK_0x410A

res/field/events/events_veilstone_store_b1f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"graphics_id": "OBJ_EVENT_GFX_PROF_ROWAN",
151151
"movement_type": "MOVEMENT_TYPE_LOOK_SOUTH",
152152
"trainer_type": "TRAINER_TYPE_NONE",
153-
"flag": "FLAG_UNK_0x0185",
153+
"flag": "FLAG_VEILSTONE_STORE_B1F_HIDE_PROF_ROWAN",
154154
"script": 7,
155155
"initial_dir": 1,
156156
"data": [],

res/field/scripts/scripts_amity_square.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ AmitySquare_FollowerMon_PickUp_GiveAccessory:
397397
WaitCry
398398
ScrCmd_27C 2, LOCALID_ITEM_OR_ACCESSORY_ID
399399
IncrementGameRecord RECORD_UNK_051
400-
CallCommonScript 0x7DF
400+
GiveAccessoryWaitForConfirm
401401
CloseMessage
402402
ReleaseAll
403403
End
@@ -1002,7 +1002,7 @@ AmitySquare_GiftMan_AccessoryGift:
10021002
ShowYesNoMenu VAR_RESULT
10031003
GoToIfEq VAR_RESULT, MENU_NO, AmitySquare_GiftMan_DeclinedGift
10041004
SetVar LOCALID_COUNT, 1
1005-
CallCommonScript 0x7DF
1005+
GiveAccessoryWaitForConfirm
10061006
GoTo AmitySquare_GiftMan_ReceivedGift
10071007
End
10081008

@@ -1019,7 +1019,7 @@ AmitySquare_Unused2:
10191019
End
10201020

10211021
AmitySquare_GiftMan_CannotFitItem:
1022-
CallCommonScript 0x7E1
1022+
MessageBagIsFull
10231023
CloseMessage
10241024
ReleaseAll
10251025
End

res/field/scripts/scripts_canalave_city_gym.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _00BF:
5353
SetVar VAR_0x8004, ITEM_TM91
5454
SetVar VAR_0x8005, 1
5555
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _00FD
56-
CallCommonScript 0x7FC
56+
GiveItemQuantity
5757
SetFlag FLAG_UNK_0x0092
5858
BufferItemName 0, VAR_0x8004
5959
BufferTMHMMoveName 1, VAR_0x8004
@@ -64,7 +64,7 @@ _00BF:
6464
End
6565

6666
_00FD:
67-
CallCommonScript 0x7E1
67+
MessageBagIsFull
6868
CloseMessage
6969
ReleaseAll
7070
End

res/field/scripts/scripts_canalave_city_southeast_house.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _000A:
1515
SetVar VAR_0x8004, ITEM_TM48
1616
SetVar VAR_0x8005, 1
1717
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _005C
18-
CallCommonScript 0x7FC
18+
GiveItemQuantity
1919
SetFlag FLAG_UNK_0x00C9
2020
GoTo _0051
2121
End
@@ -28,7 +28,7 @@ _0051:
2828
End
2929

3030
_005C:
31-
CallCommonScript 0x7E1
31+
MessageBagIsFull
3232
CloseMessage
3333
ReleaseAll
3434
End

res/field/scripts/scripts_celestic_town_cave.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ _01C3:
127127
Message 13
128128
SetVar VAR_0x8004, ITEM_HM03
129129
SetVar VAR_0x8005, 1
130-
CallCommonScript 0x7FC
130+
GiveItemQuantity
131131
SetFlag FLAG_UNK_0x01AC
132132
ClearFlag FLAG_UNK_0x01C3
133133
SetFlag FLAG_DUMMY_2445

res/field/scripts/scripts_celestic_town_northwest_house.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _0093:
5656
SetVar VAR_0x8004, ITEM_CHOICE_SPECS
5757
SetVar VAR_0x8005, 1
5858
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0174
59-
CallCommonScript 0x7FC
59+
GiveItemQuantity
6060
SetFlag FLAG_UNK_0x0134
6161
Message 3
6262
GoTo _0153
@@ -67,7 +67,7 @@ _00D3:
6767
SetVar VAR_0x8004, ITEM_BLACKGLASSES
6868
SetVar VAR_0x8005, 1
6969
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0174
70-
CallCommonScript 0x7FC
70+
GiveItemQuantity
7171
SetFlag FLAG_UNK_0x0135
7272
Message 4
7373
GoTo _015E
@@ -78,7 +78,7 @@ _0113:
7878
SetVar VAR_0x8004, ITEM_WISE_GLASSES
7979
SetVar VAR_0x8005, 1
8080
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _0174
81-
CallCommonScript 0x7FC
81+
GiveItemQuantity
8282
SetFlag FLAG_UNK_0x0136
8383
Message 5
8484
GoTo _0169

res/field/scripts/scripts_celestic_town_pokecenter_1f.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ _0084:
4949
SetVar VAR_0x8004, ITEM_GREAT_BALL
5050
SetVar VAR_0x8005, 1
5151
GoToIfCannotFitItem VAR_0x8004, VAR_0x8005, VAR_RESULT, _00B6
52-
CallCommonScript 0x7FC
52+
GiveItemQuantity
5353
SetFlag FLAG_UNK_0x0AA1
5454
GoTo _00C0
5555

5656
_00B6:
57-
CallCommonScript 0x7E1
57+
MessageBagIsFull
5858
CloseMessage
5959
ReleaseAll
6060
End

res/field/scripts/scripts_celestic_town_southwest_house.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _000A:
1414
GoToIfEq VAR_RESULT, 1, _003A
1515
Message 0
1616
SetVar VAR_0x8004, POKETCH_APPID_ANALOGWATCH
17-
CallCommonScript 0x7D9
17+
GivePoketchApp
1818
WaitABXPadPress
1919
CloseMessage
2020
ReleaseAll

0 commit comments

Comments
 (0)