mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-14 12:08:28 +00:00
format codebase
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user