From 8a28f38d4daa8a28211f2cefaab9aa83b69feb23 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 29 Sep 2024 12:18:12 -0700 Subject: [PATCH] Finish converting second option of Pan-Tribal Festival of Bureaucracy. --- koboldsim/cards.go | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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 },