Statek miga

przy uderzeniu w meteoryt
This commit is contained in:
2024-12-06 15:16:57 +01:00
parent 2f9e0ba236
commit 71f8ebe285
4 changed files with 30 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ unsigned int Actor::getHP() {
}
void Actor::dealDamage() {
if(damageDealClock.getElapsedTime().asSeconds() > 1) {
if(damageDealClock.getElapsedTime().asSeconds() > 1.5) {
if(hp > 0) {
hp--;
}