Don't stomp on the default debugers in SmokeTest.
This commit is contained in:
		| @@ -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) | ||||
| 	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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user