chore: increased difficulty weight of wretched
This commit is contained in:
parent
c071194d03
commit
28361d6ea7
1 changed files with 3 additions and 2 deletions
|
|
@ -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")]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue