feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -40,33 +40,6 @@ int OreTile::getResourceCountForLootBonus(int bonusLevel, Random *random)
|
||||
void OreTile::spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonusLevel)
|
||||
{
|
||||
Tile::spawnResources(level, x, y, z, data, odds, playerBonusLevel);
|
||||
|
||||
// also spawn experience if the block is broken
|
||||
if (getResource(data, level->random, playerBonusLevel) != id)
|
||||
{
|
||||
int magicCount = 0;
|
||||
if (id == Tile::coalOre_Id)
|
||||
{
|
||||
magicCount = Mth::nextInt(level->random, 0, 2);
|
||||
}
|
||||
else if (id == Tile::diamondOre_Id)
|
||||
{
|
||||
magicCount = Mth::nextInt(level->random, 3, 7);
|
||||
}
|
||||
else if (id == Tile::emeraldOre_Id)
|
||||
{
|
||||
magicCount = Mth::nextInt(level->random, 3, 7);
|
||||
}
|
||||
else if (id == Tile::lapisOre_Id)
|
||||
{
|
||||
magicCount = Mth::nextInt(level->random, 2, 5);
|
||||
}
|
||||
else if (id == Tile::netherQuartz_Id)
|
||||
{
|
||||
magicCount = Mth::nextInt(level->random, 2, 5);
|
||||
}
|
||||
popExperience(level, x, y, z, magicCount);
|
||||
}
|
||||
}
|
||||
|
||||
int OreTile::getSpawnResourcesAuxValue(int data)
|
||||
|
||||
Reference in new issue
Block a user