diff options
author | Mattes D <github@xoft.cz> | 2014-04-24 22:12:28 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-04-24 22:12:28 +0200 |
commit | 85e0b0eae9a6b41fd349ba16534bcc985c9abdfa (patch) | |
tree | 287edd174804ca96887f7183ca14a31af5eeb92b /src/Mobs/MagmaCube.cpp | |
parent | Changed cByteBuffer constructor to take a size_t instead of int. (diff) | |
parent | Fixed class capitalization for the cave spider. (diff) | |
download | cuberite-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.cpp | 30 |
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); + } +} + + + + |