inching towards better class inheritence and multiplayer compatibility
This commit is contained in:
10
Scripts/StatusEffects/status_slow.gd
Normal file
10
Scripts/StatusEffects/status_slow.gd
Normal file
@ -0,0 +1,10 @@
|
||||
extends StatusEffect
|
||||
class_name StatusSlow
|
||||
|
||||
|
||||
func on_attached(affected, _existing_effects):
|
||||
affected.movement_speed_penalty -= stats.potency
|
||||
|
||||
|
||||
func on_removed(affected, _existing_effects):
|
||||
affected.movement_speed_penalty += stats.potency
|
Reference in New Issue
Block a user