feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user