diff --git a/koboldsim/cards.go b/koboldsim/cards.go index 1d45315..035f361 100644 --- a/koboldsim/cards.go +++ b/koboldsim/cards.go @@ -121,18 +121,12 @@ var cards = []Card{ &TablePolicy{ UnenactedDesc: cardsim.MsgStr(`Your Minister of Finance greets you exuberantly. "We've trimmed the wages of the bureaucracy beautifully, but maybe we can scout some outright volunteers. Some tribes are absolute disasters, after all.`), EnactedDesc: cardsim.MsgStr(`[current policy] It's hard to find volunteer workers at the festival, but your tribe is doing its best.`), - Do: func(p *Player) (cardsim.Message, error) { - p.Stats.BasePopulation += 10 - p.Stats.Bureaucracy -= 2 - p.Stats.Rebellion += 1 - return cardsim.MsgStr("The local bureaucracy is staffed by volunteer labor."), nil - }, - Undo: func(p *Player) error { - p.Stats.BasePopulation -= 10 - p.Stats.Bureaucracy += 2 - p.Stats.Rebellion -= 1 - return nil + EffectsTable: map[FieldLabel]float64{ + BasePopulation: 10, + Bureaucracy: -2, + Rebellion: 1, }, + EnactionDesc: cardsim.MsgStr("The local bureaucracy is staffed by volunteer labor."), CanDo: func(t *TablePolicy, p *Player) bool { return p.Stats.Bureaucracy < 2 && t.LastEnactedIdx != 3 },