From a784460f3c3973ea4a368d6ea13e14626d335493 Mon Sep 17 00:00:00 2001 From: Mitachi <70312009+Mitachi2611@users.noreply.github.com> Date: Sun, 15 May 2022 19:25:31 +0200 Subject: [PATCH] =?UTF-8?q?Why=20haven't=20I=20done=20this=20before=3F=20?= =?UTF-8?q?=C2=B0-=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- how-to/Srcs-Server/game/src/char_item.cpp | 6 +++--- how-to/diff/AFTER_char_item.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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);