feat: difficulty weight calculated as number of enemies to kill before increase
This commit is contained in:
parent
793391f0d3
commit
7b3c2b5b6f
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue