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

@@ -1,24 +1,21 @@
#include "MonCoreSmashableDoors.h"
#include "EntityManager.h"
void MonCoreSmashableDoors::OnDie(Entity* self, Entity* killer)
{
auto myNum = self->GetVarAsString(u"spawner_name");
void MonCoreSmashableDoors::OnDie(Entity* self, Entity* killer) {
auto myNum = self->GetVarAsString(u"spawner_name");
myNum = myNum.substr(myNum.length() - 1, 1);
auto triggerGroup = "CoreNookTrig0" + myNum;
auto triggerGroup = "CoreNookTrig0" + myNum;
// Get the trigger
auto triggers = EntityManager::Instance()->GetEntitiesInGroup(triggerGroup);
if (triggers.empty())
{
if (triggers.empty()) {
return;
}
for (auto trigger : triggers)
{
for (auto trigger : triggers) {
trigger->OnFireEventServerSide(self, "DoorSmashed");
}
}