mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
Clarified numbers and added comments
This commit is contained in:
parent
3de2c3bfc6
commit
f41e8292e8
@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
||||||
auto destroyableComponent = self->GetComponent<DestroyableComponent>();
|
auto destroyableComponent = self->GetComponent<DestroyableComponent>();
|
||||||
|
// We set the faction to 6 so that the buff station sees players as friendly targets
|
||||||
if (destroyableComponent != nullptr) destroyableComponent->SetFaction(6);
|
if (destroyableComponent != nullptr) destroyableComponent->SetFaction(6);
|
||||||
|
|
||||||
auto skillComponent = self->GetComponent<SkillComponent>();
|
auto skillComponent = self->GetComponent<SkillComponent>();
|
||||||
|
|
||||||
if (skillComponent == nullptr) return;
|
if (skillComponent == nullptr) return;
|
||||||
|
|
||||||
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
|
skillComponent->CalculateBehavior(skillIdForBuffStation, behaviorIdForBuffStation, self->GetObjectID());
|
||||||
|
|
||||||
self->AddCallbackTimer(10.0f, [self]() {
|
self->AddCallbackTimer(10.0f, [self]() {
|
||||||
self->Smash();
|
self->Smash();
|
||||||
|
Loading…
Reference in New Issue
Block a user