2021-12-05 18:54:36 +01:00
|
|
|
#include "NpcNpSpacemanBob.h"
|
|
|
|
#include "DestroyableComponent.h"
|
2022-07-04 23:00:10 -07:00
|
|
|
#include "MissionComponent.h"
|
|
|
|
#include "eMissionState.h"
|
2023-03-04 01:16:37 -06:00
|
|
|
#include "eReplicaComponentType.h"
|
2021-12-05 18:54:36 +01:00
|
|
|
|
|
|
|
void NpcNpSpacemanBob::OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) {
|
|
|
|
if (missionState == eMissionState::READY_TO_COMPLETE && missionID == 173) {
|
2023-03-04 01:16:37 -06:00
|
|
|
DestroyableComponent* destroyable = static_cast<DestroyableComponent*>(target->GetComponent(eReplicaComponentType::DESTROYABLE));
|
2021-12-05 18:54:36 +01:00
|
|
|
destroyable->SetImagination(6);
|
2023-03-04 01:16:37 -06:00
|
|
|
MissionComponent* mission = static_cast<MissionComponent*>(target->GetComponent(eReplicaComponentType::MISSION));
|
2022-07-28 08:39:57 -05:00
|
|
|
|
2021-12-05 18:54:36 +01:00
|
|
|
mission->CompleteMission(664);
|
|
|
|
}
|
|
|
|
}
|