character-traits-warrior-capability 0.1.0

A Rust crate for modeling and simulating a broad spectrum of warrior capabilities, aimed at enhancing intricate game mechanics and strategic simulations.
Documentation
// ---------------- [ File: character-traits-warrior-capability/src/conflict_mitigation_capability.rs ]
crate::ix!();

#[derive(Copy,EnumIter,Debug, Clone, PartialEq, Eq, Hash)]
pub enum WarriorConflictMitigationCapability {
    /// Proactively reduces or prevents conflicts from arising through strategic anticipation.
    SkilledInConflictPrevention,

    /// Expertly negotiates agreements to pause or halt hostilities, creating breathing room.
    NegotiatesStrategicCeasefires,

    /// Skillfully identifies and defuses emerging tensions before conflict can escalate.
    DefusesEmergingTensions,

    /// Guides opposing parties from adversarial stances toward collaborative problem-solving.
    TransformsRivalryIntoCollaboration,

    /// Consistently employs effective non-lethal methods to resolve active conflicts.
    ImplementsNonLethalResolutions,

    /// Effectively mediates disputes between culturally or ideologically opposed groups.
    MediatesCrossCulturalConflicts,

    /// Utilizes diplomatic leverage to influence adversaries toward peaceful compromises.
    ExercisesDiplomaticLeverage,

    /// Facilitates dialogue under hostile conditions to achieve constructive outcomes.
    FacilitatesConstructiveDialogueUnderPressure,

    /// Utilizes psychological understanding to reduce hostility among opposing parties.
    EmploysPsychologicalDeescalationTechniques,

    /// Strategically redirects competitive energies toward shared objectives.
    RedirectsCompetitiveEnergyConstructively,
}

