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,49 +2,43 @@
#include "SkillComponent.h"
#include "dZoneManager.h"
void Lieutenant::OnStartup(Entity* self)
{
auto* skillComponent = self->GetComponent<SkillComponent>();
void Lieutenant::OnStartup(Entity* self) {
auto* skillComponent = self->GetComponent<SkillComponent>();
if (skillComponent == nullptr)
{
return;
}
if (skillComponent == nullptr) {
return;
}
skillComponent->CalculateBehavior(1127, 24812, self->GetObjectID(), true);
skillComponent->CalculateBehavior(1127, 24812, self->GetObjectID(), true);
}
void Lieutenant::OnDie(Entity* self, Entity* killer)
{
const auto myLOT = self->GetLOT();
void Lieutenant::OnDie(Entity* self, Entity* killer) {
const auto myLOT = self->GetLOT();
std::string spawnerName;
std::string spawnerName;
switch (myLOT)
{
case 16047:
spawnerName = "EarthShrine_ERail";
break;
case 16050:
spawnerName = "IceShrine_QBBouncer";
break;
case 16049:
spawnerName = "LightningShrine_LRail";
break;
default:
return;
}
switch (myLOT) {
case 16047:
spawnerName = "EarthShrine_ERail";
break;
case 16050:
spawnerName = "IceShrine_QBBouncer";
break;
case 16049:
spawnerName = "LightningShrine_LRail";
break;
default:
return;
}
const auto spawners = dZoneManager::Instance()->GetSpawnersByName(spawnerName);
const auto spawners = dZoneManager::Instance()->GetSpawnersByName(spawnerName);
if (spawners.empty())
{
return;
}
if (spawners.empty()) {
return;
}
for (auto* spawner : spawners)
{
spawner->Reset();
spawner->Activate();
}
for (auto* spawner : spawners) {
spawner->Reset();
spawner->Activate();
}
}