From 8d1aa0141fdd741d105f2a6d2cb734a8f5821274 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 15 Apr 2023 19:17:34 -0700 Subject: [PATCH] Don't stomp on the default debugers in SmokeTest. --- smoketest/cards.go | 22 ---------------------- smoketest/main.go | 2 -- 2 files changed, 24 deletions(-) diff --git a/smoketest/cards.go b/smoketest/cards.go index ad5d1b9..23ae6a2 100644 --- a/smoketest/cards.go +++ b/smoketest/cards.go @@ -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 - }, - }, - } -} diff --git a/smoketest/main.go b/smoketest/main.go index 9e54a62..5000ea1 100644 --- a/smoketest/main.go +++ b/smoketest/main.go @@ -38,13 +38,11 @@ func main() { installRules(p.Rules) initDeck(p.Deck) installPermanentActions(&p.PermanentActions) - installDebugActions(&p.DebugActions) p.InfoPanels = []cardsim.InfoPanel[*SmokeTestCollection]{ &cardsim.BasicStatsPanel[*SmokeTestCollection]{ Name: cardsim.MsgStr("Stats"), Intro: cardsim.MsgStr("Hi! These are the smoke test stats."), }, - cardsim.RuleDumper[*SmokeTestCollection]{}, } p.Prompt = prompt{} p.DebugLevel = 5