bool CItem::AddSocket() { int count = GetSocketCount(); if (count == ITEM_SOCKET_MAX_NUM) return false; m_alSockets[count] = 1; return true; }
int CItems::GetAmountOfJewelryInserted() { int i, count = 0; for( i = 0; i < GetSocketCount(); i++ ) { if( GetSocketJewelIndex(i) > 0 ) count++; } return count; }
void AddSocket(SOCKET socket) { const SocketCount currentNumberOfSockets = GetSocketCount(); StoreSocketAt(currentNumberOfSockets, socket); SetSocketCount(currentNumberOfSockets + 1); }