mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
Add code to complete hidden property mission (#641)
This commit is contained in:
parent
ccb9f7c499
commit
9ba297dd2e
@ -169,11 +169,10 @@ void BasePropertyServer::BaseZonePropertyRented(Entity* self, Entity* player) co
|
|||||||
EntityManager::Instance()->DestructEntity(plaque);
|
EntityManager::Instance()->DestructEntity(plaque);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->GetVar<int32_t>(brickLinkMissionIDFlag) != 0) {
|
auto brickLinkMissionID = self->GetVar<uint32_t>(brickLinkMissionIDFlag);
|
||||||
auto plaques = EntityManager::Instance()->GetEntitiesInGroup(self->GetVar<std::string>(PropertyPlaqueGroup));
|
if (brickLinkMissionID != 0) {
|
||||||
for (auto* plaque : plaques) {
|
auto missionComponent = player->GetComponent<MissionComponent>();
|
||||||
EntityManager::Instance()->DestructEntity(plaque);
|
if (missionComponent) missionComponent->CompleteMission(brickLinkMissionID, true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivateSpawner(self->GetVar<std::string>(PropObjsSpawner));
|
ActivateSpawner(self->GetVar<std::string>(PropObjsSpawner));
|
||||||
|
Loading…
Reference in New Issue
Block a user