fix: align spirit stone insertion and stack consumption with AVA2
This commit is contained in:
@@ -5149,19 +5149,16 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
||||
if (item2->GetSocket(i) >= 1 && item2->GetSocket(i) <= 2 && item2->GetSocket(i) >= item->GetValue(2))
|
||||
{
|
||||
// 석 확률
|
||||
if (number(1, 100) <= 30)
|
||||
{
|
||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("메틴석 부착에 성공하였습니다."));
|
||||
item2->SetSocket(i, item->GetVnum());
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("메틴석 부착에 실패하였습니다."));
|
||||
item2->SetSocket(i, ITEM_BROKEN_METIN_VNUM);
|
||||
}
|
||||
// PORT: AVA2 ENABLE_ADDSTONE_FAILURE is disabled: insertion always succeeds.
|
||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("메틴석 부착에 성공하였습니다."));
|
||||
item2->SetSocket(i, item->GetVnum());
|
||||
|
||||
LogManager::instance().ItemLog(this, item2, "SOCKET", item->GetName());
|
||||
ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (METIN)");
|
||||
// PORT: AVA2 consumes one stone, including stackable +0..+5 stones.
|
||||
if (item->GetCount() == 1)
|
||||
ITEM_MANAGER::instance().RemoveItem(item, "REMOVE (METIN)");
|
||||
else
|
||||
item->SetCount(item->GetCount() - 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user