[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
+7
View File
@@ -8527,10 +8527,17 @@ void Bot::AddBotStartingItems(uint16 race_id, uint8 class_id)
(CanRaceEquipItem(e.item_id) || RuleB(Bots, AllowBotEquipAnyRaceGear))
) {
auto i = BotInventoriesRepository::NewEntity();
i.bot_id = GetBotID();
i.slot_id = e.slot_id;
i.item_id = e.item_id;
i.inst_charges = e.item_charges;
i.augment_1 = e.augment_one;
i.augment_2 = e.augment_two;
i.augment_3 = e.augment_three;
i.augment_4 = e.augment_four;
i.augment_5 = e.augment_five;
i.augment_6 = e.augment_six;
v.emplace_back(i);
}