mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
19 lines
430 B
C++
19 lines
430 B
C++
#include "stdafx.h"
|
|
#include "GravelTile.h"
|
|
#include "net.minecraft.world.item.h"
|
|
|
|
GravelTile::GravelTile(int type) : HeavyTile(type)
|
|
{
|
|
}
|
|
|
|
int GravelTile::getResource(int data, Random *random, int playerBonusLevel)
|
|
{
|
|
if (playerBonusLevel > 3) playerBonusLevel = 3;
|
|
if (random->nextInt(10 - playerBonusLevel * 3) == 0) return Item::flint->id;
|
|
return id;
|
|
}
|
|
unsigned int GravelTile::getDustColor(int data)
|
|
{
|
|
return 0xff807c7b;
|
|
}
|