summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.cpp
diff options
context:
space:
mode:
authorr.ramazanov <r.ramazanov@servplus.ru>2014-04-25 08:06:12 +0200
committerr.ramazanov <r.ramazanov@servplus.ru>2014-04-25 08:06:12 +0200
commit1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3 (patch)
tree980565110fab2977471b7975a63ac2018bfe1c91 /src/Mobs/MagmaCube.cpp
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
parentMerge pull request #929 from archshift/master (diff)
downloadcuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar.gz
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar.bz2
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar.lz
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar.xz
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.tar.zst
cuberite-1c26eb715b7f5eb9854c7c17d1100f0a61a0c7a3.zip
Diffstat (limited to 'src/Mobs/MagmaCube.cpp')
-rw-r--r--src/Mobs/MagmaCube.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp
new file mode 100644
index 000000000..3e9abc108
--- /dev/null
+++ b/src/Mobs/MagmaCube.cpp
@@ -0,0 +1,30 @@
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
+#include "MagmaCube.h"
+
+
+
+
+
+cMagmaCube::cMagmaCube(int a_Size) :
+ super("MagmaCube", mtMagmaCube, "mob.MagmaCube.big", "mob.MagmaCube.big", 0.6 * a_Size, 0.6 * a_Size),
+ m_Size(a_Size)
+{
+}
+
+
+
+
+
+void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
+{
+ UNUSED(a_Killer);
+ if (GetSize() > 1)
+ {
+ AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM);
+ }
+}
+
+
+
+