diff options
author | TheJumper <maximilian.springer@web.de> | 2014-02-22 01:42:49 +0100 |
---|---|---|
committer | TheJumper <maximilian.springer@web.de> | 2014-02-22 01:42:49 +0100 |
commit | f45d7d9769782b5e9a11348c4ef261a2da51091a (patch) | |
tree | 93c64eb7520c9ae1e8e3e3ab25b8c82ea58076d0 /src/Mobs | |
parent | Monster.cpp: Fixed Formatting in AddRandomUncommonDropItem (diff) | |
download | cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar.gz cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar.bz2 cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar.lz cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar.xz cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.tar.zst cuberite-f45d7d9769782b5e9a11348c4ef261a2da51091a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 909504213..670e899c5 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -223,8 +223,11 @@ protected: void HandleDaylightBurning(cChunk & a_Chunk); bool m_BurnsInDaylight; + /** 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*/ 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); |