Skip to content

Commit d262d00

Browse files
committed
Dynamic targeting range
1 parent 4341b84 commit d262d00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/kotlin/com/lambda/config/groups/Targeting.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ abstract class Targeting(
131131
*/
132132
class Combat(
133133
owner: Configurable,
134+
defaultRange: Double = 5.0,
135+
maxRange: Double = 16.0,
134136
predicate: () -> Boolean = { true },
135-
) : Targeting(owner, predicate, 5.0, 16.0) {
137+
) : Targeting(owner, predicate, defaultRange, maxRange) {
136138

137139
/**
138140
* The field of view limit for targeting entities. Configurable between 5 and 180 degrees.

0 commit comments

Comments
 (0)