summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-24 22:12:28 +0200
committerMattes D <github@xoft.cz>2014-04-24 22:12:28 +0200
commit85e0b0eae9a6b41fd349ba16534bcc985c9abdfa (patch)
tree287edd174804ca96887f7183ca14a31af5eeb92b /src/Mobs/MagmaCube.cpp
parentChanged cByteBuffer constructor to take a size_t instead of int. (diff)
parentFixed class capitalization for the cave spider. (diff)
downloadcuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar.gz
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar.bz2
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar.lz
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar.xz
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.tar.zst
cuberite-85e0b0eae9a6b41fd349ba16534bcc985c9abdfa.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);
+ }
+}
+
+
+
+