IncompleteImplementationofSecondIssue

This commit is contained in:
2023-04-03 16:18:26 -07:00
parent 0e77206868
commit 8ce6539c8a
3 changed files with 88 additions and 8 deletions

View File

@@ -21,11 +21,11 @@ func (k *KoboldMine) ProductivityFunc(s *cardsim.Stored[float64]) func() float64
}
}
func (k *KoboldMine) TotalSectorProductivity() float64 {
func (k *KoboldMine) TotalSectorIncome() float64 {
return float64(k.Kobolds.Value) * (k.SectorMiningIncome.Value + k.SectorScavengingIncome.Value)
}
func (k *KoboldMine) TotalGovProductivity() float64 {
func (k *KoboldMine) TotalGovExpense() float64 {
return float64(k.Kobolds.Value) * (k.GovBureaucracyExpense.Value + k.GovWarExpense.Value)
}
@@ -50,11 +50,11 @@ func (k *KoboldMine) Stats() []cardsim.Stat {
),
cardsim.StatFunc(
"Total Sector Income",
k.TotalSectorProductivity,
k.TotalSectorIncome,
),
cardsim.StatFunc(
"Total Government Expense",
k.TotalGovProductivity,
k.TotalGovExpense,
),
}
stats = append(stats, funcs...)
@@ -73,7 +73,7 @@ func NewKoboldMine() *KoboldMine {
Value: 0.15,
},
SectorScavengingIncome: cardsim.Stored[float64]{
Name: "Sector Scavening Income",
Name: "Sector Scavenging Income",
Value: 0.1,
},
GovBureaucracyExpense: cardsim.Stored[float64]{