comparison Items.h @ 1708:f8414042db1f

Moving NZIArray to a separate class, fixing a few inventory bugs
author Grumpy7
date Mon, 23 Sep 2013 07:07:06 +0200
parents 3c451fd02fcf
children 8251e59fd7c1
comparison
equal deleted inserted replaced
1702:5cbd88f8a2eb 1708:f8414042db1f
1 #pragma once 1 #pragma once
2 #include <array> 2 #include <array>
3 #include <map> 3 #include <map>
4 #include "NZIArray.h"
4 5
5 enum DAMAGE_TYPE:unsigned int 6 enum DAMAGE_TYPE:unsigned int
6 { 7 {
7 DMGT_FIRE = 0, 8 DMGT_FIRE = 0,
8 DMGT_ELECTR = 1, 9 DMGT_ELECTR = 1,
378 bool IsMaterialSpecial(ItemGen *pItem); 379 bool IsMaterialSpecial(ItemGen *pItem);
379 bool IsMaterialNonCommon(ItemGen *pItem); 380 bool IsMaterialNonCommon(ItemGen *pItem);
380 void Release(); 381 void Release();
381 382
382 int uAllItemsCount; 383 int uAllItemsCount;
383 ItemDesc pItems[800]; //4-9604h 384 NZIArray<ItemDesc, 800> pItems; //4-9604h
384 ItemEnchantment pEnchantments[24]; //9604h 385 ItemEnchantment pEnchantments[24]; //9604h
385 ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h -9FC4h 386 ItemSpecialEnchantment pSpecialEnchantments[72]; //97E4h -9FC4h
386 char field_9FC4[5000]; 387 char field_9FC4[5000];
387 char field_B348[5000]; 388 char field_B348[5000];
388 char field_C6D0[5000]; 389 char field_C6D0[5000];