mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-27 14:49:59 -04:00
Decompile aibotGetInvItemType
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user