Special
    name = "TIDAL_LOCK_SPECIAL"
    description = "TIDAL_LOCK_SPECIAL_DESC"
    stealth = 0
    spawnrate = 0.2
    spawnlimit = 9999
    location = And [
        Planet
        Not Capital
        Not Planet type = [Asteroids GasGiant]
    ]
    // TODO: make sure this does not happen at starless worlds
    effectsgroups = [
        EffectsGroup
            scope = And [
                Source
                Focus type = "FOCUS_INDUSTRY"
            ]
            effects = SetTargetIndustry value = Value + Target.Population
                        * (NamedReal name = "TIDAL_LOCK_TARGET_INDUSTRY_PERPOP"
                                     value = 1.0 * [[INDUSTRY_PER_POP]])

        EffectsGroup
            scope = Object id = Source.PlanetID
            activation = Species
            accountinglabel = "TIDAL_LOCK_LABEL"
            priority = [[TARGET_POPULATION_AFTER_SCALING_PRIORITY]]
            effects = SetTargetPopulation value = Value + Target.HabitableSize 
                        * (NamedReal name = "TIDAL_LOCK_TARGET_POPULATION_PERSIZE" value = -1)
        
        [[SPECIAL_LIKES_OR_DISLIKES_SPECIAL_STABILITY_EFFECTS]]
    ]
    graphic = "icons/specials_huge/tidal_lock.png"

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