summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 19:43:47 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 19:43:47 +0200
commited992190cf72abd582dcd20ee899fdb42d1ea74c (patch)
tree124229f08ee7e4a9b79ccc5a322bdafde1b4d987 /src/Mobs
parentd (diff)
downloadcuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar.gz
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar.bz2
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar.lz
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar.xz
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.tar.zst
cuberite-ed992190cf72abd582dcd20ee899fdb42d1ea74c.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Blaze.cpp9
-rw-r--r--src/Mobs/Skeleton.cpp2
2 files changed, 4 insertions, 7 deletions
diff --git a/src/Mobs/Blaze.cpp b/src/Mobs/Blaze.cpp
index 34c784737..444c8ef39 100644
--- a/src/Mobs/Blaze.cpp
+++ b/src/Mobs/Blaze.cpp
@@ -12,22 +12,19 @@ void FireballShootingFunction(cBehaviorAttackerRanged & a_Behavior,
UNUSED(a_Behavior);
// Setting this higher gives us more wiggle room for attackrate
- Vector3d Speed = a_Attacker.GetLookVector() * 4;
+ Vector3d Speed = a_Attacker.GetLookVector() * 20;
Speed.y = Speed.y + 3;
auto FireCharge = cpp14::make_unique<cFireChargeEntity>(&a_Attacker,
- a_Attacked.GetPosX(), a_Attacked.GetPosY() + 1, a_Attacked.GetPosZ(), Speed);
+ a_Attacker.GetPosX(), a_Attacker.GetPosY() + 1, a_Attacker.GetPosZ(), Speed);
auto FireChargePtr = FireCharge.get();
FireChargePtr->Initialize(std::move(FireCharge), *(a_Attacker.GetWorld()));
}
-
-
-
cBlaze::cBlaze(void) :
super(mtBlaze, "entity.blaze.hurt", "entity.blaze.death", 0.6, 1.8),
- m_BehaviorAttackerRanged(FireballShootingFunction, 3, 5)
+ m_BehaviorAttackerRanged(FireballShootingFunction, 3, 15)
{
m_EMPersonality = AGGRESSIVE;
m_BehaviorAttackerRanged.AttachToMonster(*this);
diff --git a/src/Mobs/Skeleton.cpp b/src/Mobs/Skeleton.cpp
index 4567ce1d1..3e74ebeeb 100644
--- a/src/Mobs/Skeleton.cpp
+++ b/src/Mobs/Skeleton.cpp
@@ -16,7 +16,7 @@ void ArrowShootingFunction(cBehaviorAttackerRanged & a_Behavior,
Speed.y += Random.RandInt(-1, 1);
auto Arrow = cpp14::make_unique<cArrowEntity>(&a_Attacker,
- a_Attacked.GetPosX(), a_Attacked.GetPosY() + 1, a_Attacked.GetPosZ(), Speed);
+ a_Attacker.GetPosX(), a_Attacker.GetPosY() + 1, a_Attacker.GetPosZ(), Speed);
auto ArrowPtr = Arrow.get();
ArrowPtr->Initialize(std::move(Arrow), *(a_Attacker.GetWorld()));
}