mtd/Scripts/StatusEffects/status_slow.gd

10 lines
314 B
GDScript3
Raw Normal View History

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