
do_expand_oil = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@oil > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@oil > 0 }
            check_variable = { resource_imported@oil > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@oil < 0 }
    }
}

do_expand_coal = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@coal > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@coal > 0 }
            check_variable = { resource_imported@coal > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@coal < 0 }
    }
}

do_expand_aluminium = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@aluminium > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@aluminium > 0 }
            check_variable = { resource_imported@aluminium > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@aluminium < 0 }
    }
}

do_expand_rubber = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@rubber > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@rubber > 0 }
            check_variable = { resource_imported@rubber > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@rubber < 0 }
    }
}

do_expand_tungsten = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@tungsten > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@tungsten > 0 }
            check_variable = { resource_imported@tungsten > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@tungsten < 0 }
    }
}

do_expand_steel = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@steel > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@steel > 0 }
            check_variable = { resource_imported@steel > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@steel < 0 }
    }
}

do_expand_chromium = {
    OR = {
        # Domestic production doesn't cover consumption (imports needed)
        check_variable = { resource_imported@chromium > 0 }
        
        # OR: We're exporting while having imports (inefficient trade)
        AND = {
            check_variable = { resource_exported@chromium > 0 }
            check_variable = { resource_imported@chromium > 0 }
        }
        
        # OR: Direct calculation - check if surplus is negative
        # (produced + imported - consumed - exported < 0)
        check_variable = { resource@chromium < 0 }
    }
}
