Oops, forgot to shuffle the card back in.
This commit is contained in:
parent
fb5aaeccfc
commit
5728dd95f0
@ -6,6 +6,7 @@ var cards = []Card{
|
|||||||
&SwitchingCard{
|
&SwitchingCard{
|
||||||
Name: cardsim.MsgStr("Warborn"),
|
Name: cardsim.MsgStr("Warborn"),
|
||||||
Desc: cardsim.MsgStr(" A surge of anti-kobold sentiment has been reported by your spies on the surface and your military is concerned that anti-kobold vigilantes will attack the tunnels in the near-future. They want to build up now while doing so is safe."),
|
Desc: cardsim.MsgStr(" A surge of anti-kobold sentiment has been reported by your spies on the surface and your military is concerned that anti-kobold vigilantes will attack the tunnels in the near-future. They want to build up now while doing so is safe."),
|
||||||
|
After: ShuffleIntoBottomHalf,
|
||||||
Policies: []Policy{
|
Policies: []Policy{
|
||||||
&BasicPolicy{
|
&BasicPolicy{
|
||||||
UnenactedDesc: cardsim.MsgStr(`Your war chief paces irritably. "We have terrible threats facing us. It's imperative that we build up our numbers in both the military and the domestic sense. I want creches under military control and a good hunting crew to supply them with food."`),
|
UnenactedDesc: cardsim.MsgStr(`Your war chief paces irritably. "We have terrible threats facing us. It's imperative that we build up our numbers in both the military and the domestic sense. I want creches under military control and a good hunting crew to supply them with food."`),
|
||||||
|
@ -37,7 +37,7 @@ type SwitchingCard struct {
|
|||||||
Name cardsim.Message
|
Name cardsim.Message
|
||||||
Desc cardsim.Message
|
Desc cardsim.Message
|
||||||
IsUrgent bool
|
IsUrgent bool
|
||||||
After func(*SwitchingCard, *Player, CardOption) error
|
After func(Card, *Player, CardOption) error
|
||||||
Policies []Policy
|
Policies []Policy
|
||||||
lastPolicy Policy
|
lastPolicy Policy
|
||||||
}
|
}
|
||||||
@ -221,3 +221,9 @@ func (v *VerbosePolicy) Is(p Policy) bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ShuffleIntoBottomHalf is a common "what to do with the card after?" behavior.
|
||||||
|
func ShuffleIntoBottomHalf(c Card, p *Player, _ CardOption) error {
|
||||||
|
p.Deck.InsertRandomBottom(0.5, c)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user