# Hidden event to adjust mercenary costs
character_event = {
    id = mercmod.100
    is_triggered_only = yes
    hide_window = yes

    immediate = {
        every_mercenary_company = {
            limit = {
                hired = no
            }
            factor = 0.5  # Adjust the factor to reset costs
        }
    }
}

# Scheduler event to trigger the hidden event
character_event = {
    id = mymod.101
    title = "Mercenary Cost Adjustment"
    desc = "Adjusting mercenary costs to maintain balance."
    picture = GFX_evt_feast  # Optional: specify a picture for the event

    trigger = {
        always = yes
    }

    mean_time_to_happen = {
        months = 12
    }

    option = {
        name = "OK"
        hidden_tooltip = {
            trigger_event = mercmod.100
        }
    }
}