Almost done with the balls
@ -10331,15 +10331,15 @@ General_SubstituteAppear:
|
||||
|
||||
General_PokeblockThrow:
|
||||
createvisualtask sub_817345C, 2, 0
|
||||
createvisualtask sub_81732B0, 2
|
||||
createvisualtask AnimTask_LoadPokeblockGfx, 2
|
||||
delay 0
|
||||
waitplaysewithpan SE_W026, SOUND_PAN_ATTACKER, 22
|
||||
createsprite gBattleAnimSpriteTemplate_85E5338, ANIM_TARGET, 3, -18, 12, 0, 32
|
||||
createsprite gPokeblockSpriteTemplate, ANIM_TARGET, 3, -18, 12, 0, 32
|
||||
delay 50
|
||||
loopsewithpan SE_W039, SOUND_PAN_TARGET, 19, 2
|
||||
createvisualtask AnimTask_SwayMon, 5, 1, 8, 1536, 2, ANIM_TARGET
|
||||
waitforvisualfinish
|
||||
createvisualtask sub_81732E4, 2
|
||||
createvisualtask AnimTask_FreePokeblockGfx, 2
|
||||
end
|
||||
|
||||
General_ItemKnockoff:
|
||||
@ -10516,7 +10516,7 @@ General_Hail:
|
||||
goto Move_HAIL
|
||||
|
||||
General_LeechSeedDrain:
|
||||
createvisualtask sub_817351C, 5
|
||||
createvisualtask AnimTask_GetBattlersFromArg, 5
|
||||
delay 0
|
||||
goto Move_ABSORB
|
||||
|
||||
@ -10535,7 +10535,7 @@ General_MonHit:
|
||||
General_ItemSteal:
|
||||
loadspritegfx ANIM_TAG_ITEM_BAG
|
||||
createvisualtask sub_8117F30, 2
|
||||
createvisualtask sub_8172ED0, 2
|
||||
createvisualtask AnimTask_TargetToEffectBattler, 2
|
||||
delay 1
|
||||
createsprite gItemStealSpriteTemplate, ANIM_ATTACKER, 2, 0, -5, 10, 2, -1
|
||||
end
|
||||
@ -10664,8 +10664,8 @@ General_WishHeal:
|
||||
end
|
||||
|
||||
AnimScript_82D85A3:
|
||||
createvisualtask sub_8172E9C, 2
|
||||
jumpreteq 1, AnimScript_82D85B4
|
||||
createvisualtask AnimTask_IsAttackerBehindSubstitute, 2
|
||||
jumprettrue AnimScript_82D85B4
|
||||
AnimScript_82D85B2:
|
||||
waitforvisualfinish
|
||||
return
|
||||
@ -10675,8 +10675,8 @@ AnimScript_82D85B4:
|
||||
goto AnimScript_82D85B2
|
||||
|
||||
AnimScript_82D85C3:
|
||||
createvisualtask sub_8172E9C, 2
|
||||
jumpreteq 1, AnimScript_82D85D4
|
||||
createvisualtask AnimTask_IsAttackerBehindSubstitute, 2
|
||||
jumprettrue AnimScript_82D85D4
|
||||
AnimScript_82D85D2:
|
||||
waitforvisualfinish
|
||||
return
|
||||
|
@ -26,6 +26,21 @@ gBattlescriptsForBallThrow:: @ 82DBD08
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
|
||||
.align 2
|
||||
gBattlescriptsForUsingItem:: @ 82DBD3C
|
||||
|
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
BIN
graphics/interface/ball/particles2.png
Normal file
After Width: | Height: | Size: 357 B |
19
graphics/items/icon_palettes/beast_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
90 57 246
|
||||
57 57 180
|
||||
90 90 255
|
||||
164 164 197
|
||||
57 98 255
|
||||
65 106 213
|
||||
65 172 255
|
||||
139 205 255
|
||||
74 82 82
|
||||
238 213 57
|
||||
189 156 98
|
||||
156 106 65
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/cherish_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
74 82 82
|
||||
205 57 32
|
||||
164 57 41
|
||||
222 65 49
|
||||
255 65 49
|
||||
255 115 106
|
||||
255 156 156
|
||||
255 255 255
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/dream_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
255 98 164
|
||||
197 123 156
|
||||
230 156 189
|
||||
255 131 189
|
||||
255 180 213
|
||||
255 213 238
|
||||
106 82 139
|
||||
131 98 197
|
||||
123 123 131
|
||||
74 82 82
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/dusk_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
41 139 41
|
||||
65 172 65
|
||||
82 139 82
|
||||
98 213 57
|
||||
148 255 82
|
||||
123 115 41
|
||||
255 106 8
|
||||
156 57 0
|
||||
222 74 0
|
||||
189 32 0
|
||||
115 41 24
|
||||
0 0 0
|
||||
82 82 82
|
||||
49 49 49
|
19
graphics/items/icon_palettes/fast_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
74 82 82
|
||||
148 131 65
|
||||
246 205 57
|
||||
213 172 49
|
||||
238 139 65
|
||||
205 106 41
|
||||
255 180 131
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/friend_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
90 106 123
|
||||
74 82 82
|
||||
139 197 57
|
||||
189 230 131
|
||||
123 164 57
|
||||
246 222 16
|
||||
172 148 65
|
||||
197 90 74
|
||||
230 139 131
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/heal_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
246 139 180
|
||||
255 180 230
|
||||
255 106 213
|
||||
238 82 197
|
||||
213 16 172
|
||||
106 98 197
|
||||
123 148 205
|
||||
139 172 222
|
||||
90 139 205
|
||||
255 246 213
|
||||
230 180 115
|
||||
255 205 172
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/heavy_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
82 123 222
|
||||
57 90 164
|
||||
131 172 238
|
||||
197 205 213
|
||||
90 106 123
|
||||
115 131 148
|
||||
148 164 180
|
||||
74 82 82
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
19
graphics/items/icon_palettes/level_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
74 82 82
|
||||
255 222 189
|
||||
238 189 148
|
||||
156 98 57
|
||||
222 148 90
|
||||
180 148 123
|
||||
123 106 98
|
||||
222 74 57
|
||||
255 139 131
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/love_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
246 164 205
|
||||
222 131 180
|
||||
255 197 230
|
||||
189 90 156
|
||||
139 82 123
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
74 82 82
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/lure_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 90 106
|
||||
255 164 180
|
||||
156 131 180
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
74 115 139
|
||||
41 148 205
|
||||
74 180 222
|
||||
74 82 82
|
||||
255 197 82
|
||||
238 139 90
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/moon_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
98 115 148
|
||||
123 139 156
|
||||
74 197 238
|
||||
65 148 172
|
||||
156 255 255
|
||||
74 82 82
|
||||
189 172 106
|
||||
246 205 65
|
||||
255 230 164
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/park_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
123 115 131
|
||||
164 164 197
|
||||
123 123 131
|
||||
32 123 222
|
||||
115 131 123
|
||||
213 213 205
|
||||
246 213 82
|
||||
255 230 139
|
||||
222 156 41
|
||||
255 139 49
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/quick_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
106 106 115
|
||||
115 189 255
|
||||
41 139 213
|
||||
41 106 123
|
||||
189 255 255
|
||||
74 82 82
|
||||
189 222 180
|
||||
255 255 0
|
||||
255 255 213
|
||||
156 148 41
|
||||
205 189 41
|
||||
255 255 255
|
||||
0 0 0
|
||||
49 49 49
|
19
graphics/items/icon_palettes/sport_ball.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
180 180 180
|
||||
255 255 255
|
||||
222 205 246
|
||||
164 164 197
|
||||
123 123 131
|
||||
74 82 82
|
||||
255 213 57
|
||||
255 148 57
|
||||
222 90 57
|
||||
156 74 57
|
||||
0 0 0
|
||||
49 49 49
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
BIN
graphics/items/icons/beast_ball.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
graphics/items/icons/cherish_ball.png
Normal file
After Width: | Height: | Size: 259 B |
BIN
graphics/items/icons/dream_ball.png
Normal file
After Width: | Height: | Size: 265 B |
BIN
graphics/items/icons/dusk_ball.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
graphics/items/icons/fast_ball.png
Normal file
After Width: | Height: | Size: 272 B |
BIN
graphics/items/icons/friend_ball.png
Normal file
After Width: | Height: | Size: 266 B |
BIN
graphics/items/icons/heal_ball.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
graphics/items/icons/heavy_ball.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
graphics/items/icons/level_ball.png
Normal file
After Width: | Height: | Size: 273 B |
BIN
graphics/items/icons/love_ball.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
graphics/items/icons/lure_ball.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
graphics/items/icons/moon_ball.png
Normal file
After Width: | Height: | Size: 270 B |
BIN
graphics/items/icons/park_ball.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
graphics/items/icons/quick_ball.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
graphics/items/icons/sport_ball.png
Normal file
After Width: | Height: | Size: 270 B |
@ -36,12 +36,6 @@ enum
|
||||
BERRY_STAGE_SPARKLING = 0xFF,
|
||||
};
|
||||
|
||||
#define NUM_BERRIES (LAST_BERRY_INDEX - FIRST_BERRY_INDEX)
|
||||
|
||||
extern const u8 *const gBerryTreeEventObjectGraphicsIdTablePointers[];
|
||||
extern const struct SpriteFrameImage *const gBerryTreePicTablePointers[];
|
||||
extern const u8 *const gBerryTreePaletteSlotTablePointers[];
|
||||
|
||||
void ClearEnigmaBerries(void);
|
||||
void SetEnigmaBerry(u8 *src);
|
||||
bool32 IsEnigmaBerryValid(void);
|
||||
|
@ -276,7 +276,7 @@
|
||||
#define ANIM_TAG_GREEN_SPIKE (ANIM_SPRITES_START + 266)
|
||||
#define ANIM_TAG_WHITE_CIRCLE_OF_LIGHT (ANIM_SPRITES_START + 267)
|
||||
#define ANIM_TAG_GLOWY_BLUE_ORB (ANIM_SPRITES_START + 268)
|
||||
#define ANIM_TAG_RED_BRICK (ANIM_SPRITES_START + 269)
|
||||
#define ANIM_TAG_POKEBLOCK (ANIM_SPRITES_START + 269)
|
||||
#define ANIM_TAG_WHITE_FEATHER (ANIM_SPRITES_START + 270)
|
||||
#define ANIM_TAG_SPARKLE_6 (ANIM_SPRITES_START + 271)
|
||||
#define ANIM_TAG_SPLASH (ANIM_SPRITES_START + 272)
|
||||
|
@ -64,6 +64,10 @@ extern const struct OamData gEventObjectBaseOam_32x32;
|
||||
extern const struct SpriteTemplate *const gFieldEffectObjectTemplatePointers[];
|
||||
extern const u8 gReflectionEffectPaletteMap[];
|
||||
|
||||
extern const u8 *const gBerryTreeEventObjectGraphicsIdTablePointers[];
|
||||
extern const struct SpriteFrameImage *const gBerryTreePicTablePointers[];
|
||||
extern const u8 *const gBerryTreePaletteSlotTablePointers[];
|
||||
|
||||
void ResetEventObjects(void);
|
||||
u8 GetMoveDirectionAnimNum(u8);
|
||||
u8 GetEventObjectIdByLocalIdAndMap(u8, u8, u8);
|
||||
|
@ -18,6 +18,7 @@ extern const u8 EventScript_TryDoRematchBattle[];
|
||||
extern const u8 SecretBase_EventScript_DollInteract[];
|
||||
extern const u8 SecretBase_EventScript_CushionInteract[];
|
||||
|
||||
extern const u8 BerryTreeScript[];
|
||||
|
||||
extern const u8 gTVBravoTrainerText00[];
|
||||
extern const u8 gTVBravoTrainerText01[];
|
||||
|
@ -3412,6 +3412,36 @@ extern const u32 gItemIcon_TimerBall[];
|
||||
extern const u32 gItemIcon_LuxuryBall[];
|
||||
extern const u32 gItemIconPalette_LuxuryBall[];
|
||||
extern const u32 gItemIcon_PremierBall[];
|
||||
extern const u32 gItemIcon_LevelBall[];
|
||||
extern const u32 gItemIconPalette_LevelBall[];
|
||||
extern const u32 gItemIcon_LureBall[];
|
||||
extern const u32 gItemIconPalette_LureBall[];
|
||||
extern const u32 gItemIcon_MoonBall[];
|
||||
extern const u32 gItemIconPalette_MoonBall[];
|
||||
extern const u32 gItemIcon_FriendBall[];
|
||||
extern const u32 gItemIconPalette_FriendBall[];
|
||||
extern const u32 gItemIcon_LoveBall[];
|
||||
extern const u32 gItemIconPalette_LoveBall[];
|
||||
extern const u32 gItemIcon_HeavyBall[];
|
||||
extern const u32 gItemIconPalette_HeavyBall[];
|
||||
extern const u32 gItemIcon_FastBall[];
|
||||
extern const u32 gItemIconPalette_FastBall[];
|
||||
extern const u32 gItemIcon_SportBall[];
|
||||
extern const u32 gItemIconPalette_SportBall[];
|
||||
extern const u32 gItemIcon_DuskBall[];
|
||||
extern const u32 gItemIconPalette_DuskBall[];
|
||||
extern const u32 gItemIcon_QuickBall[];
|
||||
extern const u32 gItemIconPalette_QuickBall[];
|
||||
extern const u32 gItemIcon_HealBall[];
|
||||
extern const u32 gItemIconPalette_HealBall[];
|
||||
extern const u32 gItemIcon_CherishBall[];
|
||||
extern const u32 gItemIconPalette_CherishBall[];
|
||||
extern const u32 gItemIcon_ParkBall[];
|
||||
extern const u32 gItemIconPalette_ParkBall[];
|
||||
extern const u32 gItemIcon_DreamBall[];
|
||||
extern const u32 gItemIconPalette_DreamBall[];
|
||||
extern const u32 gItemIcon_BeastBall[];
|
||||
extern const u32 gItemIconPalette_BeastBall[];
|
||||
// Medicine
|
||||
extern const u32 gItemIcon_Potion[];
|
||||
extern const u32 gItemIconPalette_Potion[];
|
||||
@ -4682,7 +4712,7 @@ extern const u32 gBattleAnimSpriteGfx_IcicleSpear[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Hail[];
|
||||
extern const u32 gBattleAnimSpriteGfx_GlowyRedOrb[];
|
||||
extern const u32 gBattleAnimSpriteGfx_GreenSpike[];
|
||||
extern const u32 gBattleAnimSpriteGfx_RedBrick[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Pokeblock[];
|
||||
extern const u32 gBattleAnimSpriteGfx_WhiteFeather[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Sparkle6[];
|
||||
extern const u32 gBattleAnimSpriteGfx_Splash[];
|
||||
@ -4968,7 +4998,7 @@ extern const u32 gBattleAnimSpritePal_GlowyGreenOrb[];
|
||||
extern const u32 gBattleAnimSpritePal_GreenSpike[];
|
||||
extern const u32 gBattleAnimSpritePal_WhiteCircleOfLight[];
|
||||
extern const u32 gBattleAnimSpritePal_GlowyBlueOrb[];
|
||||
extern const u32 gBattleAnimSpritePal_RedBrick[];
|
||||
extern const u32 gBattleAnimSpritePal_Pokeblock[];
|
||||
extern const u32 gBattleAnimSpritePal_WhiteFeather[];
|
||||
extern const u32 gBattleAnimSpritePal_Sparkle6[];
|
||||
extern const u32 gBattleAnimSpritePal_Splash[];
|
||||
|
@ -1394,7 +1394,7 @@ const struct CompressedSpriteSheet gBattleAnimPicTable[] =
|
||||
{gBattleAnimSpriteGfx_GreenSpike, 0x0080, ANIM_TAG_GREEN_SPIKE},
|
||||
{gBattleAnimSpriteGfx_CircleOfLight, 0x0800, ANIM_TAG_WHITE_CIRCLE_OF_LIGHT},
|
||||
{gBattleAnimSpriteGfx_GlowyRedOrb, 0x0020, ANIM_TAG_GLOWY_BLUE_ORB},
|
||||
{gBattleAnimSpriteGfx_RedBrick, 0x0080, ANIM_TAG_RED_BRICK},
|
||||
{gBattleAnimSpriteGfx_Pokeblock, 0x0080, ANIM_TAG_POKEBLOCK},
|
||||
{gBattleAnimSpriteGfx_WhiteFeather, 0x0400, ANIM_TAG_WHITE_FEATHER},
|
||||
{gBattleAnimSpriteGfx_Sparkle6, 0x0080, ANIM_TAG_SPARKLE_6},
|
||||
{gBattleAnimSpriteGfx_Splash, 0x0800, ANIM_TAG_SPLASH},
|
||||
@ -1687,7 +1687,7 @@ const struct CompressedSpritePalette gBattleAnimPaletteTable[] =
|
||||
{gBattleAnimSpritePal_GreenSpike, ANIM_TAG_GREEN_SPIKE},
|
||||
{gBattleAnimSpritePal_WhiteCircleOfLight, ANIM_TAG_WHITE_CIRCLE_OF_LIGHT},
|
||||
{gBattleAnimSpritePal_GlowyBlueOrb, ANIM_TAG_GLOWY_BLUE_ORB},
|
||||
{gBattleAnimSpritePal_RedBrick, ANIM_TAG_RED_BRICK},
|
||||
{gBattleAnimSpritePal_Pokeblock, ANIM_TAG_POKEBLOCK},
|
||||
{gBattleAnimSpritePal_WhiteFeather, ANIM_TAG_WHITE_FEATHER},
|
||||
{gBattleAnimSpritePal_Sparkle6, ANIM_TAG_SPARKLE_6},
|
||||
{gBattleAnimSpritePal_Splash, ANIM_TAG_SPLASH},
|
||||
|
92
src/berry.c
@ -1,6 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "berry.h"
|
||||
#include "event_data.h"
|
||||
#include "event_object_movement.h"
|
||||
#include "event_scripts.h"
|
||||
#include "field_control_avatar.h"
|
||||
#include "fieldmap.h"
|
||||
#include "item.h"
|
||||
@ -11,11 +13,6 @@
|
||||
#include "text.h"
|
||||
#include "constants/event_object_movement_constants.h"
|
||||
#include "constants/items.h"
|
||||
#include "event_object_movement.h"
|
||||
|
||||
|
||||
|
||||
extern const u8 BerryTreeScript[];
|
||||
|
||||
static u32 GetEnigmaBerryChecksum(struct EnigmaBerry *enigmaBerry);
|
||||
static bool32 BerryTreeGrow(struct BerryTree *tree);
|
||||
@ -117,6 +114,7 @@ static const u8 sBerryDescriptionPart2_Enigma[] = _("Appears to have the power o
|
||||
|
||||
const struct Berry gBerries[] =
|
||||
{
|
||||
[ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("CHERI"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -133,6 +131,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("CHESTO"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -149,6 +149,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("PECHA"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_SOFT,
|
||||
@ -165,6 +167,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("RAWST"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -181,6 +185,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("ASPEAR"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -197,6 +203,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("LEPPA"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -213,6 +221,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("ORAN"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -229,6 +239,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("PERSIM"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -245,6 +257,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_LUM_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("LUM"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -261,6 +275,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("SITRUS"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -277,6 +293,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("FIGY"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -293,6 +311,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("WIKI"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -309,6 +329,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("MAGO"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -325,6 +347,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("AGUAV"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -341,6 +365,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("IAPAPA"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -357,6 +383,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 25,
|
||||
},
|
||||
|
||||
[ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("RAZZ"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -373,6 +401,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("BLUK"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -389,6 +419,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("NANAB"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -405,6 +437,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("WEPEAR"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -421,6 +455,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("PINAP"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -437,6 +473,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("POMEG"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -453,6 +491,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("KELPSY"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -469,6 +509,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("QUALOT"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -485,6 +527,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("HONDEW"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -501,6 +545,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("GREPA"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -517,6 +563,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 20,
|
||||
},
|
||||
|
||||
[ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("TAMATO"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -533,6 +581,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("CORNN"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -549,6 +599,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("MAGOST"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -565,6 +617,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("RABUTA"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -581,6 +635,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("NOMEL"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -597,6 +653,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 20,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("SPELON"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -613,6 +671,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 70,
|
||||
},
|
||||
|
||||
[ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("PAMTRE"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_SOFT,
|
||||
@ -629,6 +689,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 70,
|
||||
},
|
||||
|
||||
[ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("WATMEL"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -645,6 +707,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 70,
|
||||
},
|
||||
|
||||
[ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("DURIN"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -661,6 +725,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 70,
|
||||
},
|
||||
|
||||
[ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("BELUE"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_SOFT,
|
||||
@ -677,6 +743,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 40,
|
||||
.smoothness = 70,
|
||||
},
|
||||
|
||||
[ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("LIECHI"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -693,6 +761,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 80,
|
||||
},
|
||||
|
||||
[ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("GANLON"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -709,6 +779,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 80,
|
||||
},
|
||||
|
||||
[ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("SALAC"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -725,6 +797,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 40,
|
||||
.smoothness = 80,
|
||||
},
|
||||
|
||||
[ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("PETAYA"),
|
||||
.firmness = BERRY_FIRMNESS_VERY_HARD,
|
||||
@ -741,6 +815,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 0,
|
||||
.smoothness = 80,
|
||||
},
|
||||
|
||||
[ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("APICOT"),
|
||||
.firmness = BERRY_FIRMNESS_HARD,
|
||||
@ -757,6 +833,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 40,
|
||||
.smoothness = 80,
|
||||
},
|
||||
|
||||
[ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("LANSAT"),
|
||||
.firmness = BERRY_FIRMNESS_SOFT,
|
||||
@ -773,6 +851,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_STARF_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("STARF"),
|
||||
.firmness = BERRY_FIRMNESS_SUPER_HARD,
|
||||
@ -789,6 +869,8 @@ const struct Berry gBerries[] =
|
||||
.sour = 10,
|
||||
.smoothness = 30,
|
||||
},
|
||||
|
||||
[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] =
|
||||
{
|
||||
.name = _("ENIGMA"),
|
||||
.firmness = BERRY_FIRMNESS_UNKNOWN,
|
||||
|
@ -423,142 +423,139 @@ const u8 gDeadBerryTreeEventObjectGraphicsIdTable[] = {EVENT_OBJ_GFX_BERRY_TREE_
|
||||
const u8 gBerryTreeEventObjectGraphicsIdTable[] = {EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_EARLY_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES, EVENT_OBJ_GFX_BERRY_TREE_LATE_STAGES};
|
||||
|
||||
const struct SpriteFrameImage *const gBerryTreePicTablePointers[] = {
|
||||
gEventObjectPicTable_CheriBerryTree,
|
||||
gEventObjectPicTable_ChestoBerryTree,
|
||||
gEventObjectPicTable_PechaBerryTree,
|
||||
gEventObjectPicTable_RawstBerryTree,
|
||||
gEventObjectPicTable_AspearBerryTree,
|
||||
gEventObjectPicTable_LeppaBerryTree,
|
||||
gEventObjectPicTable_OranBerryTree,
|
||||
gEventObjectPicTable_PersimBerryTree,
|
||||
gEventObjectPicTable_LumBerryTree,
|
||||
gEventObjectPicTable_SitrusBerryTree,
|
||||
gEventObjectPicTable_FigyBerryTree,
|
||||
gEventObjectPicTable_WikiBerryTree,
|
||||
gEventObjectPicTable_MagoBerryTree,
|
||||
gEventObjectPicTable_AguavBerryTree,
|
||||
gEventObjectPicTable_IapapaBerryTree,
|
||||
gEventObjectPicTable_RazzBerryTree,
|
||||
gEventObjectPicTable_RazzBerryTree,
|
||||
gEventObjectPicTable_MagoBerryTree,
|
||||
gEventObjectPicTable_WepearBerryTree,
|
||||
gEventObjectPicTable_IapapaBerryTree,
|
||||
gEventObjectPicTable_PomegBerryTree,
|
||||
gEventObjectPicTable_KelpsyBerryTree,
|
||||
gEventObjectPicTable_WepearBerryTree,
|
||||
gEventObjectPicTable_HondewBerryTree,
|
||||
gEventObjectPicTable_GrepaBerryTree,
|
||||
gEventObjectPicTable_TamatoBerryTree,
|
||||
gEventObjectPicTable_CornnBerryTree,
|
||||
gEventObjectPicTable_PomegBerryTree,
|
||||
gEventObjectPicTable_RabutaBerryTree,
|
||||
gEventObjectPicTable_NomelBerryTree,
|
||||
gEventObjectPicTable_SpelonBerryTree,
|
||||
gEventObjectPicTable_PamtreBerryTree,
|
||||
gEventObjectPicTable_RabutaBerryTree,
|
||||
gEventObjectPicTable_DurinBerryTree,
|
||||
gEventObjectPicTable_HondewBerryTree,
|
||||
gEventObjectPicTable_LiechiBerryTree,
|
||||
gEventObjectPicTable_HondewBerryTree,
|
||||
gEventObjectPicTable_AguavBerryTree,
|
||||
gEventObjectPicTable_PomegBerryTree,
|
||||
gEventObjectPicTable_GrepaBerryTree,
|
||||
gEventObjectPicTable_LansatBerryTree,
|
||||
gEventObjectPicTable_CornnBerryTree,
|
||||
gEventObjectPicTable_DurinBerryTree,
|
||||
[ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CheriBerryTree,
|
||||
[ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_ChestoBerryTree,
|
||||
[ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PechaBerryTree,
|
||||
[ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RawstBerryTree,
|
||||
[ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AspearBerryTree,
|
||||
[ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LeppaBerryTree,
|
||||
[ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_OranBerryTree,
|
||||
[ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PersimBerryTree,
|
||||
[ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LumBerryTree,
|
||||
[ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_SitrusBerryTree,
|
||||
[ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_FigyBerryTree,
|
||||
[ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WikiBerryTree,
|
||||
[ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_MagoBerryTree,
|
||||
[ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AguavBerryTree,
|
||||
[ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_IapapaBerryTree,
|
||||
[ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RazzBerryTree,
|
||||
[ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RazzBerryTree,
|
||||
[ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_MagoBerryTree,
|
||||
[ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WepearBerryTree,
|
||||
[ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_IapapaBerryTree,
|
||||
[ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
|
||||
[ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_KelpsyBerryTree,
|
||||
[ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_WepearBerryTree,
|
||||
[ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
|
||||
[ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_GrepaBerryTree,
|
||||
[ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_TamatoBerryTree,
|
||||
[ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CornnBerryTree,
|
||||
[ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
|
||||
[ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RabutaBerryTree,
|
||||
[ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_NomelBerryTree,
|
||||
[ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_SpelonBerryTree,
|
||||
[ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PamtreBerryTree,
|
||||
[ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_RabutaBerryTree,
|
||||
[ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_DurinBerryTree,
|
||||
[ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
|
||||
[ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LiechiBerryTree,
|
||||
[ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_HondewBerryTree,
|
||||
[ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_AguavBerryTree,
|
||||
[ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_PomegBerryTree,
|
||||
[ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_GrepaBerryTree,
|
||||
[ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_LansatBerryTree,
|
||||
[ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_CornnBerryTree,
|
||||
[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gEventObjectPicTable_DurinBerryTree,
|
||||
};
|
||||
|
||||
const u8 *const gBerryTreePaletteSlotTablePointers[] = {
|
||||
gBerryTreePaletteSlotTable_Cheri,
|
||||
gBerryTreePaletteSlotTable_Chesto,
|
||||
gBerryTreePaletteSlotTable_Pecha,
|
||||
gBerryTreePaletteSlotTable_Rawst,
|
||||
gBerryTreePaletteSlotTable_Aspear,
|
||||
gBerryTreePaletteSlotTable_Leppa,
|
||||
gBerryTreePaletteSlotTable_Oran,
|
||||
gBerryTreePaletteSlotTable_Persim,
|
||||
gBerryTreePaletteSlotTable_Lum,
|
||||
gBerryTreePaletteSlotTable_Sitrus,
|
||||
gBerryTreePaletteSlotTable_Figy,
|
||||
gBerryTreePaletteSlotTable_Wiki,
|
||||
gBerryTreePaletteSlotTable_Mago,
|
||||
gBerryTreePaletteSlotTable_Aguav,
|
||||
gBerryTreePaletteSlotTable_Iapapa,
|
||||
gBerryTreePaletteSlotTable_Razz,
|
||||
gBerryTreePaletteSlotTable_Razz,
|
||||
gBerryTreePaletteSlotTable_Mago,
|
||||
gBerryTreePaletteSlotTable_Wepear,
|
||||
gBerryTreePaletteSlotTable_Iapapa,
|
||||
gBerryTreePaletteSlotTable_Pomeg,
|
||||
gBerryTreePaletteSlotTable_Kelpsy,
|
||||
gBerryTreePaletteSlotTable_Wepear,
|
||||
gBerryTreePaletteSlotTable_Hondew,
|
||||
gBerryTreePaletteSlotTable_Grepa,
|
||||
gBerryTreePaletteSlotTable_Tamato,
|
||||
gBerryTreePaletteSlotTable_Cornn,
|
||||
gBerryTreePaletteSlotTable_Pomeg,
|
||||
gBerryTreePaletteSlotTable_Rabuta,
|
||||
gBerryTreePaletteSlotTable_Nomel,
|
||||
gBerryTreePaletteSlotTable_Spelon,
|
||||
gBerryTreePaletteSlotTable_Pamtre,
|
||||
gBerryTreePaletteSlotTable_Rabuta,
|
||||
gBerryTreePaletteSlotTable_Durin,
|
||||
gBerryTreePaletteSlotTable_Hondew,
|
||||
gBerryTreePaletteSlotTable_Liechi,
|
||||
gBerryTreePaletteSlotTable_Hondew,
|
||||
gBerryTreePaletteSlotTable_Aguav,
|
||||
gBerryTreePaletteSlotTable_Pomeg,
|
||||
gBerryTreePaletteSlotTable_Grepa,
|
||||
gBerryTreePaletteSlotTable_Lansat,
|
||||
gBerryTreePaletteSlotTable_Cornn,
|
||||
gBerryTreePaletteSlotTable_Durin,
|
||||
[ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cheri,
|
||||
[ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Chesto,
|
||||
[ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pecha,
|
||||
[ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rawst,
|
||||
[ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aspear,
|
||||
[ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Leppa,
|
||||
[ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Oran,
|
||||
[ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Persim,
|
||||
[ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Lum,
|
||||
[ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Sitrus,
|
||||
[ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Figy,
|
||||
[ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wiki,
|
||||
[ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Mago,
|
||||
[ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aguav,
|
||||
[ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Iapapa,
|
||||
[ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Razz,
|
||||
[ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Razz,
|
||||
[ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Mago,
|
||||
[ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wepear,
|
||||
[ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Iapapa,
|
||||
[ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
|
||||
[ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Kelpsy,
|
||||
[ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Wepear,
|
||||
[ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
|
||||
[ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Grepa,
|
||||
[ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Tamato,
|
||||
[ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cornn,
|
||||
[ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
|
||||
[ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rabuta,
|
||||
[ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Nomel,
|
||||
[ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Spelon,
|
||||
[ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pamtre,
|
||||
[ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Rabuta,
|
||||
[ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Durin,
|
||||
[ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
|
||||
[ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Liechi,
|
||||
[ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Hondew,
|
||||
[ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Aguav,
|
||||
[ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Pomeg,
|
||||
[ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Grepa,
|
||||
[ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Lansat,
|
||||
[ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Cornn,
|
||||
[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gBerryTreePaletteSlotTable_Durin,
|
||||
};
|
||||
|
||||
const u8 *const gBerryTreeEventObjectGraphicsIdTablePointers[] = {
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_CHERI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_CHESTO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_PECHA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_RAWST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_ASPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_LEPPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_ORAN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_PERSIM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_LUM_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_SITRUS_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_FIGY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_WIKI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_MAGO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_AGUAV_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_IAPAPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_RAZZ_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_BLUK_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_NANAB_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_WEPEAR_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_PINAP_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_POMEG_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_KELPSY_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_QUALOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_HONDEW_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_GREPA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_TAMATO_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_CORNN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_MAGOST_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_RABUTA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_NOMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_SPELON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_PAMTRE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_WATMEL_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_DURIN_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_BELUE_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_LIECHI_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_GANLON_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_SALAC_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_PETAYA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_APICOT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_LANSAT_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_STARF_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX] = gBerryTreeEventObjectGraphicsIdTable,
|
||||
};
|
||||
|
@ -40,6 +40,51 @@ const u32 gItemIconPalette_LuxuryBall[] = INCBIN_U32("graphics/items/icon_palett
|
||||
|
||||
const u32 gItemIcon_PremierBall[] = INCBIN_U32("graphics/items/icons/premier_ball.4bpp.lz");
|
||||
|
||||
const u32 gItemIcon_LevelBall[] = INCBIN_U32("graphics/items/icons/level_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_LevelBall[] = INCBIN_U32("graphics/items/icon_palettes/level_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_LureBall[] = INCBIN_U32("graphics/items/icons/lure_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_LureBall[] = INCBIN_U32("graphics/items/icon_palettes/lure_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_MoonBall[] = INCBIN_U32("graphics/items/icons/moon_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_MoonBall[] = INCBIN_U32("graphics/items/icon_palettes/moon_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_FriendBall[] = INCBIN_U32("graphics/items/icons/friend_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_FriendBall[] = INCBIN_U32("graphics/items/icon_palettes/friend_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_LoveBall[] = INCBIN_U32("graphics/items/icons/love_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_LoveBall[] = INCBIN_U32("graphics/items/icon_palettes/love_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_HeavyBall[] = INCBIN_U32("graphics/items/icons/heavy_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_HeavyBall[] = INCBIN_U32("graphics/items/icon_palettes/heavy_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_FastBall[] = INCBIN_U32("graphics/items/icons/fast_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_FastBall[] = INCBIN_U32("graphics/items/icon_palettes/fast_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_SportBall[] = INCBIN_U32("graphics/items/icons/sport_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_SportBall[] = INCBIN_U32("graphics/items/icon_palettes/sport_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_DuskBall[] = INCBIN_U32("graphics/items/icons/dusk_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_DuskBall[] = INCBIN_U32("graphics/items/icon_palettes/dusk_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_QuickBall[] = INCBIN_U32("graphics/items/icons/quick_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_QuickBall[] = INCBIN_U32("graphics/items/icon_palettes/quick_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_HealBall[] = INCBIN_U32("graphics/items/icons/heal_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_HealBall[] = INCBIN_U32("graphics/items/icon_palettes/heal_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_CherishBall[] = INCBIN_U32("graphics/items/icons/cherish_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_CherishBall[] = INCBIN_U32("graphics/items/icon_palettes/cherish_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_ParkBall[] = INCBIN_U32("graphics/items/icons/park_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_ParkBall[] = INCBIN_U32("graphics/items/icon_palettes/park_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_DreamBall[] = INCBIN_U32("graphics/items/icons/dream_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_DreamBall[] = INCBIN_U32("graphics/items/icon_palettes/dream_ball.gbapal.lz");
|
||||
|
||||
const u32 gItemIcon_BeastBall[] = INCBIN_U32("graphics/items/icons/beast_ball.4bpp.lz");
|
||||
const u32 gItemIconPalette_BeastBall[] = INCBIN_U32("graphics/items/icon_palettes/beast_ball.gbapal.lz");
|
||||
|
||||
// Medicine
|
||||
|
||||
const u32 gItemIcon_Potion[] = INCBIN_U32("graphics/items/icons/potion.4bpp.lz");
|
||||
|
@ -14,6 +14,21 @@ const u32 *const gItemIconTable[][2] =
|
||||
[ITEM_TIMER_BALL] = {gItemIcon_TimerBall, gItemIconPalette_RepeatBall},
|
||||
[ITEM_LUXURY_BALL] = {gItemIcon_LuxuryBall, gItemIconPalette_LuxuryBall},
|
||||
[ITEM_PREMIER_BALL] = {gItemIcon_PremierBall, gItemIconPalette_LuxuryBall},
|
||||
[ITEM_LEVEL_BALL] = {gItemIcon_LevelBall, gItemIconPalette_LevelBall},
|
||||
[ITEM_LURE_BALL] = {gItemIcon_LureBall, gItemIconPalette_LureBall},
|
||||
[ITEM_MOON_BALL] = {gItemIcon_MoonBall, gItemIconPalette_MoonBall},
|
||||
[ITEM_FRIEND_BALL] = {gItemIcon_FriendBall, gItemIconPalette_FriendBall},
|
||||
[ITEM_LOVE_BALL] = {gItemIcon_LoveBall, gItemIconPalette_LoveBall},
|
||||
[ITEM_HEAVY_BALL] = {gItemIcon_HeavyBall, gItemIconPalette_HeavyBall},
|
||||
[ITEM_FAST_BALL] = {gItemIcon_FastBall, gItemIconPalette_FastBall},
|
||||
[ITEM_SPORT_BALL] = {gItemIcon_SportBall, gItemIconPalette_SportBall},
|
||||
[ITEM_DUSK_BALL] = {gItemIcon_DuskBall, gItemIconPalette_DuskBall},
|
||||
[ITEM_QUICK_BALL] = {gItemIcon_QuickBall, gItemIconPalette_QuickBall},
|
||||
[ITEM_HEAL_BALL] = {gItemIcon_HealBall, gItemIconPalette_HealBall},
|
||||
[ITEM_CHERISH_BALL] = {gItemIcon_CherishBall, gItemIconPalette_CherishBall},
|
||||
[ITEM_PARK_BALL] = {gItemIcon_ParkBall, gItemIconPalette_ParkBall},
|
||||
[ITEM_DREAM_BALL] = {gItemIcon_DreamBall, gItemIconPalette_DreamBall},
|
||||
[ITEM_BEAST_BALL] = {gItemIcon_BeastBall, gItemIconPalette_BeastBall},
|
||||
// Medicine
|
||||
[ITEM_POTION] = {gItemIcon_Potion, gItemIconPalette_Potion},
|
||||
[ITEM_ANTIDOTE] = {gItemIcon_Antidote, gItemIconPalette_Antidote},
|
||||
|
2296
src/data/items.h
@ -12,6 +12,62 @@ const u8 gRepeatBallItemDescription[] = _("A BALL that works\nbetter on POKéMON
|
||||
const u8 gTimerBallItemDescription[] = _("A BALL that gains\npower in battles\ntaking many turns.");
|
||||
const u8 gLuxuryBallItemDescription[] = _("A cozy BALL that\nmakes POKéMON\nmore friendly.");
|
||||
const u8 gPremierBallItemDescription[] = _("A rare BALL made\nin commemoration\nof some event.");
|
||||
|
||||
static const u8 gItemDescription_LevelBall[] = _(
|
||||
"A Ball that works\n"
|
||||
"well on lower\n"
|
||||
"level POKéMON.");
|
||||
|
||||
static const u8 gItemDescription_LureBall[] = _(
|
||||
"A Ball that works\n"
|
||||
"well on fished\n"
|
||||
"up POKéMON.");
|
||||
|
||||
static const u8 gItemDescription_MoonBall[] = _(
|
||||
"A Ball that works\n"
|
||||
"well on Moon\n"
|
||||
"Stone users.");
|
||||
|
||||
static const u8 gItemDescription_FriendBall[] = _(
|
||||
"A Ball that makes\n"
|
||||
"a POKéMON friendly\n"
|
||||
"when caught.");
|
||||
|
||||
static const u8 gItemDescription_LoveBall[] = _(
|
||||
"Works well on\n"
|
||||
"POKéMON of the\n"
|
||||
"opposite gender.");
|
||||
|
||||
static const u8 gItemDescription_HeavyBall[] = _(
|
||||
"Works well on\n"
|
||||
"very heavy\n"
|
||||
"POKéMON.");
|
||||
|
||||
static const u8 gItemDescription_FastBall[] = _(
|
||||
"Works well on\n"
|
||||
"very fast\n"
|
||||
"POKéMON.");
|
||||
|
||||
static const u8 gItemDescription_HealBall[] = _(
|
||||
"A remedial Ball\n"
|
||||
"that restores\n"
|
||||
"caught POKéMON.");
|
||||
|
||||
static const u8 gItemDescription_QuickBall[] = _(
|
||||
"Works well if\n"
|
||||
"used on the\n"
|
||||
"first turn.");
|
||||
|
||||
static const u8 gItemDescription_DuskBall[] = _(
|
||||
"Works well if\n"
|
||||
"used in a\n"
|
||||
"dark place.");
|
||||
|
||||
static const u8 gItemDescription_CherishBall[] = _(
|
||||
"A rare Ball made\n"
|
||||
"in commemoration\n"
|
||||
"of some event.");
|
||||
|
||||
// Medicine
|
||||
const u8 gPotionItemDescription[] = _("Restores the HP of\na POKéMON by\n20 points.");
|
||||
const u8 gAntidoteItemDescription[] = _("Heals a poisoned\nPOKéMON.");
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "constants/event_object_movement_constants.h"
|
||||
#include "constants/event_objects.h"
|
||||
#include "constants/field_effects.h"
|
||||
#include "constants/items.h"
|
||||
|
||||
// this file was known as evobjmv.c in Game Freak's original source
|
||||
|
||||
@ -2005,10 +2006,9 @@ static void get_berry_tree_graphics(struct EventObject *eventObject, struct Spri
|
||||
sprite->invisible = FALSE;
|
||||
berryId = GetBerryTypeByBerryTreeId(eventObject->trainerRange_berryTreeId) - 1;
|
||||
berryStage--;
|
||||
if (berryId >= NUM_BERRIES)
|
||||
{
|
||||
if (berryId > ITEM_TO_BERRY(LAST_BERRY_INDEX))
|
||||
berryId = 0;
|
||||
}
|
||||
|
||||
EventObjectSetGraphicsId(eventObject, gBerryTreeEventObjectGraphicsIdTablePointers[berryId][berryStage]);
|
||||
sprite->images = gBerryTreePicTablePointers[berryId];
|
||||
sprite->oam.paletteNum = gBerryTreePaletteSlotTablePointers[berryId][berryStage];
|
||||
|
@ -1042,8 +1042,8 @@ const u32 gBattleAnimSpritePal_Splash[] = INCBIN_U32("graphics/battle_anims/spri
|
||||
|
||||
const u32 gBattleAnimSpriteGfx_SweatBead[] = INCBIN_U32("graphics/battle_anims/sprites/sweat_bead.4bpp.lz");
|
||||
|
||||
const u32 gBattleAnimSpriteGfx_RedBrick[] = INCBIN_U32("graphics/battle_anims/sprites/red_brick.4bpp.lz");
|
||||
const u32 gBattleAnimSpritePal_RedBrick[] = INCBIN_U32("graphics/battle_anims/sprites/red_brick.gbapal.lz");
|
||||
const u32 gBattleAnimSpriteGfx_Pokeblock[] = INCBIN_U32("graphics/battle_anims/sprites/pokeblock.4bpp.lz");
|
||||
const u32 gBattleAnimSpritePal_Pokeblock[] = INCBIN_U32("graphics/battle_anims/sprites/pokeblock.gbapal.lz");
|
||||
|
||||
const u32 gBattleAnimSpriteGfx_Gem1[] = INCBIN_U32("graphics/battle_anims/sprites/gem_1.4bpp.lz");
|
||||
const u32 gBattleAnimSpriteGfx_Gem2[] = INCBIN_U32("graphics/battle_anims/sprites/gem_2.4bpp.lz");
|
||||
|
@ -89,21 +89,21 @@ const struct CompressedSpriteSheet gBallSpriteSheets[POKEBALL_COUNT] =
|
||||
{gInterfaceGfx_TimerBall, 384, GFX_TAG_TIMERBALL},
|
||||
{gInterfaceGfx_LuxuryBall, 384, GFX_TAG_LUXURYBALL},
|
||||
{gInterfaceGfx_PremierBall, 384, GFX_TAG_PREMIERBALL},
|
||||
{gInterfaceGfx_LevelBall, 384, GFX_TAG_LEVELBALL},
|
||||
{gInterfaceGfx_LureBall, 384, GFX_TAG_LUREBALL},
|
||||
{gInterfaceGfx_MoonBall, 384, GFX_TAG_MOONBALL},
|
||||
{gInterfaceGfx_FriendBall, 384, GFX_TAG_FRIENDBALL},
|
||||
{gInterfaceGfx_LoveBall, 384, GFX_TAG_LOVEBALL},
|
||||
{gInterfaceGfx_HeavyBall, 384, GFX_TAG_HEAVYBALL},
|
||||
{gInterfaceGfx_FastBall, 384, GFX_TAG_FASTBALL},
|
||||
{gInterfaceGfx_SportBall, 384, GFX_TAG_SPORTBALL},
|
||||
{gInterfaceGfx_DuskBall, 384, GFX_TAG_DUSKBALL},
|
||||
{gInterfaceGfx_QuickBall, 384, GFX_TAG_QUICKBALL},
|
||||
{gInterfaceGfx_HealBall, 384, GFX_TAG_HEALBALL},
|
||||
{gInterfaceGfx_CherishBall, 384, GFX_TAG_CHERISHBALL},
|
||||
{gInterfaceGfx_ParkBall, 384, GFX_TAG_PARKBALL},
|
||||
{gInterfaceGfx_DreamBall, 384, GFX_TAG_DREAMBALL},
|
||||
{gInterfaceGfx_BeastBall, 384, GFX_TAG_BEASTBALL},
|
||||
{gInterfaceGfx_LevelBall, 384, GFX_TAG_LEVELBALL},
|
||||
{gInterfaceGfx_LureBall, 384, GFX_TAG_LUREBALL},
|
||||
{gInterfaceGfx_MoonBall, 384, GFX_TAG_MOONBALL},
|
||||
{gInterfaceGfx_FriendBall, 384, GFX_TAG_FRIENDBALL},
|
||||
{gInterfaceGfx_LoveBall, 384, GFX_TAG_LOVEBALL},
|
||||
{gInterfaceGfx_HeavyBall, 384, GFX_TAG_HEAVYBALL},
|
||||
{gInterfaceGfx_FastBall, 384, GFX_TAG_FASTBALL},
|
||||
{gInterfaceGfx_SportBall, 384, GFX_TAG_SPORTBALL},
|
||||
{gInterfaceGfx_DuskBall, 384, GFX_TAG_DUSKBALL},
|
||||
{gInterfaceGfx_QuickBall, 384, GFX_TAG_QUICKBALL},
|
||||
{gInterfaceGfx_HealBall, 384, GFX_TAG_HEALBALL},
|
||||
{gInterfaceGfx_CherishBall, 384, GFX_TAG_CHERISHBALL},
|
||||
{gInterfaceGfx_ParkBall, 384, GFX_TAG_PARKBALL},
|
||||
{gInterfaceGfx_DreamBall, 384, GFX_TAG_DREAMBALL},
|
||||
{gInterfaceGfx_BeastBall, 384, GFX_TAG_BEASTBALL},
|
||||
};
|
||||
|
||||
const struct CompressedSpritePalette gBallSpritePalettes[POKEBALL_COUNT] =
|
||||
|