feat: spawner weights (#2006)

* feat: spawner weights

* remove ref

* default weights to 1
This commit is contained in:
David Markowitz
2026-06-19 19:08:15 -07:00
committed by GitHub
parent 308412f46e
commit 7456d6b5c1
5 changed files with 94 additions and 53 deletions

View File

@@ -14,7 +14,7 @@ void VisToggleNotifierServer::OnMissionDialogueOK(Entity* self, Entity* target,
auto spawners = Game::zoneManager->GetSpawnersByName(itr->second);
if (spawners.empty()) return;
for (const auto spawner : spawners) {
auto spawnedObjIds = spawner->GetSpawnedObjectIDs();
const auto& spawnedObjIds = spawner->GetSpawnedObjectIDs();
for (const auto& objId : spawnedObjIds) {
GameMessages::SendNotifyClientObject(objId, u"SetVisibility", visible);
}