2022-08-26 02:09:08 +00:00
|
|
|
#include "PirateRep.h"
|
|
|
|
#include "Character.h"
|
2023-01-07 05:17:05 +00:00
|
|
|
#include "eMissionState.h"
|
|
|
|
#include "Entity.h"
|
2023-05-02 22:39:21 +00:00
|
|
|
#include "ePlayerFlag.h"
|
2022-08-26 02:09:08 +00:00
|
|
|
|
|
|
|
void PirateRep::OnMissionDialogueOK(Entity* self, Entity* target, int missionID, eMissionState missionState) {
|
|
|
|
if (missionID == m_PirateRepMissionID && missionState >= eMissionState::READY_TO_COMPLETE) {
|
|
|
|
auto* character = target->GetCharacter();
|
|
|
|
if (character) {
|
2023-05-02 22:39:21 +00:00
|
|
|
character->SetPlayerFlag(ePlayerFlag::GF_PIRATE_REP, true);
|
2022-08-26 02:09:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|