Skip to content

Commit cc53490

Browse files
committed
refactor: follow setting code style convention
1 parent dfff0c9 commit cc53490

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

common/src/main/kotlin/com/lambda/module/modules/movement/LevitationTweaks.kt

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,17 @@ object LevitationTweaks : Module(
4848
private val restore by setting("Restore", true, description = "Restore levitation on module disable") { mode == Mode.REMOVE }
4949

5050
// UNCP
51-
private val constantUpFactor by setting(
52-
"Idle Up Speed", unit = "%", description = "Permanent upwards motion", defaultValue = 2.0, range = 0.0..100.0
53-
) { mode == Mode.UNCP}
54-
private val control by setting("Control", true, ) { mode == Mode.UNCP}
55-
private val strafeBoost by setting("Strafe Boost", true, ) { mode == Mode.UNCP && control }
56-
private val strafeBoostSpeed by setting(
57-
"Boost Speed", unit = "%", defaultValue = 100, range = 0..120
58-
) { mode == Mode.UNCP && control && strafeBoost}
59-
private val timer by setting(
60-
"Timer", true
61-
) { mode == Mode.UNCP && control && strafeBoost}
62-
private val timerBoost by setting("Timer Boost", 1.08, 1.0..1.2, 0.01) { mode == Mode.UNCP && control && timer}
63-
64-
private val controlDownSpeed by setting(
65-
"Control Down Speed", unit = "%", defaultValue = 100, range = 0..300
66-
) { mode == Mode.UNCP && control}
67-
private val controlUpSpeed by setting(
68-
"Control Up Speed", unit = "%", defaultValue = 100, range = 0..140
69-
) { mode == Mode.UNCP && control}
51+
private val constantUpFactor by setting("Idle Up Speed", 2.0, 0.0..100.0, description = "Permanent upwards motion", unit = "%") { mode == Mode.UNCP }
7052

53+
private val control by setting("Control", true) { mode == Mode.UNCP }
54+
private val controlDownSpeed by setting("Control Down Speed", 100, 0..300, unit = "%") { mode == Mode.UNCP && control }
55+
private val controlUpSpeed by setting("Control Up Speed", 100, 0..140, unit = "%") { mode == Mode.UNCP && control }
56+
57+
private val strafeBoost by setting("Strafe Boost", true) { mode == Mode.UNCP && control }
58+
private val strafeBoostSpeed by setting("Boost Speed", 100, 0..120, unit = "%") { mode == Mode.UNCP && control && strafeBoost }
59+
60+
private val timer by setting("Timer", true) { mode == Mode.UNCP && control && strafeBoost }
61+
private val timerBoost by setting("Timer Boost", 1.08, 1.0..1.2, 0.01) { mode == Mode.UNCP && control && timer }
7162

7263

7364
private enum class Mode(override val displayName: String) : NamedEnum {

0 commit comments

Comments
 (0)