Skip to content

Commit

Permalink
FORMAT-AUTO: automatic format on pull request #38
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 3, 2023
1 parent 9b7614b commit 67ad627
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ECS/Systems/Systems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ namespace Systems {
Registry::components<Types::Health> arrHealth =
Registry::getInstance().getComponents<Types::Health>();

if (arrDamage.exist(firstEntity)
&& arrDamage[firstEntity].damage > 0) {
if (arrDamage.exist(firstEntity) && arrDamage[firstEntity].damage > 0) {
if (arrHealth.exist(secondEntity)) {
arrHealth[secondEntity].hp -= arrDamage[firstEntity].damage;
}
Expand Down Expand Up @@ -126,8 +125,8 @@ namespace Systems {
const Raylib::Vector2 textPos = {20, 50};
constexpr int playerData = 10;
const Types::Position playerPos = {50, 50};
constexpr int playerDamage = 1;
constexpr int enemyDamage = 1;
constexpr int playerDamage = 1;
constexpr int enemyDamage = 1;
constexpr int playerHealth = 5;
constexpr int playerHealth2 = 5;
constexpr float musicVolume = 0.02F;
Expand Down

0 comments on commit 67ad627

Please sign in to comment.