format codebase

This commit is contained in:
aronwk-aaron
2022-07-28 08:39:57 -05:00
parent 4f7aa11067
commit 19e77a38d8
881 changed files with 34700 additions and 38689 deletions

View File

@@ -2,7 +2,7 @@
#include "MissionComponent.h"
#include "RenderComponent.h"
std::vector<int32_t> FvCandle::m_Missions = {850, 1431, 1529, 1566, 1603};
std::vector<int32_t> FvCandle::m_Missions = { 850, 1431, 1529, 1566, 1603 };
void FvCandle::OnStartup(Entity* self) {
auto* render = static_cast<RenderComponent*>(self->GetComponent(COMPONENT_TYPE_RENDER));
@@ -25,13 +25,11 @@ void FvCandle::BlowOutCandle(Entity* self, Entity* blower) {
auto* render = static_cast<RenderComponent*>(self->GetComponent(COMPONENT_TYPE_RENDER));
if (render == nullptr)
return;
auto* missionComponent = blower->GetComponent<MissionComponent>();
if (missionComponent != nullptr)
{
for (const auto mission : m_Missions)
{
if (missionComponent != nullptr) {
for (const auto mission : m_Missions) {
missionComponent->ForceProgressTaskType(mission, 1, 1);
}
}
@@ -54,4 +52,4 @@ void FvCandle::OnTimerDone(Entity* self, std::string timerName) {
render->StopEffect("candle_smoke", false);
render->PlayEffect(2108, u"create", "candle_light", LWOOBJID_EMPTY, 1.0f, 1.0f, true);
}
}