Skip to content

Commit

Permalink
tweak Balance policy focus-dependent formula, so that the effect is a…
Browse files Browse the repository at this point in the history
…dditive rather than multiplicative, and having only a single focus used, and thus a spread of 0 between most and least common used focus, can't give a big bonus
  • Loading branch information
geoffthemedio committed Oct 21, 2021
1 parent 731f49a commit 1563a4c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions default/scripting/policies/BALANCE.focs.txt
Expand Up @@ -19,18 +19,18 @@ Policy
// and for using a greater variety of focus settings
// focus used equally -> decrease with HistoSpread
// use more different focus -> increase with CountUnique
SetTargetInfluence value = (Value + 1) * (1 + 0.5 *
Statistic CountUnique
SetTargetInfluence value = Value + ((NamedRealLookup name = "PLC_BALANCE_INFLUENCE_SCALING" value = 4.0) *
((Statistic CountUnique
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]
condition = And [ Planet OwnedBy empire = Source.Owner ]) - 1)
/ (1 + Statistic HistogramSpread
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]))

SetTargetHappiness value = Value * (1 + 0.1 *
Statistic CountUnique
SetTargetHappiness value = Value + ((NamedRealLookup name = "PLC_BALANCE_STABILITY_SCALING" value = 2.0) *
((Statistic CountUnique
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]
condition = And [ Planet OwnedBy empire = Source.Owner ]) - 1)
/ (1 + Statistic HistogramSpread
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]))
Expand Down

0 comments on commit 1563a4c

Please sign in to comment.