diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 18:36:24 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 18:36:24 +0200 |
commit | 2523af8f9a6f712dc6cc4007437349557b0bdfe1 (patch) | |
tree | dcd08777ca9672c331ff6b3503a899e59e2584fc /src/Mobs/Spider.cpp | |
parent | Reimplemented creepers using Behaviors (diff) | |
download | cuberite-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/Spider.cpp')
-rw-r--r-- | src/Mobs/Spider.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Mobs/Spider.cpp b/src/Mobs/Spider.cpp index a656c9c30..15c8d5769 100644 --- a/src/Mobs/Spider.cpp +++ b/src/Mobs/Spider.cpp @@ -7,11 +7,19 @@ #include "../Entities/Player.h" #include "../Chunk.h" +bool AggressiveAtNightFunction(cBehaviorAggressive & a_Behavior, cMonster & a_Monster) +{ + +} cSpider::cSpider(void) : - super(mtSpider, "entity.spider.hurt", "entity.spider.death", 1.4, 0.9) + super(mtSpider, "entity.spider.hurt", "entity.spider.death", 1.4, 0.9) , + m_BehaviorAggressive(AggressiveAtNightFunction) { m_EMPersonality = AGGRESSIVE; + m_BehaviorAttackerMelee.AttachToMonster(*this); + m_BehaviorWanderer.AttachToMonster(*this); + m_BehaviorAggressive.AttachToMonster(*this); GetMonsterConfig("Spider"); } |