summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-23 23:56:39 +0200
committerarchshift <admin@archshift.com>2014-04-24 00:22:49 +0200
commitc2f2ef7cb4e4232cae18aaddcc6c86253e6c859b (patch)
tree94ce183469b261a995faaf64dfa7623571fb146a /src/Mobs/MagmaCube.cpp
parentUpdated docs for StringToEnchantmentID. (diff)
downloadcuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.gz
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.bz2
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.lz
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.xz
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.tar.zst
cuberite-c2f2ef7cb4e4232cae18aaddcc6c86253e6c859b.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..064152072
--- /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);
+ }
+}
+
+
+
+