Sync pokemon jump documentation
|
Before Width: | Height: | Size: 757 B After Width: | Height: | Size: 757 B |
|
Before Width: | Height: | Size: 582 B |
|
Before Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 532 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 322 B After Width: | Height: | Size: 322 B |
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 256 B |
@@ -97,7 +97,7 @@ $(FONTGFXDIR)/font9_jap.fwjpnfont: $(FONTGFXDIR)/font9_jap.png
|
|||||||
graphics/title_screen/pokemon_logo.gbapal: %.gbapal: %.pal
|
graphics/title_screen/pokemon_logo.gbapal: %.gbapal: %.pal
|
||||||
$(GFX) $< $@ -num_colors 224
|
$(GFX) $< $@ -num_colors 224
|
||||||
|
|
||||||
graphics/link_games/pkmnjump_bg.4bpp: %.4bpp: %.png
|
graphics/pokemon_jump/bg.4bpp: %.4bpp: %.png
|
||||||
$(GFX) $< $@ -num_tiles 63
|
$(GFX) $< $@ -num_tiles 63
|
||||||
|
|
||||||
$(MISCGFXDIR)/japanese_hof.4bpp: %.4bpp: %.png
|
$(MISCGFXDIR)/japanese_hof.4bpp: %.4bpp: %.png
|
||||||
@@ -482,7 +482,7 @@ $(FAMECHECKERGFXDIR)/bg.4bpp: %.4bpp: %.png
|
|||||||
graphics/seagallop/water.4bpp: %.4bpp: %.png
|
graphics/seagallop/water.4bpp: %.4bpp: %.png
|
||||||
$(GFX) $< $@ -num_tiles 41
|
$(GFX) $< $@ -num_tiles 41
|
||||||
|
|
||||||
$(MISCGFXDIR)/unk_846B008.4bpp: %.4bpp: %.png
|
graphics/link/321start.4bpp: %.4bpp: %.png
|
||||||
$(GFX) $< $@ -mwidth 4 -mheight 4
|
$(GFX) $< $@ -mwidth 4 -mheight 4
|
||||||
|
|
||||||
$(TEXTWINDOWGFXDIR)/unk_8470B0C.4bpp: %.4bpp: %.png
|
$(TEXTWINDOWGFXDIR)/unk_8470B0C.4bpp: %.4bpp: %.png
|
||||||
|
|||||||
@@ -39,6 +39,13 @@ enum
|
|||||||
BG_ATTR_BASETILE = 10
|
BG_ATTR_BASETILE = 10
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Modes for ChangeBgX / ChangeBgY
|
||||||
|
enum {
|
||||||
|
BG_COORD_SET,
|
||||||
|
BG_COORD_ADD,
|
||||||
|
BG_COORD_SUB,
|
||||||
|
};
|
||||||
|
|
||||||
enum AdjustBgMosaicMode
|
enum AdjustBgMosaicMode
|
||||||
{
|
{
|
||||||
BG_MOSAIC_SET,
|
BG_MOSAIC_SET,
|
||||||
|
|||||||
@@ -225,6 +225,10 @@
|
|||||||
#define EVO_MODE_ITEM_USE 2
|
#define EVO_MODE_ITEM_USE 2
|
||||||
#define EVO_MODE_ITEM_CHECK 3 // If an Everstone is being held, still want to show that the stone *could* be used on that Pokémon to evolve
|
#define EVO_MODE_ITEM_CHECK 3 // If an Everstone is being held, still want to show that the stone *could* be used on that Pokémon to evolve
|
||||||
|
|
||||||
|
#define MON_PIC_WIDTH 64
|
||||||
|
#define MON_PIC_HEIGHT 64
|
||||||
|
#define MON_PIC_SIZE (MON_PIC_WIDTH * MON_PIC_HEIGHT / 2)
|
||||||
|
|
||||||
// used by ShouldIgnoreDeoxysForm
|
// used by ShouldIgnoreDeoxysForm
|
||||||
#define DEOXYS_CHECK_BATTLE_SPRITE 1
|
#define DEOXYS_CHECK_BATTLE_SPRITE 1
|
||||||
#define DEOXYS_CHECK_TRADE_MAIN 3
|
#define DEOXYS_CHECK_TRADE_MAIN 3
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
#define LINKCMD_0x5FFF 0x5FFF
|
#define LINKCMD_0x5FFF 0x5FFF
|
||||||
#define LINKCMD_0x6666 0x6666
|
#define LINKCMD_0x6666 0x6666
|
||||||
#define LINKCMD_0x7777 0x7777
|
#define LINKCMD_0x7777 0x7777
|
||||||
|
#define LINKCMD_COUNTDOWN 0x7FFF
|
||||||
#define LINKCMD_CONT_BLOCK 0x8888
|
#define LINKCMD_CONT_BLOCK 0x8888
|
||||||
#define LINKCMD_0xAAAA 0xAAAA
|
#define LINKCMD_0xAAAA 0xAAAA
|
||||||
#define LINKCMD_0xAAAB 0xAAAB
|
#define LINKCMD_0xAAAB 0xAAAB
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
#include "link.h"
|
#include "link.h"
|
||||||
#include "AgbRfu_LinkManager.h"
|
#include "AgbRfu_LinkManager.h"
|
||||||
|
|
||||||
|
#define RFUCMD_MASK 0xFF00
|
||||||
|
|
||||||
#define RFUCMD_SEND_PACKET 0x2F00
|
#define RFUCMD_SEND_PACKET 0x2F00
|
||||||
#define RFUCMD_READY_CLOSE_LINK 0x5f00
|
#define RFUCMD_READY_CLOSE_LINK 0x5f00
|
||||||
#define RFUCMD_READY_EXIT_STANDBY 0x6600
|
#define RFUCMD_READY_EXIT_STANDBY 0x6600
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
void ResetPokeJumpResults(void);
|
void ResetPokemonJumpRecords(void);
|
||||||
bool32 IsSpeciesAllowedInPokemonJump(u16 species);
|
bool32 IsSpeciesAllowedInPokemonJump(u16 species);
|
||||||
void StartPokemonJump(u16 species, MainCallback callback);
|
void StartPokemonJump(u16 species, MainCallback callback);
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ u16 Random2(void);
|
|||||||
//Returns a 32-bit pseudorandom number
|
//Returns a 32-bit pseudorandom number
|
||||||
#define Random32() (Random() | (Random() << 16))
|
#define Random32() (Random() | (Random() << 16))
|
||||||
|
|
||||||
|
// The number 1103515245 comes from the example implementation of rand and srand
|
||||||
|
// in the ISO C standard.
|
||||||
|
#define ISO_RANDOMIZE1(val)(1103515245 * (val) + 24691)
|
||||||
|
#define ISO_RANDOMIZE2(val)(1103515245 * (val) + 12345)
|
||||||
|
|
||||||
//Sets the initial seed value of the pseudorandom number generator
|
//Sets the initial seed value of the pseudorandom number generator
|
||||||
void SeedRng(u16 seed);
|
void SeedRng(u16 seed);
|
||||||
void SeedRng2(u16 seed);
|
void SeedRng2(u16 seed);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#define HEAD_SENTINEL 0xFE
|
#define HEAD_SENTINEL 0xFE
|
||||||
#define TAIL_SENTINEL 0xFF
|
#define TAIL_SENTINEL 0xFF
|
||||||
|
#define TASK_NONE TAIL_SENTINEL
|
||||||
|
|
||||||
#define NUM_TASKS 16
|
#define NUM_TASKS 16
|
||||||
#define NUM_TASK_DATA 16
|
#define NUM_TASK_DATA 16
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ struct WindowTemplate
|
|||||||
0, \
|
0, \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define WINDOW_NONE 0xFF
|
||||||
|
|
||||||
struct Window
|
struct Window
|
||||||
{
|
{
|
||||||
struct WindowTemplate window;
|
struct WindowTemplate window;
|
||||||
|
|||||||
@@ -155,6 +155,6 @@ static void ResetMiniGamesResults(void)
|
|||||||
{
|
{
|
||||||
CpuFill16(0, &gSaveBlock2Ptr->berryCrush, sizeof(struct BerryCrush));
|
CpuFill16(0, &gSaveBlock2Ptr->berryCrush, sizeof(struct BerryCrush));
|
||||||
SetBerryPowder(&gSaveBlock2Ptr->berryCrush.berryPowderAmount, 0);
|
SetBerryPowder(&gSaveBlock2Ptr->berryCrush.berryPowderAmount, 0);
|
||||||
ResetPokeJumpResults();
|
ResetPokemonJumpRecords();
|
||||||
CpuFill16(0, &gSaveBlock2Ptr->berryPick, sizeof(struct BerryPickingResults));
|
CpuFill16(0, &gSaveBlock2Ptr->berryPick, sizeof(struct BerryPickingResults));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
#include "random.h"
|
||||||
|
|
||||||
// The number 1103515245 comes from the example implementation
|
// The number 1103515245 comes from the example implementation
|
||||||
// of rand and srand in the ISO C standard.
|
// of rand and srand in the ISO C standard.
|
||||||
@@ -7,7 +8,7 @@ u32 gRngValue;
|
|||||||
|
|
||||||
u16 Random(void)
|
u16 Random(void)
|
||||||
{
|
{
|
||||||
gRngValue = 1103515245 * gRngValue + 24691;
|
gRngValue = ISO_RANDOMIZE1(gRngValue);
|
||||||
return gRngValue >> 16;
|
return gRngValue >> 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||