// Proposed naming convention: <EFFECT_NAME> _ <METER_NAME> _ FLAT/PERPOP/<others>
// Examples:
// - PLC_CONFEDERATION_TARGET_HAPPINESS_FLAT (flat bonus/malus to TargetHappiness from policy PLC_CONFEDERATION)
// - GARRISON_2_TROOPREGEN_FLAT (flat bonus/malus to troop regen from tech Garrison_2
// - GRO_CYBORGS_MAX_TROOPS_PERPOP (bonus/malus per population to MaxTroops from tech GRO_CYBORGS)

NamedReal name = "ANCIENT_RUINS_TARGET_RESEARCH_PERPOP" value = (5 * [[RESEARCH_PER_POP]])

NamedReal name = "ANCIENT_RUINS_MIN_STABILITY" value = 12

NamedReal name = "IMPERIAL_GARRISON_MAX_TROOPS_FLAT" value = 6

NamedReal name = "SHP_REINFORCED_HULL_BONUS" value = (5 * [[SHIP_STRUCTURE_FACTOR]])

NamedInteger name = "NUM_COMBAT_ROUNDS" value = (GameRule name = "RULE_NUM_COMBAT_ROUNDS")

NamedInteger name = "NUM_COMBAT_ROUNDS_FIGHTERS" value = (GameRule name = "RULE_NUM_COMBAT_ROUNDS") - 1

NamedInteger name = "FIRST_COMBAT_ROUND_IN_CLOSE_TARGETING_RANGE" value = (GameRule name = "RULE_FIRST_COMBAT_ROUND_IN_CLOSE_TARGETING_RANGE")

NamedReal name = "AUGMENTATION_FULL_GROWTH_INFRASTRUCTURE_REQUIREMENT" value = 40.0

// For calculation we mostly need a real value
NamedReal name = "NUM_REAL_COMBAT_ROUNDS_IN_CLOSE_TARGETING_RANGE" value = (GameRule name = "RULE_NUM_COMBAT_ROUNDS") - (GameRule name = "RULE_FIRST_COMBAT_ROUND_IN_CLOSE_TARGETING_RANGE") + 1

NamedInteger name = "MIN_COLONY_SIZE" value = [[MIN_RECOLONIZING_SIZE]]

NamedInteger name = "MIN_COLONY_HAPPINESS" value = [[MIN_RECOLONIZING_HAPPINESS]]

NamedInteger name = "MIN_MONSTER_DISTANCE" value = (GameRule name = "RULE_MINIMUM_MONSTER_DISTANCE_CAPITAL") - 1

// Spatial Flux Stealth section
NamedReal name = "SPATIAL_FLUX_STEALTH_HULL_BASE" value = [[SPATIAL_FLUX_STEALTH_HULL_BASE]]
NamedReal name = "SPATIAL_FLUX_STEALTH_ARRIVAL_MALUS" value = 30
NamedReal name = "SPATIAL_FLUX_STEALTH_NON_AGGRESSIVE_BONUS" value = [[SPATIAL_FLUX_STEALTH_NON_AGGRESSIVE_BONUS]]
NamedReal name = "SPATIAL_FLUX_STEALTH_NON_AGGRESSIVE" value = [[SPATIAL_FLUX_STEALTH_HULL_BASE]] + [[SPATIAL_FLUX_STEALTH_NON_AGGRESSIVE_BONUS]]
NamedReal name = "SPATIAL_FLUX_STEALTH_TECH_BONUS" value = 10

SPATIAL_FLUX_STEALTH_HULL_BASE
'''15'''

SPATIAL_FLUX_STEALTH_NON_AGGRESSIVE_BONUS
'''10'''

// Black hole and hyper dam
NamedReal name = "BLD_BLACK_HOLE_POW_GEN_MIN_STABILITY" value = 20

NamedReal name = "PLC_LIBERTY_DISLIKE_FACTOR" value = 2.0

NamedReal name = "PLC_CONFORMANCE_DISLIKE_FACTOR" value = 0.5

NamedReal name = "FLD_NEBULA_SPEED_MALUS" value = 20
NamedReal name = "FLD_NEBULA_STEALTH_BONUS" value = 20
NamedReal name = "FLD_NEBULA_DETECTION_MALUS" value = 20

NamedInteger name = "XENOPHOBIC_MAX_JUMPS" value = 4

NamedReal name = "PROTECION_FOCUS_STABILITY_BONUS" value = (GameRule name = "RULE_PROTECTION_FOCUS_STABILITY")
NamedReal name = "SHP_LIVING_HULL_REPAIR" value = (2 * [[SHIP_STRUCTURE_FACTOR]])
NamedReal name = "SHP_LIVING_HULL_FUEL_REGEN" value = 0.3
NamedReal name = "SHP_ROBOTIC_REPAIR" value = (2 * [[SHIP_STRUCTURE_FACTOR]])

NamedReal name = "FORTRESS_SPECIAL_SYSTEM_MINES" value = 3 * [[SYSTEM_MINES_DAMAGE_FACTOR]]
NamedReal name = "DEF_SYST_DEF_MINE_1_DAMAGE" value = 2 * [[SYSTEM_MINES_DAMAGE_FACTOR]]
NamedReal name = "DEF_SYST_DEF_MINE_2_DAMAGE" value = 6 * [[SYSTEM_MINES_DAMAGE_FACTOR]]
NamedReal name = "DEF_SYST_DEF_MINE_3_DAMAGE" value = 14 * [[SYSTEM_MINES_DAMAGE_FACTOR]]

NamedReal name = "FU_RAMSCOOP_REFUEL" value = 0.4

#include "/scripting/macros/misc.macros"
#include "/scripting/macros/base_prod.macros"
#include "/scripting/macros/priorities.macros"
