the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 17 lines 478 B view raw
1#pragma once 2#include "Tile.h" 3 4class Random; 5 6class OreTile : public Tile 7{ 8public: 9 10 OreTile(int id); 11 virtual int getResource(int data, Random *random, int playerBonusLevel); 12 virtual int getResourceCount(Random *random); 13 virtual int getResourceCountForLootBonus(int bonusLevel, Random *random); 14 virtual void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel); 15protected: 16 virtual int getSpawnResourcesAuxValue(int data); 17};