Nihon + Silent Hills Groundwork

Currently doesn't build due to a weird error

```
rgbasm -hL -Q8 -P includes.asm -Weverything -Wnumeric-string=2 -Wtruncation=1  -o data/maps/map_data.o data/maps/map_data.asm
error: data/maps/map_data.asm(3) -> data/maps/maps.asm(544) -> macros/asserts.as
m::assert_table_length(14):
    Expected constant expression: 'NUM_SILENT_HILLS_MAP' is not constant at asse
mbly time
error: data/maps/map_data.asm(3) -> data/maps/maps.asm(544) -> macros/asserts.as
m::assert_table_length(16):
    Assertion failed: MapGroup_SilentHills: expected 0 entries, each 9 bytes
error: Assembly aborted (2 errors)!
make: *** [Makefile:119: data/maps/map_data.o] Error 1
```
This commit is contained in:
Llinos Evans 2023-10-20 06:23:47 +01:00
parent 26bb9fbc7b
commit a8546f60c9
22 changed files with 155 additions and 4 deletions

View file

@ -20,6 +20,8 @@ IsInJohto::
call GetWorldMapLocation
.CheckRegion:
cp NIHON_LANDMARK
jr z, .Nihon
cp KANTO_LANDMARK
jr nc, .Kanto
@ -30,3 +32,7 @@ IsInJohto::
.Kanto:
ld a, KANTO_REGION
ret
.Nihon:
ld a, NIHON_REGION
ret