Skip to content

Commit

Permalink
Merge pull request #8 from Engezerstorung/master
Browse files Browse the repository at this point in the history
2025-01-24 pokered update
  • Loading branch information
einstein95 authored Jan 24, 2025
2 parents d28f578 + 4a8aea7 commit 2f346ef
Show file tree
Hide file tree
Showing 74 changed files with 300 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@master
with:
path: rgbds
ref: v0.8.0
ref: v0.9.0
repository: gbdev/rgbds

- name: Install rgbds
Expand Down
20 changes: 10 additions & 10 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Run setup and leave the default settings. At the "**Select Packages**" step, cho

Double click on the text that says "**Skip**" next to each package to select the most recent version to install.

Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 0.7.0**.
Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 0.9.0**.

**Note:** If you already have an installed rgbds older than 0.7.0, you will need to update to 0.7.0. Ignore this if you have never installed rgbds before. If a version newer than 0.7.0 does not work, try downloading 0.7.0.
**Note:** If you already have an installed rgbds older than 0.9.0, you will need to update to 0.9.0. Ignore this if you have never installed rgbds before. If a version newer than 0.9.0 does not work, try downloading 0.9.0.

Now open the **Cygwin terminal** and enter the following commands.

Expand All @@ -67,7 +67,7 @@ Install [**Homebrew**](https://brew.sh/). Follow the official instructions.

Open **Terminal** and prepare to enter commands.

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 0.7.0**.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 0.9.0**.

Now you're ready to [build **pokered**](#build-pokered).

Expand All @@ -84,7 +84,7 @@ To install the software required for **pokered**:
sudo apt-get install make gcc git
```

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.9.0** from source.

### OpenSUSE

Expand All @@ -94,7 +94,7 @@ To install the software required for **pokered**:
sudo zypper install make gcc git
```

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.9.0** from source.

### Arch Linux

Expand All @@ -104,7 +104,7 @@ To install the software required for **pokered**:
sudo pacman -S make gcc git rgbds
```

If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.9.0** from source.

### Termux

Expand All @@ -120,7 +120,7 @@ To install **rgbds**:
sudo apt install rgbds
```

If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.9.0** from source.

### Other distros

Expand All @@ -131,7 +131,7 @@ If your distro is not listed here, try to find the required software in its repo
- `git`
- `rgbds`

If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.9.0** from source.

Now you're ready to [build **pokered**](#build-pokered).

Expand All @@ -153,8 +153,8 @@ make

### Build with a local rgbds version

If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.7.0 globally. Instead, you can put its files in a directory within pokered, such as `pokered/rgbds-0.7.0/`. Then specify it when you run `make`:
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.9.0 globally. Instead, you can put its files in a directory within pokered, such as `pokered/rgbds-0.9.0/`. Then specify it when you run `make`:

```bash
make RGBDS=rgbds-0.7.0/
make RGBDS=rgbds-0.9.0/
```
18 changes: 7 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ tools:
$(MAKE) -C tools/


RGBASMFLAGS = -Q8 -P includes.asm -Weverything -Wnumeric-string=2 -Wtruncation=1
RGBASMFLAGS = -Q8 -P includes.asm -Weverything -Wtruncation=1
# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
ifeq ($(DEBUG),1)
RGBASMFLAGS += -E
Expand All @@ -97,7 +97,7 @@ $(pokeblue_debug_obj): RGBASMFLAGS += -D _BLUE -D _DEBUG
$(pokered_vc_obj): RGBASMFLAGS += -D _RED -D _RED_VC
$(pokeblue_vc_obj): RGBASMFLAGS += -D _BLUE -D _BLUE_VC

%.patch: vc/%.constants.sym %_vc.gbc %.gbc vc/%.patch.template
%.patch: %_vc.gbc %.gbc vc/%.patch.template
tools/make_patch $*_vc.sym $^ $@

rgbdscheck.o: rgbdscheck.asm
Expand Down Expand Up @@ -125,10 +125,6 @@ $(foreach obj, $(pokeblue_debug_obj), $(eval $(call DEP,$(obj),$(obj:_blue_debug
$(foreach obj, $(pokered_vc_obj), $(eval $(call DEP,$(obj),$(obj:_red_vc.o=.asm))))
$(foreach obj, $(pokeblue_vc_obj), $(eval $(call DEP,$(obj),$(obj:_blue_vc.o=.asm))))

# Dependencies for VC files that need to run scan_includes
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) $(preinclude_deps) | rgbdscheck.o
$(RGBASM) $(RGBASMFLAGS) $< > $@

endif


Expand All @@ -141,11 +137,11 @@ pokered_vc_pad = 0x00
pokeblue_vc_pad = 0x00
pokeblue_debug_pad = 0xff

pokered_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x1B -r 03 -t "POKEMON RED"
pokeblue_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x1B -r 03 -t "POKEMON BLUE"
pokeblue_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x1B -r 03 -t "POKEMON BLUE"
pokered_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x1B -r 03 -t "POKEMON RED"
pokeblue_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x1B -r 03 -t "POKEMON BLUE"
pokered_opt = -jsv -n 0 -k 01 -l 0x33 -m MBC5+RAM+BATTERY -r 03 -t "POKEMON RED"
pokeblue_opt = -jsv -n 0 -k 01 -l 0x33 -m MBC5+RAM+BATTERY -r 03 -t "POKEMON BLUE"
pokeblue_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m MBC5+RAM+BATTERY -r 03 -t "POKEMON BLUE"
pokered_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m MBC5+RAM+BATTERY -r 03 -t "POKEMON RED"
pokeblue_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m MBC5+RAM+BATTERY -r 03 -t "POKEMON BLUE"

%.gbc: $$(%_obj) layout.link
$(RGBLINK) -p $($*_pad) -d -m $*.map -n $*.sym -l layout.link -o $@ $(filter %.o,$^)
Expand Down
4 changes: 2 additions & 2 deletions constants/move_effect_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
const POISON_SIDE_EFFECT1 ; $02
const DRAIN_HP_EFFECT ; $03
const BURN_SIDE_EFFECT1 ; $04
const FREEZE_SIDE_EFFECT ; $05
const FREEZE_SIDE_EFFECT1 ; $05
const PARALYZE_SIDE_EFFECT1 ; $06
const EXPLODE_EFFECT ; $07 Explosion, Self Destruct
const DREAM_EATER_EFFECT ; $08
Expand Down Expand Up @@ -39,7 +39,7 @@
const SLEEP_EFFECT ; $20
const POISON_SIDE_EFFECT2 ; $21
const BURN_SIDE_EFFECT2 ; $22
const_skip ; $23
const FREEZE_SIDE_EFFECT2 ; $23 unused (Blizzard in JP Red/Green)
const PARALYZE_SIDE_EFFECT2 ; $24
const FLINCH_SIDE_EFFECT2 ; $25
const OHKO_EFFECT ; $26 moves like Horn Drill
Expand Down
2 changes: 1 addition & 1 deletion constants/palette_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DEF SET_PAL_DEFAULT EQU $ff
const PAL_GREENMON ; $16
const PAL_PINKMON ; $17
const PAL_YELLOWMON ; $18
const PAL_GREYMON ; $19
const PAL_GRAYMON ; $19
const PAL_SLOTS1 ; $1A
const PAL_SLOTS2 ; $1B
const PAL_SLOTS3 ; $1C
Expand Down
2 changes: 1 addition & 1 deletion data/battle/stat_mod_names.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; The relevant move effect IDs correspond to the stats

StatModTextStrings:
list_start StatModTextStrings
list_start
li "FOR"
li "DEF"
li "VIT"
Expand Down
2 changes: 1 addition & 1 deletion data/battle/stat_names.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; Stats that vitamins can raise or lower

VitaminStats:
list_start VitaminStats
list_start
li "VIE"
li "FOR"
li "DEF"
Expand Down
2 changes: 1 addition & 1 deletion data/battle_anims/base_coords.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FrameBlockBaseCoords:
table_width 2, FrameBlockBaseCoords
table_width 2
db $10, $68 ; BASECOORD_00
db $10, $70 ; BASECOORD_01
db $10, $78 ; BASECOORD_02
Expand Down
2 changes: 1 addition & 1 deletion data/battle_anims/frame_blocks.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FrameBlockPointers:
table_width 2, FrameBlockPointers
table_width 2
dw FrameBlock00
dw FrameBlock01
dw FrameBlock02
Expand Down
2 changes: 1 addition & 1 deletion data/battle_anims/subanimations.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SubanimationPointers:
table_width 2, SubanimationPointers
table_width 2
dw Subanim_0Star
dw Subanim_0StarTwice
dw Subanim_0StarThrice
Expand Down
2 changes: 1 addition & 1 deletion data/credits/credits_text.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CreditsTextPointers:
; entries correspond to CRED_* constants
table_width 2, CreditsTextPointers
table_width 2
dw CredVersion
dw CredTajiri
dw CredTaOota
Expand Down
2 changes: 1 addition & 1 deletion data/events/hidden_coins.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MACRO hidden_coin
ENDM

HiddenCoinCoords:
table_width 3, HiddenCoinCoords
table_width 3
; map id, x, y
hidden_coin GAME_CORNER, 0, 8
hidden_coin GAME_CORNER, 1, 16
Expand Down
2 changes: 1 addition & 1 deletion data/events/hidden_item_coords.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MACRO hidden_item
ENDM

HiddenItemCoords:
table_width 3, HiddenItemCoords
table_width 3
; map id, x, y
hidden_item VIRIDIAN_FOREST, 1, 18
hidden_item VIRIDIAN_FOREST, 16, 42
Expand Down
2 changes: 1 addition & 1 deletion data/events/trades.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TradeMons:
; entries correspond to TRADE_FOR_* constants
table_width 3 + NAME_LENGTH, TradeMons
table_width 3 + NAME_LENGTH
; give mon, get mon, dialog id, nickname
; The two instances of TRADE_DIALOGSET_EVOLUTION are a leftover
; from the Japanese Blue trades, which used species that evolve.
Expand Down
2 changes: 1 addition & 1 deletion data/growth_rates.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENDM

GrowthRateTable:
; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm)
table_width 4, GrowthRateTable
table_width 4
growth_rate 1, 1, 0, 0, 0 ; Medium Fast
growth_rate 3, 4, 10, 0, 30 ; Slightly Fast
growth_rate 3, 4, 20, 0, 70 ; Slightly Slow
Expand Down
2 changes: 1 addition & 1 deletion data/items/names.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ItemNames::
list_start ItemNames
list_start
li "MASTER BALL"
li "HYPER BALL"
li "SUPER BALL"
Expand Down
2 changes: 1 addition & 1 deletion data/items/prices.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ItemPrices::
table_width 3, ItemPrices
table_width 3
bcd3 0 ; MASTER_BALL
bcd3 1200 ; ULTRA_BALL
bcd3 600 ; GREAT_BALL
Expand Down
4 changes: 2 additions & 2 deletions data/maps/hide_show_data.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MapHSPointers:
; entries correspond to map ids
table_width 2, MapHSPointers
table_width 2
dw PalletTownHS
dw ViridianCityHS
dw PewterCityHS
Expand Down Expand Up @@ -259,7 +259,7 @@ NoHS:

MissableObjects:
; entries correspond to HS_* constants (see constants/hide_show_constants)
table_width 3, MissableObjects
table_width 3
; format: map id, object id, HIDE/SHOW

PalletTownHS:
Expand Down
2 changes: 1 addition & 1 deletion data/maps/map_header_banks.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; see also MapHeaderPointers
MapHeaderBanks::
table_width 1, MapHeaderBanks
table_width 1
db BANK(PalletTown_h)
db BANK(ViridianCity_h)
db BANK(PewterCity_h)
Expand Down
2 changes: 1 addition & 1 deletion data/maps/map_header_pointers.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; see also MapHeaderBanks
MapHeaderPointers::
table_width 2, MapHeaderPointers
table_width 2
dw PalletTown_h
dw ViridianCity_h
dw PewterCity_h
Expand Down
2 changes: 1 addition & 1 deletion data/maps/songs.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MapSongBanks::
table_width 2, MapSongBanks
table_width 2
db MUSIC_PALLET_TOWN, BANK(Music_PalletTown) ; PALLET_TOWN
db MUSIC_CITIES1, BANK(Music_Cities1) ; VIRIDIAN_CITY
db MUSIC_CITIES1, BANK(Music_Cities1) ; PEWTER_CITY
Expand Down
6 changes: 3 additions & 3 deletions data/maps/sprite_sets.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; Valid sprite IDs for each outdoor map.

MapSpriteSets:
table_width 1, MapSpriteSets
table_width 1
db SPRITESET_PALLET_VIRIDIAN ; PALLET_TOWN
db SPRITESET_PALLET_VIRIDIAN ; VIRIDIAN_CITY
db SPRITESET_PEWTER_CERULEAN ; PEWTER_CITY
Expand Down Expand Up @@ -47,7 +47,7 @@ MapSpriteSets:
; #3: sprite set ID if on the west or north side
; #4: sprite set ID if on the east or south side
SplitMapSpriteSets:
table_width 4, SplitMapSpriteSets
table_width 4
db NORTH_SOUTH, 37, SPRITESET_PEWTER_CERULEAN, SPRITESET_PALLET_VIRIDIAN ; SPLITSET_ROUTE_2
db NORTH_SOUTH, 50, SPRITESET_PEWTER_CERULEAN, SPRITESET_LAVENDER ; SPLITSET_ROUTE_10
db EAST_WEST, 57, SPRITESET_VERMILION, SPRITESET_SILENCE_BRIDGE ; SPLITSET_ROUTE_11
Expand All @@ -63,7 +63,7 @@ SplitMapSpriteSets:
assert_table_length NUM_SPLIT_SETS

SpriteSets:
table_width SPRITE_SET_LENGTH, SpriteSets
table_width SPRITE_SET_LENGTH

; SPRITESET_PALLET_VIRIDIAN
db SPRITE_BLUE
Expand Down
2 changes: 1 addition & 1 deletion data/maps/town_map_entries.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENDM

; the appearance of towns and routes in the town map
ExternalMapEntries:
table_width 3, ExternalMapEntries
table_width 3
; x, y, name
external_map 2, 11, PalletTownName
external_map 2, 8, ViridianCityName
Expand Down
2 changes: 1 addition & 1 deletion data/moves/animations.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AttackAnimationPointers:
table_width 2, AttackAnimationPointers
table_width 2
dw PoundAnim
dw KarateChopAnim
dw DoubleSlapAnim
Expand Down
6 changes: 3 additions & 3 deletions data/moves/effects_pointers.asm
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
MoveEffectPointerTable:
; entries correspond to *_EFFECT constants
table_width 2, MoveEffectPointerTable
table_width 2
dw SleepEffect ; EFFECT_01
dw PoisonEffect ; POISON_SIDE_EFFECT1
dw DrainHPEffect ; DRAIN_HP_EFFECT
dw FreezeBurnParalyzeEffect ; BURN_SIDE_EFFECT1
dw FreezeBurnParalyzeEffect ; FREEZE_SIDE_EFFECT
dw FreezeBurnParalyzeEffect ; FREEZE_SIDE_EFFECT1
dw FreezeBurnParalyzeEffect ; PARALYZE_SIDE_EFFECT1
dw ExplodeEffect ; EXPLODE_EFFECT
dw DrainHPEffect ; DREAM_EATER_EFFECT
Expand Down Expand Up @@ -35,7 +35,7 @@ MoveEffectPointerTable:
dw SleepEffect ; SLEEP_EFFECT
dw PoisonEffect ; POISON_SIDE_EFFECT2
dw FreezeBurnParalyzeEffect ; BURN_SIDE_EFFECT2
dw FreezeBurnParalyzeEffect ; unused effect
dw FreezeBurnParalyzeEffect ; FREEZE_SIDE_EFFECT2
dw FreezeBurnParalyzeEffect ; PARALYZE_SIDE_EFFECT2
dw FlinchSideEffect ; FLINCH_SIDE_EFFECT2
dw OneHitKOEffect ; OHKO_EFFECT
Expand Down
8 changes: 4 additions & 4 deletions data/moves/moves.asm
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ ENDM

Moves:
; Characteristics of each move.
table_width MOVE_LENGTH, Moves
table_width MOVE_LENGTH
move POUND, NO_ADDITIONAL_EFFECT, 40, NORMAL, 100, 35
move KARATE_CHOP, NO_ADDITIONAL_EFFECT, 50, NORMAL, 100, 25
move DOUBLESLAP, TWO_TO_FIVE_ATTACKS_EFFECT, 15, NORMAL, 85, 10
move COMET_PUNCH, TWO_TO_FIVE_ATTACKS_EFFECT, 18, NORMAL, 85, 15
move MEGA_PUNCH, NO_ADDITIONAL_EFFECT, 80, NORMAL, 85, 20
move PAY_DAY, PAY_DAY_EFFECT, 40, NORMAL, 100, 20
move FIRE_PUNCH, BURN_SIDE_EFFECT1, 75, FIRE, 100, 15
move ICE_PUNCH, FREEZE_SIDE_EFFECT, 75, ICE, 100, 15
move ICE_PUNCH, FREEZE_SIDE_EFFECT1, 75, ICE, 100, 15
move THUNDERPUNCH, PARALYZE_SIDE_EFFECT1, 75, ELECTRIC, 100, 15
move SCRATCH, NO_ADDITIONAL_EFFECT, 40, NORMAL, 100, 35
move VICEGRIP, NO_ADDITIONAL_EFFECT, 55, NORMAL, 100, 30
Expand Down Expand Up @@ -68,8 +68,8 @@ Moves:
move WATER_GUN, NO_ADDITIONAL_EFFECT, 40, WATER, 100, 25
move HYDRO_PUMP, NO_ADDITIONAL_EFFECT, 120, WATER, 80, 5
move SURF, NO_ADDITIONAL_EFFECT, 95, WATER, 100, 15
move ICE_BEAM, FREEZE_SIDE_EFFECT, 95, ICE, 100, 10
move BLIZZARD, FREEZE_SIDE_EFFECT, 120, ICE, 90, 5
move ICE_BEAM, FREEZE_SIDE_EFFECT1, 95, ICE, 100, 10
move BLIZZARD, FREEZE_SIDE_EFFECT1, 120, ICE, 90, 5
move PSYBEAM, CONFUSION_SIDE_EFFECT, 65, PSYCHIC_TYPE, 100, 20
move BUBBLEBEAM, SPEED_DOWN_SIDE_EFFECT, 65, WATER, 100, 20
move AURORA_BEAM, ATTACK_DOWN_SIDE_EFFECT, 65, ICE, 100, 20
Expand Down
2 changes: 1 addition & 1 deletion data/moves/names.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MoveNames::
list_start MoveNames
list_start
li "ECRAS'FACE"
li "POING-KARATE"
li "TORGNOLES"
Expand Down
Loading

0 comments on commit 2f346ef

Please sign in to comment.