feat: wretched now raise difficulty when killed

This commit is contained in:
Sara 2025-08-28 19:15:00 +02:00
parent 3ec6e87cb4
commit c2bdcc2c07

View file

@ -5,12 +5,15 @@
[sub_resource type="GDScript" id="GDScript_qot2n"]
script/source = "extends EnemyWretched
@export var difficulty_weight : float = 0.25
func _on_health_status_death() -> void:
%StateMachine.process_mode = Node.PROCESS_MODE_DISABLED
%NavigationAgent3D.process_mode = Node.PROCESS_MODE_DISABLED
$wretched/AnimationPlayer.play(\"death\")
$CollisionShape3D.disabled = true
set_movement_direction(Vector2())
get_unit().region.raise_difficulty(difficulty_weight)
"
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ng1ul"]