Don't stomp on the default debugers in SmokeTest.
This commit is contained in:
parent
74fac625f2
commit
8d1aa0141f
@ -142,25 +142,3 @@ func installPermanentActions(pa *[]card) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func installDebugActions(pa *[]card) {
|
|
||||||
*pa = []card{
|
|
||||||
&cardsim.BasicCard[*SmokeTestCollection]{
|
|
||||||
CardTitle: cardsim.MsgStr("Draw a card"),
|
|
||||||
CardText: cardsim.MsgStr("Draw an extra card."),
|
|
||||||
CardOptions: []cardOption{
|
|
||||||
&cardsim.BasicOption[*SmokeTestCollection]{
|
|
||||||
Text: cardsim.MsgStr("Draw an extra card."),
|
|
||||||
Effect: func(p *player) error {
|
|
||||||
return p.Draw()
|
|
||||||
},
|
|
||||||
Output: cardsim.MsgStr("Drawn. Probably."),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
AfterOption: func(c card, p *player, option cardOption) error {
|
|
||||||
p.ActionsRemaining++
|
|
||||||
return nil
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -38,13 +38,11 @@ func main() {
|
|||||||
installRules(p.Rules)
|
installRules(p.Rules)
|
||||||
initDeck(p.Deck)
|
initDeck(p.Deck)
|
||||||
installPermanentActions(&p.PermanentActions)
|
installPermanentActions(&p.PermanentActions)
|
||||||
installDebugActions(&p.DebugActions)
|
|
||||||
p.InfoPanels = []cardsim.InfoPanel[*SmokeTestCollection]{
|
p.InfoPanels = []cardsim.InfoPanel[*SmokeTestCollection]{
|
||||||
&cardsim.BasicStatsPanel[*SmokeTestCollection]{
|
&cardsim.BasicStatsPanel[*SmokeTestCollection]{
|
||||||
Name: cardsim.MsgStr("Stats"),
|
Name: cardsim.MsgStr("Stats"),
|
||||||
Intro: cardsim.MsgStr("Hi! These are the smoke test stats."),
|
Intro: cardsim.MsgStr("Hi! These are the smoke test stats."),
|
||||||
},
|
},
|
||||||
cardsim.RuleDumper[*SmokeTestCollection]{},
|
|
||||||
}
|
}
|
||||||
p.Prompt = prompt{}
|
p.Prompt = prompt{}
|
||||||
p.DebugLevel = 5
|
p.DebugLevel = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user