diff options
Diffstat (limited to 'source/blocks/BlockRedstoneOre.h')
-rw-r--r-- | source/blocks/BlockRedstoneOre.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/blocks/BlockRedstoneOre.h b/source/blocks/BlockRedstoneOre.h new file mode 100644 index 000000000..5658d76ad --- /dev/null +++ b/source/blocks/BlockRedstoneOre.h @@ -0,0 +1,26 @@ +#pragma once
+#include "Block.h"
+#include "../MersenneTwister.h"
+#include "../cWorld.h"
+
+class cBlockRedstoneOreHandler : public cBlockHandler
+{
+public:
+ cBlockRedstoneOreHandler(BLOCKTYPE a_BlockID)
+ : cBlockHandler(a_BlockID)
+ {
+ }
+
+ virtual int GetDropID()
+ {
+ return E_ITEM_REDSTONE_DUST;
+ }
+
+ virtual char GetDropCount()
+ {
+ MTRand r1;
+ return 4 + r1.randInt(1);
+ }
+
+
+};
\ No newline at end of file |