[Feature] Add Rule for dealing with augments when an item evolves (#4758)

This commit is contained in:
Mitch Freeman authored and GitHub committed 2025-03-07 23:00:11 -06:00
1 parent 9f10c12874
commit 53610c2f0f
4 files changed
+64 -4

No files matched your search

+17 -1
View File
@@ -888,6 +888,22 @@ void Client::AddParcel(CharacterParcelsRepository::CharacterParcels &parcel)
"Unable to send parcel at this time. Please try again later."
);
SendParcelAck();
return;
}
}
int32 Client::FindNextFreeParcelSlotUsingMemory()
{
auto const results = GetParcels();
if (results.empty()) {
return PARCEL_BEGIN_SLOT;
}
for (uint32 i = PARCEL_BEGIN_SLOT; i <= RuleI(Parcel, ParcelMaxItems); i++) {
if (!results.contains(i)) {
return i;
}
}
return INVALID_INDEX;
}