Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pret/pokered
Browse files Browse the repository at this point in the history
  • Loading branch information
dannye committed Nov 26, 2023
2 parents dbbea4f + d4d7b91 commit a8b62fb
Show file tree
Hide file tree
Showing 732 changed files with 14,358 additions and 12,654 deletions.
2 changes: 1 addition & 1 deletion .github/webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

# Report unnamed symbols
content="$(tools/unnamed.py -r . pokered.sym | head)"
content="$(tools/unnamed.py -r . -l 30 pokered.sym | head)"

curl -H 'Content-Type: application/json' -X POST "$DISCORD_WEBHOOK_URL" -d@- << EOF
{
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
run: |
cp -v *.sym symbols/
cp -v *.map symbols/
- name: Update symbols
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
branch: symbols
cwd: "./symbols"
add: "*.sym"
add: "*.sym *.map"
message: ${{ github.event.commits[0].message }}
4 changes: 1 addition & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building
To install the software required for **pokered**:

```bash
sudo pacman -S make gcc git
sudo pacman -S make gcc git rgbds
```

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for Arch Linux to install **rgbds 0.6.1**.

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.6.1** from source.

### Termux
Expand Down
29 changes: 5 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,13 @@ To set up the repository, see [**INSTALL.md**](INSTALL.md).

- [**Wiki**][wiki] (includes [tutorials][tutorials])
- [**Symbols**][symbols]
- **Discord:** [pret][discord]
- **IRC:** [libera#pret][irc]

Other disassembly projects:

- [**Pokémon Yellow**][pokeyellow]
- [**Pokémon Gold/Silver**][pokegold]
- [**Pokémon Crystal**][pokecrystal]
- [**Pokémon Pinball**][pokepinball]
- [**Pokémon TCG**][poketcg]
- [**Pokémon Ruby**][pokeruby]
- [**Pokémon FireRed**][pokefirered]
- [**Pokémon Emerald**][pokeemerald]

[pokeyellow]: https://github.com/pret/pokeyellow
[pokegold]: https://github.com/pret/pokegold
[pokecrystal]: https://github.com/pret/pokecrystal
[pokepinball]: https://github.com/pret/pokepinball
[poketcg]: https://github.com/pret/poketcg
[pokeruby]: https://github.com/pret/pokeruby
[pokefirered]: https://github.com/pret/pokefirered
[pokeemerald]: https://github.com/pret/pokeemerald

You can find us on [Discord (pret, #pokered)](https://discord.gg/d5dubZ3).

For other pret projects, see [pret.github.io](https://pret.github.io/).

[wiki]: https://github.com/pret/pokered/wiki
[tutorials]: https://github.com/pret/pokered/wiki/Tutorials
[symbols]: https://github.com/pret/pokered/tree/symbols
[discord]: https://discord.gg/d5dubZ3
[irc]: https://web.libera.chat/?#pret
[ci]: https://github.com/pret/pokered/actions
[ci-badge]: https://github.com/pret/pokered/actions/workflows/main.yml/badge.svg
8 changes: 8 additions & 0 deletions constants/battle_anim_constants.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; AnimationTypePointerTable indexes (see engine/battle/animations.asm)
const_def 1
const ANIMATIONTYPE_SHAKE_SCREEN_VERTICALLY ; 1
const ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_HEAVY ; 2
const ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_SLOW ; 3
const ANIMATIONTYPE_BLINK_ENEMY_MON_SPRITE ; 4
const ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_LIGHT ; 5
const ANIMATIONTYPE_SHAKE_SCREEN_HORIZONTALLY_SLOW_2 ; 6
9 changes: 7 additions & 2 deletions constants/battle_constants.asm
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
DEF MAX_LEVEL EQU 100

; maximum moves known per mon
DEF NUM_MOVES EQU 4

; significant stat values
DEF BASE_STAT_LEVEL EQU 7
DEF MAX_STAT_LEVEL EQU 13

; VitaminStats indexes (see data/battle/stat_names.asm)
const_def
const_def 1
const STAT_HEALTH
const STAT_ATTACK
const STAT_DEFENSE
const STAT_SPEED
const STAT_SPECIAL
DEF NUM_STATS EQU const_value
DEF NUM_STATS EQU const_value - 1

; StatModTextStrings indexes (see data/battle/stat_mod_names.asm)
const_def
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions constants/item_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const POKE_BALL ; $04
const TOWN_MAP ; $05
const BICYCLE ; $06
const SURFBOARD ; $07 buggy?
const SURFBOARD ; $07
const SAFARI_BALL ; $08
const POKEDEX ; $09
const MOON_STONE ; $0A
Expand All @@ -28,9 +28,9 @@
const SUPER_POTION ; $13
const POTION ; $14
const BOULDERBADGE ; $15
DEF SAFARI_BAIT EQU BOULDERBADGE ; overload
const CASCADEBADGE ; $16
DEF SAFARI_BAIT EQU $15 ; overload
DEF SAFARI_ROCK EQU $16 ; overload
DEF SAFARI_ROCK EQU CASCADEBADGE ; overload
const THUNDERBADGE ; $17
const RAINBOWBADGE ; $18
const SOULBADGE ; $19
Expand All @@ -52,13 +52,13 @@ DEF SAFARI_ROCK EQU $16 ; overload
const DOME_FOSSIL ; $29
const HELIX_FOSSIL ; $2A
const SECRET_KEY ; $2B
const UNUSED_ITEM ; $2C "?????"
const ITEM_2C ; $2C
const BIKE_VOUCHER ; $2D
const X_ACCURACY ; $2E
const LEAF_STONE ; $2F
const CARD_KEY ; $30
const NUGGET ; $31
const PP_UP_2 ; $32
const ITEM_32 ; $32
const POKE_DOLL ; $33
const FULL_HEAL ; $34
const REVIVE ; $35
Expand Down
7 changes: 7 additions & 0 deletions constants/map_data_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
DEF MAP_BORDER EQU 3

; connection directions
const_def
const EAST_F
const WEST_F
const SOUTH_F
const NORTH_F

; wCurMapConnections
const_def
shift_const EAST ; 1
shift_const WEST ; 2
Expand Down
3 changes: 3 additions & 0 deletions constants/misc_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ DEF TEXT_DELAY_SLOW EQU %101 ; 5
const_def 6
const BIT_BATTLE_SHIFT ; 6
const BIT_BATTLE_ANIMATION ; 7

; wd732 flags
DEF BIT_DEBUG_MODE EQU 1
14 changes: 7 additions & 7 deletions constants/move_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ DEF NUM_ATTACKS EQU const_value - 1
const SHOWPIC_ANIM
const STATUS_AFFECTED_ANIM
const ANIM_A8
const ANIM_A9
const ENEMY_HUD_SHAKE_ANIM
const TRADE_BALL_DROP_ANIM
const TRADE_BALL_SHAKE_ANIM
const TRADE_BALL_TILT_ANIM
const TRADE_BALL_POOF_ANIM
const XSTATITEM_ANIM ; use X Attack/Defense/Speed/Special
const ANIM_AF
const ANIM_B0
const XSTATITEM_DUPLICATE_ANIM
const SHRINKING_SQUARE_ANIM
const ANIM_B1
const ANIM_B2
const ANIM_B3
Expand All @@ -197,18 +197,18 @@ DEF NUM_ATTACKS EQU const_value - 1
const ANIM_B9
const BURN_PSN_ANIM ; Plays when a monster is burned or poisoned
const ANIM_BB
const ANIM_BC
const SLP_PLAYER_ANIM
const SLP_ANIM ; sleeping monster
const ANIM_BE
const CONF_PLAYER_ANIM
const CONF_ANIM ; confused monster
const ANIM_C0
const SLIDE_DOWN_ANIM
const TOSS_ANIM ; toss Poké Ball
const SHAKE_ANIM ; shaking Poké Ball when catching monster
const POOF_ANIM ; puff of smoke
const BLOCKBALL_ANIM ; trainer knocks away Poké Ball
const GREATTOSS_ANIM ; toss Great Ball
const ULTRATOSS_ANIM ; toss Ultra Ball or Master Ball
const ANIM_C7
const SHAKE_SCREEN_ANIM
const HIDEPIC_ANIM ; monster disappears
const ROCK_ANIM ; throw rock
const BAIT_ANIM ; throw bait
Expand Down
9 changes: 3 additions & 6 deletions constants/pokemon_data_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ DEF HOF_TEAM_CAPACITY EQU 50

; Evolution types
const_def 1
const EV_LEVEL ; 1
const EV_ITEM ; 2
const EV_TRADE ; 3

DEF MAX_EVOLUTIONS EQU 3
DEF EVOLUTION_SIZE EQU 4
const EVOLVE_LEVEL ; 1
const EVOLVE_ITEM ; 2
const EVOLVE_TRADE ; 3


; wMonHGrowthRate values
Expand Down
4 changes: 2 additions & 2 deletions constants/sprite_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
const SPRITE_ROCKET ; $18
const SPRITE_CHANNELER ; $19
const SPRITE_WAITER ; $1a
const SPRITE_ERIKA ; $1b
const SPRITE_SILPH_WORKER_F ; $1b
const SPRITE_MIDDLE_AGED_WOMAN ; $1c
const SPRITE_BRUNETTE_GIRL ; $1d
const SPRITE_LANCE ; $1e
Expand All @@ -45,7 +45,7 @@
const SPRITE_NURSE ; $29
const SPRITE_LINK_RECEPTIONIST ; $2a
const SPRITE_SILPH_PRESIDENT ; $2b
const SPRITE_SILPH_WORKER ; $2c
const SPRITE_SILPH_WORKER_M ; $2c
const SPRITE_WARDEN ; $2d
const SPRITE_CAPTAIN ; $2e
const SPRITE_FISHER ; $2f
Expand Down
4 changes: 2 additions & 2 deletions data/items/key_items.asm
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ KeyItemFlags:
dbit TRUE ; DOME_FOSSIL
dbit TRUE ; HELIX_FOSSIL
dbit TRUE ; SECRET_KEY
dbit TRUE ; UNUSED_ITEM
dbit TRUE ; ITEM_2C
dbit TRUE ; BIKE_VOUCHER
dbit FALSE ; X_ACCURACY
dbit FALSE ; LEAF_STONE
dbit TRUE ; CARD_KEY
dbit FALSE ; NUGGET
dbit FALSE ; PP_UP_2
dbit FALSE ; ITEM_32
dbit FALSE ; POKE_DOLL
dbit FALSE ; FULL_HEAL
dbit FALSE ; REVIVE
Expand Down
32 changes: 16 additions & 16 deletions data/items/marts.asm
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
; mart inventories are below
; they are texts

ViridianCashierText::
ViridianMartClerkText::
script_mart POKE_BALL, ANTIDOTE, PARLYZ_HEAL, BURN_HEAL

PewterCashierText::
PewterMartClerkText::
script_mart POKE_BALL, POTION, ESCAPE_ROPE, ANTIDOTE, BURN_HEAL, AWAKENING, PARLYZ_HEAL

CeruleanCashierText::
CeruleanMartClerkText::
script_mart POKE_BALL, POTION, REPEL, ANTIDOTE, BURN_HEAL, AWAKENING, PARLYZ_HEAL

BikeShopCashierText:: ; unreferenced
UnusedBikeShopClerkText:: ; unreferenced
script_mart BICYCLE

VermilionCashierText::
VermilionMartClerkText::
script_mart POKE_BALL, SUPER_POTION, ICE_HEAL, AWAKENING, PARLYZ_HEAL, REPEL

LavenderCashierText::
LavenderMartClerkText::
script_mart GREAT_BALL, SUPER_POTION, REVIVE, ESCAPE_ROPE, SUPER_REPEL, ANTIDOTE, BURN_HEAL, ICE_HEAL, PARLYZ_HEAL

CeladonMart2Clerk1Text::
CeladonMart2FClerk1Text::
script_mart GREAT_BALL, SUPER_POTION, REVIVE, SUPER_REPEL, ANTIDOTE, BURN_HEAL, ICE_HEAL, AWAKENING, PARLYZ_HEAL

CeladonMart2Clerk2Text::
CeladonMart2FClerk2Text::
script_mart TM_DOUBLE_TEAM, TM_REFLECT, TM_RAZOR_WIND, TM_HORN_DRILL, TM_EGG_BOMB, TM_MEGA_PUNCH, TM_MEGA_KICK, TM_TAKE_DOWN, TM_SUBMISSION

CeladonMart4ClerkText::
CeladonMart4FClerkText::
script_mart POKE_DOLL, FIRE_STONE, THUNDER_STONE, WATER_STONE, LEAF_STONE

CeladonMart5Clerk1Text::
CeladonMart5FClerk1Text::
script_mart X_ACCURACY, GUARD_SPEC, DIRE_HIT, X_ATTACK, X_DEFEND, X_SPEED, X_SPECIAL

CeladonMart5Clerk2Text::
CeladonMart5FClerk2Text::
script_mart HP_UP, PROTEIN, IRON, CARBOS, CALCIUM

FuchsiaCashierText::
FuchsiaMartClerkText::
script_mart ULTRA_BALL, GREAT_BALL, SUPER_POTION, REVIVE, FULL_HEAL, SUPER_REPEL

UnusedCashierText:: ; unreferenced
UnusedMartClerkText:: ; unreferenced
script_mart GREAT_BALL, HYPER_POTION, SUPER_POTION, FULL_HEAL, REVIVE

CinnabarCashierText::
CinnabarMartClerkText::
script_mart ULTRA_BALL, GREAT_BALL, HYPER_POTION, MAX_REPEL, ESCAPE_ROPE, FULL_HEAL, REVIVE

SaffronCashierText::
SaffronMartClerkText::
script_mart GREAT_BALL, HYPER_POTION, MAX_REPEL, ESCAPE_ROPE, FULL_HEAL, REVIVE

IndigoCashierText::
IndigoPlateauLobbyClerkText::
script_mart ULTRA_BALL, GREAT_BALL, FULL_RESTORE, MAX_POTION, FULL_HEAL, REVIVE, MAX_REPEL
6 changes: 3 additions & 3 deletions data/items/names.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ItemNames::
li "POKé BALL"
li "TOWN MAP"
li "BICYCLE"
li "?????"
li "?????" ; SURFBOARD
li "SAFARI BALL"
li "POKéDEX"
li "MOON STONE"
Expand Down Expand Up @@ -43,13 +43,13 @@ ItemNames::
li "DOME FOSSIL"
li "HELIX FOSSIL"
li "SECRET KEY"
li "?????"
li "?????" ; ITEM_2C
li "BIKE VOUCHER"
li "X ACCURACY"
li "LEAF STONE"
li "CARD KEY"
li "NUGGET"
li "PP UP"
li "PP UP" ; ITEM_32
li "POKé DOLL"
li "FULL HEAL"
li "REVIVE"
Expand Down
4 changes: 2 additions & 2 deletions data/items/prices.asm
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ ItemPrices::
bcd3 0 ; DOME_FOSSIL
bcd3 0 ; HELIX_FOSSIL
bcd3 0 ; SECRET_KEY
bcd3 0 ; XXX
bcd3 0 ; ITEM_2C
bcd3 0 ; BIKE_VOUCHER
bcd3 950 ; X_ACCURACY
bcd3 2100 ; LEAF_STONE
bcd3 0 ; CARD_KEY
bcd3 10000 ; NUGGET
bcd3 9800 ; XXX PP_UP
bcd3 9800 ; ITEM_32
bcd3 1000 ; POKE_DOLL
bcd3 600 ; FULL_HEAL
bcd3 1500 ; REVIVE
Expand Down

0 comments on commit a8b62fb

Please sign in to comment.