Fully Implemented Shooting Gallery Mission and Achievement Fixes (#381)

* Fixed tab indent

* Fully implemented Achievement tracking for Shooting Gallery

- Removed logging in MissionTask.cpp and moved the checks for mission progression to after checking the instance.

- Implemented the achievement tracking in SGCannon as well as tracking of the maximum hit streak and progression of enemy smashes in the shooting gallery.
This commit is contained in:
David Markowitz
2022-02-05 03:54:12 -08:00
committed by GitHub
parent c6f220ee31
commit fe178bf745
2 changed files with 16 additions and 11 deletions

View File

@@ -338,9 +338,6 @@ void MissionTask::Progress(int32_t value, LWOOBJID associate, const std::string&
case MissionTaskType::MISSION_TASK_TYPE_MINIGAME:
{
if (targets != info->targetGroup || info->targetValue > value)
break;
auto* minigameManager = EntityManager::Instance()->GetEntity(associate);
if (minigameManager == nullptr)
break;
@@ -356,10 +353,10 @@ void MissionTask::Progress(int32_t value, LWOOBJID associate, const std::string&
break;
}
Game::logger->Log("Minigame Task", "Progressing minigame with %s %d > %d (%d)\n",
targets.c_str(), value, info->targetValue, gameID);
SetProgress(info->target);
if(info->targetGroup == targets && value >= info->targetValue) {
SetProgress(info->target);
break;
}
break;
}