difficulity

This commit is contained in:
2026-04-23 16:05:25 +03:00
parent 3542c328c0
commit 9acbc49084
5 changed files with 111 additions and 6 deletions
+5 -1
View File
@@ -180,7 +180,9 @@ func _do_kick() -> void:
var obj_toughness: int = best.get("toughness_tier") if best.get("toughness_tier") != null else 0
var diff_tier := kick_tier - obj_toughness
var force: float
if diff_tier < 0:
if GameSettings.difficulty == "survival":
force = 50.0
elif diff_tier < 0:
force = 15.0
elif diff_tier == 0:
force = 50.0
@@ -229,6 +231,8 @@ func receive_kick(direction: Vector3, force: float) -> void:
_squish_effect()
func take_damage(amount: int, attacker_toughness: int = 0) -> void:
if GameSettings.difficulty == "immortal":
return
if not is_alive or invincible_timer > 0.0:
return
invincible_timer = IFRAMES_DURATION