//
//  RelationshipHelpers.swift
//  lichunWebsocket
//
//  Helper functions for relationship and affinity calculations
//

import SwiftUI

/// Returns color based on affinity level
/// - Parameter affinity: Affinity value (0-100)
/// - Returns: Color representing affinity level
func getAffinityColor(for affinity: Int) -> Color {
    if affinity > 75 {
        return AppColors.successText
    } else if affinity > 50 {
        return AppColors.warningText
    } else if affinity > 25 {
        return AppColors.prestigeText
    } else {
        return AppColors.healthText
    }
}
