mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +00:00
c1e8546d48
add final missing scripts for nt also fix the turnin for the breadcrumb missions not showing the completion window. Fix another missing script Add another script fix include guards Fix dirt clouds not appearing on mission accept
16 lines
620 B
C++
16 lines
620 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);
|
|
}
|
|
}
|
|
NtBcSubmitServer::OnMissionDialogueOK(self, target, missionID, missionState);
|
|
}
|