Mercurial > mm7
diff Items.h @ 224:9917d3b4925e
items init refactored
author | Gloval |
---|---|
date | Sun, 17 Feb 2013 14:46:05 +0400 |
parents | 1bd823f52e3a |
children | 46ae2602aceb 05a2d2b35ed0 |
line wrap: on
line diff
--- a/Items.h Sun Feb 17 11:41:44 2013 +0400 +++ b/Items.h Sun Feb 17 14:46:05 2013 +0400 @@ -143,16 +143,22 @@ char _additional_value; //22 26 char _bonus_type; //23 27 char _bonus_strength; //24 28 - char field_25; // - char field_26; - char field_27; - char field_28; - char field_29; - char field_2a; - char field_2b; - char field_2C; - unsigned char uItemID_Rep_St; //2d - char field_2e; + char field_25; // 25 29 + char field_26; //26 2A + char field_27; // 27 2b + union + { + unsigned __int8 uChanceByTreasureLvl[6]; + struct { + unsigned __int8 uChanceByTreasureLvl1; // 28 2c + unsigned __int8 uChanceByTreasureLvl2; // 29 2d + unsigned __int8 uChanceByTreasureLvl3; // 2A 2e + unsigned __int8 uChanceByTreasureLvl4; // 2B 2f + unsigned __int8 uChanceByTreasureLvl5; // 2C 30 + unsigned __int8 uChanceByTreasureLvl6; // 2D 32 + }; + }; + unsigned char uItemID_Rep_St; //2e 32 char field_2f; }; #pragma pack(pop) @@ -220,24 +226,25 @@ ItemDesc pItems[800]; //4-9604h ItemEnchantment pEnchantments[24]; //9604h ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h - char field_9FC0[5000]; + char field_9FC4[5000]; char field_B348[5000]; char field_C6D0[5000]; char field_DA58[5000]; - char field_EDE0[184]; + char field_EDE0[180]; unsigned __int16 potion_data[50][50]; // 77B2h*2=EF64h -102ECh unsigned __int16 potion_note[50][50]; // 8176h*2=102ECh -11674h char *pItemsTXT_Raw; //11674h char *pRndItemsTXT_Raw; char *pStdItemsTXT_Raw; //1167Ch char *pSpcItemsTXT_Raw; //11680h - int field_11684[6]; - char field_1169C[60]; - int field_116D8[3]; + unsigned int uChanceByTreasureLvlSumm[6]; //11684 + unsigned int uBonusChanceStandart[6]; //1169c + unsigned int uBonusChanceSpecial[6]; //116B4 + unsigned int uBonusChanceWpSpecial[6]; //116cc -116e4 unsigned int pEnchantmentsSumm[9]; //116E4h -11708h BonusRange bonus_ranges[6]; //45C2h*4 =11708h - int pSpecialEnchantmentsSumm[24]; //11738h - int pSpecialEnchantments_count; //11798h + unsigned int pSpecialEnchantmentsSumm[24]; //11738h + unsigned int pSpecialEnchantments_count; //11798h char field_1179C; }; #pragma pack(pop)