2021-12-05 17:54:36 +00:00
|
|
|
#include "NtDarkitectRevealServer.h"
|
2022-05-01 13:54:45 +00:00
|
|
|
#include "Darkitect.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
#include "MissionComponent.h"
|
|
|
|
|
2022-05-01 13:54:45 +00:00
|
|
|
void NtDarkitectRevealServer::OnUse(Entity* self, Entity* user) {
|
|
|
|
Darkitect Baron;
|
|
|
|
Baron.Reveal(self, user);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-05-01 13:54:45 +00:00
|
|
|
auto* missionComponent = user->GetComponent<MissionComponent>();
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-05-01 13:54:45 +00:00
|
|
|
if (missionComponent != nullptr) {
|
|
|
|
missionComponent->ForceProgressTaskType(1344, 1, 14293);
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|