diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2017-02-15 06:05:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-15 06:05:24 +0100 |
commit | dae2adde6563bec4b614230992cae6b1ca965b4f (patch) | |
tree | 34149ac0340cc394019eb430247d03950b485555 /src/Mobs/Slime.cpp | |
parent | Added some blocks and items (#3503) (diff) | |
download | cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.gz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.bz2 cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.lz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.xz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.zst cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.zip |
Diffstat (limited to 'src/Mobs/Slime.cpp')
-rw-r--r-- | src/Mobs/Slime.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Mobs/Slime.cpp b/src/Mobs/Slime.cpp index 316f68523..dca5c5887 100644 --- a/src/Mobs/Slime.cpp +++ b/src/Mobs/Slime.cpp @@ -12,8 +12,8 @@ cSlime::cSlime(int a_Size) : super("Slime", mtSlime, - Printf("mob.slime.%s", GetSizeName(a_Size).c_str()), - Printf("mob.slime.%s", GetSizeName(a_Size).c_str()), + Printf("entity.%sslime.hurt", GetSizeName(a_Size).c_str()), + Printf("entity.%sslime.death", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size ), @@ -93,14 +93,11 @@ void cSlime::KilledBy(TakeDamageInfo & a_TDI) AString cSlime::GetSizeName(int a_Size) { - if (a_Size > 1) + if (a_Size == 1) { - return "big"; - } - else - { - return "small"; + return "small_"; } + return ""; } |