mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
15 lines
541 B
C++
15 lines
541 B
C++
#include "NtVandaServer.h"
|
|
#include "InventoryComponent.h"
|
|
#include "eMissionState.h"
|
|
|
|
void NtVandaServer::OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) {
|
|
|
|
// Removes the alien parts after completing the mission
|
|
if (missionID == m_AlienPartMissionID && missionState == eMissionState::READY_TO_COMPLETE) {
|
|
auto* inventoryComponent = target->GetComponent<InventoryComponent>();
|
|
for (const auto& alienPartLot : m_AlienPartLots) {
|
|
inventoryComponent->RemoveItem(alienPartLot, 1);
|
|
}
|
|
}
|
|
}
|