Food supply tweaks, new card

This commit is contained in:
2023-04-19 11:37:40 -07:00
parent a4692712cc
commit 976610b1bb
2 changed files with 188 additions and 7 deletions

View File

@@ -40,6 +40,7 @@ type KoboldMine struct {
FaithExpense float64 `cardsim:"stathidden" cardsim_name:"Faith Investment"`
FoodSupply float64 `cardsim:"stathidden"`
ObesogenicFood float64 `cardsim:"stathidden"`
ForeignRelations float64 `cardsim:"stathidden"`
HiddenRelPenalty float64 `cardsim:"stathidden"` // Lower is better.
Secrecy float64 `cardsim:"stathidden"`
@@ -225,8 +226,12 @@ func (k *KoboldMine) DisplayedFoodSupply() float64 {
return (k.FoodSupply - 1) * 100
}
func (k *KoboldMine) StatObesogenicity() float64 {
return (k.ObesogenicFood - 1) * 100
}
func (k *KoboldMine) StatObesity() float64 {
return 100 / (2.3 + math.Exp(-0.04*(k.DisplayedFoodSupply()-37)))
return (100 / (2.3 + math.Exp(-0.04*(k.DisplayedFoodSupply()-37)))) + 100/(2.3+math.Exp(-0.04*(k.StatObesogenicity()-37)))
}
func (k *KoboldMine) TrueForeignRelations() float64 {
@@ -384,7 +389,7 @@ func (k *KoboldMine) Stats() []cardsim.Stat {
func NewKoboldMine() *KoboldMine {
return &KoboldMine{
BasePopulation: 1030,
BasePopulation: 1025,
MiningIncome: 0.15,
ScavengingIncome: 0.1,
AlchemyIncome: 0.01,