mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
e524b86e12
* breakout the component types into a scoped enum tested that things are the same as they were before * fix missed rename * fix brick-by-brick name to be crafting because that's what it is
18 lines
593 B
C++
18 lines
593 B
C++
#include "SsModularBuildServer.h"
|
|
#include "MissionComponent.h"
|
|
#include "eMissionState.h"
|
|
#include "eReplicaComponentType.h"
|
|
|
|
void SsModularBuildServer::OnModularBuildExit(Entity* self, Entity* player, bool bCompleted, std::vector<LOT> modules) {
|
|
int missionNum = 1732;
|
|
|
|
if (bCompleted) {
|
|
MissionComponent* mission = static_cast<MissionComponent*>(player->GetComponent(eReplicaComponentType::MISSION));
|
|
Mission* rocketMission = mission->GetMission(missionNum);
|
|
|
|
if (rocketMission->GetMissionState() == eMissionState::ACTIVE) {
|
|
mission->ForceProgress(missionNum, 2478, 1);
|
|
}
|
|
}
|
|
}
|