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()
|
||||
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 {
|
||||
fmt.Print("Go (B)ack or (Q)uit? > ")
|
||||
}
|
||||
@ -507,7 +507,7 @@ func review[C StatsCollection](p *Player[C]) error {
|
||||
cls()
|
||||
displayOnePanel(p, p.InfoPanels[i-1])
|
||||
wait()
|
||||
} else if i < handOffset {
|
||||
} else if i <= handOffset {
|
||||
i = i - actionsOffset - 1
|
||||
_, _, err := displayCard(p, p.PermanentActions[i], false)
|
||||
errs.Add(err)
|
||||
|
Loading…
Reference in New Issue
Block a user