EnactionDesc for enaction event

This commit is contained in:
Kistaro Windrider 2024-09-29 10:32:01 -07:00
parent d2a00d2044
commit 5b860135e9
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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.