Skip to content

Commit

Permalink
Nerf Necessity on lower pop, higher stability planets (#4332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberlus committed Nov 29, 2022
1 parent ff64cb0 commit 25de546
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions default/scripting/policies/NECESSITY.focs.txt
Expand Up @@ -14,10 +14,12 @@ Policy
OwnedBy empire = Source.Owner
Focus type = "FOCUS_RESEARCH"
Not Happiness low = (NamedReal name = "PLC_NECESSITY_MAX_STABILITY" value = 6)
Happiness low = 0
]
effects = [
SetTargetResearch value = Value +
(Target.Population * max(0.0, (NamedRealLookup name = "PLC_NECESSITY_MAX_STABILITY") - Target.Happiness))^0.5
SetTargetResearch value = Value + Target.Population *
(NamedReal name = "PLC_NECESSITY_TARGET_RESEARCH_FACTOR" value = 0.02) *
max(0.0, (NamedRealLookup name = "PLC_NECESSITY_MAX_STABILITY") - Target.Happiness)^1.5
SetResearch value = min(Target.TargetResearch, Value + (NamedReal name = "PLC_NECESSITY_RESEARCH_GROWTH_BOOST" value = 1.0))
]
]
Expand Down
6 changes: 4 additions & 2 deletions default/stringtables/en.txt
Expand Up @@ -12644,8 +12644,10 @@ PLC_NECESSITY
Necessity

PLC_NECESSITY_DESC
'''On research focused planets with [[metertype METER_HAPPINESS]] less than [[value PLC_NECESSITY_MAX_STABILITY]]:
• Increases [[metertype METER_TARGET_RESEARCH]] by the square root of the product of population and how far [[metertype METER_HAPPINESS]] is below [[value PLC_NECESSITY_MAX_STABILITY]].
'''Necessity is the mother of invention.

On research focused planets with [[metertype METER_HAPPINESS]] less than [[value PLC_NECESSITY_MAX_STABILITY]]:
• Increases [[metertype METER_TARGET_RESEARCH]] by [[value PLC_NECESSITY_TARGET_RESEARCH_FACTOR]] multiplied by the power to 1.5 of how far [[metertype METER_HAPPINESS]] is below [[value PLC_NECESSITY_MAX_STABILITY]] multiplied by [[metertype METER_POPULATION]].
• Increases [[metertype METER_RESEARCH]] growth by [[value PLC_NECESSITY_RESEARCH_GROWTH_BOOST]] per turn.'''

PLC_NECESSITY_SHORT_DESC
Expand Down

0 comments on commit 25de546

Please sign in to comment.