Skip to content

Commit

Permalink
Ramen Delivery cont.
Browse files Browse the repository at this point in the history
Implemented Fisherman who wants ramen. Not finished.
  • Loading branch information
OrchiidDev committed Sep 8, 2024
1 parent f33709c commit ecc6be8
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 2 deletions.
1 change: 1 addition & 0 deletions constants/map_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ ENDM
map_const MT_KAGA, 32, 24 ; 6
map_const KAGA_POND, 18, 24 ; 7
map_const RAMEN_SHOP, 8, 6 ; 8
map_const KAGA_FISHING_SHOP, 5, 6 ; 9
endgroup

DEF NUM_MAP_GROUPS EQU const_value ; 27
1 change: 1 addition & 0 deletions data/maps/attributes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ ENDM
connection south, MtKaga, MT_KAGA, -8

map_attributes RamenShop, RAMEN_SHOP, $00, 0
map_attributes KagaFishingShop, KAGA_FISHING_SHOP, $00, 0
map_attributes Route23, ROUTE_23, $0f, 0
map_attributes SproutTower1F, SPROUT_TOWER_1F, $00, 0
map_attributes SproutTower2F, SPROUT_TOWER_2F, $00, 0
Expand Down
5 changes: 4 additions & 1 deletion data/maps/blocks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1074,4 +1074,7 @@ KagaPond_Blocks:
INCBIN "maps/KagaPond.ablk"

RamenShop_Blocks:
INCBIN "maps/RamenShop.ablk"
INCBIN "maps/RamenShop.ablk"

KagaFishingShop_Blocks:
INCBIN "maps/KagaFishingShop.ablk"
1 change: 1 addition & 0 deletions data/maps/maps.asm
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,5 @@ MapGroup_Kagawa:
map MtKaga, TILESET_KAGAWA, TOWN, LANDMARK_ROUTE_30, MUSIC_ROUTE_30, FALSE, PALETTE_AUTO, FISHGROUP_SHORE, KELPGROUP_KRABBY
map KagaPond, TILESET_KAGAWA, TOWN, LANDMARK_ROUTE_30, MUSIC_ROUTE_30, FALSE, PALETTE_AUTO, FISHGROUP_SHORE, KELPGROUP_KRABBY
map RamenShop, TILESET_HOUSE, INDOOR, LANDMARK_ROUTE_30, MUSIC_DANCING_HALL, FALSE, PALETTE_DAY, FISHGROUP_SHORE, KELPGROUP_KRABBY
map KagaFishingShop, TILESET_HOUSE, INDOOR, LANDMARK_ROUTE_30, MUSIC_DANCING_HALL, FALSE, PALETTE_DAY, FISHGROUP_SHORE, KELPGROUP_KRABBY
assert_table_length NUM_KAGAWA_MAPS
1 change: 1 addition & 0 deletions data/maps/scripts.asm
Original file line number Diff line number Diff line change
Expand Up @@ -492,5 +492,6 @@ INCLUDE "maps/KagaTown.asm"
INCLUDE "maps/MtKaga.asm"
INCLUDE "maps/KagaPond.asm"
INCLUDE "maps/RamenShop.asm"
INCLUDE "maps/KagaFishingShop.asm"

ENDSECTION
Binary file modified data/tilesets/house_attributes.bin
Binary file not shown.
12 changes: 11 additions & 1 deletion data/tilesets/house_collision.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 0e
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 0f
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 10
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 11
tilecoll COUNTER, FLOOR, FLOOR, FLOOR ; 11
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 12
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 13
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 14
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 15
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 16
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 17
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 18
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 19
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 1a
tilecoll WALL, WALL, FLOOR, FLOOR ; 1b
tilecoll WALL, COUNTER, FLOOR, FLOOR ; 1c
tilecoll WALL, WALL, FLOOR, FLOOR ; 1d
tilecoll WALL, FLOOR, WALL, FLOOR ; 1e
tilecoll FLOOR, WALL, FLOOR, WALL ; 1f
tilecoll WALL, WALL, FLOOR, WALL ; 20
tilecoll WALL, WALL, WALL, WALL ; 21
tilecoll WALL, WALL, FLOOR, FLOOR ; 22
Binary file modified data/tilesets/house_metatiles.bin
Binary file not shown.
1 change: 1 addition & 0 deletions maps/KagaFishingShop.ablk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
" !!
92 changes: 92 additions & 0 deletions maps/KagaFishingShop.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
object_const_def


KagaFishingShop_MapScripts:
def_scene_scripts

def_callbacks

KagaFishingShopClerkScript:
opentext
checkitem MYSTIC_WATER
iftrue .RamenScript
writetext KagaFSCShopText
waitbutton
closetext
end

.RamenScript:
writetext KagaFSCHungryText
waitbutton
writetext KagaFSCHasRamenText
waitbutton
yesorno
iffalse .No
sjump .Yes
.Yes:
writetext KagaFSCYesRamenText
waitbutton
takeitem MYSTIC_WATER
writetext KagaFSCTookRamenText
waitbutton
givemoney YOUR_MONEY, 250
writetext KagaFSCTipText
end
.No:
writetext KagaFSCNoRamenText
waitbutton
closetext
end

KagaFSCShopText:
text "Wanna buy"
line "some tackle?"
done

KagaFSCHungryText:
text "Gee, I'm"
line "starving..."
cont "How long will"
cont "this delivery"
cont "take?"
done

KagaFSCHasRamenText:
text "Are you the"
line "one with my"
cont "RAMEN?"
done

KagaFSCYesRamenText:
text "You're way"
line "faster than"
cont "the usual guy!"
done

KagaFSCNoRamenText:
text "Aww man..."
done

KagaFSCTookRamenText:
text "Thanks!"
line "Here's a Tip."
done

KagaFSCTipText:
text "You got ¥250!"
done

KagaFishingShop_MapEvents:
db 0, 0 ; filler

def_warp_events
warp_event 4, 11, KAGA_TOWN, 1
warp_event 5, 11, KAGA_TOWN, 1

def_coord_events

def_bg_events

def_object_events
object_event 1, 1, SPRITE_FISHER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, KagaFishingShopClerkScript, -1

1 change: 1 addition & 0 deletions maps/KagaTown.asm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ KagaTown_MapEvents:
db 0, 0 ; filler

def_warp_events
warp_event 23, 27, KAGA_FISHING_SHOP, 1

def_coord_events

Expand Down
3 changes: 3 additions & 0 deletions maps/RamenShop.asm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ RamenShopDeliveryScript:
writetext ChoDeliveryAcceptedText
promptbutton
verbosegiveitem MYSTIC_WATER
waitbutton
closetext
end
.No:
writetext ChoDeliveryDeniedText
waitbutton
Expand Down

0 comments on commit ecc6be8

Please sign in to comment.