Implement fortune for ores, glowstone and sea lanterns (#4897)
* Implemented fortune for ores, glowstone and sea lanterns (but nothing organic or flint). * Cleanup printf * Stopped playing golf, gave the Camels a FirstHump and moved the FortuneDropMult comment. Thanks for the review :). * Got rid of FortuneDropMult and replaced with Peter's massive optimization/simplification. * Fixed default lapis max droprate (8 -> 9). * Clamp max drops for non-redstone ores to 10. * Comment justifying the clamp.
This commit is contained in:
@@ -230,6 +230,10 @@ public:
|
||||
Helper used in many ConvertToPickups() implementations. */
|
||||
static bool ToolHasSilkTouch(const cItem * a_Tool);
|
||||
|
||||
/** Returns the fortune level of a tool, if it is a valid tool.
|
||||
Can be used in ConvertToPickups() implementations. */
|
||||
static unsigned int ToolFortuneLevel(const cItem * a_Tool);
|
||||
|
||||
// Gets the blockhandler for the given block type.
|
||||
static const cBlockHandler & For(BLOCKTYPE a_BlockType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user