2023-11-11 19:03:01 +11:00
|
|
|
extends StatusEffect
|
2023-11-15 15:19:40 +11:00
|
|
|
class_name StatusSlow
|
|
|
|
|
2023-11-11 19:03:01 +11:00
|
|
|
|
2023-11-13 19:36:35 +11:00
|
|
|
func on_attached(affected, _existing_effects):
|
2023-11-11 19:03:01 +11:00
|
|
|
affected.movement_speed_penalty -= stats.potency
|
|
|
|
|
|
|
|
|
2023-11-13 19:36:35 +11:00
|
|
|
func on_removed(affected, _existing_effects):
|
2023-11-11 19:03:01 +11:00
|
|
|
affected.movement_speed_penalty += stats.potency
|