Skip to content

Commit ca8f6a0

Browse files
committed
continue the pruning
1 parent f677e0d commit ca8f6a0

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

include/item_actions.h

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#define INCLUDE_ITEM_ACTIONS_H
33

44
#include "structs/dungeon_entity.h"
5+
void sub_80479B8(bool8 param_1, bool8 param_2, u8 param_3, Entity *pokemon, Entity *target, Item *item);
6+
bool8 sub_8048D50(Entity * pokemon, Item *item);
7+
bool8 sub_8048950(Entity *param_1, Item *item);
8+
bool8 sub_8048A68(Entity *param_1,Item *item);
9+
bool8 sub_8048B9C(Entity *entity, Item *item);
510
void StunSeedItemAction(Entity *pokemon, Entity *target);
611
void MaxElixirAction(Entity *pokemon, Entity *target);
712
void ProteinItemAction(Entity *pokemon, Entity *target);

src/code_8066D04.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
#include "globaldata.h"
33
#include "code_8045A00.h"
44
#include "dungeon_message.h"
5+
#include "code_803E668.h"
56
#include "code_807CD9C.h"
67
#include "code_8041AD0.h"
78
#include "code_806CD90.h"
89
#include "dungeon_map_access.h"
910
#include "dungeon_movement.h"
1011
#include "dungeon_music.h"
12+
#include "item_actions.h"
1113
#include "position_util.h"
1214
#include "dungeon_util.h"
1315
#include "items.h"
@@ -89,14 +91,9 @@ extern bool8 sub_806A564(s16 r0);
8991
extern void sub_8045C08(u8 *buffer, Item *item);
9092
extern bool8 sub_8045888(Entity *);
9193
extern Item *sub_8044D90(Entity *, s32, u32);
92-
void sub_8045BF8(u8 *, Item *);
93-
u8 sub_8048D50();
9494
void SetActionUnusableInDungeonSubMenu(u16 param_1);
9595
void AddActionToDungeonSubMenu(u16 param_1, u8 param_2);
96-
void sub_8044DF0();
9796
void sub_8042208(Entity *pokemon, u8 r1);
98-
void sub_803E708();
99-
void sub_80479B8();
10097
extern void sub_807AB38(Entity *, u32);
10198
extern Entity * sub_8044DA4(Entity *param_1,int param_2);
10299
extern void sub_806A6E8(Entity *);
@@ -514,7 +511,7 @@ void sub_8067110(Entity *entity)
514511
item2 = *item;
515512
sub_8044DF0(entity,0,0x66);
516513
sub_803E708(0x1e,0x11);
517-
sub_80479B8(0,0,0,entity,entity,&item2);
514+
sub_80479B8(FALSE,FALSE,FALSE,entity,entity,&item2);
518515
sub_807AB38(entity,gDungeon->forceMonsterHouse);
519516
}
520517
}

src/dungeon_main.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "global.h"
22
#include "globaldata.h"
33
#include "dungeon_main.h"
4+
#include "item_actions.h"
45
#include "structs/str_dungeon.h"
56
#include "number_util.h"
67
#include "input.h"
@@ -61,9 +62,6 @@
6162

6263
extern void HandleSetItemAction(Entity *,bool8);
6364
extern void HandleUnsetItemAction(Entity *,bool8);
64-
extern bool8 sub_8048A68(Entity *param_1,Item *item);
65-
extern bool8 sub_8048950(Entity *param_1,Item *item);
66-
extern bool8 sub_8048B9C(Entity *param_1,Item *item);
6765
extern Item *sub_8044D90(Entity *, s32, u32);
6866
extern void sub_806A6E8(Entity *);
6967
bool8 sub_807EF48(void);
@@ -91,7 +89,6 @@ extern void sub_803F508(Entity *);
9189
extern void sub_8041AD0(Entity *pokemon);
9290
extern void sub_8041AE0(Entity *pokemon);
9391
extern void sub_807EC28(bool8);
94-
extern const u8 *GetCurrentDungeonName(void);
9592

9693
extern Entity *gLeaderPointer;
9794

src/dungeon_menu_team.c

-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
#include "code_8097DD0.h"
4747
#include "move_util.h"
4848

49-
extern bool8 sub_8048A68(Entity *param_1,Item *item);
50-
extern bool8 sub_8048950(Entity *param_1,Item *item);
51-
extern bool8 sub_8048B9C(Entity *param_1,Item *item);
5249
extern Item *sub_8044D90(Entity *, s32, u32);
5350
extern void sub_806A6E8(Entity *);
5451
bool8 sub_807EF48(void);

src/item_actions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool8 sub_8047930(Entity *pokemon, Entity *target)
119119
return flag;
120120
}
121121

122-
void sub_80479B8(char param_1, char param_2, u8 param_3, Entity *pokemon, Entity *target, Item *item)
122+
void sub_80479B8(bool8 param_1, bool8 param_2, u8 param_3, Entity *pokemon, Entity *target, Item *item)
123123
{
124124
EntityInfo *info;
125125
u32 flag;

0 commit comments

Comments
 (0)