impl WarriorConflictMitigationCapability {
    /// Fully expanded 0.0–1.0 ratings for every intrinsic dimension.
    pub fn intrinsic_dimension_ratings(&self) -> WarriorCapabilityIntrinsicDimensionRatings {
        use WarriorConflictMitigationCapability::*;
        match self {
            /* ================================================================
               1. Skilled In Conflict Prevention
               ================================================================ */
            SkilledInConflictPrevention => wc_ratings!(
                /*  1–10  */ 0.00,0.55,0.75,0.65,0.00,0.60,0.00,0.30,0.80,0.30,
                /* 11–20  */ 0.40,0.70,0.55,0.30,0.60,0.60,0.60,0.50,0.80,0.00,
                /* 21–30  */ 0.20,0.60,0.85,0.65,0.60,0.10,0.40,0.50,0.65,0.10,
                /* 31–40  */ 0.70,0.70,0.60,0.30,0.00,0.85,0.70,0.30,0.65,0.30,
                /* 41–50  */ 0.30,0.30,0.40,0.30,0.20,0.20,0.50,0.50,0.10,0.20,
                /* 51–60  */ 0.60,0.60,0.70,0.30,0.65,0.40,0.60,0.60,0.60,0.90,
                /* 61–70  */ 0.60,0.90,0.00,0.00,0.40,0.00,0.00,0.00,0.40,0.00,
                /* 71–80  */ 0.70,0.80,0.00,0.60,0.60,0.00,0.40,0.00,0.40,0.00,
                /* 81–90  */ 0.00,0.50,0.00,0.60,0.60,0.60,0.00,0.00,0.50,0.00,
                /* 91–100 */ 0.80,0.75,0.50,0.80,0.70,0.00,0.50,0.90,0.85,0.60,
                /*101–115*/ 0.90,0.75,0.50,0.80,0.70,0.40,0.40,0.60,0.50,0.70,
                             0.30,0.65,0.40,0.40,0.70
            ),

            /* ================================================================
               2. Negotiates Strategic Ceasefires
               ================================================================ */
            NegotiatesStrategicCeasefires => wc_ratings!(
                0.00,0.60,0.65,0.60,0.00,0.55,0.00,0.30,0.80,0.35,
                0.35,0.75,0.55,0.30,0.55,0.65,0.60,0.55,0.80,0.00,
                0.15,0.55,0.90,0.65,0.55,0.05,0.35,0.45,0.60,0.10,
                0.60,0.65,0.50,0.30,0.00,0.80,0.65,0.25,0.70,0.25,
                0.25,0.30,0.35,0.20,0.15,0.15,0.40,0.40,0.05,0.05,
                0.50,0.55,0.55,0.55,0.35,0.55,0.55,0.55,0.50,0.75,
                0.50,0.90,0.00,0.00,0.35,0.00,0.00,0.00,0.30,0.00,
                0.60,0.70,0.00,0.55,0.60,0.00,0.30,0.00,0.40,0.35,
                0.00,0.45,0.00,0.55,0.50,0.50,0.45,0.00,0.45,0.00,
                0.85,0.95,0.35,0.70,0.70,0.00,0.45,0.95,1.00,0.65,
                0.80,0.90,0.60,0.75,0.30,0.00,0.80,0.00,0.60,0.55,
                             0.25,0.20,0.50,0.40,0.60
            ),

            /* ================================================================
               3. Defuses Emerging Tensions
               ================================================================ */
            DefusesEmergingTensions => wc_ratings!(
                0.00,0.55,0.70,0.60,0.00,0.55,0.00,0.30,0.80,0.35,
                0.35,0.70,0.60,0.30,0.55,0.60,0.60,0.55,0.75,0.00,
                0.20,0.55,0.80,0.70,0.60,0.05,0.35,0.50,0.70,0.10,
                0.55,0.65,0.60,0.30,0.00,0.75,0.70,0.30,0.70,0.30,
                0.25,0.35,0.35,0.20,0.15,0.15,0.45,0.45,0.05,0.05,
                0.55,0.60,0.60,0.60,0.35,0.55,0.55,0.60,0.60,0.85,
                0.60,0.90,0.00,0.00,0.45,0.00,0.00,0.00,0.40,0.00,
                0.65,0.75,0.00,0.60,0.65,0.00,0.35,0.00,0.50,0.45,
                0.00,0.50,0.00,0.55,0.55,0.55,0.50,0.00,0.50,0.00,
                0.80,0.90,0.40,0.70,0.70,0.00,0.50,0.90,0.90,0.65,
                0.90,0.85,0.65,0.80,0.35,0.00,0.75,0.05,0.65,0.60,
                             0.40,0.15,0.60,0.50,0.60
            ),

            /* ================================================================
               4. Transforms Rivalry Into Collaboration
               ================================================================ */
            TransformsRivalryIntoCollaboration => wc_ratings!(
                0.00,0.60,0.70,0.65,0.00,0.60,0.00,0.30,0.85,0.40,
                0.40,0.75,0.60,0.30,0.60,0.70,0.60,0.60,0.85,0.00,
                0.20,0.55,0.85,0.65,0.60,0.05,0.35,0.45,0.70,0.10,
                0.55,0.75,0.60,0.40,0.00,0.80,0.75,0.30,0.75,0.30,
                0.30,0.35,0.35,0.20,0.15,0.15,0.45,0.45,0.05,0.05,
                0.60,0.65,0.65,0.75,0.40,0.60,0.60,0.70,0.60,0.80,
                0.60,0.85,0.00,0.10,0.50,0.00,0.00,0.00,0.45,0.00,
                0.60,0.70,0.00,0.65,0.70,0.00,0.35,0.00,0.50,0.45,
                0.00,0.50,0.00,0.60,0.60,0.60,0.55,0.00,0.50,0.00,
                0.85,0.95,0.40,0.85,0.75,0.00,0.50,0.85,0.95,0.65,
                0.90,0.95,0.70,0.85,0.50,0.00,0.80,0.05,0.70,0.60,
                             0.45,0.20,0.60,0.50,0.60
            ),

            /* ================================================================
               5. Implements Non‑Lethal Resolutions
               ================================================================ */
            ImplementsNonLethalResolutions => wc_ratings!(
                0.00,0.55,0.65,0.65,0.00,0.60,0.00,0.30,0.90,0.40,
                0.35,0.80,0.60,0.25,0.70,0.60,0.65,0.55,0.80,0.00,
                0.20,0.55,0.75,0.60,0.60,0.05,0.35,0.40,0.65,0.05,
                0.45,0.65,0.65,0.35,0.70,0.80,0.70,0.25,0.75,0.25,
                0.25,0.30,0.30,0.20,0.15,0.15,0.40,0.45,0.05,0.05,
                0.55,0.60,0.65,0.70,0.50,0.65,0.70,0.60,0.65,0.75,
                0.55,0.85,0.00,0.15,0.60,0.00,0.00,0.00,0.30,0.00,
                0.55,0.60,0.00,0.55,0.65,0.00,0.30,0.00,0.40,0.35,
                0.00,0.50,0.00,0.60,0.55,0.55,0.55,0.00,0.45,0.00,
                0.80,0.90,0.35,0.80,0.70,0.00,0.45,0.80,0.85,0.60,
                0.90,0.90,0.70,0.80,0.45,0.00,0.75,0.05,0.65,0.55,
                             0.35,0.10,0.70,0.55,0.65
            ),

            /* ================================================================
               6. Mediates Cross‑Cultural Conflicts
               ================================================================ */
            MediatesCrossCulturalConflicts => wc_ratings!(
                0.00,0.60,0.65,0.65,0.00,0.60,0.00,0.30,0.85,0.30,
                0.30,0.75,0.55,0.25,0.55,0.65,0.60,0.60,0.85,0.00,
                0.20,0.55,0.90,0.60,0.60,0.05,0.35,0.45,0.65,0.10,
                0.50,0.70,0.60,0.50,0.00,0.80,0.65,0.25,0.70,0.20,
                0.20,0.25,0.30,0.20,0.15,0.15,0.40,0.40,0.05,0.05,
                0.60,0.60,0.60,0.60,0.40,0.65,0.60,0.65,0.45,0.70,
                0.55,0.85,0.00,0.15,0.50,0.00,0.00,0.00,0.40,0.00,
                0.55,0.70,0.00,0.60,0.70,0.00,0.25,0.00,0.40,0.45,
                0.30,0.60,0.00,0.50,0.55,0.55,0.50,0.00,0.45,0.00,
                0.85,1.00,0.40,0.85,0.75,0.00,0.50,0.85,0.95,0.60,
                0.90,0.95,0.70,0.80,0.50,0.00,0.80,0.00,0.70,0.60,
                             0.40,0.20,0.65,0.50,0.60
            ),

            /* ================================================================
               7. Exercises Diplomatic Leverage
               ================================================================ */
            ExercisesDiplomaticLeverage => wc_ratings!(
                0.00,0.70,0.70,0.60,0.00,0.55,0.00,0.35,0.80,0.40,
                0.45,0.70,0.55,0.30,0.55,0.60,0.65,0.60,0.80,0.00,
                0.50,0.65,0.90,0.70,0.55,0.30,0.35,0.50,0.60,0.20,
                0.45,0.65,0.55,0.35,0.00,0.70,0.65,0.30,0.65,0.35,
                0.30,0.35,0.35,0.25,0.20,0.20,0.40,0.40,0.05,0.05,
                0.45,0.55,0.55,0.55,0.35,0.55,0.55,0.55,0.50,0.65,
                0.50,0.80,0.00,0.05,0.45,0.00,0.00,0.00,0.35,0.00,
                0.60,0.70,0.00,0.55,0.65,0.00,0.30,0.00,0.45,0.40,
                0.00,0.45,0.00,0.55,0.55,0.55,0.50,0.00,0.45,0.00,
                0.85,0.95,0.45,0.75,0.70,0.00,0.50,0.80,0.90,0.60,
                0.85,0.90,0.65,0.75,0.35,0.00,0.75,0.00,0.65,0.55,
                             0.30,0.15,0.55,0.50,0.50
            ),

            /* ================================================================
               8. Facilitates Constructive Dialogue Under Pressure
               ================================================================ */
            FacilitatesConstructiveDialogueUnderPressure => wc_ratings!(
                0.00,0.60,0.65,0.60,0.00,0.60,0.00,0.30,0.85,0.35,
                0.35,0.75,0.60,0.30,0.55,0.70,0.65,0.60,0.85,0.00,
                0.20,0.60,0.85,0.65,0.60,0.05,0.35,0.45,0.70,0.10,
                0.50,0.70,0.60,0.35,0.00,0.75,0.70,0.30,0.75,0.30,
                0.30,0.30,0.35,0.25,0.20,0.20,0.45,0.45,0.10,0.05,
                0.55,0.65,0.70,0.70,0.45,0.65,0.65,0.70,0.50,0.80,
                0.50,0.90,0.00,0.10,0.50,0.00,0.00,0.00,0.45,0.00,
                0.55,0.65,0.00,0.60,0.65,0.00,0.25,0.00,0.45,0.55,
                0.00,0.55,0.00,0.55,0.55,0.60,0.55,0.00,0.50,0.80,
                0.85,1.00,0.35,0.85,0.85,0.00,0.55,0.85,0.95,0.80,
                0.90,0.95,0.75,0.85,0.50,0.00,0.80,0.00,0.75,1.00,
                             0.50,0.25,0.65,0.55,0.80
            ),

            /* ================================================================
               9. Employs Psychological De‑escalation Techniques
               ================================================================ */
            EmploysPsychologicalDeescalationTechniques => wc_ratings!(
                0.00,0.55,0.70,0.60,0.00,0.55,0.00,0.25,0.80,0.35,
                0.40,0.70,0.55,0.35,0.55,0.55,0.65,0.55,0.75,0.00,
                0.25,0.60,0.80,0.95,0.55,0.05,0.35,0.65,0.65,0.05,
                0.40,0.55,0.55,0.25,0.00,0.70,0.70,0.25,0.60,0.30,
                0.25,0.30,0.30,0.25,0.20,0.20,0.45,0.45,0.10,0.10,
                0.50,0.55,0.60,0.60,0.40,0.60,0.55,0.60,0.60,0.75,
                0.60,0.85,0.00,0.10,0.55,0.00,0.00,0.00,0.55,0.00,
                0.60,0.70,0.00,0.60,0.70,0.50,0.50,0.30,0.85,0.70,
                0.25,0.35,0.60,0.60,0.55,0.55,0.50,0.00,0.55,0.00,
                0.70,0.80,0.60,0.65,0.65,0.60,0.55,0.70,0.70,0.55,
                0.70,0.75,0.55,0.45,0.50,0.20,0.60,0.20,0.60,0.55,
                             0.35,0.20,0.55,0.50,0.60
            ),

            /* ================================================================
               10. Redirects Competitive Energy Constructively
               ================================================================ */
            RedirectsCompetitiveEnergyConstructively => wc_ratings!(
                0.00,0.60,0.70,0.60,0.00,0.60,0.00,0.35,0.80,0.50,
                0.50,0.70,0.60,0.40,0.60,0.75,0.70,0.60,0.80,0.00,
                0.40,0.65,0.75,0.70,0.70,0.15,0.40,0.50,0.70,0.15,
                0.50,0.65,0.60,0.35,0.00,0.75,0.80,0.35,0.75,0.35,
                0.35,0.35,0.40,0.25,0.25,0.25,0.50,0.50,0.15,0.15,
                0.55,0.65,0.65,0.65,0.40,0.65,0.60,0.65,0.60,0.80,
                0.55,0.80,0.00,0.05,0.50,0.00,0.00,0.00,0.45,0.00,
                0.55,0.65,0.00,0.55,0.65,0.00,0.30,0.00,0.45,0.40,
                0.00,0.45,0.00,0.55,0.60,0.60,0.55,0.00,0.50,0.00,
                0.80,0.95,0.50,0.80,0.75,0.40,0.55,0.80,0.85,0.70,
                0.80,0.85,0.65,0.75,0.40,0.10,0.70,0.10,0.65,0.60,
                             0.40,0.10,0.70,0.55,0.60
            ),
        }
    }
}