Issue #7, plus DimReturns
This commit is contained in:
parent
2ca8f3ed13
commit
a4692712cc
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var cards = []Card{
|
var cards = []Card{
|
||||||
&SwitchingCard{
|
&SwitchingCard{ // Card 1
|
||||||
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,
|
After: ShuffleIntoBottomHalf,
|
||||||
@ -40,6 +40,7 @@ var cards = []Card{
|
|||||||
p.Stats.BureaucracyExpense += 0.01
|
p.Stats.BureaucracyExpense += 0.01
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
p.Stats.Secrecy += 0.02
|
p.Stats.Secrecy += 0.02
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
return cardsim.MsgStr("Kobolds are known to be cowards hiding in the dark."), nil
|
return cardsim.MsgStr("Kobolds are known to be cowards hiding in the dark."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -48,6 +49,7 @@ var cards = []Card{
|
|||||||
p.Stats.BureaucracyExpense -= 0.01
|
p.Stats.BureaucracyExpense -= 0.01
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
p.Stats.Secrecy -= 0.02
|
p.Stats.Secrecy -= 0.02
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -62,6 +64,7 @@ var cards = []Card{
|
|||||||
p.Stats.EducationExpense += 0.01
|
p.Stats.EducationExpense += 0.01
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
p.Stats.ForeignRelations += 0.02
|
p.Stats.ForeignRelations += 0.02
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
return cardsim.MsgStr("An undefended hunting outpost near the surface was recently wiped out by a raid."), nil
|
return cardsim.MsgStr("An undefended hunting outpost near the surface was recently wiped out by a raid."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -71,6 +74,7 @@ var cards = []Card{
|
|||||||
p.Stats.EducationExpense -= 0.01
|
p.Stats.EducationExpense -= 0.01
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
p.Stats.ForeignRelations -= 0.02
|
p.Stats.ForeignRelations -= 0.02
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -107,9 +111,9 @@ var cards = []Card{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, // end of "Warborn" policies
|
}, // End of "Warborn" policies
|
||||||
}, // end of "Warborn" card
|
}, // End of "Warborn" card
|
||||||
&SwitchingCard{
|
&SwitchingCard{ // Card 2
|
||||||
Name: cardsim.MsgStr("International Festival of Bureaucracy"),
|
Name: cardsim.MsgStr("International Festival of Bureaucracy"),
|
||||||
Desc: cardsim.MsgStr(" Good times are upon us! A great festival has been declared between many kobold nations, celebrating the orderly nature of the kobold soul! That's right, it's the International Festival of Bureaucracy!"),
|
Desc: cardsim.MsgStr(" Good times are upon us! A great festival has been declared between many kobold nations, celebrating the orderly nature of the kobold soul! That's right, it's the International Festival of Bureaucracy!"),
|
||||||
After: ShuffleIntoBottomHalf,
|
After: ShuffleIntoBottomHalf,
|
||||||
@ -122,6 +126,7 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome += 0.01
|
p.Stats.ScavengingIncome += 0.01
|
||||||
p.Stats.BureaucracyExpense += 0.03
|
p.Stats.BureaucracyExpense += 0.03
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
return cardsim.MsgStr("Bureaucrats are considered pillars of society."), nil
|
return cardsim.MsgStr("Bureaucrats are considered pillars of society."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -129,6 +134,7 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome -= 0.01
|
p.Stats.ScavengingIncome -= 0.01
|
||||||
p.Stats.BureaucracyExpense -= 0.03
|
p.Stats.BureaucracyExpense -= 0.03
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -163,11 +169,13 @@ var cards = []Card{
|
|||||||
Do: func(p *Player) (cardsim.Message, error) {
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
p.Stats.BasePopulation += 10
|
p.Stats.BasePopulation += 10
|
||||||
p.Stats.BureaucracyExpense -= 0.02
|
p.Stats.BureaucracyExpense -= 0.02
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
return cardsim.MsgStr("The local bureaucracy is staffed by volunteer labor."), nil
|
return cardsim.MsgStr("The local bureaucracy is staffed by volunteer labor."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
p.Stats.BasePopulation -= 10
|
p.Stats.BasePopulation -= 10
|
||||||
p.Stats.BureaucracyExpense += 0.02
|
p.Stats.BureaucracyExpense += 0.02
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: func(b *BasicPolicy, p *Player) bool {
|
CanDo: func(b *BasicPolicy, p *Player) bool {
|
||||||
@ -224,9 +232,9 @@ var cards = []Card{
|
|||||||
nil, // remember, if using a BasicPolicy, this uses EnactedDesc
|
nil, // remember, if using a BasicPolicy, this uses EnactedDesc
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, //End of "International Festival of Bureaucracy" policies
|
}, // End of "International Festival of Bureaucracy" policies
|
||||||
}, //End of "International Festival of Bureaucracy" card
|
}, // End of "International Festival of Bureaucracy" card
|
||||||
&SwitchingCard{
|
&SwitchingCard{ // Card 3
|
||||||
Name: cardsim.MsgStr("Two Kobolds in a Trenchcoat"),
|
Name: cardsim.MsgStr("Two Kobolds in a Trenchcoat"),
|
||||||
Desc: cardsim.MsgStr("An inevitable concern of kobold nations is the matter of trade. Trade with other kobolds is straightforward, but overland caravans are unsafe. Trade with surfacers is vital... but achieving it is difficult owing to anti-kobold sentiment."),
|
Desc: cardsim.MsgStr("An inevitable concern of kobold nations is the matter of trade. Trade with other kobolds is straightforward, but overland caravans are unsafe. Trade with surfacers is vital... but achieving it is difficult owing to anti-kobold sentiment."),
|
||||||
After: ShuffleIntoBottomHalf,
|
After: ShuffleIntoBottomHalf,
|
||||||
@ -243,6 +251,7 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome += 0.01
|
p.Stats.ScavengingIncome += 0.01
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
p.Stats.Secrecy += 0.05
|
p.Stats.Secrecy += 0.05
|
||||||
|
p.Stats.PointOfDimReturns += 0.05
|
||||||
return cardsim.MsgStr("Nobody ever meets a kobold merchant."), nil
|
return cardsim.MsgStr("Nobody ever meets a kobold merchant."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -254,13 +263,14 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome -= 0.01
|
p.Stats.ScavengingIncome -= 0.01
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
p.Stats.Secrecy -= 0.05
|
p.Stats.Secrecy -= 0.05
|
||||||
|
p.Stats.PointOfDimReturns -= 0.05
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
},
|
},
|
||||||
&BasicPolicy{
|
&BasicPolicy{
|
||||||
UnenactedDesc: cardsim.MsgStr(`Brave but potentially headstrong, another prospective merchant has attended the meeting with the following plea. "We must take head-on the risk of improving the status of kobolds! Only by bravely attending the surface markets can we hope to achieve a true and lasting peace!"`),
|
UnenactedDesc: cardsim.MsgStr(`Brave but potentially headstrong, another prospective merchant has attended the meeting with the following plea. "We must take head-on the risk of improving the status of kobolds! Only by bravely attending the surface markets can we hope to achieve a true and lasting peace!"`),
|
||||||
EnactedDesc: cardsim.MsgStr(`[currentpolicy] Your merchants represent the nation's peaceful ideals by visiting the surface openly despite occasional casaulties.`),
|
EnactedDesc: cardsim.MsgStr(`[current policy] Your merchants represent the nation's peaceful ideals by visiting the surface openly despite occasional casaulties.`),
|
||||||
Do: func(p *Player) (cardsim.Message, error) {
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
p.Stats.BasePopulation -= 15
|
p.Stats.BasePopulation -= 15
|
||||||
p.Stats.ManufacturingIncome += 0.03
|
p.Stats.ManufacturingIncome += 0.03
|
||||||
@ -276,6 +286,7 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome -= 0.01
|
p.Stats.ScavengingIncome -= 0.01
|
||||||
p.Stats.Secrecy -= 0.10
|
p.Stats.Secrecy -= 0.10
|
||||||
p.Stats.ForeignRelations += 0.05
|
p.Stats.ForeignRelations += 0.05
|
||||||
|
p.Stats.PointOfDimReturns += 0.1
|
||||||
return cardsim.MsgStr("The economic planning office formally plans for attrition among its merchants."), nil
|
return cardsim.MsgStr("The economic planning office formally plans for attrition among its merchants."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -293,6 +304,7 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome += 0.01
|
p.Stats.ScavengingIncome += 0.01
|
||||||
p.Stats.Secrecy += 0.10
|
p.Stats.Secrecy += 0.10
|
||||||
p.Stats.ForeignRelations -= 0.05
|
p.Stats.ForeignRelations -= 0.05
|
||||||
|
p.Stats.PointOfDimReturns += 0.1
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -309,6 +321,7 @@ var cards = []Card{
|
|||||||
p.Stats.MiningIncome -= 0.01
|
p.Stats.MiningIncome -= 0.01
|
||||||
p.Stats.ManufacturingIncome -= 0.01
|
p.Stats.ManufacturingIncome -= 0.01
|
||||||
p.Stats.HiddenRelPenalty += 0.02 // High is bad on this hidden stat.
|
p.Stats.HiddenRelPenalty += 0.02 // High is bad on this hidden stat.
|
||||||
|
p.Stats.PointOfDimReturns += 0.05
|
||||||
return cardsim.MsgStr("Kobold merchants are instantly suspected of black market connections."), nil
|
return cardsim.MsgStr("Kobold merchants are instantly suspected of black market connections."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -320,6 +333,7 @@ var cards = []Card{
|
|||||||
p.Stats.MiningIncome += 0.01
|
p.Stats.MiningIncome += 0.01
|
||||||
p.Stats.ManufacturingIncome += 0.01
|
p.Stats.ManufacturingIncome += 0.01
|
||||||
p.Stats.HiddenRelPenalty -= 0.02
|
p.Stats.HiddenRelPenalty -= 0.02
|
||||||
|
p.Stats.PointOfDimReturns -= 0.05
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -333,6 +347,7 @@ var cards = []Card{
|
|||||||
p.Stats.LogisticsExpense += 0.06
|
p.Stats.LogisticsExpense += 0.06
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
p.Stats.Secrecy += 0.15
|
p.Stats.Secrecy += 0.15
|
||||||
|
p.Stats.PointOfDimReturns += 0.1
|
||||||
return cardsim.MsgStr("The vast network of caverns under the surface of the world is not a natural phenomenon."), nil
|
return cardsim.MsgStr("The vast network of caverns under the surface of the world is not a natural phenomenon."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -341,6 +356,7 @@ var cards = []Card{
|
|||||||
p.Stats.LogisticsExpense -= 0.06
|
p.Stats.LogisticsExpense -= 0.06
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
p.Stats.Secrecy -= 0.15
|
p.Stats.Secrecy -= 0.15
|
||||||
|
p.Stats.PointOfDimReturns -= 0.1
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -372,9 +388,9 @@ var cards = []Card{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}, //End of "Two Kobolds in a Trenchcoat" policies
|
}, // End of "Two Kobolds in a Trenchcoat" policies
|
||||||
}, //End of "Two Kobolds in a Trenchcoat" card
|
}, // End of "Two Kobolds in a Trenchcoat" card
|
||||||
&SwitchingCard{
|
&SwitchingCard{ // Card 4
|
||||||
Name: cardsim.MsgStr("A Recipe for Stewed Kobold"),
|
Name: cardsim.MsgStr("A Recipe for Stewed Kobold"),
|
||||||
Desc: cardsim.MsgStr("Nobody would ever say a kobold smells bad, but the constant burrowing, manufacturing, and metallurgy that is common to kobold life is still a recipe for tense muscles and filthy scales. A slate of proposals have come through to address this issue."),
|
Desc: cardsim.MsgStr("Nobody would ever say a kobold smells bad, but the constant burrowing, manufacturing, and metallurgy that is common to kobold life is still a recipe for tense muscles and filthy scales. A slate of proposals have come through to address this issue."),
|
||||||
After: ShuffleIntoBottomHalf,
|
After: ShuffleIntoBottomHalf,
|
||||||
@ -455,10 +471,13 @@ var cards = []Card{
|
|||||||
},
|
},
|
||||||
}, // End of "A Recipe for Stewed Kobold" policies
|
}, // End of "A Recipe for Stewed Kobold" policies
|
||||||
}, // End of "A Recipe for Stewed Kobold" card
|
}, // End of "A Recipe for Stewed Kobold" card
|
||||||
&SwitchingCard{
|
&SwitchingCard{ // Card 5
|
||||||
Name: cardsim.MsgStr("Raid on Surface Proposed"), //TODO: Make this card arise only if War investment is positive to begin with.
|
Name: cardsim.MsgStr("Raid on Surface Proposed"),
|
||||||
Desc: cardsim.MsgStr("Resources underground are perpetually tight. Even metallurgy is hard, because fuel is scarce. You can rely on neither field nor forest. The scavengers brave the surface regularly to beg, borrow, or steal the resources necessary to your society, but your war planners want to secure resources more aggressively."),
|
Desc: cardsim.MsgStr("Resources underground are perpetually tight. Even metallurgy is hard, because fuel is scarce. You can rely on neither field nor forest. The scavengers brave the surface regularly to beg, borrow, or steal the resources necessary to your society, but your war planners want to secure resources more aggressively."),
|
||||||
After: ShuffleIntoBottomHalf,
|
After: ShuffleIntoBottomHalf,
|
||||||
|
IsValid: func(c Card, p *Player) bool {
|
||||||
|
return p.Stats.WarExpense > 0
|
||||||
|
},
|
||||||
Policies: []Policy{
|
Policies: []Policy{
|
||||||
&BasicPolicy{
|
&BasicPolicy{
|
||||||
UnenactedDesc: cardsim.MsgStr(`A scavenger clad in sturdy clothes says, "We need to secure a section of forests on the surface. The surfacers strip too many of the forests bare; if we dispatch patrols ready to fight we can keep them from assarting the forest for their endlessly growing farm communities."`),
|
UnenactedDesc: cardsim.MsgStr(`A scavenger clad in sturdy clothes says, "We need to secure a section of forests on the surface. The surfacers strip too many of the forests bare; if we dispatch patrols ready to fight we can keep them from assarting the forest for their endlessly growing farm communities."`),
|
||||||
@ -469,7 +488,7 @@ var cards = []Card{
|
|||||||
p.Stats.WarExpense += 0.01
|
p.Stats.WarExpense += 0.01
|
||||||
p.Stats.FoodSupply += 0.03
|
p.Stats.FoodSupply += 0.03
|
||||||
p.Stats.Secrecy -= 0.10
|
p.Stats.Secrecy -= 0.10
|
||||||
p.Stats.ForeignRelations -= 0.01
|
p.Stats.ForeignRelations -= 0.02
|
||||||
return cardsim.MsgStr("A bunch of lumberjacks just disappeared in a forest."), nil
|
return cardsim.MsgStr("A bunch of lumberjacks just disappeared in a forest."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -478,7 +497,7 @@ var cards = []Card{
|
|||||||
p.Stats.WarExpense -= 0.01
|
p.Stats.WarExpense -= 0.01
|
||||||
p.Stats.FoodSupply -= 0.05
|
p.Stats.FoodSupply -= 0.05
|
||||||
p.Stats.Secrecy += 0.10
|
p.Stats.Secrecy += 0.10
|
||||||
p.Stats.ForeignRelations += 0.01
|
p.Stats.ForeignRelations += 0.02
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -514,7 +533,9 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome += 0.02
|
p.Stats.ScavengingIncome += 0.02
|
||||||
p.Stats.WarExpense += 0.01
|
p.Stats.WarExpense += 0.01
|
||||||
p.Stats.FoodSupply += 0.01
|
p.Stats.FoodSupply += 0.01
|
||||||
p.Stats.HiddenRelPenalty += 0.02
|
p.Stats.Secrecy -= 0.05
|
||||||
|
p.Stats.HiddenRelPenalty += 0.05
|
||||||
|
// TODO: Subtract a compassion point.
|
||||||
return cardsim.MsgStr("Some merchants are even cordial as they pay off kobold bandits."), nil
|
return cardsim.MsgStr("Some merchants are even cordial as they pay off kobold bandits."), nil
|
||||||
},
|
},
|
||||||
Undo: func(p *Player) error {
|
Undo: func(p *Player) error {
|
||||||
@ -522,7 +543,8 @@ var cards = []Card{
|
|||||||
p.Stats.ScavengingIncome -= 0.02
|
p.Stats.ScavengingIncome -= 0.02
|
||||||
p.Stats.WarExpense -= 0.01
|
p.Stats.WarExpense -= 0.01
|
||||||
p.Stats.FoodSupply -= 0.01
|
p.Stats.FoodSupply -= 0.01
|
||||||
p.Stats.HiddenRelPenalty -= 0.02
|
p.Stats.Secrecy += 0.05
|
||||||
|
p.Stats.HiddenRelPenalty -= 0.05
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
CanDo: YesWeCan,
|
CanDo: YesWeCan,
|
||||||
@ -548,6 +570,222 @@ var cards = []Card{
|
|||||||
},
|
},
|
||||||
}, // End of "Raid on Surface Proposed" policies
|
}, // End of "Raid on Surface Proposed" policies
|
||||||
}, // End of "Raid on Surface Proposed" card
|
}, // End of "Raid on Surface Proposed" card
|
||||||
|
&SwitchingCard{ // Card 6
|
||||||
|
Name: cardsim.MsgStr("Book Publishing Threat to Secrecy?"),
|
||||||
|
Desc: cardsim.MsgStr("Concerns have been raised about one of the categories of income that your nation relies upon: books. To a lesser extent, art in general. Some artifacts, especially books, have the potential to give away details of your peoples' lives that help hostile powers locate your nation."),
|
||||||
|
After: ShuffleIntoBottomHalf,
|
||||||
|
IsValid: func(c Card, p *Player) bool {
|
||||||
|
return p.Stats.PublishingIncome > 0 && p.Stats.ForeignRelations < 0
|
||||||
|
},
|
||||||
|
Policies: []Policy{
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`The warrior who brought this to your attention stands at attention as they say, "The risk of discovery is an existential risk! Everything that makes us discoverable increases the intensity of conflict around our warrens, draining lives from our people! It is imperative that all respect our code of silence!"`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] What published material emanates from your nation is strictly censored of details that could indicate the locations of your homes."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.Secrecy += 0.03
|
||||||
|
p.Stats.PublishingIncome -= 0.05
|
||||||
|
p.Stats.EducationExpense -= 0.01
|
||||||
|
return cardsim.MsgStr("No history records the sobbing of kobold scribes."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.Secrecy -= 0.03
|
||||||
|
p.Stats.PublishingIncome += 0.05
|
||||||
|
p.Stats.EducationExpense += 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`"No! Never! Er, maybe?" asks a dithering scribe, clutching a book worriedly to their chest. "Can we set up an office of censorship to read everything we publish and send it back for edits if it would reveal anything about our location? We don't have to stop publishing; our traders buy food with foreign currencies you know!"`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] The bureaucracy includes an office of censorship that reads all writings produced for sale to ensure that nothing is revealed about the location of any living kobolds."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.Secrecy += 0.01
|
||||||
|
p.Stats.PublishingIncome -= 0.01
|
||||||
|
p.Stats.BureaucracyExpense += 0.01
|
||||||
|
return cardsim.MsgStr("The censors are the most well-read kobolds in the nation."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.Secrecy -= 0.01
|
||||||
|
p.Stats.PublishingIncome += 0.01
|
||||||
|
p.Stats.BureaucracyExpense -= 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`Your Minister of Education wrings his claws sadly. "I know it'll be a monumental expense in paper and ink, but we need to encourage the writing of diaries. Our secrecy is already flawed; there are already attacks against us. Maybe our attackers will find diaries and understand that we aren't just thieves hiding under the earth."`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] Even though recovered diaries point back to your outposts, your kobolds are encouraged to carry around diaries and record thoughts from their own lives into them."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.Secrecy -= 0.01
|
||||||
|
p.Stats.PublishingIncome += 0.02
|
||||||
|
p.Stats.EducationExpense += 0.03
|
||||||
|
p.Stats.PropagandaExpense += 0.01
|
||||||
|
p.Stats.HiddenRelPenalty -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
|
// TODO: Add a compassion point
|
||||||
|
return cardsim.MsgStr("Heartless surfacers burn recovered kobold diaries."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.Secrecy += 0.01
|
||||||
|
p.Stats.PublishingIncome -= 0.02
|
||||||
|
p.Stats.EducationExpense -= 0.03
|
||||||
|
p.Stats.PropagandaExpense -= 0.01
|
||||||
|
p.Stats.HiddenRelPenalty += 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: func(b *BasicPolicy, p *Player) bool {
|
||||||
|
return p.Stats.Secrecy < 1
|
||||||
|
},
|
||||||
|
},
|
||||||
|
&VerbosePolicy{
|
||||||
|
Default: &BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Rejecting this will inspire celebrations among the authors of your nation."),
|
||||||
|
EnactedDesc: cardsim.MsgStr("The dangers posed by publishing information from your nation can be denied without changes in policy."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.PublishingIncome += 0.01
|
||||||
|
return cardsim.MsgStr("Kobold-hating adventurers know to be well-read."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.PublishingIncome -= 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
Variants: []Policy{
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Your publishing industry is struggling under harsh restrictions and would soar if relieved."),
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("The censorship office spends tax money to crimp tax income. It has opponents, though they stay quiet."),
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Rescinding the diary initiative would ding literacy rates, but it should save on taxes."),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, // End of "Book Publishing Threat to Security?" policies"
|
||||||
|
}, // End of "Book Publishing Threat to Security?" card
|
||||||
|
&SwitchingCard{ // Card 7
|
||||||
|
Name: cardsim.MsgStr("The Eyes that Break the Ground"),
|
||||||
|
Desc: cardsim.MsgStr("Some of our miners have recently been afflicted with shared hallucinations. They report feelings of being watched in dark areas - which, thanks to kobold darkvision, is nearly everywhere - as well as seeing black blotches covered in eyes on various surfaces. They're refusing to continue work."),
|
||||||
|
After: ShuffleIntoBottomHalf,
|
||||||
|
Policies: []Policy{
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`A friend of one of the afflicted managed to get onto your meeting schedule to say, "We work our miners hard. We need to give them more breaks. We need to fund more investments into healthcare, too. We can set our alchemists to work brewing potions that should help."`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] Afflicted miners are being dosed with soothing alchemical teas."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.MiningIncome -= 0.01
|
||||||
|
p.Stats.AlchemyIncome += 0.02
|
||||||
|
p.Stats.HealthcareExpense += 0.01 // TODO: Implement population boost from Healthcare investment. Maybe 1000x HealthcareInvestment, so that each 0.01 Healthcare Investment is a bonus of 10 kobolds to the population?
|
||||||
|
p.Stats.PointOfDimReturns += 0.02
|
||||||
|
// Note to self, add a compassion point.
|
||||||
|
return cardsim.MsgStr("Calming alchemical potions are displacing raw material sales in local markets."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.MiningIncome += 0.01
|
||||||
|
p.Stats.AlchemyIncome -= 0.02
|
||||||
|
p.Stats.HealthcareExpense -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.02
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`Your chief economic planner regards the report with surprise and disgust. "This is just an excuse for slacking! Send them back into the mines and hire guards to make sure they double production! And if they see any more eyes in the dark, tell 'em to shatter 'em with detonation charges!"`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] The mines are taut as crazy miners with explosives work under the oversight of armed guards."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.BasePopulation -= 10
|
||||||
|
p.Stats.MiningIncome += 0.03
|
||||||
|
p.Stats.GadgetryIncome += 0.01
|
||||||
|
p.Stats.WarExpense += 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
|
return cardsim.MsgStr("Miners are known for their enthusiasm for explosives."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.MiningIncome -= 0.03
|
||||||
|
p.Stats.GadgetryIncome -= 0.01
|
||||||
|
p.Stats.WarExpense -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`The head of your Ministry of Soothsaying, Shamanism, and Otherworldly Affairs has reacted with unsettling enthusiasm. "Shared hallucinations? Of eyes in the dark? This is an opportunity! We just need to train the afflicted into new spellcasters. We could learn the kind of secrets that shatter minds!"`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] Mine policy is to watch for this symptom and trial the afflicted in planar summoning."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.BasePopulation -= 20
|
||||||
|
p.Stats.MiningIncome -= 0.01
|
||||||
|
p.Stats.PlanarIncome += 0.03
|
||||||
|
p.Stats.ResearchSubsExpense += 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.02
|
||||||
|
// TODO: Add more consequences to questionable planar contacts.
|
||||||
|
return cardsim.MsgStr("The nation is infamous for producing crazed magi."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.BasePopulation += 20
|
||||||
|
p.Stats.MiningIncome += 0.01
|
||||||
|
p.Stats.PlanarIncome += 0.03
|
||||||
|
p.Stats.ResearchSubsExpense -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.02
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr(`The manager of one of the affected signed the right papers to get into this meeting. Regarding you coldly, they say, "They're slacking, and it's not right to permit anything to change. We don't soothing alchemicals, we don't need new guards, adding explosives to the mix is just chaotic, and recruiting crazies as spellcasters is insane itself. Trust in the miners to enforce discipline amongst each other. We don't permit anyone to hold up production."`),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] The miners are dealing with laggard elements on their own."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.BasePopulation -= 20
|
||||||
|
p.Stats.MiningIncome += 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
|
// TODO: Take away a point of compassion for this.
|
||||||
|
return cardsim.MsgStr("Sufficient misery unmakes people."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.BasePopulation += 10
|
||||||
|
p.Stats.MiningIncome -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
&VerbosePolicy{
|
||||||
|
Default: &BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Maybe we can just work around the afflicted. Let them rest and find other employment."),
|
||||||
|
EnactedDesc: cardsim.MsgStr("[current policy] We're encouraging the afflicted to rest and find other employment."),
|
||||||
|
Do: func(p *Player) (cardsim.Message, error) {
|
||||||
|
p.Stats.MiningIncome -= 0.01
|
||||||
|
p.Stats.PointOfDimReturns += 0.01
|
||||||
|
// TODO: Add a compassion point.
|
||||||
|
return cardsim.MsgStr("Mining is just too strenuous for some kobolds."), nil
|
||||||
|
},
|
||||||
|
Undo: func(p *Player) error {
|
||||||
|
p.Stats.MiningIncome += 0.01
|
||||||
|
p.Stats.PointOfDimReturns -= 0.01
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
CanDo: YesWeCan,
|
||||||
|
},
|
||||||
|
Variants: []Policy{
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Rescinding the healthcare subsidy might ding our population, but it shouldn't ding our compassion. We're being very gentle with these people."),
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Withdrawing explosives access from the suffering may be a life-saving action..."),
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("Maybe we should close the door on this particular otherworldly contact source."),
|
||||||
|
},
|
||||||
|
&BasicPolicy{
|
||||||
|
UnenactedDesc: cardsim.MsgStr("The miners' culture is harsh! There's an argument here for protecting the suffering."),
|
||||||
|
},
|
||||||
|
nil,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, // end of "The Eyes that Break the Ground" policies
|
||||||
|
}, // end of "The Eyes that Break the Ground" card
|
||||||
} // end of card list
|
} // end of card list
|
||||||
|
|
||||||
func initDeck(d *cardsim.Deck[*KoboldMine]) {
|
func initDeck(d *cardsim.Deck[*KoboldMine]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user