# ============================================================
# BOHEMIAN MEN-AT-ARMS TYPES (Late Era)
# Special Bohemian roster - strong throughout the game.
# Cost scales with unit quality (damage + toughness).
# Quality units are expensive to buy but affordable to maintain.
# ============================================================

@bohemian_buy_cost = 80
@bohemian_low_maint = 0.40
@bohemian_high_maint = 0.80

# Bohemian Hussite Flailman - Elite Heavy Infantry
# The iconic Bohemian HI, expensive but devastating in formation
bohemian_hussite_flailman = {
    type = heavy_infantry

    damage = 35
    toughness = 28
    pursuit = 8
    screen = 10

    terrain_bonus = {
        hills = { damage = 8 toughness = 6 }
        mountains = { damage = 5 toughness = 4 }
        forest = { damage = 3 toughness = 3 }
        plains = { damage = 2 toughness = 2 }
        wetlands = { damage = -8 toughness = -4 }
        desert = { damage = -12 toughness = -8 }
    }

    counters = {
        light_cavalry = 1
        heavy_cavalry = 1
    }

    winter_bonus = {
        normal_winter = { damage = -2 }
        harsh_winter = { damage = -4 toughness = -2 }
    }

    buy_cost = { gold = 95 }
    low_maintenance_cost = { gold = 0.40 }
    high_maintenance_cost = { gold = 0.80 }
    provision_cost = 7

    can_recruit = {
        OR = {
            culture = { has_cultural_heritage = heritage_west_slavic }
            culture = { this = culture:czech }
        }
    }

    stack = 100
    ai_quality = { value = cultural_maa_extra_ai_score }
    icon = bohemian_hussite_flailman
}

# Bohemian Pavise Crossbowman - Elite Archers
# Hussite crossbowmen behind pavises, anti-infantry and anti-cavalry
bohemian_pavise_crossbowman = {
    type = archers

    damage = 38
    toughness = 15
    pursuit = 0
    screen = 8

    terrain_bonus = {
        hills = { damage = 8 toughness = 5 }
        forest = { damage = 5 toughness = 3 }
        mountains = { damage = -3 toughness = -2 }
        plains = { damage = 3 toughness = 3 }
        wetlands = { damage = -12 toughness = -6 }
    }

    counters = {
        heavy_infantry = 1
        heavy_cavalry = 1
    }

    winter_bonus = {
        normal_winter = { damage = -3 }
        harsh_winter = { damage = -5 }
    }

    buy_cost = { gold = 80 }
    low_maintenance_cost = { gold = 0.35 }
    high_maintenance_cost = { gold = 0.70 }
    provision_cost = 5

    can_recruit = {
        OR = {
            culture = { has_cultural_heritage = heritage_west_slavic }
            culture = { this = culture:czech }
        }
    }

    stack = 100
    ai_quality = { value = cultural_maa_extra_ai_score }
    icon = bohemian_pavise_crossbowman
}

# Bohemian Hussite Cavalier - Heavy Cavalry
# Expensive elite cavalry, worth every coin for a powerful charge
bohemian_hussite_cavalier = {
    type = heavy_cavalry

    damage = 34
    toughness = 24
    pursuit = 25
    screen = 15

    terrain_bonus = {
        plains = { damage = 8 toughness = 6 }
        hills = { damage = 2 toughness = 2 }
        forest = { damage = -10 toughness = -6 }
        mountains = { damage = -15 toughness = -10 }
        wetlands = { damage = -12 toughness = -8 }
    }

    counters = {
        archers = 1
        light_cavalry = 1
    }

    winter_bonus = {
        normal_winter = { damage = -2 }
        harsh_winter = { damage = -4 toughness = -2 }
    }

    buy_cost = { gold = 110 }
    low_maintenance_cost = { gold = 0.50 }
    high_maintenance_cost = { gold = 1.00 }
    provision_cost = 9

    can_recruit = {
        OR = {
            culture = { has_cultural_heritage = heritage_west_slavic }
            culture = { this = culture:czech }
        }
    }

    stack = 75
    ai_quality = { value = cultural_maa_extra_ai_score }
    icon = bohemian_hussite_cavalier
}

# Bohemian Raider - Light Cavalry Raider
# Fast raiding unit, high pursuit and screen, cheap to field
bohemian_bohemian_raider = {
    type = light_cavalry

    damage = 22
    toughness = 14
    pursuit = 40
    screen = 22

    terrain_bonus = {
        plains = { damage = 6 toughness = 4 }
        hills = { damage = -2 toughness = -1 }
        forest = { damage = -8 toughness = -4 }
        mountains = { damage = -15 toughness = -10 }
        wetlands = { damage = -8 toughness = -4 }
    }

    counters = {
        archers = 1
    }

    winter_bonus = {
        normal_winter = { damage = -2 }
        harsh_winter = { damage = -4 }
    }

    buy_cost = { gold = 55 }
    low_maintenance_cost = { gold = 0.25 }
    high_maintenance_cost = { gold = 0.50 }
    provision_cost = 7

    can_recruit = {
        OR = {
            culture = { has_cultural_heritage = heritage_west_slavic }
            culture = { this = culture:czech }
        }
    }

    stack = 100
    ai_quality = { value = cultural_maa_extra_ai_score }
    icon = bohemian_bohemian_raider
}

# Bohemian Wagenburg - Special Siege Fortress
# The famous Hussite war wagon, expensive but unmatched at sieges
bohemian_wagenburg = {
    type = special

    damage = 10
    toughness = 55
    pursuit = 0
    screen = 45

    terrain_bonus = {
        hills = { toughness = 15 }
        mountains = { toughness = 12 }
        forest = { toughness = 8 }
        plains = { toughness = 5 }
        wetlands = { toughness = -10 }
    }

    counters = {
        heavy_infantry = 1.5
        heavy_cavalry = 1.5
        siege = 1
    }

    winter_bonus = {
        normal_winter = { toughness = -5 }
        harsh_winter = { toughness = -8 }
    }

    buy_cost = { gold = 140 }
    low_maintenance_cost = { gold = 0.60 }
    high_maintenance_cost = { gold = 1.20 }
    provision_cost = 15

    can_recruit = {
        OR = {
            culture = { has_cultural_heritage = heritage_west_slavic }
            culture = { this = culture:czech }
        }
    }

    stack = 25
    ai_quality = { value = cultural_maa_extra_ai_score }
    icon = bohemian_wagenburg
}
