Rewrite Warborn military creche option

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

View File

@ -10,34 +10,22 @@ var cards = []Card{
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, After: ShuffleIntoBottomHalf,
Policies: []Policy{ Policies: []Policy{
&BasicPolicy{ &TablePolicy{
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."`),
EnactedDesc: cardsim.MsgStr("[current policy] Your war chief is presently monitoring the situation, building up your military, and securing your creches."), EnactedDesc: cardsim.MsgStr("[current policy] Your war chief is presently monitoring the situation, building up your military, and securing your creches."),
Do: func(p *Player) (cardsim.Message, error) { EffectsTable: map[FieldLabel]float64{
p.Stats.BasePopulation += 100 BasePopulation: 100,
p.Stats.Scavenging += 1 Scavenging: 1,
p.Stats.Militarism += 2 Militarism: 2,
p.Stats.FoodSupply += 1 FoodSupply: 1,
p.Stats.ForeignRelations -= 2 ForeignRelations: -2,
p.Stats.Rebellion -= 3 Rebellion: -3,
p.Stats.Madness += 1 Madness: 1,
p.Stats.Cruelty += 1 Cruelty: 1,
p.Stats.Authoritarianism += 4 Authoritarianism: 4,
return cardsim.MsgStr("Kobolds are known to be born warriors."), nil
}, },
Undo: func(p *Player) error { EnactionDesc: cardsim.MsgStr("Kobolds are known to be born warriors."),
p.Stats.BasePopulation -= 100 CanDo: YesWeAlsoCan,
p.Stats.Scavenging -= 1
p.Stats.Militarism -= 2
p.Stats.FoodSupply -= 1
p.Stats.ForeignRelations += 2
p.Stats.Rebellion += 3
p.Stats.Madness -= 1
p.Stats.Cruelty -= 1
p.Stats.Authoritarianism -= 4
return nil
},
CanDo: YesWeCan,
}, },
&BasicPolicy{ &BasicPolicy{
UnenactedDesc: cardsim.MsgStr(`Your head miner considers the matter worriedly. "Creches under military control? No. That would invite chaos. We need to dig deeper; we can have a peaceful, orderly society if we just get far enough away from surfacers."`), UnenactedDesc: cardsim.MsgStr(`Your head miner considers the matter worriedly. "Creches under military control? No. That would invite chaos. We need to dig deeper; we can have a peaceful, orderly society if we just get far enough away from surfacers."`),