feat: Loot rework

This commit is contained in:
David Markowitz
2025-10-12 22:03:28 -07:00
parent fd6029ae10
commit 28c6bfcbd7
21 changed files with 675 additions and 322 deletions

View File

@@ -415,9 +415,7 @@ void SGCannon::SpawnNewModel(Entity* self) {
}
if (lootMatrix != 0) {
std::unordered_map<LOT, int32_t> toDrop = {};
toDrop = Loot::RollLootMatrix(player, lootMatrix);
const auto toDrop = Loot::RollLootMatrix(player, lootMatrix);
for (const auto [lot, count] : toDrop) {
GameMessages::SetModelToBuild modelToBuild{};
modelToBuild.modelLot = lot;