ikarusv2 k envanteri uyarlama

  • Konuyu açan Konuyu açan emirkisa04
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 0
  • Gösterim Gösterim 223

emirkisa04

Üye
Üye
Mesaj
31
Beğeni
13
Puan
411
Ticaret Puanı
0
char.cpp AÇ
ara

CPP:
Genişlet Daralt Kopyala
bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)

tüm kod satırını değiştir

c:
Genişlet Daralt Kopyala
bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)
{
    // storing result in signed value
    int emptyPos = -1;

    if (item->IsDragonSoul())
    {
        pos->cell = emptyPos = GetEmptyDragonSoulInventory(item);
        pos->window_type = DRAGON_SOUL_INVENTORY;
    }
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
    else if (item->IsSkillBook())
    {
        pos->cell = emptyPos = GetEmptySkillBookInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
    else if (item->IsUpgradeItem())
    {
        pos->cell = emptyPos = GetEmptyUpgradeItemsInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
    else if (item->IsStone())
    {
        pos->cell = emptyPos = GetEmptyStoneInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
    else if (item->IsBox())
    {
        pos->cell = emptyPos = GetEmptyBoxInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
    else if (item->IsEfsun())
    {
        pos->cell = emptyPos = GetEmptyEfsunInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
    else if (item->IsCicek())
    {
        pos->cell = emptyPos = GetEmptyCicekInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }
#endif
    else
    {
        pos->cell = emptyPos = GetEmptyInventory(item->GetSize());
        pos->window_type = INVENTORY;
    }

    return emptyPos != -1;
}
 
Son düzenleme:
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst