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

-21
View File
@@ -375,27 +375,6 @@ int DispenserTile::dispenseItem(shared_ptr<DispenserTileEntity> trap, Level *lev
}
}
break;
case Item::expBottle_Id:
{
int currentProjectiles = level->countInstanceOf(eTYPE_PROJECTILE,false);
if(currentProjectiles < Level::MAX_DISPENSABLE_PROJECTILES) // 4J - added limit
{
shared_ptr<ThrownExpBottle> expBottle = shared_ptr<ThrownExpBottle>( new ThrownExpBottle(level, xp, yp, zp) );
expBottle->shoot(xd, .1f, zd, power * 1.25f, accuracy * .5f);
level->addEntity(expBottle);
level->levelEvent(LevelEvent::SOUND_LAUNCH, x, y, z, 0);
return REMOVE_ITEM;
}
else
{
// some negative sound effect?
level->levelEvent(LevelEvent::SOUND_CLICK_FAIL, x, y, z, 0);
// not sending a message here, since we will probably get flooded with them when people have automatic dispensers for spawn eggs
return LEAVE_ITEM;
}
}
break;
case Item::fireball_Id: // TU9
{
int currentFireballs = level->countInstanceOf(eTYPE_SMALL_FIREBALL,true);