From 350fd0f777385ead42beee8a490659c86c48ae71 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 13 May 2023 20:15:57 -0700 Subject: [PATCH] Use Mean to calculate StatChaos. --- koboldsim/stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldsim/stats.go b/koboldsim/stats.go index 10e7a7c..b2f011d 100644 --- a/koboldsim/stats.go +++ b/koboldsim/stats.go @@ -285,7 +285,7 @@ func (k *KoboldMine) StatSqualor() float64 { // So I want squalor to be a value between 100 and 0 that reduces readily at the start and then becomes increasingly difficult to further reduce. This initial squalor stat starts at about 80%, but may not change rapidly enough. Note that the 1.2-(2* sequence is meant to balance it at 80% starting point. If I change the velocity on the 2* side, I have to change the 1.2 offset as well. I really hope this math works, because I don't quite understand it. func (k *KoboldMine) StatChaos() float64 { - return (k.Rebellion + k.Madness + k.Cruelty) / 3 + return Mean(k.Rebellion, k.Madness, k.Cruelty) } func (k *KoboldMine) Stats() []cardsim.Stat {