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

This commit is contained in:
Mitch Freeman
2025-03-08 01:00:11 -04:00
committed by GitHub
parent 9f10c12874
commit 53610c2f0f
4 changed files with 64 additions and 4 deletions
+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;
}