distance_reduction: Distance reduction value

Description Usage Arguments Value Examples

Description

Calculate distance reduction value due to range and accuracy of the unit and distance from the target.

Usage

1
distance_reduction(range_min, range_max, accuracy, distance)

Arguments

range_min

minimum range of the unit

range_max

maximum range of the unit

accuracy

accuracy of the unit

distance

distance between unit and target

Value

distance reduction value from [0;1] interval

Examples

1
distance_reduction(range_min = 1, range_max = 5, accuracy = 6, distance = 4)

lwawrowski/combat documentation built on June 14, 2019, 3:23 p.m.