Fencepost error!

Also the title is visible.
This commit is contained in:
Kistaro Windrider 2023-04-02 19:07:05 -07:00
parent 3a7bf9c2fb
commit e96d81a7b4
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ func pickNextAction[C StatsCollection](p *Player[C]) (isCard bool, cardIdx int,
cls()
displayOnePanel(p, p.InfoPanels[i-1])
wait()
} else if i < handOffset {
} else if i <= handOffset {
i = i - actionsOffset - 1
option, promptErr := promptCard(p, p.PermanentActions[i])
if option >= 0 || IsSeriousError(promptErr) {

View File

@ -54,7 +54,7 @@ func main() {
type prompt struct{}
func (prompt) Title(p *cardsim.Player[*SmokeTestCollection]) cardsim.Message {
return cardsim.MsgStr("Prompt title -- should not be visible?")
return cardsim.MsgStr("Smoke Test")
}
func (prompt) Info(p *cardsim.Player[*SmokeTestCollection]) ([]cardsim.Message, error) {