From: TheSaminator Date: Sun, 5 Jun 2022 16:51:00 +0000 (-0400) Subject: Decrease randomness of boarding X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=b62ef5ee1cc737a798c52a9410f519a4e7ce51ec;p=starship-fights Decrease randomness of boarding --- 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()