|
|
|
|
@ -480,13 +480,13 @@ class HHBuilder { |
|
|
|
|
* Returns the committed amount by the player for the street at the current [index] |
|
|
|
|
*/ |
|
|
|
|
private fun getPreviouslyCommittedAmount(index: Int): Double? { |
|
|
|
|
val action = this.actionForIndex(index).action |
|
|
|
|
val position = action.position |
|
|
|
|
val street = action.street |
|
|
|
|
val computedAction = this.actionForIndex(index) |
|
|
|
|
val position = computedAction.position |
|
|
|
|
val street = computedAction.action.street |
|
|
|
|
|
|
|
|
|
val previousActions = this.sortedActions.take(index) |
|
|
|
|
val previousComputedAction = previousActions.lastOrNull { |
|
|
|
|
it.action.position == position && it.street == street |
|
|
|
|
it.position == position && it.street == street |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
previousComputedAction?.action?.let { previousAction -> |
|
|
|
|
|