1
0

Increase speed of splash potion and expbottle (#4513)

This commit is contained in:
Mat 2020-03-22 17:44:24 +02:00 committed by GitHub
parent 0b0d6b23d2
commit 076749bd36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,10 @@ public:
}
Vector3d Pos = a_Player->GetThrowStartPos();
Vector3d Speed = a_Player->GetLookVector() * 7;
Vector3d Speed = a_Player->GetLookVector() * 14;
// Play sound
a_World->BroadcastSoundEffect("entity.arrow.shoot", a_Player->GetPosition() - Vector3d(0, a_Player->GetHeight(), 0), 0.5f, 0.4f / GetRandomProvider().RandReal(0.8f, 1.2f));
if (a_World->CreateProjectile(Pos.x, Pos.y, Pos.z, cProjectileEntity::pkSplashPotion, a_Player, &a_Player->GetEquippedItem(), &Speed) == cEntity::INVALID_ID)
{

View File

@ -106,7 +106,7 @@ class cItemBottleOEnchantingHandler :
typedef cItemThrowableHandler super;
public:
cItemBottleOEnchantingHandler(void) :
super(E_ITEM_BOTTLE_O_ENCHANTING, cProjectileEntity::pkExpBottle, 10)
super(E_ITEM_BOTTLE_O_ENCHANTING, cProjectileEntity::pkExpBottle, 14)
{
}
};