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,12 +1,12 @@
#include "NjEarthPetServer.h"
#include "PetComponent.h"
void NjEarthPetServer::OnStartup(Entity *self) {
auto* petComponent = self->GetComponent<PetComponent>();
if (petComponent == nullptr || petComponent->GetOwnerId() != LWOOBJID_EMPTY)
return;
void NjEarthPetServer::OnStartup(Entity* self) {
auto* petComponent = self->GetComponent<PetComponent>();
if (petComponent == nullptr || petComponent->GetOwnerId() != LWOOBJID_EMPTY)
return;
// Removes the chocolate bars
petComponent->SetPreconditions(const_cast<std::string &>(m_Precondition));
PetFromObjectServer::OnStartup(self);
// Removes the chocolate bars
petComponent->SetPreconditions(const_cast<std::string&>(m_Precondition));
PetFromObjectServer::OnStartup(self);
}