Celestine API Documentation - v0.2.0
    Preparing search index...

    Function applyOutOfSignPenalty

    • Apply out-of-sign penalty to strength.

      Parameters

      • strength: number

        Original strength (0-100)

      • isOutOfSign: boolean

        Whether the aspect is out-of-sign

      • penalty: number

        Penalty factor (0-1), e.g., 0.2 = 20% reduction

      Returns number

      Adjusted strength

      Out-of-sign aspects are traditionally considered weaker. This function applies a configurable penalty.

      Formula: adjustedStrength = strength × (1 - penalty) if out-of-sign

      applyOutOfSignPenalty(80, false, 0.2) // 80 (no penalty)
      applyOutOfSignPenalty(80, true, 0.2) // 64 (20% reduction)
      applyOutOfSignPenalty(80, true, 0) // 80 (no penalty configured)