class_name ProjectileSizeAdditive extends Modifier

@export var size_increase: float = 0.5 # +50% bigger

func _init():
	id = "size_additive"
	display_name = "Enlarged Projectiles"
	description = "Increases projectile size by %d%%" % (size_increase * 100)
	modifier_type = ModifierType.ADDITIVE

func apply_stats_modification(stats: StatsComponent) -> void:
	stats.update_stat("ranged.projectile_size", stats.get_stat("ranged.projectile_size") + size_increase)

func modify_projectile(_projectile) -> void:
	pass
	# This will be called when the projectile is created
	# Scale is often handled in the recalculate_stats method, but we can also add visual effects here
	#projectile.connect("on_spawned", _on_projectile_spawned)

func _on_projectile_spawned(_projectile) -> void:
	pass
