class_name FireRateAdditive extends Modifier

@export var fire_rate_bonus: float = 1.0 # +1 shot per second

func _init():
    id = "fire_rate_additive"
    display_name = "Rapid Fire"
    description = "Increases fire rate by %0.1f shots per second" % fire_rate_bonus
    modifier_type = ModifierType.ADDITIVE

func apply_stats_modification(final_stats: Dictionary, _base_stats: Dictionary) -> void:
    if final_stats.has("fire_rate"):
        final_stats.fire_rate += fire_rate_bonus