Why haven't I done this before? °-°

This commit is contained in:
Mitachi
2022-05-15 19:25:31 +02:00
parent 6f0be90cb2
commit a784460f3c
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);