summaryrefslogtreecommitdiffstats
path: root/src/Mobs/CaveSpider.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-12 01:21:47 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:21 +0200
commit71b4c4949087860ab9962d6545a0ad2eb9c0ee5a (patch)
tree95de954af7f5b4a921c36172f2fd550cfc0545b6 /src/Mobs/CaveSpider.cpp
parentAdded wither damage type, wither entity effect. (diff)
downloadcuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar.gz
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar.bz2
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar.lz
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar.xz
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.tar.zst
cuberite-71b4c4949087860ab9962d6545a0ad2eb9c0ee5a.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/CaveSpider.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Mobs/CaveSpider.cpp b/src/Mobs/CaveSpider.cpp
index 1157b81f9..fe0f2ac73 100644
--- a/src/Mobs/CaveSpider.cpp
+++ b/src/Mobs/CaveSpider.cpp
@@ -27,6 +27,21 @@ void cCaveSpider::Tick(float a_Dt, cChunk & a_Chunk)
+void cCaveSpider::Attack(float a_Dt)
+{
+ super::Attack(a_Dt);
+
+ if (m_Target->IsPawn())
+ {
+ // TODO: Easy = no poison, Medium = 7 seconds, Hard = 15 seconds
+ ((cPawn *) m_Target)->AddEntityEffect(cEntityEffect::effPoison, cEntityEffect(140, 0, this));
+ }
+}
+
+
+
+
+
void cCaveSpider::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
int LootingLevel = 0;