[Feature] Add Augments to Starting Items for Bots/Players (#4100)

* [Feature] Add Augments to Starting Items for Bots/Players

- Adds support for augments to `bot_starting_items` and `starting_items`.
- Will allow operators to kit bots/players out with augmented gear from the start if they so choose.

* Update database_update_manifest.cpp

* Update client.cpp
This commit is contained in:
Alex King
2024-02-20 23:23:22 -05:00
committed by GitHub
parent a221e50cc2
commit f505c2cfd2
8 changed files with 262 additions and 57 deletions
+17 -2
View File
@@ -461,7 +461,13 @@ bool SharedDatabase::SetStartingItems(
{
const EQ::ItemData *item_data;
const auto &l = StartingItemsRepository::All(*this);
const auto& l = StartingItemsRepository::GetWhere(
*this,
fmt::format(
"TRUE {}",
ContentFilterCriteria::apply()
)
);
if (l.empty()) {
return false;
@@ -515,7 +521,16 @@ bool SharedDatabase::SetStartingItems(
continue;
}
const auto *inst = CreateBaseItem(item_data, item_charges);
const auto* inst = CreateItem(
item_data,
item_charges,
e.augment_one,
e.augment_two,
e.augment_three,
e.augment_four,
e.augment_five,
e.augment_six
);
if (slot < EQ::invslot::slotCharm) {
slot = inv->FindFreeSlot(false, false);