summaryrefslogtreecommitdiffstats
path: root/src/MonsterConfig.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:08:57 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:08:57 +0200
commit60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf (patch)
treec79d479defdcaee61cf9bc59bbc98047eb3f9b5c /src/MonsterConfig.cpp
parentAttacker updates (diff)
downloadcuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.gz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.bz2
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.lz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.xz
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.tar.zst
cuberite-60e24ca8b41bcfa92ab579b178d2c7adf51c3bcf.zip
Diffstat (limited to 'src/MonsterConfig.cpp')
-rw-r--r--src/MonsterConfig.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/MonsterConfig.cpp b/src/MonsterConfig.cpp
index 78761aa2d..fdd15e01e 100644
--- a/src/MonsterConfig.cpp
+++ b/src/MonsterConfig.cpp
@@ -91,14 +91,13 @@ void cMonsterConfig::AssignAttributes(cMonster * a_Monster, const AString & a_Na
{
if (itr->m_Name.compare(a_Name) == 0)
{
- cBehaviorAttacker * Chaser = a_Monster->GetBehaviorAttacker();
+ cBehaviorAttacker * Attacker = a_Monster->GetBehaviorAttacker();
- // mobTodo chaser is kind of "attacker", not really chaser?
- if (Chaser != nullptr)
+ if (Attacker != nullptr)
{
- Chaser->SetAttackDamage (itr->m_AttackDamage);
- Chaser->SetAttackRange (itr->m_AttackRange);
- Chaser->SetAttackRate (static_cast<float>(itr->m_AttackRate));
+ Attacker->SetAttackDamage (itr->m_AttackDamage);
+ Attacker->SetAttackRange (itr->m_AttackRange);
+ Attacker->SetAttackRate (static_cast<float>(itr->m_AttackRate));
}
a_Monster->SetMaxHealth (itr->m_MaxHealth);