[Pets] Add Pet Constants and Methods (#4987)

* [Pets] Add Pet Constants and Methods

* Remove GetID

* GetPetTypeName()

* Cleanup
This commit is contained in:
Alex King
2025-08-17 01:00:31 -04:00
committed by GitHub
parent 207ee2daa0
commit a4e47d9180
28 changed files with 1209 additions and 742 deletions
+5 -5
View File
@@ -1397,8 +1397,8 @@ void Mob::AI_Process() {
else if (AI_movement_timer->Check() && !IsRooted()) {
if (IsPet()) {
// we're a pet, do as we're told
switch (pStandingPetOrder) {
case SPO_Follow: {
switch (m_pet_order) {
case PetOrder::Follow: {
Mob *owner = GetOwner();
if (owner == nullptr) {
@@ -1447,18 +1447,18 @@ void Mob::AI_Process() {
break;
}
case SPO_Sit: {
case PetOrder::Sit: {
SetAppearance(eaSitting, false);
break;
}
case SPO_Guard: {
case PetOrder::Guard: {
//only NPCs can guard stuff. (forced by where the guard movement code is in the AI)
if (IsNPC()) {
CastToNPC()->NextGuardPosition();
}
break;
}
case SPO_FeignDeath: {
case PetOrder::Feign: {
SetAppearance(eaDead, false);
break;
}