mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
delete unused functions and update documentation
This commit is contained in:
@@ -74,13 +74,13 @@ void DamagingPets::OnTimerDone(Entity* self, std::string message) {
|
||||
}
|
||||
|
||||
void DamagingPets::MakeUntamable(Entity* self) {
|
||||
auto* petComponent = self->GetComponent<PetComponent>();
|
||||
auto* const petComponent = self->GetComponent<PetComponent>();
|
||||
|
||||
// If the pet is currently not being tamed, make it hostile
|
||||
if (petComponent != nullptr && petComponent->GetStatus() != 5) {
|
||||
if (petComponent != nullptr && !petComponent->HasFlag(PetFlag::NOT_WAITING)) {
|
||||
self->SetNetworkVar<bool>(u"bIAmTamable", false);
|
||||
self->SetVar<bool>(u"IsEvil", true);
|
||||
petComponent->SetStatus(1);
|
||||
petComponent->SetFlag(PetFlag::IDLE);
|
||||
|
||||
auto* combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
if (combatAIComponent != nullptr) {
|
||||
@@ -110,7 +110,7 @@ void DamagingPets::ClearEffects(Entity* self) {
|
||||
|
||||
auto* petComponent = self->GetComponent<PetComponent>();
|
||||
if (petComponent != nullptr) {
|
||||
petComponent->SetStatus(67108866);
|
||||
petComponent->SetFlag(PetFlag::TAMEABLE, PetFlag::UNKNOWN2);
|
||||
}
|
||||
|
||||
auto* combatAIComponent = self->GetComponent<BaseCombatAIComponent>();
|
||||
|
Reference in New Issue
Block a user