Compare commits

...

2 commits

3 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#include "player_detector.h" #include "player_detector.h"
#include "player_body.h"
#include "sound_event_patchboard.h" #include "sound_event_patchboard.h"
String PlayerDetector::sig_awareness_changed{ "awareness_changed" }; String PlayerDetector::sig_awareness_changed{ "awareness_changed" };

View file

@ -1,7 +1,6 @@
#ifndef PLAYER_DETECTOR_H #ifndef PLAYER_DETECTOR_H
#define PLAYER_DETECTOR_H #define PLAYER_DETECTOR_H
#include "player_body.h"
#include "scene/3d/node_3d.h" #include "scene/3d/node_3d.h"
class PlayerDetector : public Node3D { class PlayerDetector : public Node3D {

View file

@ -5,7 +5,7 @@
[sub_resource type="GDScript" id="GDScript_qot2n"] [sub_resource type="GDScript" id="GDScript_qot2n"]
script/source = "extends EnemyWretched script/source = "extends EnemyWretched
@export var difficulty_weight : float = 10 @export var difficulty_weight : float = 0.1
var is_dead := false var is_dead := false
@ -17,7 +17,7 @@ func on_death() -> void:
func _on_health_status_death() -> void: func _on_health_status_death() -> void:
$wretched/AnimationPlayer.play(\"death\") $wretched/AnimationPlayer.play(\"death\")
get_unit().region.raise_difficulty(1.0 / difficulty_weight) get_unit().region.raise_difficulty(difficulty_weight)
on_death.call_deferred() on_death.call_deferred()
is_dead = true is_dead = true
@ -37,6 +37,7 @@ slide_on_ceiling = false
wall_min_slide_angle = 0.0 wall_min_slide_angle = 0.0
floor_max_angle = 0.9773844 floor_max_angle = 0.9773844
script = SubResource("GDScript_qot2n") script = SubResource("GDScript_qot2n")
difficulty_weight = 0.15
[node name="wretched" parent="." unique_id=1505510221 instance=ExtResource("1_qot2n")] [node name="wretched" parent="." unique_id=1505510221 instance=ExtResource("1_qot2n")]