mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
set faction of buff station to 6
This commit is contained in:
parent
20789bab7f
commit
3de2c3bfc6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user