Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 29, 2024
1 parent 2d967b0 commit 2f8797a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/creatures/combat/spells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ TalkActionResult_t Spells::playerSaySpell(const std::shared_ptr<Player> &player,
if (instantSpell->playerCastInstant(player, param)) {
if (!player->checkSpellNameInsteadOfWords()) {
words = instantSpell->getWords();
}
else {
} else {
words = instantSpell->getName();
}

Expand Down
12 changes: 6 additions & 6 deletions src/creatures/creature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ class Creature : virtual public Thing, public SharedObject {

virtual CreatureType_t getType() const = 0;

bool isPlayer() const {
return getType() == CreatureType_t::CREATURETYPE_PLAYER;
}
bool isPlayer() const {
return getType() == CreatureType_t::CREATURETYPE_PLAYER;
}

bool isMonster() const {
return getType() == CreatureType_t::CREATURETYPE_MONSTER;
}
bool isMonster() const {
return getType() == CreatureType_t::CREATURETYPE_MONSTER;
}

virtual void setID() = 0;
void setRemoved() {
Expand Down

0 comments on commit 2f8797a

Please sign in to comment.