IncompleteImplementationofSecondIssue
This commit is contained in:
@@ -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]{
|
||||
|
Reference in New Issue
Block a user