Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document item.c #41

Merged
merged 7 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions include/battle/ai_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
#include "constants/battle.h"
#include "constants/moves.h"

#include "item.h"
#include "move_table.h"

#include "struct_decls/struct_itemdata_decl.h"

typedef struct AIContext {
u8 scriptCursor;
u8 moveSlot;
Expand Down
2 changes: 1 addition & 1 deletion include/berry_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define POKEPLATINUM_BERRY_DATA_H

#include "struct_decls/struct_02006C24_decl.h"
#include "struct_decls/struct_02023790_decl.h"
#include "strbuf.h"
#include "struct_decls/struct_berry_data_decl.h"

#define FIRMNESS_VERY_SOFT 1
Expand Down
12 changes: 11 additions & 1 deletion include/constants/items.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef POKEPLATINUM_CONSTANTS_ITEMS_H
#define POKEPLATINUM_CONSTANTS_ITEMS_H

#define POCKET_ITEMS 0
#define POCKET_MEDICINE 1
#define POCKET_BALLS 2
Expand Down Expand Up @@ -662,4 +665,11 @@
// New to Platinum
#define ITEM_VS_RECORDER 465
#define ITEM_GRACIDEA 466
#define ITEM_SECRET_KEY 467
#define ITEM_SECRET_KEY 467

#define NUM_ITEMS ITEM_SECRET_KEY
#define MAX_ITEMS (NUM_ITEMS + 1)

#define ITEM_RETURN_ID 0xFFFF

#endif // POKEPLATINUM_CONSTANTS_ITEMS_H
Loading
Loading