EffectsGroup Priority Standard Values

From FreeOrionWiki
Revision as of 22:11, 19 November 2018 by Dilvish (Talk | contribs) (updated priorities to reflect June 2018 fixes PR)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The order of execution of EffectsGroups is determined primarily by their specified Priority, and secondarily by their cause/source. A number of standard reference Priority values are specified in default\scripting\common\priorities.macros

Probably the largest and most complex set of interrelated EffectsGroups is that for various Population Effects, whose relative priority is critical to their proper operation. For reference, the current (as of this writing) order of their application is summarized below. Except as noted, the effects are upon the TargetPopulation meter

Used terms/keys

+1   adds one Population
+1HS effect adds the HabitableSize of the planet to the Population
+2HS effect adds twice the HabitableSize of the planet to the Population
..
*0.75 multiplies the current Population value with 0.75

TARGET_POPULATION_BEFORE_SCALING_PRIORITY

+3HS/+0HS/-2HS/-4HS  Planet environment = Good/Adequate/Poor/Hostile
+2HS  Gro_Cyborg (hostile)   
+1HS  Gro_Symbiotic_Bio  
+2HS/+1HS Gro_Xeno_Genetics (poor,adequate/hostile) 
+1HS/+2HS Gro_Xeno_Hybrids (poor/hostile) 

TARGET_POPULATION_SCALING_PRIORITY

*0.5  Gaseous Population malus
*0.75 Bad Population malus
*1.25 Good_Population	bonus

TARGET_POPULATION_AFTER_SCALING_PRIORITY

-1HS  HyperDam
+3HS  Gaia
+1HS  Growth Special/Focus    
-5HS  Temporal_Anomaly_Special
-1HS  Tidal Lock Special
+1    WorldTree Special
-4HS  Dimensional Rift
-2HS/-1HS  Banforo Blue/White star malus
-4HS  Bioterror Focus
+2HS  Homeworld planet bonus
+1HS  Homeworld Growth Focus
+3HS  Self Sustaining
+2HS  Con_Ndim_Strc
+1HS  Con_Orbital_Hab  
+1    Gro_Planet_Ecol (good,adequate)  
+1HS  Gro_Subter_Hab

TARGET_POPULATION_LAST_BEFORE_OVERRIDE_PRIORITY

+3HS/+1.5HS/-1HS/-10HS  Phototrophic_Bonus (Blue/White/Red,Neutron/Blackhole,NoStar)
Xenophobic penalty

TARGET_POPULATION_OVERRIDE_PRIORITY

Planet environment = Uninhabitable

EARLY_FIRST_NATURAL_POPULATION_PRIORITY

Incremental Growth/Decay of Current Population towards (initial) Target Population

DEFAULT_PRIORITY

???  Lifecycle_Manip_Population_Effects