Protocol changes for 1.8.0 release

This commit is contained in:
Dylan K. Taylor
2018-10-12 11:45:20 +01:00
parent f704061618
commit 30f5a8fac6
21 changed files with 494 additions and 30 deletions

View File

@ -450,7 +450,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
private function playLevelUpSound(int $newLevel) : void{
$volume = 0x10000000 * (min(30, $newLevel) / 5); //No idea why such odd numbers, but this works...
$this->level->broadcastLevelSoundEvent($this, LevelSoundEventPacket::SOUND_LEVELUP, 1, (int) $volume);
$this->level->broadcastLevelSoundEvent($this, LevelSoundEventPacket::SOUND_LEVELUP, (int) $volume);
}
/**