summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
committerMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
commit92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca (patch)
treeb1207b58343d2626043ba0946ed13be155c2e380 /src/Mobs/MagmaCube.cpp
parentFixed remaing pragmas (diff)
parentGetSizeName of cSlime and cMagmaCube is now static (diff)
downloadcuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.gz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.bz2
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.lz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.xz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.zst
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.zip
Diffstat (limited to 'src/Mobs/MagmaCube.cpp')
-rw-r--r--src/Mobs/MagmaCube.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp
index 3e9abc108..c5dd0def0 100644
--- a/src/Mobs/MagmaCube.cpp
+++ b/src/Mobs/MagmaCube.cpp
@@ -7,7 +7,7 @@
cMagmaCube::cMagmaCube(int a_Size) :
- super("MagmaCube", mtMagmaCube, "mob.MagmaCube.big", "mob.MagmaCube.big", 0.6 * a_Size, 0.6 * a_Size),
+ super("MagmaCube", mtMagmaCube, Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size),
m_Size(a_Size)
{
}
@@ -27,4 +27,14 @@ void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
-
+AString cMagmaCube::GetSizeName(int a_Size)
+{
+ if (a_Size > 1)
+ {
+ return "big";
+ }
+ else
+ {
+ return "small";
+ }
+}