From 7b3c2b5b6f3d5ece10a88e90e1cf1c84ffd41374 Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 29 Aug 2025 18:31:35 +0200 Subject: [PATCH] feat: difficulty weight calculated as number of enemies to kill before increase --- project/objects/enemies/enemy_wretched.tscn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/objects/enemies/enemy_wretched.tscn b/project/objects/enemies/enemy_wretched.tscn index f0fca0cf..395a98cc 100644 --- a/project/objects/enemies/enemy_wretched.tscn +++ b/project/objects/enemies/enemy_wretched.tscn @@ -5,7 +5,7 @@ [sub_resource type="GDScript" id="GDScript_qot2n"] script/source = "extends EnemyWretched -@export var difficulty_weight : float = 0.25 +@export var difficulty_weight : float = 10 func _on_health_status_death() -> void: %StateMachine.process_mode = Node.PROCESS_MODE_DISABLED @@ -13,7 +13,7 @@ func _on_health_status_death() -> void: $wretched/AnimationPlayer.play(\"death\") $CollisionShape3D.disabled = true set_movement_direction(Vector2()) - get_unit().region.raise_difficulty(difficulty_weight) + get_unit().region.raise_difficulty(1.0 / difficulty_weight) " [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ng1ul"]