2013-10-08 14:20:49 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
#include "Wolf.h"
|
|
|
|
#include "../World.h"
|
|
|
|
#include "../Entities/Player.h"
|
2014-02-20 14:41:53 -05:00
|
|
|
#include "../Items/ItemHandler.h"
|
2013-10-08 14:20:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cWolf::cWolf(void) :
|
2017-02-15 00:05:24 -05:00
|
|
|
super("Wolf", mtWolf, "entity.wolf.hurt", "entity.wolf.death", 0.6, 0.8),
|
2013-11-10 15:24:36 -05:00
|
|
|
m_IsSitting(false),
|
2013-12-20 10:39:20 -05:00
|
|
|
m_IsTame(false),
|
2013-11-10 15:24:36 -05:00
|
|
|
m_IsBegging(false),
|
2013-12-20 10:39:20 -05:00
|
|
|
m_IsAngry(false),
|
2013-11-12 10:39:59 -05:00
|
|
|
m_OwnerName(""),
|
2016-01-22 13:55:46 -05:00
|
|
|
m_CollarColor(E_META_DYE_ORANGE),
|
|
|
|
m_NotificationCooldown(0)
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2015-05-28 01:31:17 -04:00
|
|
|
m_RelativeWalkSpeed = 2;
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-25 18:32:30 -04:00
|
|
|
bool cWolf::DoTakeDamage(TakeDamageInfo & a_TDI)
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
cPawn * PreviousTarget = GetTarget();
|
2016-01-11 14:34:41 -05:00
|
|
|
if (!super::DoTakeDamage(a_TDI))
|
2014-04-25 18:32:30 -04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-01-22 13:55:46 -05:00
|
|
|
if ((a_TDI.Attacker != nullptr) && a_TDI.Attacker->IsPawn())
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2016-11-20 12:10:54 -05:00
|
|
|
auto currTarget = GetTarget();
|
|
|
|
if ((currTarget != nullptr) && currTarget->IsPlayer())
|
2016-01-22 13:55:46 -05:00
|
|
|
{
|
|
|
|
if (m_IsTame)
|
|
|
|
{
|
2016-11-20 12:10:54 -05:00
|
|
|
if ((static_cast<cPlayer*>(currTarget)->GetUUID() == m_OwnerUUID))
|
2016-01-22 13:55:46 -05:00
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
SetTarget(PreviousTarget); // Do not attack owner
|
2016-01-22 13:55:46 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
SetIsSitting(false);
|
|
|
|
NotifyAlliesOfFight(static_cast<cPawn*>(a_TDI.Attacker));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_IsAngry = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (m_IsTame)
|
|
|
|
{
|
|
|
|
SetIsSitting(false);
|
|
|
|
NotifyAlliesOfFight(static_cast<cPawn*>(a_TDI.Attacker));
|
|
|
|
}
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
2016-01-22 13:55:46 -05:00
|
|
|
|
2014-07-17 16:15:34 -04:00
|
|
|
m_World->BroadcastEntityMetadata(*this); // Broadcast health and possibly angry face
|
2014-04-25 18:32:30 -04:00
|
|
|
return true;
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-01-12 05:52:23 -05:00
|
|
|
|
2016-01-22 13:55:46 -05:00
|
|
|
void cWolf::NotifyAlliesOfFight(cPawn * a_Opponent)
|
|
|
|
{
|
|
|
|
if (GetOwnerName() == "")
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
m_NotificationCooldown = 15;
|
2017-09-11 17:20:49 -04:00
|
|
|
|
|
|
|
m_World->DoWithPlayerByUUID(m_OwnerUUID, [=](cPlayer & a_Player)
|
2016-01-22 13:55:46 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
a_Player.NotifyNearbyWolves(a_Opponent, false);
|
2016-01-22 13:55:46 -05:00
|
|
|
return false;
|
|
|
|
}
|
2017-09-11 17:20:49 -04:00
|
|
|
);
|
2016-01-22 13:55:46 -05:00
|
|
|
}
|
|
|
|
|
2018-07-26 17:24:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-11-08 07:44:17 -05:00
|
|
|
bool cWolf::Attack(std::chrono::milliseconds a_Dt)
|
2014-01-24 15:46:47 -05:00
|
|
|
{
|
|
|
|
UNUSED(a_Dt);
|
|
|
|
|
2016-02-01 15:49:34 -05:00
|
|
|
if ((GetTarget() != nullptr) && (GetTarget()->IsPlayer()))
|
2014-01-24 15:46:47 -05:00
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
if (static_cast<cPlayer *>(GetTarget())->GetUUID() == m_OwnerUUID)
|
2016-01-11 14:34:41 -05:00
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
SetTarget(nullptr);
|
2016-01-22 13:55:46 -05:00
|
|
|
return false;
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
2014-01-24 15:46:47 -05:00
|
|
|
}
|
2016-01-11 14:34:41 -05:00
|
|
|
|
2016-02-01 15:49:34 -05:00
|
|
|
NotifyAlliesOfFight(static_cast<cPawn*>(GetTarget()));
|
2016-01-22 13:55:46 -05:00
|
|
|
return super::Attack(a_Dt);
|
|
|
|
|
2014-01-24 15:46:47 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-08 14:20:49 -04:00
|
|
|
|
2017-08-25 08:43:18 -04:00
|
|
|
void cWolf::ReceiveNearbyFightInfo(const cUUID & a_PlayerID, cPawn * a_Opponent, bool a_IsPlayerInvolved)
|
2016-01-11 14:34:41 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
if (
|
|
|
|
(a_Opponent == nullptr) || IsSitting() || (!IsTame()) ||
|
|
|
|
(!a_Opponent->IsPawn()) || (a_PlayerID != m_OwnerUUID)
|
|
|
|
)
|
2016-01-16 07:16:47 -05:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2016-01-22 13:55:46 -05:00
|
|
|
|
|
|
|
// If we already have a target
|
2016-02-01 15:49:34 -05:00
|
|
|
if (GetTarget() != nullptr)
|
2016-01-11 14:34:41 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
// If a wolf is asking for help and we already have a target, do nothing
|
|
|
|
if (!a_IsPlayerInvolved)
|
2016-01-12 05:52:23 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
return;
|
2016-01-12 05:52:23 -05:00
|
|
|
}
|
2016-01-22 13:55:46 -05:00
|
|
|
// If a player is asking for help and we already have a target,
|
|
|
|
// there's a 50% chance of helping and a 50% chance of doing nothing
|
|
|
|
// This helps spread a wolf pack's targets over several mobs
|
2017-06-13 15:35:30 -04:00
|
|
|
else if (GetRandomProvider().RandBool())
|
2016-01-12 05:52:23 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
return;
|
2016-01-12 05:52:23 -05:00
|
|
|
}
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
|
2016-01-22 13:55:46 -05:00
|
|
|
if (a_Opponent->IsPlayer() && static_cast<cPlayer *>(a_Opponent)->GetUUID() == m_OwnerUUID)
|
|
|
|
{
|
|
|
|
return; // Our owner has hurt himself, avoid attacking them.
|
|
|
|
}
|
|
|
|
|
|
|
|
if (a_Opponent->IsMob() && static_cast<cMonster *>(a_Opponent)->GetMobType() == mtWolf)
|
|
|
|
{
|
|
|
|
cWolf * Wolf = static_cast<cWolf *>(a_Opponent);
|
|
|
|
if (Wolf->GetOwnerUUID() == GetOwnerUUID())
|
|
|
|
{
|
|
|
|
return; // Our owner attacked one of their wolves. Abort attacking wolf.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-01 15:49:34 -05:00
|
|
|
SetTarget(a_Opponent);
|
2016-01-22 13:55:46 -05:00
|
|
|
|
|
|
|
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-08 14:20:49 -04:00
|
|
|
void cWolf::OnRightClicked(cPlayer & a_Player)
|
|
|
|
{
|
2017-07-30 13:53:21 -04:00
|
|
|
const cItem & EquippedItem = a_Player.GetEquippedItem();
|
|
|
|
const int EquippedItemType = EquippedItem.m_ItemType;
|
|
|
|
|
2013-11-10 15:55:32 -05:00
|
|
|
if (!IsTame() && !IsAngry())
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2014-08-03 16:03:48 -04:00
|
|
|
// If the player is holding a bone, try to tame the wolf:
|
2017-07-30 13:53:21 -04:00
|
|
|
if (EquippedItemType == E_ITEM_BONE)
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
|
|
|
if (!a_Player.IsGameModeCreative())
|
|
|
|
{
|
|
|
|
a_Player.GetInventory().RemoveOneEquippedItem();
|
|
|
|
}
|
|
|
|
|
2017-06-13 15:35:30 -04:00
|
|
|
if (GetRandomProvider().RandBool(0.125))
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2014-08-03 16:03:48 -04:00
|
|
|
// Taming succeeded
|
2013-10-08 14:20:49 -04:00
|
|
|
SetMaxHealth(20);
|
2013-11-10 09:16:43 -05:00
|
|
|
SetIsTame(true);
|
2014-08-03 16:03:48 -04:00
|
|
|
SetOwner(a_Player.GetName(), a_Player.GetUUID());
|
2014-04-12 08:16:48 -04:00
|
|
|
m_World->BroadcastEntityStatus(*this, esWolfTamed);
|
2018-07-24 17:30:49 -04:00
|
|
|
m_World->BroadcastParticleEffect("heart", static_cast<Vector3f>(GetPosition()), Vector3f{}, 0, 5);
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2014-08-03 16:03:48 -04:00
|
|
|
// Taming failed
|
2014-04-12 08:16:48 -04:00
|
|
|
m_World->BroadcastEntityStatus(*this, esWolfTaming);
|
2018-07-24 17:30:49 -04:00
|
|
|
m_World->BroadcastParticleEffect("smoke", static_cast<Vector3f>(GetPosition()), Vector3f{}, 0, 5);
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-11-10 09:16:43 -05:00
|
|
|
else if (IsTame())
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2014-08-03 16:03:48 -04:00
|
|
|
// Feed the wolf, restoring its health, or dye its collar:
|
2017-07-30 13:53:21 -04:00
|
|
|
switch (EquippedItemType)
|
2013-10-08 14:20:49 -04:00
|
|
|
{
|
2014-02-20 14:41:53 -05:00
|
|
|
case E_ITEM_RAW_BEEF:
|
|
|
|
case E_ITEM_STEAK:
|
|
|
|
case E_ITEM_RAW_PORKCHOP:
|
|
|
|
case E_ITEM_COOKED_PORKCHOP:
|
|
|
|
case E_ITEM_RAW_CHICKEN:
|
|
|
|
case E_ITEM_COOKED_CHICKEN:
|
|
|
|
case E_ITEM_ROTTEN_FLESH:
|
2013-11-10 14:12:30 -05:00
|
|
|
{
|
2014-02-20 14:41:53 -05:00
|
|
|
if (m_Health < m_MaxHealth)
|
2013-11-10 14:12:30 -05:00
|
|
|
{
|
2017-07-30 13:53:21 -04:00
|
|
|
Heal(ItemHandler(EquippedItemType)->GetFoodInfo(&EquippedItem).FoodLevel);
|
2014-02-20 14:41:53 -05:00
|
|
|
if (!a_Player.IsGameModeCreative())
|
|
|
|
{
|
|
|
|
a_Player.GetInventory().RemoveOneEquippedItem();
|
|
|
|
}
|
2013-11-10 14:12:30 -05:00
|
|
|
}
|
2014-02-20 14:41:53 -05:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case E_ITEM_DYE:
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
if (a_Player.GetUUID() == m_OwnerUUID) // Is the player the owner of the dog?
|
2014-02-20 14:41:53 -05:00
|
|
|
{
|
2017-07-30 13:53:21 -04:00
|
|
|
SetCollarColor(EquippedItem.m_ItemDamage);
|
2014-02-20 14:41:53 -05:00
|
|
|
if (!a_Player.IsGameModeCreative())
|
|
|
|
{
|
|
|
|
a_Player.GetInventory().RemoveOneEquippedItem();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2013-11-10 09:16:43 -05:00
|
|
|
}
|
2014-02-20 14:41:53 -05:00
|
|
|
default:
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2016-01-22 13:55:46 -05:00
|
|
|
if (a_Player.GetUUID() == m_OwnerUUID) // Is the player the owner of the dog?
|
2014-02-20 14:41:53 -05:00
|
|
|
{
|
|
|
|
SetIsSitting(!IsSitting());
|
|
|
|
}
|
2013-11-10 09:16:43 -05:00
|
|
|
}
|
2013-10-08 14:20:49 -04:00
|
|
|
}
|
|
|
|
}
|
2015-04-29 12:24:14 -04:00
|
|
|
|
2013-10-08 14:20:49 -04:00
|
|
|
m_World->BroadcastEntityMetadata(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-11-10 09:16:43 -05:00
|
|
|
|
2015-01-11 16:12:26 -05:00
|
|
|
void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
|
|
|
if (!IsAngry())
|
|
|
|
{
|
2013-11-10 09:51:32 -05:00
|
|
|
cMonster::Tick(a_Dt, a_Chunk);
|
2016-01-22 13:55:46 -05:00
|
|
|
if (m_NotificationCooldown > 0)
|
|
|
|
{
|
|
|
|
m_NotificationCooldown -= 1;
|
|
|
|
}
|
2013-11-10 15:55:32 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-11-10 09:16:43 -05:00
|
|
|
super::Tick(a_Dt, a_Chunk);
|
|
|
|
}
|
|
|
|
|
2016-09-03 07:31:27 -04:00
|
|
|
if (!IsTicking())
|
|
|
|
{
|
|
|
|
// The base class tick destroyed us
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-02-01 15:49:34 -05:00
|
|
|
if (GetTarget() == nullptr)
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2018-08-02 10:59:10 -04:00
|
|
|
m_World->DoWithNearestPlayer(GetPosition(), static_cast<float>(m_SightDistance), [&](cPlayer & a_Player) -> bool
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2018-08-02 10:59:10 -04:00
|
|
|
switch (a_Player.GetEquippedItem().m_ItemType)
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2016-01-11 14:34:41 -05:00
|
|
|
case E_ITEM_BONE:
|
|
|
|
case E_ITEM_RAW_BEEF:
|
|
|
|
case E_ITEM_STEAK:
|
|
|
|
case E_ITEM_RAW_CHICKEN:
|
|
|
|
case E_ITEM_COOKED_CHICKEN:
|
|
|
|
case E_ITEM_ROTTEN_FLESH:
|
|
|
|
case E_ITEM_RAW_PORKCHOP:
|
|
|
|
case E_ITEM_COOKED_PORKCHOP:
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2016-01-11 14:34:41 -05:00
|
|
|
if (!IsBegging())
|
|
|
|
{
|
|
|
|
SetIsBegging(true);
|
|
|
|
m_World->BroadcastEntityMetadata(*this);
|
|
|
|
}
|
2014-02-16 08:47:55 -05:00
|
|
|
|
2018-08-02 10:59:10 -04:00
|
|
|
m_FinalDestination = a_Player.GetPosition(); // So that we will look at a player holding food
|
2014-02-16 12:08:49 -05:00
|
|
|
|
2016-01-11 14:34:41 -05:00
|
|
|
// Don't move to the player if the wolf is sitting.
|
|
|
|
if (!IsSitting())
|
|
|
|
{
|
2018-08-02 10:59:10 -04:00
|
|
|
MoveToPosition(a_Player.GetPosition());
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
2014-01-26 07:07:21 -05:00
|
|
|
{
|
2016-01-11 14:34:41 -05:00
|
|
|
if (IsBegging())
|
|
|
|
{
|
|
|
|
SetIsBegging(false);
|
|
|
|
m_World->BroadcastEntityMetadata(*this);
|
|
|
|
}
|
2014-01-26 07:07:21 -05:00
|
|
|
}
|
2013-11-10 09:16:43 -05:00
|
|
|
}
|
2018-08-02 10:59:10 -04:00
|
|
|
|
|
|
|
return true;
|
|
|
|
});
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (IsSitting())
|
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
SetTarget(nullptr);
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
MoveToPosition(GetTarget()->GetPosition());
|
2016-01-11 14:34:41 -05:00
|
|
|
if (TargetIsInRange())
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2016-01-11 14:34:41 -05:00
|
|
|
Attack(a_Dt);
|
|
|
|
}
|
2013-11-10 09:16:43 -05:00
|
|
|
}
|
|
|
|
}
|
2013-11-12 10:39:59 -05:00
|
|
|
|
2014-02-16 08:47:55 -05:00
|
|
|
if (IsTame() && !IsSitting())
|
2013-11-12 10:39:59 -05:00
|
|
|
{
|
|
|
|
TickFollowPlayer();
|
|
|
|
}
|
2014-02-16 12:08:49 -05:00
|
|
|
else if (IsSitting())
|
|
|
|
{
|
2015-04-29 12:24:14 -04:00
|
|
|
StopMovingToPosition();
|
2014-02-16 12:08:49 -05:00
|
|
|
}
|
2013-11-12 10:39:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cWolf::TickFollowPlayer()
|
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
Vector3d OwnerPos;
|
|
|
|
bool OwnerFlying;
|
|
|
|
auto Callback = [&](cPlayer & a_Player)
|
2013-11-10 12:03:19 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
OwnerPos = a_Player.GetPosition();
|
|
|
|
OwnerFlying = a_Player.IsFlying();
|
|
|
|
return true;
|
|
|
|
};
|
2014-02-16 08:47:55 -05:00
|
|
|
|
2016-01-22 13:55:46 -05:00
|
|
|
if (m_World->DoWithPlayerByUUID(m_OwnerUUID, Callback))
|
2013-11-10 09:16:43 -05:00
|
|
|
{
|
2014-01-26 07:07:21 -05:00
|
|
|
// The player is present in the world, follow him:
|
2017-09-11 17:20:49 -04:00
|
|
|
double Distance = (OwnerPos - GetPosition()).Length();
|
2015-05-28 01:31:17 -04:00
|
|
|
if (Distance > 20)
|
2013-11-12 10:39:59 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
if (!OwnerFlying)
|
2016-02-18 16:07:17 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
OwnerPos.y = FindFirstNonAirBlockPosition(OwnerPos.x, OwnerPos.z);
|
|
|
|
TeleportToCoords(OwnerPos.x, OwnerPos.y, OwnerPos.z);
|
2016-02-18 16:07:17 -05:00
|
|
|
SetTarget(nullptr);
|
|
|
|
}
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
|
|
|
if (Distance < 2)
|
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
if (GetTarget() == nullptr)
|
2016-01-11 14:34:41 -05:00
|
|
|
{
|
|
|
|
StopMovingToPosition();
|
|
|
|
}
|
2013-11-12 10:39:59 -05:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-02-01 15:49:34 -05:00
|
|
|
if (GetTarget() == nullptr)
|
2016-01-11 14:34:41 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
if (!OwnerFlying)
|
2016-02-18 16:07:17 -05:00
|
|
|
{
|
2017-09-11 17:20:49 -04:00
|
|
|
MoveToPosition(OwnerPos);
|
2016-02-18 16:07:17 -05:00
|
|
|
}
|
2016-01-11 14:34:41 -05:00
|
|
|
}
|
2013-11-10 09:16:43 -05:00
|
|
|
}
|
|
|
|
}
|
2013-11-10 15:55:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-07-26 17:24:36 -04:00
|
|
|
|
|
|
|
|
2016-01-11 14:34:41 -05:00
|
|
|
void cWolf::InStateIdle(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
|
|
|
{
|
|
|
|
if (!IsTame())
|
|
|
|
{
|
|
|
|
cMonster::InStateIdle(a_Dt, a_Chunk);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-10 15:55:32 -05:00
|
|
|
|