set faction of buff station to 6

This commit is contained in:
EmosewaMC 2022-02-06 21:32:36 -08:00
parent 20789bab7f
commit 3de2c3bfc6

View File

@ -1,8 +1,13 @@
#include "AgSurvivalBuffStation.h" #include "AgSurvivalBuffStation.h"
#include "SkillComponent.h" #include "SkillComponent.h"
#include "dLogger.h" #include "dLogger.h"
#include "DestroyableComponent.h"
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) { void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
auto destroyableComponent = self->GetComponent<DestroyableComponent>();
if (destroyableComponent != nullptr) destroyableComponent->SetFaction(6);
auto skillComponent = self->GetComponent<SkillComponent>(); auto skillComponent = self->GetComponent<SkillComponent>();
if (skillComponent == nullptr) return; if (skillComponent == nullptr) return;