Policy
    name = "PLC_MARTIAL_LAW"
    description = "PLC_MARTIAL_LAW_DESC"
    short_description = "PLC_MARTIAL_LAW_SHORT_DESC"
    category = "MILITARY_CATEGORY"
    adoptioncost = floor(2.0 * [[POPULATION_OWNED_BY_EMPIRE]]^0.5)
    exclusions = [ "PLC_BLACK_MARKET" "PLC_LIBERTY" ]
    effectsgroups = [
        [[SPECIES_LIKES_OR_DISLIKES_POLICY_STABILITY_EFFECTS]]

        // makes planets more stable at cost of research and supply range
        EffectsGroup
            scope = And [
                Planet
                OwnedBy empire = Source.Owner
                Species
            ]
            effects = [
                SetTargetHappiness value = Value + Target.Troops * (NamedReal name = "PLC_MARTIAL_LAW_STABILITY_PER_TROOPS" value = 0.2)
                SetTargetResearch value = Value - Target.Troops * (NamedRealLookup name = "PLC_MARTIAL_LAW_STABILITY_PER_TROOPS")
                SetMaxSupply value = Value - (NamedReal name = "PLC_MARTIAL_LAW_SUPPLY_PENALTY" value = 1.0)
            ]
    ]
    graphic = "icons/policies/military_martial_law.png"

#include "/scripting/policies/policies.macros"
