From 5b860135e9a5ac5a05a8aa4404ec915335f95f4f Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 29 Sep 2024 10:32:01 -0700 Subject: [PATCH] EnactionDesc for enaction event --- koboldsim/cardtypes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koboldsim/cardtypes.go b/koboldsim/cardtypes.go index 7d53ad5..d0663ee 100644 --- a/koboldsim/cardtypes.go +++ b/koboldsim/cardtypes.go @@ -271,6 +271,7 @@ type TablePolicy struct { EnactedDesc cardsim.Message NothingChanged cardsim.Message EffectsTable map[FieldLabel]float64 + EnactionDesc cardsim.Message CanDo func(*TablePolicy, *Player) bool CurrentlyEnacted bool @@ -320,7 +321,7 @@ func (t *TablePolicy) Enact(p *Player) (cardsim.Message, error) { for label, amount := range t.EffectsTable { errs.Add(p.Stats.Add(label, amount)) } - return t.EnactedDesc, errs.Emit() + return t.EnactionDesc, errs.Emit() } // Unenact implements Policy.