Decompile aibotGetInvItemType

This commit is contained in:
Ryan Dwyer
2020-03-12 17:35:08 +10:00
parent 13f4c1ec2b
commit 4bedb8b8ad
6 changed files with 70 additions and 79 deletions
+2 -2
View File
@@ -585,9 +585,9 @@
#define INVENTORYFUNCTYPE_SPECIAL 0x0004
#define INVENTORYFUNCTYPE_VISUAL 0x0005
#define INVITEMTYPE_1 1
#define INVITEMTYPE_WEAP 1
#define INVITEMTYPE_PROP 2
#define INVITEMTYPE_3 3
#define INVITEMTYPE_DUAL 3
#define L_AME(index) TEXT(1, index)
#define L_ARCH(index) TEXT(2, index)
+1 -1
View File
@@ -9,7 +9,7 @@ void func0f197c00(struct chrdata *chr);
u32 func0f197c70(void);
struct invitem *aibotGetInvItem(struct chrdata *chr, u32 weaponnum);
u32 func0f197d94(void);
bool chrHasWeapon(struct chrdata *chr, u32 weaponnum);
u32 aibotGetInvItemType(struct chrdata *chr, u32 weaponnum);
u32 func0f197e8c(void);
void aibotGiveDualWeapon(struct chrdata *chr, u32 weaponnum);
s16 aibotGetWeaponPad(struct chrdata *chr, u32 weaponnum);
+6 -6
View File
@@ -5147,16 +5147,16 @@ struct memorypool {
/*0x10*/ u32 unk10;
};
struct invitem_type1 {
struct invitem_weap {
s16 weapon1;
s16 pickuppad;
};
struct invitem_typeprop {
struct invitem_prop {
struct prop *prop;
};
struct invitem_type3 {
struct invitem_dual {
s32 weapon1;
s32 weapon2;
};
@@ -5165,9 +5165,9 @@ struct invitem {
/*0x00*/ s32 type;
union {
struct invitem_type1 type1;
struct invitem_typeprop type_prop;
struct invitem_type3 type3;
struct invitem_weap type_weap;
struct invitem_prop type_prop;
struct invitem_dual type_dual;
};
/*0x0c*/ struct invitem *next;