Skip to main content

AttributeEvaluation

A static class in Root.Township, the global namespace.

Static extension for scoring an AttributeSet against a list of AttributeCurveRange weightings.

Methods​

MemberWhat it is
static float GetEfficiency(IEnumerable<AttributeCurveRange> attributeWeightings, AttributeSet attributes)Evaluates each range's curve at the attribute's position in the range and returns their harmonic mean. Any zero gives 0; no valid ranges gives 1.