feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -444,21 +444,6 @@ void Mob::tickDeath()
|
||||
deathTime++;
|
||||
if (deathTime == 20)
|
||||
{
|
||||
// 4J Stu - Added level->isClientSide check from 1.2 to fix XP orbs being created client side
|
||||
if(!level->isClientSide && (lastHurtByPlayerTime > 0 || isAlwaysExperienceDropper()) )
|
||||
{
|
||||
if (!isBaby())
|
||||
{
|
||||
int xpCount = this->getExperienceReward(lastHurtByPlayer);
|
||||
while (xpCount > 0)
|
||||
{
|
||||
int newCount = ExperienceOrb::getExperienceValue(xpCount);
|
||||
xpCount -= newCount;
|
||||
level->addEntity(shared_ptr<ExperienceOrb>( new ExperienceOrb(level, x, y, z, newCount) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
remove();
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
@@ -475,16 +460,6 @@ int Mob::decreaseAirSupply(int currentSupply)
|
||||
return currentSupply - 1;
|
||||
}
|
||||
|
||||
int Mob::getExperienceReward(shared_ptr<Player> killedBy)
|
||||
{
|
||||
return xpReward;
|
||||
}
|
||||
|
||||
bool Mob::isAlwaysExperienceDropper()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void Mob::spawnAnim()
|
||||
{
|
||||
for (int i = 0; i < 20; i++)
|
||||
|
||||
Reference in new issue
Block a user