2024-02-22 06:22:22 +11:00
|
|
|
class_name StatusSlow extends StatusEffect
|
2023-11-15 15:19:40 +11:00
|
|
|
|
2023-11-11 19:03:01 +11:00
|
|
|
|
2024-02-22 06:22:22 +11:00
|
|
|
func on_attached(affected: EnemyController, _existing_effects: Dictionary) -> void:
|
2023-11-11 19:03:01 +11:00
|
|
|
affected.movement_speed_penalty -= stats.potency
|
|
|
|
|
|
|
|
|
2024-02-22 06:22:22 +11:00
|
|
|
func on_removed(affected: EnemyController, _existing_effects: Dictionary) -> void:
|
2023-11-11 19:03:01 +11:00
|
|
|
affected.movement_speed_penalty += stats.potency
|