EnactionDesc for enaction event
This commit is contained in:
parent
d2a00d2044
commit
5b860135e9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user