Fencepost error!
Also the title is visible.
This commit is contained in:
parent
3a7bf9c2fb
commit
e96d81a7b4
@ -135,7 +135,7 @@ func pickNextAction[C StatsCollection](p *Player[C]) (isCard bool, cardIdx int,
|
|||||||
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
|
||||||
option, promptErr := promptCard(p, p.PermanentActions[i])
|
option, promptErr := promptCard(p, p.PermanentActions[i])
|
||||||
if option >= 0 || IsSeriousError(promptErr) {
|
if option >= 0 || IsSeriousError(promptErr) {
|
||||||
|
@ -54,7 +54,7 @@ func main() {
|
|||||||
type prompt struct{}
|
type prompt struct{}
|
||||||
|
|
||||||
func (prompt) Title(p *cardsim.Player[*SmokeTestCollection]) cardsim.Message {
|
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) {
|
func (prompt) Info(p *cardsim.Player[*SmokeTestCollection]) ([]cardsim.Message, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user