feat: remove experience

This commit is contained in:
str1k3r committed 2026-09-26 17:17:51 -04:00
1 parent bdfe5350cd
commit 41d166afed
83 files changed
+47 -1501

No files matched your search

-27
View File
@@ -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)