summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Skeleton.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-18 09:06:59 +0200
committerMattes D <github@xoft.cz>2014-07-18 09:06:59 +0200
commit35d0a0009e40c2154fe97719e04608a4323dea9f (patch)
tree50047a220ac10658d9cd6d2284282f83551d2731 /src/Mobs/Skeleton.cpp
parentMoved ChatColor.h out of defines where it was not needed (diff)
parentSkeletons should spawn with a bow in the hand. (diff)
downloadcuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar.gz
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar.bz2
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar.lz
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar.xz
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.tar.zst
cuberite-35d0a0009e40c2154fe97719e04608a4323dea9f.zip
Diffstat (limited to 'src/Mobs/Skeleton.cpp')
-rw-r--r--src/Mobs/Skeleton.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Mobs/Skeleton.cpp b/src/Mobs/Skeleton.cpp
index 0641a3d57..2f57bedeb 100644
--- a/src/Mobs/Skeleton.cpp
+++ b/src/Mobs/Skeleton.cpp
@@ -4,6 +4,7 @@
#include "Skeleton.h"
#include "../World.h"
#include "../Entities/ArrowEntity.h"
+#include "ClientHandle.h"
@@ -90,3 +91,17 @@ void cSkeleton::Attack(float a_Dt)
m_AttackInterval = 0.0;
}
}
+
+
+
+
+
+void cSkeleton::SpawnOn(cClientHandle & a_ClientHandle)
+{
+ super::SpawnOn(a_ClientHandle);
+ a_ClientHandle.SendEntityEquipment(*this, 0, cItem(E_ITEM_BOW));
+}
+
+
+
+