2023-04-03 06:24:47 +00:00
package koboldsim
import (
2023-04-05 19:29:23 +00:00
"math"
2023-04-03 06:24:47 +00:00
"git.chromaticdragon.app/kistaro/CardSimEngine/cardsim"
)
// KoboldMine is the state of a kobold mine.
type KoboldMine struct {
2023-04-05 03:23:32 +00:00
BasePopulation float64 ` cardsim:"stathidden" `
2023-04-03 06:24:47 +00:00
2023-04-13 23:06:40 +00:00
MiningIncome float64 ` cardsim:"stathidden" cardsim_name:"Mining Productivity" `
ScavengingIncome float64 ` cardsim:"stathidden" cardsim_name:"Scavenging Productivity" `
AlchemyIncome float64 ` cardsim:"stathidden" cardsim_name:"Alchemy Productivity" `
HospitalityIncome float64 ` cardsim:"stathidden" cardsim_name:"Hospitality Productivity" `
AgricultureIncome float64 ` cardsim:"stathidden" cardsim_name:"Agriculture Productivity" `
ManufacturingIncome float64 ` cardsim:"stathidden" cardsim_name:"Manufacturing Productivity" `
PlanarIncome float64 ` cardsim:"stathidden" cardsim_name:"Planar Productivity" `
PublishingIncome float64 ` cardsim:"stathidden" cardsim_name:"Publishing Productivity" `
ForestryIncome float64 ` cardsim:"stathidden" cardsim_name:"Forestry Productivity" `
FinanceIncome float64 ` cardsim:"stathidden" cardsim_name:"Finance Productivity" `
GadgetryIncome float64 ` cardsim:"stathidden" cardsim_name:"Gadgetry Productivity" `
FishingIncome float64 ` cardsim:"stathidden" cardsim_name:"Fishing Productivity" `
ConstructionIncome float64 ` cardsim:"stathidden" cardsim_name:"Construction Productivity" `
PropagandaExpense float64 ` cardsim:"stathidden" cardsim_name:"Propaganda Investment" `
BureaucracyExpense float64 ` cardsim:"stathidden" cardsim_name:"Bureaucracy Investment" `
WarExpense float64 ` cardsim:"stathidden" cardsim_name:"War Investment" `
QoLExpense float64 ` cardsim:"stathidden" cardsim_name:"QoL Investment" `
LogisticsExpense float64 ` cardsim:"stathidden" cardsim_name:"Logistics Investment" `
DragonSubsExpense float64 ` cardsim:"stathidden" cardsim_name:"Dragon Subsidies Investment" `
ResearchSubsExpense float64 ` cardsim:"stathidden" cardsim_name:"Research Subsidies Investment" `
EducationExpense float64 ` cardsim:"stathidden" cardsim_name:"Education Investment" `
HealthcareExpense float64 ` cardsim:"stathidden" cardsim_name:"Healthcare Investment" `
ForeignRelExpense float64 ` cardsim:"stathidden" cardsim_name:"Foreign Relations Investment" `
PoliceExpense float64 ` cardsim:"stathidden" cardsim_name:"Law Enforcement Investment" `
EconPlanExpense float64 ` cardsim:"stathidden" cardsim_name:"Economic Planning Investment" `
ParksExpense float64 ` cardsim:"stathidden" cardsim_name:"Parks and Aesthetics Investment" `
FaithExpense float64 ` cardsim:"stathidden" cardsim_name:"Faith Investment" `
FoodSupply float64 ` cardsim:"stathidden" `
2023-04-19 18:37:40 +00:00
ObesogenicFood float64 ` cardsim:"stathidden" `
2023-04-13 23:06:40 +00:00
ForeignRelations float64 ` cardsim:"stathidden" `
HiddenRelPenalty float64 ` cardsim:"stathidden" ` // Lower is better.
Secrecy float64 ` cardsim:"stathidden" `
PointOfDimReturns float64 ` cardsim:"stathidden" `
2023-04-05 03:23:32 +00:00
2023-04-04 20:22:43 +00:00
// AnotherExpense float64 `cardsim:"hiddenround5"`
// A different way of adding stats that is slightly more empowering.
2023-04-03 06:24:47 +00:00
}
2023-04-13 23:06:40 +00:00
func ( k * KoboldMine ) ProductivityFunc ( s float64 ) func ( ) float64 {
2023-04-03 06:24:47 +00:00
return func ( ) float64 {
2023-04-13 23:06:40 +00:00
return math . Max ( s * float64 ( k . Kobolds ( ) ) , 0 )
2023-04-03 06:24:47 +00:00
}
}
2023-04-13 23:06:40 +00:00
func ( k * KoboldMine ) ProductivityTotal ( ) float64 {
total := math . Max ( k . MiningIncome , 0.01 )
total += math . Max ( k . ScavengingIncome , 0 )
total += math . Max ( k . AlchemyIncome , 0 )
total += math . Max ( k . HospitalityIncome , 0 )
total += math . Max ( k . AgricultureIncome , 0 )
total += math . Max ( k . ManufacturingIncome , 0 )
total += math . Max ( k . PlanarIncome , 0 )
total += math . Max ( k . PublishingIncome , 0 )
total += math . Max ( k . FinanceIncome , 0 )
total += math . Max ( k . GadgetryIncome , 0 )
total += math . Max ( k . FishingIncome , 0 )
total += math . Max ( k . ConstructionIncome , 0.02 )
total += math . Max ( k . PropagandaExpense , 0 )
total += math . Max ( k . BureaucracyExpense , 0 )
total += math . Max ( k . WarExpense , 0 )
total += math . Max ( k . QoLExpense , 0 )
total += math . Max ( k . LogisticsExpense , 0 )
total += math . Max ( k . DragonSubsExpense , 0 )
total += math . Max ( k . ResearchSubsExpense , 0 )
total += math . Max ( k . EducationExpense , 0 )
total += math . Max ( k . HealthcareExpense , 0 )
total += math . Max ( k . ForeignRelExpense , 0 )
total += math . Max ( k . PoliceExpense , 0 )
total += math . Max ( k . EconPlanExpense , 0 )
total += math . Max ( k . ParksExpense , 0 )
total += math . Max ( k . FaithExpense , 0 )
return total
}
func ( k * KoboldMine ) ProductivityMultiplier ( ) float64 {
return math . Pow ( 0.95 , math . Max ( 0 , k . ProductivityTotal ( ) - k . PointOfDimReturns ) )
}
func ( k * KoboldMine ) TrueMiningIncome ( ) float64 {
return math . Max ( k . MiningIncome * k . ProductivityMultiplier ( ) , 0.01 )
}
func ( k * KoboldMine ) TrueScavengingIncome ( ) float64 {
return math . Max ( k . ScavengingIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueAlchemyIncome ( ) float64 {
return math . Max ( k . AlchemyIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueHospitalityIncome ( ) float64 {
return math . Max ( k . HospitalityIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueAgricultureIncome ( ) float64 {
return math . Max ( k . AgricultureIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueManufacturingIncome ( ) float64 {
return math . Max ( k . ManufacturingIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TruePlanarIncome ( ) float64 {
return math . Max ( k . PlanarIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TruePublishingIncome ( ) float64 {
return math . Max ( k . PublishingIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueForestryIncome ( ) float64 {
return math . Max ( k . ForestryIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueFinanceIncome ( ) float64 {
return math . Max ( k . FinanceIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueGadgetryIncome ( ) float64 {
return math . Max ( k . GadgetryIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueFishingIncome ( ) float64 {
return math . Max ( k . FishingIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueConstructionIncome ( ) float64 {
return math . Max ( k . ConstructionIncome * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TruePropagandaExpense ( ) float64 {
return math . Max ( k . PropagandaExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueBureaucracyExpense ( ) float64 {
return math . Max ( k . BureaucracyExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueWarExpense ( ) float64 {
return math . Max ( k . WarExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueQoLExpense ( ) float64 {
return math . Max ( k . QoLExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueLogisticsExpense ( ) float64 {
return math . Max ( k . LogisticsExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueDragonSubsExpense ( ) float64 {
return math . Max ( k . DragonSubsExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueResearchSubsExpense ( ) float64 {
return math . Max ( k . ResearchSubsExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueEducationExpense ( ) float64 {
return math . Max ( k . EducationExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueHealthcareExpense ( ) float64 {
return math . Max ( k . HealthcareExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueForeignRelExpense ( ) float64 {
return math . Max ( k . ForeignRelExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TruePoliceExpense ( ) float64 {
return math . Max ( k . PoliceExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueEconPlanExpense ( ) float64 {
return math . Max ( k . EconPlanExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueParksExpense ( ) float64 {
return math . Max ( k . ParksExpense * k . ProductivityMultiplier ( ) , 0 )
}
func ( k * KoboldMine ) TrueFaithExpense ( ) float64 {
return math . Max ( k . FaithExpense * k . ProductivityMultiplier ( ) , 0 )
}
2023-04-03 23:18:26 +00:00
func ( k * KoboldMine ) TotalSectorIncome ( ) float64 {
2023-04-13 23:06:40 +00:00
return float64 ( k . Kobolds ( ) ) * ( math . Max ( k . TrueMiningIncome ( ) , 0.01 ) + math . Max ( k . TrueScavengingIncome ( ) , 0 ) + math . Max ( k . TrueAlchemyIncome ( ) , 0 ) + math . Max ( k . TrueHospitalityIncome ( ) , 0 ) + math . Max ( k . TrueAgricultureIncome ( ) , 0 ) + math . Max ( k . TrueManufacturingIncome ( ) , 0 ) + math . Max ( k . TruePlanarIncome ( ) , 0 ) + math . Max ( k . TruePublishingIncome ( ) , 0 ) + math . Max ( k . TrueFinanceIncome ( ) , 0 ) + math . Max ( k . TrueGadgetryIncome ( ) , 0 ) + math . Max ( k . TrueFishingIncome ( ) , 0 ) + math . Max ( k . TrueConstructionIncome ( ) , 0.02 ) )
2023-04-03 06:24:47 +00:00
}
2023-04-03 23:18:26 +00:00
func ( k * KoboldMine ) TotalGovExpense ( ) float64 {
2023-04-13 23:06:40 +00:00
return float64 ( k . Kobolds ( ) ) * ( math . Max ( k . TruePropagandaExpense ( ) , 0 ) + math . Max ( k . TrueBureaucracyExpense ( ) , 0 ) + math . Max ( k . TrueWarExpense ( ) , 0 ) + math . Max ( k . TrueQoLExpense ( ) , 0 ) + math . Max ( k . TrueLogisticsExpense ( ) , 0 ) + math . Max ( k . TrueDragonSubsExpense ( ) , 0 ) + math . Max ( k . TrueResearchSubsExpense ( ) , 0 ) + math . Max ( k . TrueEducationExpense ( ) , 0 ) + math . Max ( k . TrueHealthcareExpense ( ) , 0 ) + math . Max ( k . TrueForeignRelExpense ( ) , 0 ) + math . Max ( k . TruePoliceExpense ( ) , 0 ) + math . Max ( k . TrueEconPlanExpense ( ) , 0 ) + math . Max ( k . TrueParksExpense ( ) , 0 ) + math . Max ( k . TrueFaithExpense ( ) , 0 ) )
2023-04-04 20:22:43 +00:00
}
2023-04-13 23:06:40 +00:00
//func (k *KoboldMine) TotalEconomicPotential() float64 {
// return (math.Max(k.MiningIncome, 0.01) + math.Max(k.ScavengingIncome, 0) + math.Max(k.AlchemyIncome, 0) + math.Max(k.HospitalityIncome, 0) + math.Max(k.AgricultureIncome, 0) + math.Max(k.ManufacturingIncome, 0) + math.Max(k.PlanarIncome, 0) + math.Max(k.PublishingIncome, 0) + math.Max(k.FinanceIncome, 0) + math.Max(k.GadgetryIncome, 0) + math.Max(k.FishingIncome, 0) + math.Max(k.ConstructionIncome, 0.02) + math.Max(k.PropagandaExpense, 0) + math.Max(k.BureaucracyExpense, 0) + math.Max(k.WarExpense, 0) + math.Max(k.QoLExpense, 0) + math.Max(k.LogisticsExpense, 0) + math.Max(k.DragonSubsExpense, 0) + math.Max(k.ResearchSubsExpense, 0) + math.Max(k.EducationExpense, 0) + math.Max(k.HealthcareExpense, 0) + math.Max(k.ForeignRelExpense, 0) + math.Max(k.PoliceExpense, 0) + math.Max(k.EconPlanExpense, 0) + math.Max(k.ParksExpense, 0) + math.Max(k.FaithExpense, 0)) * 0.8
//} // This function is intended to enable "crowding out" effects at a later point. Each +1 increase in overall productivity increases TEP by 0.8, losing 1/5th of the gain to crowding, which should manifest as everything else declining. Now, uh... How do I scale investments by the TEP stat? With a simple multiplication, a 0.01 increase to mining would be a 0.08 increase to everything else. Damn it, I thought I had something.
2023-04-04 20:22:43 +00:00
func ( k * KoboldMine ) Taxation ( ) float64 {
return ( k . TotalGovExpense ( ) / ( k . TotalSectorIncome ( ) + k . TotalGovExpense ( ) ) ) * 100
}
func ( k * KoboldMine ) StatTaxRate ( ) float64 {
return k . Taxation ( )
2023-04-03 06:24:47 +00:00
}
2023-04-05 03:23:32 +00:00
func ( k * KoboldMine ) Kobolds ( ) int64 {
2023-04-13 23:06:40 +00:00
return int64 ( ( k . BasePopulation + ( k . HealthcareExpense * 1000 ) ) * k . FoodSupply * ( 1 - 0.5 * ( k . StatObesity ( ) / 100 ) ) * ( 1 + k . TrueForeignRelations ( ) ) )
2023-04-05 03:23:32 +00:00
}
func ( k * KoboldMine ) DisplayedFoodSupply ( ) float64 {
return ( k . FoodSupply - 1 ) * 100
}
2023-04-19 18:37:40 +00:00
func ( k * KoboldMine ) StatObesogenicity ( ) float64 {
return ( k . ObesogenicFood - 1 ) * 100
}
2023-04-05 19:29:23 +00:00
func ( k * KoboldMine ) StatObesity ( ) float64 {
2023-04-19 18:37:40 +00:00
return ( 100 / ( 2.3 + math . Exp ( - 0.04 * ( k . DisplayedFoodSupply ( ) - 37 ) ) ) ) + 100 / ( 2.3 + math . Exp ( - 0.04 * ( k . StatObesogenicity ( ) - 37 ) ) )
2023-04-06 03:26:57 +00:00
}
func ( k * KoboldMine ) TrueForeignRelations ( ) float64 {
return ( 1 - math . Max ( math . Min ( k . Secrecy , 1 ) , 0 ) ) * ( math . Max ( math . Min ( k . ForeignRelations , 1 ) , - 1 ) - k . HiddenRelPenalty )
}
func ( k * KoboldMine ) DisplayedForeignRelations ( ) float64 {
return math . Max ( math . Min ( ( k . ForeignRelations * 100 ) , 100 ) , - 100 )
}
func ( k * KoboldMine ) DisplayedSecrecy ( ) float64 {
return k . Secrecy * 100
2023-04-05 19:29:23 +00:00
}
2023-04-03 06:24:47 +00:00
func ( k * KoboldMine ) Stats ( ) [ ] cardsim . Stat {
stats := cardsim . ExtractStats ( k )
funcs := [ ] cardsim . Stat {
cardsim . StatFunc (
2023-04-04 17:33:14 +00:00
"Mining Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueMiningIncome ( ) ) ,
2023-04-03 06:24:47 +00:00
) ,
cardsim . StatFunc (
2023-04-04 17:33:14 +00:00
"Scavenging Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueScavengingIncome ( ) ) ,
2023-04-03 06:24:47 +00:00
) ,
cardsim . StatFunc (
2023-04-04 17:33:14 +00:00
"Alchemy Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueAlchemyIncome ( ) ) ,
2023-04-03 06:24:47 +00:00
) ,
cardsim . StatFunc (
2023-04-04 17:33:14 +00:00
"Hospitality Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueHospitalityIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Agriculture Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueAgricultureIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Manufacturing Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueManufacturingIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Planar Harvesting Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TruePlanarIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Book Publishing Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TruePublishingIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
2023-04-06 03:26:57 +00:00
cardsim . StatFunc (
"Forestry Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueForestryIncome ( ) ) ,
2023-04-06 03:26:57 +00:00
) ,
2023-04-04 17:33:14 +00:00
cardsim . StatFunc (
"Finance Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueFinanceIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Gadgetry Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueGadgetryIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Fishing Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueFishingIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Construction Income" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueConstructionIncome ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
2023-04-05 07:09:12 +00:00
cardsim . StatFunc (
"Propaganda Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TruePropagandaExpense ( ) ) ,
2023-04-05 07:09:12 +00:00
) ,
2023-04-04 17:33:14 +00:00
cardsim . StatFunc (
"Bureaucracy Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueBureaucracyExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"War Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueWarExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"QoL Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueQoLExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Logistics Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueLogisticsExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Dragon Subsidies" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueDragonSubsExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Research Subsidies" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueResearchSubsExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Education Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueEducationExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Healthcare Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueHealthcareExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Foreign Relations Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueForeignRelExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Law Enforcement Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TruePoliceExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Economic Planning Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueEconPlanExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Parks and Aesthetics Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueParksExpense ( ) ) ,
2023-04-04 17:33:14 +00:00
) ,
cardsim . StatFunc (
"Faith Expense" ,
2023-04-13 23:06:40 +00:00
k . ProductivityFunc ( k . TrueFaithExpense ( ) ) ,
2023-04-03 06:24:47 +00:00
) ,
cardsim . StatFunc (
2023-04-03 21:35:36 +00:00
"Total Sector Income" ,
2023-04-03 23:18:26 +00:00
k . TotalSectorIncome ,
2023-04-03 06:24:47 +00:00
) ,
cardsim . StatFunc (
2023-04-03 21:35:36 +00:00
"Total Government Expense" ,
2023-04-03 23:18:26 +00:00
k . TotalGovExpense ,
2023-04-03 06:24:47 +00:00
) ,
2023-04-06 03:26:57 +00:00
cardsim . StatFunc (
"Foreign Relations" ,
k . DisplayedForeignRelations ,
) ,
cardsim . StatFunc (
"Secrecy" ,
k . DisplayedSecrecy ,
) ,
2023-04-05 03:23:32 +00:00
cardsim . StatFunc (
"Food Supply" ,
k . DisplayedFoodSupply ,
) ,
cardsim . StatFunc (
"Kobolds" ,
k . Kobolds ,
) ,
2023-04-03 06:24:47 +00:00
}
stats = append ( stats , funcs ... )
2023-04-04 17:33:14 +00:00
// cardsim.SortStats(stats)
2023-04-03 06:24:47 +00:00
return stats
}
func NewKoboldMine ( ) * KoboldMine {
return & KoboldMine {
2023-04-19 18:37:40 +00:00
BasePopulation : 1025 ,
2023-04-04 20:22:43 +00:00
MiningIncome : 0.15 ,
ScavengingIncome : 0.1 ,
AlchemyIncome : 0.01 ,
HospitalityIncome : 0.0 ,
AgricultureIncome : 0.0 ,
ManufacturingIncome : 0.10 ,
PlanarIncome : 0.00 ,
PublishingIncome : 0.02 ,
2023-04-06 03:26:57 +00:00
ForestryIncome : 0.0 ,
2023-04-04 20:22:43 +00:00
FinanceIncome : 0.02 ,
GadgetryIncome : 0.03 ,
FishingIncome : 0.0 ,
ConstructionIncome : 0.05 ,
2023-04-05 07:09:12 +00:00
PropagandaExpense : 0.01 ,
2023-04-04 20:22:43 +00:00
BureaucracyExpense : 0.05 ,
WarExpense : 0.1 ,
QoLExpense : 0.01 ,
LogisticsExpense : 0.02 ,
DragonSubsExpense : 0.0 ,
ResearchSubsExpense : 0.0 ,
EducationExpense : 0.01 ,
HealthcareExpense : 0.01 ,
ForeignRelExpense : 0.0 ,
PoliceExpense : 0.03 ,
EconPlanExpense : 0.02 ,
ParksExpense : 0.0 ,
FaithExpense : 0.03 ,
2023-04-05 03:23:32 +00:00
FoodSupply : 0.20 ,
2023-04-06 03:26:57 +00:00
ForeignRelations : - 0.40 ,
HiddenRelPenalty : - 0.01 ,
Secrecy : .95 ,
2023-04-13 23:06:40 +00:00
PointOfDimReturns : 1.0 ,
2023-04-03 06:24:47 +00:00
}
}
2023-04-13 23:06:40 +00:00
// Note that the mine initializes with 1.02 points of overall productivity.