summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
diff options
context:
space:
mode:
authorTheJumper <maximilian.springer@web.de>2014-02-22 22:57:40 +0100
committerTheJumper <maximilian.springer@web.de>2014-02-22 22:57:40 +0100
commit90574d083da08ccd6699bdad403601e282d73b89 (patch)
treec067f5041bab30081d31ae9b7b9858c00709ba9b /src/Mobs/Monster.h
parentFixed Looting segment fault - a_Killer can be NULL (diff)
downloadcuberite-90574d083da08ccd6699bdad403601e282d73b89.tar
cuberite-90574d083da08ccd6699bdad403601e282d73b89.tar.gz
cuberite-90574d083da08ccd6699bdad403601e282d73b89.tar.bz2
cuberite-90574d083da08ccd6699bdad403601e282d73b89.tar.lz
cuberite-90574d083da08ccd6699bdad403601e282d73b89.tar.xz
cuberite-90574d083da08ccd6699bdad403601e282d73b89.tar.zst
cuberite-90574d083da08ccd6699bdad403601e282d73b89.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h
index 670e899c5..6f7352b52 100644
--- a/src/Mobs/Monster.h
+++ b/src/Mobs/Monster.h
@@ -5,6 +5,7 @@
#include "../Defines.h"
#include "../BlockID.h"
#include "../Item.h"
+#include "../Enchantments.h"
@@ -225,11 +226,16 @@ protected:
/** Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops*/
void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0);
- /** Adds a item a_Item with the chance of a_Chance to itemdrops a_Drops*/
+
+ /** Adds a item a_Item with the chance of a_Chance (in percent) to itemdrops a_Drops*/
void AddRandomUncommonDropItem(cItems & a_Drops, float a_Chance, short a_Item, short a_ItemHealth = 0);
+
/** Adds one rare item out of the list of rare items a_Items modified by the looting level a_LootingLevel(I-III or custom) to the itemdrop a_Drops*/
void AddRandomRareDropItem(cItems & a_Drops, cItems & a_Items, short a_LootingLevel);
+ /** Adds armor that is equipped with the chance of 8,5% (Looting 3: 11,5%) to the drop*/
+ void AddRandomArmorDropItem(cItems & a_Drops, short a_LootingLevel);
+
} ; // tolua_export