mtd/Scripts/StatusEffects/status_sticky.gd

11 lines
242 B
GDScript3
Raw Normal View History

extends StatusEffect
class_name StatusSticky
func on_attached(affected, _existing_effects):
affected.movement_speed_penalty -= stats.potency
func on_removed(affected, _existing_effects):
affected.movement_speed_penalty += stats.potency