diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/Mobs/Guardian.cpp | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to 'src/Mobs/Guardian.cpp')
-rw-r--r-- | src/Mobs/Guardian.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/Mobs/Guardian.cpp b/src/Mobs/Guardian.cpp index f9c80d1e5..2fe4e3dec 100644 --- a/src/Mobs/Guardian.cpp +++ b/src/Mobs/Guardian.cpp @@ -9,7 +9,15 @@ cGuardian::cGuardian(void) : - Super("Guardian", mtGuardian, "entity.guardian.hurt", "entity.guardian.death", "entity.guardian.ambient", 0.85f, 0.85f) + Super( + "Guardian", + mtGuardian, + "entity.guardian.hurt", + "entity.guardian.death", + "entity.guardian.ambient", + 0.85f, + 0.85f + ) { } @@ -27,7 +35,12 @@ void cGuardian::GetDrops(cItems & a_Drops, cEntity * a_Killer) } AddRandomDropItem(a_Drops, 0, 2 + LootingLevel, E_ITEM_PRISMARINE_SHARD); AddRandomDropItem(a_Drops, 0, 1 + LootingLevel, E_ITEM_RAW_FISH); - AddRandomDropItem(a_Drops, 0, 1 + LootingLevel, E_ITEM_PRISMARINE_CRYSTALS); // TODO: Prismarine Crystals only drop if the raw fish drop is 0 + AddRandomDropItem( + a_Drops, + 0, + 1 + LootingLevel, + E_ITEM_PRISMARINE_CRYSTALS + ); // TODO: Prismarine Crystals only drop if the raw fish drop is 0 } @@ -50,7 +63,3 @@ void cGuardian::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) Super::Tick(a_Dt, a_Chunk); } - - - - |