mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-09 06:17:10 +00:00
Added Script files for Avant Gardens Buff Station
This commit is contained in:
parent
2a5f3b8072
commit
15831e8d6c
15
dScripts/AgSurvivalBuffStation.cpp
Normal file
15
dScripts/AgSurvivalBuffStation.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include "AgSurvivalBuffStation.h"
|
||||||
|
#include "SkillComponent.h"
|
||||||
|
#include "dLogger.h"
|
||||||
|
|
||||||
|
void AgSurvivalBuffStation::OnStartup(Entity* self) {
|
||||||
|
Game::logger->Log("AgSurvivalBuffStation", "Spawning survival buff station!\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
||||||
|
auto skillComponent = self->GetComponent<SkillComponent>();
|
||||||
|
|
||||||
|
if (skillComponent == nullptr) return;
|
||||||
|
|
||||||
|
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
|
||||||
|
}
|
9
dScripts/AgSurvivalBuffStation.h
Normal file
9
dScripts/AgSurvivalBuffStation.h
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "CppScripts.h"
|
||||||
|
|
||||||
|
class AgSurvivalBuffStation : public CppScripts::Script
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void OnStartup(Entity* self) override;
|
||||||
|
void OnRebuildComplete(Entity* self, Entity* target) override;
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user