diff options
author | mathiascode <mail@mathias.is> | 2020-03-30 19:09:06 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2020-04-02 09:30:50 +0200 |
commit | d5c58c6b17c90f3e139751890339d0b390596b8a (patch) | |
tree | ef752004a3d1defdc7e7d558492d200ad2517017 /src/MonsterConfig.cpp | |
parent | Fix explosion knockback issues and tweak knockback strength (#4590) (diff) | |
download | cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar.gz cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar.bz2 cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar.lz cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar.xz cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.tar.zst cuberite-d5c58c6b17c90f3e139751890339d0b390596b8a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MonsterConfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MonsterConfig.cpp b/src/MonsterConfig.cpp index 1cb91dfec..271a72a7f 100644 --- a/src/MonsterConfig.cpp +++ b/src/MonsterConfig.cpp @@ -14,7 +14,7 @@ struct cMonsterConfig::sAttributesStruct AString m_Name; int m_SightDistance; int m_AttackDamage; - int m_AttackRange; + double m_AttackRange; double m_AttackRate; double m_MaxHealth; bool m_IsFireproof; @@ -71,7 +71,7 @@ void cMonsterConfig::Initialize() AString Name = MonstersIniFile.GetKeyName(i); Attributes.m_Name = Name; Attributes.m_AttackDamage = MonstersIniFile.GetValueI(Name, "AttackDamage", 0); - Attributes.m_AttackRange = MonstersIniFile.GetValueI(Name, "AttackRange", 0); + Attributes.m_AttackRange = MonstersIniFile.GetValueF(Name, "AttackRange", 0); Attributes.m_SightDistance = MonstersIniFile.GetValueI(Name, "SightDistance", 0); Attributes.m_AttackRate = MonstersIniFile.GetValueF(Name, "AttackRate", 0); Attributes.m_MaxHealth = MonstersIniFile.GetValueF(Name, "MaxHealth", 1); |