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-07-28 13:39:57 +00:00
|
|
|
void NtDarkitectRevealServer::OnUse(Entity* self, Entity* user) {
|
2022-05-01 13:54:45 +00:00
|
|
|
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-07-28 13:39:57 +00:00
|
|
|
if (missionComponent != nullptr) {
|
2022-05-01 13:54:45 +00:00
|
|
|
missionComponent->ForceProgressTaskType(1344, 1, 14293);
|
|
|
|
}
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|