summaryrefslogtreecommitdiffstats
path: root/src/Mobs/EnderDragon.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /src/Mobs/EnderDragon.cpp
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip
Diffstat (limited to 'src/Mobs/EnderDragon.cpp')
-rw-r--r--src/Mobs/EnderDragon.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Mobs/EnderDragon.cpp b/src/Mobs/EnderDragon.cpp
index 30b3ed0fb..bfd2c9f16 100644
--- a/src/Mobs/EnderDragon.cpp
+++ b/src/Mobs/EnderDragon.cpp
@@ -10,7 +10,15 @@
cEnderDragon::cEnderDragon(void) :
- Super("EnderDragon", mtEnderDragon, "entity.enderdragon.hurt", "entity.enderdragon.death", "entity.enderdragon.ambient", 16, 8)
+ Super(
+ "EnderDragon",
+ mtEnderDragon,
+ "entity.enderdragon.hurt",
+ "entity.enderdragon.death",
+ "entity.enderdragon.ambient",
+ 16,
+ 8
+ )
{
}
@@ -47,5 +55,14 @@ void cEnderDragon::SpawnOn(cClientHandle & a_Client)
Super::SpawnOn(a_Client);
// Red boss bar with no divisions that plays boss music and creates fog:
- a_Client.SendBossBarAdd(GetUniqueID(), cCompositeChat("Ender Dragon"), GetHealth() / GetMaxHealth(), BossBarColor::Red, BossBarDivisionType::None, false, true, true);
+ a_Client.SendBossBarAdd(
+ GetUniqueID(),
+ cCompositeChat("Ender Dragon"),
+ GetHealth() / GetMaxHealth(),
+ BossBarColor::Red,
+ BossBarDivisionType::None,
+ false,
+ true,
+ true
+ );
}