Add healthSystem

The component doesn't disable the entity anymore, the system does it by checking the component of the entity

Co-Authored-By: Benjamin HENRY <44569175+EternalRat@users.noreply.github.com>
This commit is contained in:
TrueBabyChaise
2021-05-21 14:15:42 +02:00
parent 7377301c4e
commit 61e04f760a
4 changed files with 58 additions and 2 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ namespace BBM
{
if (damage >= this->_healthPoint) {
this->_healthPoint = 0;
this->die();
} else
} else
this->_healthPoint -= damage;
}