Simplify prices
authorTheSaminator <TheSaminator@users.noreply.github.com>
Fri, 3 Jun 2022 22:42:51 +0000 (18:42 -0400)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Fri, 3 Jun 2022 22:42:51 +0000 (18:42 -0400)
src/jvmMain/kotlin/starshipfights/data/admiralty/ship_prices.kt

index 1cd5adc0efc369b9e851323e1a2659b9fc72400c..7ac036261e9fd60621b7e3bd866e992668825ea2 100644 (file)
@@ -5,13 +5,13 @@ import starshipfights.game.ShipType
 import starshipfights.game.pointCost
 
 val ShipType.buyPrice: Int
-       get() = pointCost * 30 / 25
+       get() = pointCost * 6 / 5
 
 val ShipType.buyWhileDutchPrice: Int
-       get() = pointCost * 35 / 25
+       get() = pointCost * 7 / 5
 
 val ShipType.sellPrice: Int
-       get() = pointCost * 20 / 25
+       get() = pointCost * 4 / 5
 
 fun ShipType.buyPriceChecked(admiral: Admiral, ownedShips: List<ShipInDrydock>): Int? {
        return buyPrice(admiral, ownedShips)?.takeIf { it <= admiral.money }