More fencepost errors!
This commit is contained in:
parent
e96d81a7b4
commit
0f21020647
@ -265,7 +265,7 @@ func promptCard[C StatsCollection](p *Player[C], card Card[C]) (optionIdx int, e
|
|||||||
}
|
}
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
if valid {
|
if valid {
|
||||||
fmt.Printf("Go (B)ack, (Q)uit, or enact a choice (1 - %d)? > ", len(opts)+1)
|
fmt.Printf("Go (B)ack, (Q)uit, or enact a choice (1 - %d)? > ", len(opts))
|
||||||
} else {
|
} else {
|
||||||
fmt.Print("Go (B)ack or (Q)uit? > ")
|
fmt.Print("Go (B)ack or (Q)uit? > ")
|
||||||
}
|
}
|
||||||
@ -507,7 +507,7 @@ func review[C StatsCollection](p *Player[C]) error {
|
|||||||
cls()
|
cls()
|
||||||
displayOnePanel(p, p.InfoPanels[i-1])
|
displayOnePanel(p, p.InfoPanels[i-1])
|
||||||
wait()
|
wait()
|
||||||
} else if i < handOffset {
|
} else if i <= handOffset {
|
||||||
i = i - actionsOffset - 1
|
i = i - actionsOffset - 1
|
||||||
_, _, err := displayCard(p, p.PermanentActions[i], false)
|
_, _, err := displayCard(p, p.PermanentActions[i], false)
|
||||||
errs.Add(err)
|
errs.Add(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user