From b62ef5ee1cc737a798c52a9410f519a4e7ce51ec Mon Sep 17 00:00:00 2001 From: TheSaminator Date: Sun, 5 Jun 2022 12:51:00 -0400 Subject: [PATCH] Decrease randomness of boarding --- src/commonMain/kotlin/starshipfights/game/ship_boarding.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/starshipfights/game/ship_boarding.kt b/src/commonMain/kotlin/starshipfights/game/ship_boarding.kt index 16c1194..de7eccc 100644 --- a/src/commonMain/kotlin/starshipfights/game/ship_boarding.kt +++ b/src/commonMain/kotlin/starshipfights/game/ship_boarding.kt @@ -114,7 +114,7 @@ val ShipInstance.defenseModifier: Int defenseBoardingModifier(modulesStatus[ShipModule.Defense]), ).sum() -fun boardingRoll(): Int = (0..8).random() + (0..8).random() +fun boardingRoll(): Int = (0..4).random() + (0..4).random() fun ShipInstance.board(defender: ShipInstance): ImpactResult { val myValue = assaultModifier + boardingRoll() -- 2.25.1