Change "Productivity" to "Income" and "Expense

Also fixes a typo and an incorrectly assigned variable.
This commit is contained in:
2023-04-03 14:35:36 -07:00
parent 4e983bd0f0
commit 0e77206868
2 changed files with 36 additions and 36 deletions

View File

@@ -13,14 +13,14 @@ var cards = []Card{
EnactedDesc: cardsim.MsgStr("[current policy] Your war chief is presntly monitoring the situation, building up your military, and securing your creches."),
Do: func(p *Player) (cardsim.Message, error) {
p.Stats.Kobolds.Value += 100
p.Stats.SectorScavengingProductivity.Value += 0.01
p.Stats.GovWarProductivity.Value += 0.02
p.Stats.SectorScavengingIncome.Value += 0.01
p.Stats.GovWarExpense.Value += 0.02
return cardsim.MsgStr("Kobolds are known to be born warriors."), nil
},
Undo: func(p *Player) error {
p.Stats.Kobolds.Value -= 100
p.Stats.SectorScavengingProductivity.Value -= 0.01
p.Stats.GovWarProductivity.Value -= 0.02
p.Stats.SectorScavengingIncome.Value -= 0.01
p.Stats.GovWarExpense.Value -= 0.02
return nil
},
},
@@ -29,14 +29,14 @@ var cards = []Card{
EnactedDesc: cardsim.MsgStr("[current policy] Your head miner is presently leading a project to dig as far away from the surface as possible."),
Do: func(p *Player) (cardsim.Message, error) {
p.Stats.Kobolds.Value += 40
p.Stats.SectorMiningProductivity.Value += 0.02
p.Stats.GovBureaucracyProductivity.Value += 0.01
p.Stats.SectorMiningIncome.Value += 0.02
p.Stats.GovBureaucracyExpense.Value += 0.01
return cardsim.MsgStr("Kobolds are known to be cowards hiding in the dark."), nil
},
Undo: func(p *Player) error {
p.Stats.Kobolds.Value -= 40
p.Stats.SectorMiningProductivity.Value -= 0.02
p.Stats.GovBureaucracyProductivity.Value -= 0.01
p.Stats.SectorMiningIncome.Value -= 0.02
p.Stats.GovBureaucracyExpense.Value -= 0.01
return nil
},
},
@@ -45,14 +45,14 @@ var cards = []Card{
EnactedDesc: cardsim.MsgStr("[current policy] Military funding has been diverted into early childhood education."),
Do: func(p *Player) (cardsim.Message, error) {
p.Stats.Kobolds.Value -= 40
p.Stats.SectorScavengingProductivity.Value -= 0.01
p.Stats.GovWarProductivity.Value -= 0.02
p.Stats.SectorScavengingIncome.Value -= 0.01
p.Stats.GovWarExpense.Value -= 0.02
return cardsim.MsgStr("An undefended hunting outpost near the surface was recently wiped out by a raid."), nil
},
Undo: func(p *Player) error {
p.Stats.Kobolds.Value += 40
p.Stats.SectorScavengingProductivity.Value += 0.01
p.Stats.GovWarProductivity.Value += 0.02
p.Stats.SectorScavengingIncome.Value += 0.01
p.Stats.GovWarExpense.Value += 0.02
return nil
},
},