enabled enforced static typing
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
extends StatusEffect
|
||||
class_name StatusDoT
|
||||
class_name StatusDoT extends StatusEffect
|
||||
|
||||
|
||||
func proc(affected, stacks, _existing_effects):
|
||||
func proc(affected: EnemyController, stacks: int, _existing_effects: Dictionary) -> void:
|
||||
affected.damage(stats.potency * stacks)
|
||||
|
@ -1,19 +1,18 @@
|
||||
extends RefCounted
|
||||
class_name StatusEffect
|
||||
class_name StatusEffect extends RefCounted
|
||||
|
||||
var stats : StatusStats
|
||||
var stats: StatusStats
|
||||
|
||||
var time_since_proc := 0.0
|
||||
var time_existed := 0.0
|
||||
var time_since_proc: float = 0.0
|
||||
var time_existed: float = 0.0
|
||||
|
||||
|
||||
func on_attached(_affected, _existing_effects):
|
||||
func on_attached(_affected: EnemyController, _existing_effects: Dictionary) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func on_removed(_affected, _existing_effects):
|
||||
func on_removed(_affected: EnemyController, _existing_effects: Dictionary) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func proc(_affected, _stacks, _existing_effects):
|
||||
func proc(_affected: EnemyController, _stacks: int, _existing_effects: Dictionary) -> void:
|
||||
pass
|
||||
|
@ -1,10 +1,9 @@
|
||||
extends StatusEffect
|
||||
class_name StatusSlow
|
||||
class_name StatusSlow extends StatusEffect
|
||||
|
||||
|
||||
func on_attached(affected, _existing_effects):
|
||||
func on_attached(affected: EnemyController, _existing_effects: Dictionary) -> void:
|
||||
affected.movement_speed_penalty -= stats.potency
|
||||
|
||||
|
||||
func on_removed(affected, _existing_effects):
|
||||
func on_removed(affected: EnemyController, _existing_effects: Dictionary) -> void:
|
||||
affected.movement_speed_penalty += stats.potency
|
||||
|
Reference in New Issue
Block a user