mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[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:
+17
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user