-
Notifications
You must be signed in to change notification settings - Fork 160
/
BALANCE.focs.txt
43 lines (40 loc) · 2.08 KB
/
BALANCE.focs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Policy
name = "PLC_BALANCE"
description = "PLC_BALANCE_DESC"
short_description = "PLC_BALANCE_SHORT_DESC"
category = "ECONOMIC_CATEGORY"
adoptioncost = floor(2.0 * [[POPULATION_OWNED_BY_EMPIRE]]^0.5)
exclusions = [ "PLC_TECHNOCRACY" "PLC_INDUSTRIALISM" "PLC_STOCKPILE_LIQUIDATION" ]
effectsgroups = [
[[SPECIES_LIKES_OR_DISLIKES_POLICY_STABILITY_EFFECTS]]
EffectsGroup
scope = And [
Capital
OwnedBy empire = Source.Owner
]
priority = [[TARGET_AFTER_2ND_SCALING_PRIORITY]]
effects = [
// want bigger bonus for using equal numbers of each focus settings
// 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 + ((NamedRealLookup name = "PLC_BALANCE_INFLUENCE_SCALING" value = 4.0) *
((Statistic CountUnique
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]) - 1)
/ (1 + Statistic HistogramSpread
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]))
SetTargetHappiness value = Value + ((NamedRealLookup name = "PLC_BALANCE_STABILITY_SCALING" value = 2.0) *
((Statistic CountUnique
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]) - 1)
/ (1 + Statistic HistogramSpread
value = LocalCandidate.Focus
condition = And [ Planet OwnedBy empire = Source.Owner ]))
]
]
graphic = "icons/policies/balance.png"
#include "/scripting/common/base_prod.macros"
#include "/scripting/common/priorities.macros"
#include "/scripting/policies/policies.macros"