Decompile aiIfGunUnclaimed

This commit is contained in:
Ryan Dwyer
2019-11-26 23:46:02 +10:00
parent 8fac472e92
commit b6a756b89d
5 changed files with 30 additions and 67 deletions
+1 -2
View File
@@ -417,8 +417,7 @@
label,
// If behavior is zero, go to label if object exists.
// If behavior is nonzero, do something related to the current chr and ignore
// the object parameter.
// If behavior is nonzero, set flag on unclaimed gun.
// In practice this is always called with object = -1 and behavior = 1.
#define if_gun_unclaimed(object, behavior, label) \
mkshort(0x0061), \
+1 -1
View File
@@ -100,7 +100,7 @@
/*0x005e*/ bool aiIfWeaponThrown(void);
/*0x005f*/ bool aiIfWeaponThrownOnObject(void);
/*0x0060*/ bool aiIfChrHasWeaponEquipped(void);
/*0x0061*/ bool ai0061(void);
/*0x0061*/ bool aiIfGunUnclaimed(void);
/*0x0062*/ bool aiIfObjectHealthy(void);
/*0x0063*/ bool ai0063(void);
/*0x0065*/ bool ai0065(void);
+1 -1
View File
@@ -32,7 +32,7 @@ struct position {
u8 unk00;
u8 flags;
u16 unk02;
struct chrdata *chr;
void *master; // pointer to specific struct that has this position. eg. chrdata or weaponobj
struct coord coord;
u32 unk14;
u32 unk18; // related to gun recovery