summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Silverfish.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 18:36:24 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 18:36:24 +0200
commit2523af8f9a6f712dc6cc4007437349557b0bdfe1 (patch)
treedcd08777ca9672c331ff6b3503a899e59e2584fc /src/Mobs/Silverfish.h
parentReimplemented creepers using Behaviors (diff)
downloadcuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.gz
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.bz2
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.lz
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.xz
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.tar.zst
cuberite-2523af8f9a6f712dc6cc4007437349557b0bdfe1.zip
Diffstat (limited to 'src/Mobs/Silverfish.h')
-rw-r--r--src/Mobs/Silverfish.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Mobs/Silverfish.h b/src/Mobs/Silverfish.h
index c4dd9f912..72b772a2c 100644
--- a/src/Mobs/Silverfish.h
+++ b/src/Mobs/Silverfish.h
@@ -2,7 +2,7 @@
#pragma once
#include "Monster.h"
-
+#include "Behaviors/BehaviorDoNothing.h"
@@ -16,10 +16,14 @@ public:
cSilverfish(void) :
super(mtSilverfish, "entity.silverfish.hurt", "entity.silverfish.death", 0.3, 0.7)
{
+ m_BehaviorDoNothing.AttachToMonster(*this);
GetMonsterConfig("Silverfish");
}
CLASS_PROTODEF(cSilverfish)
+
+private:
+ cBehaviorDoNothing m_BehaviorDoNothing;
} ;