enabled enforced static typing

This commit is contained in:
2024-02-22 06:22:22 +11:00
parent e1a867d2a9
commit a93660f755
1645 changed files with 24730 additions and 2078 deletions

View File

@ -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)

View File

@ -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

View File

@ -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