feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -153,8 +153,6 @@ void Animal::breedWith(shared_ptr<Animal> target)
|
||||
level->addParticle(eParticleType_heart, x + random->nextFloat() * bbWidth * 2 - bbWidth, y + .5f + random->nextFloat() * bbHeight, z + random->nextFloat() * bbWidth * 2 - bbWidth, xa, ya, za);
|
||||
}
|
||||
level->addEntity(offspring);
|
||||
|
||||
level->addEntity( shared_ptr<ExperienceOrb>( new ExperienceOrb(level, x, y, z, random->nextInt(4) + 1) ) );
|
||||
}
|
||||
|
||||
setDespawnProtected();
|
||||
@@ -283,11 +281,6 @@ bool Animal::removeWhenFarAway()
|
||||
return !isDespawnProtected(); // 4J changed - was false
|
||||
}
|
||||
|
||||
int Animal::getExperienceReward(shared_ptr<Player> killedBy)
|
||||
{
|
||||
return 1 + level->random->nextInt(3);
|
||||
}
|
||||
|
||||
bool Animal::isFood(shared_ptr<ItemInstance> itemInstance)
|
||||
{
|
||||
return itemInstance->id == Item::wheat_Id;
|
||||
|
||||
Reference in new issue
Block a user