diff options
author | Rorkh <rorkh@internet.ru> | 2021-09-18 11:10:31 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-10-02 22:18:18 +0200 |
commit | 4c5d9d38f45ae7c18a3e9799152305757a8a1d2a (patch) | |
tree | 6c369d0901427be8ab92bef9cd229e60a21486a0 /src/Mobs/MagmaCube.cpp | |
parent | Snipe skeleton achievment (diff) | |
download | cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.gz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.bz2 cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.lz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.xz cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.zst cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.zip |
Diffstat (limited to 'src/Mobs/MagmaCube.cpp')
-rw-r--r-- | src/Mobs/MagmaCube.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp index e84577433..45dbbc519 100644 --- a/src/Mobs/MagmaCube.cpp +++ b/src/Mobs/MagmaCube.cpp @@ -24,24 +24,24 @@ cMagmaCube::cMagmaCube(int a_Size) : -void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer) +AString cMagmaCube::GetSizeName(int a_Size) { - UNUSED(a_Killer); - if (GetSize() > 1) + if (a_Size == 1) { - AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM); + return "small_"; } + return ""; } -AString cMagmaCube::GetSizeName(int a_Size) +void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer) { - if (a_Size == 1) + UNUSED(a_Killer); + if (GetSize() > 1) { - return "small_"; + AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM); } - return ""; } |