diff --git a/how-to/Srcs-Server/game/src/char_item.cpp b/how-to/Srcs-Server/game/src/char_item.cpp index c56ab1b..41a7bde 100644 --- a/how-to/Srcs-Server/game/src/char_item.cpp +++ b/how-to/Srcs-Server/game/src/char_item.cpp @@ -20,7 +20,7 @@ #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem); @@ -54,7 +54,7 @@ #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem); @@ -88,7 +88,7 @@ #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem); diff --git a/how-to/diff/AFTER_char_item.cpp b/how-to/diff/AFTER_char_item.cpp index c9700fb..dd1f0f3 100644 --- a/how-to/diff/AFTER_char_item.cpp +++ b/how-to/diff/AFTER_char_item.cpp @@ -945,7 +945,7 @@ bool CHARACTER::DoRefine(LPITEM item, bool bMoneyOnly) #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem); @@ -1244,7 +1244,7 @@ bool CHARACTER::DoRefineWithScroll(LPITEM item) #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem); @@ -1289,7 +1289,7 @@ bool CHARACTER::DoRefineWithScroll(LPITEM item) #ifdef ENABLE_STONES_STACKFIX DWORD dwStonesVnum = item->GetVnum(); - if (dwStonesVnum >= 28000 && dwStonesVnum <= 29000) { + if (item->GetType() == ITEM_METIN) { item->SetCount(item->GetCount() - 1); pkNewItem->AddToCharacter(this, TItemPos(INVENTORY, pos)); ITEM_MANAGER::instance().FlushDelayedSave(pkNewItem);