Special
    name = "ECCENTRIC_ORBIT_SPECIAL"
    description = "ECCENTRIC_ORBIT_SPECIAL_DESC"
    stealth = 0
    spawnrate = 0.2
    spawnlimit = 9999
    location = And [
        Planet
        Not Capital
        Not Planet type = [Asteroids GasGiant]
        Not Star type = [NoStar]
    ]
    effectsgroups = [
        EffectsGroup
            scope = Source
            activation = And [
                Not Population high = 0
                Happiness low = (NamedReal name = "ECCENTRIC_ORBIT_MIN_STABILITY" value = 12)
            ]
            priority = [[TARGET_AFTER_SCALING_PRIORITY]]
            effects = SetTargetResearch value = Value + (NamedReal name = "ECCENTRIC_ORBIT_TARGET_RESEARCH_FLAT" value = 3)

        EffectsGroup
            scope = Source
            activation = Not Population high = 0
            priority = [[TARGET_AFTER_SCALING_PRIORITY]]
            effects = SetMaxSupply value = Value + (NamedReal name = "ECCENTRIC_ORBIT_MAX_SUPPLY_FLAT" value = -2)

        EffectsGroup
            scope = Source
            activation = Star type = [NoStar]
            effects = RemoveSpecial name = "ECCENTRIC_ORBIT_SPECIAL"

        [[SPECIAL_LIKES_OR_DISLIKES_SPECIAL_STABILITY_EFFECTS]]
    ]
    graphic = "icons/specials_huge/eccentric_orbit.png"

#include "/scripting/macros/priorities.macros"
#include "/scripting/specials/specials.macros.txt"