Browse Source

Fix Hellfire Structs

pull/876/head
galaxyhaxz 7 years ago committed by Anders Jenbo
parent
commit
05dc981905
  1. 5
      Source/monster.cpp
  2. 5
      Source/monster.h
  3. 26
      structs.h

5
Source/monster.cpp

@ -11,7 +11,12 @@ int nummonsters;
BOOLEAN sgbSaveSoundOn; BOOLEAN sgbSaveSoundOn;
MonsterStruct monster[MAXMONSTERS]; MonsterStruct monster[MAXMONSTERS];
int totalmonsters; int totalmonsters;
#ifdef HELLFIRE
CMonster Monsters[24];
int unused_6AAE30[600];
#else
CMonster Monsters[16]; CMonster Monsters[16];
#endif
// int END_Monsters_17; // int END_Monsters_17;
int monstimgtot; int monstimgtot;
int uniquetrans; int uniquetrans;

5
Source/monster.h

@ -8,7 +8,12 @@ extern int monstactive[MAXMONSTERS];
extern int nummonsters; extern int nummonsters;
extern MonsterStruct monster[MAXMONSTERS]; extern MonsterStruct monster[MAXMONSTERS];
extern int totalmonsters; extern int totalmonsters;
#ifdef HELLFIRE
extern CMonster Monsters[24];
extern int unused_6AAE30[600];
#else
extern CMonster Monsters[16]; extern CMonster Monsters[16];
#endif
// int END_Monsters_17; // int END_Monsters_17;
extern int monstimgtot; extern int monstimgtot;
extern int uniquetrans; extern int uniquetrans;

26
structs.h

@ -164,7 +164,7 @@ typedef struct ItemStruct {
int IDidx; int IDidx;
int offs016C; // _oldlight or _iInvalid int offs016C; // _oldlight or _iInvalid
#ifdef HELLFIRE #ifdef HELLFIRE
int field_170; int _iDamAcFlags;
#endif #endif
} ItemStruct; } ItemStruct;
@ -335,12 +335,27 @@ typedef struct PlayerStruct {
unsigned char pTownWarps; unsigned char pTownWarps;
unsigned char pDungMsgs; unsigned char pDungMsgs;
unsigned char pLvlLoad; unsigned char pLvlLoad;
/*
#ifdef HELLFIRE
unsigned char pDungMsgs2;
char bReserved[4];
short wReflection;
short wReserved[7];
int pDiabloKillLevel;
int pDifficulty;
int pDamAcFlags;
int dwReserved[5];
#else
*/
unsigned char pBattleNet; unsigned char pBattleNet;
BOOLEAN pManaShield; BOOLEAN pManaShield;
char bReserved[3]; char bReserved[3];
short wReserved[8]; short wReserved[8];
DWORD pDiabloKillLevel; DWORD pDiabloKillLevel;
int dwReserved[7]; int dwReserved[7];
/*
#endif
*/
unsigned char *_pNData; unsigned char *_pNData;
unsigned char *_pWData; unsigned char *_pWData;
unsigned char *_pAData; unsigned char *_pAData;
@ -522,15 +537,24 @@ typedef struct MonsterData {
} MonsterData; } MonsterData;
typedef struct CMonster { typedef struct CMonster {
#ifdef HELLFIRE
int mtype;
#else
unsigned char mtype; unsigned char mtype;
#endif
// TODO: Add enum for place flags // TODO: Add enum for place flags
unsigned char mPlaceFlags; unsigned char mPlaceFlags;
AnimStruct Anims[6]; AnimStruct Anims[6];
TSnd *Snds[4][2]; TSnd *Snds[4][2];
int width; int width;
int width2; int width2;
#ifdef HELLFIRE
int mMinHP;
int mMaxHP;
#else
unsigned char mMinHP; unsigned char mMinHP;
unsigned char mMaxHP; unsigned char mMaxHP;
#endif
BOOL has_special; BOOL has_special;
unsigned char mAFNum; unsigned char mAFNum;
char mdeadval; char mdeadval;

Loading…
Cancel
Save