mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
40 lines
1004 B
C
40 lines
1004 B
C
#ifndef __STORE_INVENTORY_H_
|
|
#define __STORE_INVENTORY_H_
|
|
|
|
#include "Items.h"
|
|
|
|
|
|
typedef struct
|
|
{
|
|
UINT16 usItemIndex; //Index into the item table
|
|
UINT8 ubQtyOnHand;
|
|
UINT8 ubQtyOnOrder; //The number of items on order
|
|
UINT8 ubItemQuality; // the % damaged listed from 0 to 100
|
|
BOOLEAN fPreviouslyEligible; // whether or not dealer has been eligible to sell this item in days prior to today
|
|
|
|
UINT8 filler;
|
|
|
|
} STORE_INVENTORY;
|
|
|
|
|
|
//Enums used for the access the MAX dealers array
|
|
enum
|
|
{
|
|
BOBBY_RAY_NEW,
|
|
BOBBY_RAY_USED,
|
|
|
|
BOBBY_RAY_LISTS,
|
|
};
|
|
|
|
extern UINT8 StoreInventory[MAXITEMS][BOBBY_RAY_LISTS];
|
|
extern INT16 WeaponROF[ MAXITEMS ];
|
|
|
|
|
|
|
|
void SetupStoreInventory( STORE_INVENTORY *pInventoryArray, BOOLEAN fUsed );
|
|
BOOLEAN DoesGunOfSameClassExistInInventory( UINT8 ubItemIndex, UINT8 ubDealerID );
|
|
STORE_INVENTORY *GetPtrToStoreInventory( UINT8 ubDealerID );
|
|
//INT16 CountNumberOfItemsInStoreInventory( UINT8 ubArmsDealerID );
|
|
|
|
#endif
|