Better error management.
* "Uncooperative cards" is now a warning. * Cards and actions get "Then" invoked before the card processor considers erroring out. * Terminal UI: Errors and warnings from actions are displayed during the response; they're not only added to the temporary messages now.
This commit is contained in:
@ -46,6 +46,10 @@ func RunSimpleTerminalUI[C StatsCollection](p *Player[C]) error {
|
||||
}
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
display(ErrorMessage(err))
|
||||
display(MsgStr(""))
|
||||
}
|
||||
display(msg)
|
||||
wait()
|
||||
}
|
||||
|
Reference in New Issue
Block a user