# Wanderers
system "Pug Iyik"
    music "pug"

planet "Vara Pug"
    music "pug"

# Reconciliation
event "pug invasion"
    unlink "Zeta Aquilae" "Ascella"
    unlink "Rasalhague" "Cebalrai"
    unlink "Rasalhague" "Ascella"
    link "Deneb" "Zeta Aquilae"
    link "Deneb" "Rasalhague"
    unvisit "Zeta Aquilae"
    unvisit "Rasalhague"
    unvisit "Orvala"
    unvisit "Deneb"
    unvisit "Cebalrai"
    unvisit "Ascella"
    unvisit "Peacock"
    "tribute: Rand" /= 500
    "tribute: Oblivion" /= 500
    system "Deneb"
        music "Pug"
    planet "Pugglemug"
        music "Pug"
    planet "Pugglequat"
        music "Pug"
    system "Zeta Aquilae"
        government "Pug"
        fleet "Small Southern Merchants" 1000
        fleet "Large Southern Merchants" 3000
        fleet "Small Pug" 1000
        fleet "Large Pug" 2000
        music "pug"
    system "Rasalhague"
        government "Pug"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
        fleet "Small Pug" 800
        fleet "Large Pug" 2000
        music "pug"
    system "Orvala"
        government "Pug"
        fleet "Small Southern Merchants" 3000
        fleet "Large Southern Merchants" 6000
        fleet "Small Pug" 5000
        fleet "Large Pug" 9000
        music "pug"
    planet "Rand"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Oblivion"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"

event "pug invasion 2"
    unlink "Vega" "Menkent"
    unlink "Vega" "Sol"
    unlink "Altair" "Sol"
    unlink "Fomalhaut" "Markab"
    link "Deneb" "Vega"
    link "Deneb" "Altair"
    unvisit "Vega"
    unvisit "Altair"
    unvisit "Nocte"
    unvisit "Fomalhaut"
    unvisit "Markab"
    "tribute: Silver" /= 700
    "tribute: Shiver" /= 300
    "tribute: Millrace" /= 1400
    system "Menkent"
        remove fleet "Republic Logistics"
    system "Vega"
        government "Pug"
        fleet "Small Northern Merchants" 800
        fleet "Large Northern Merchants" 3000
        fleet "Small Pug" 800
        fleet "Large Pug" 1200
        music "pug"
    system "Altair"
        government "Pug"
        fleet "Small Core Merchants" 400
        fleet "Large Core Merchants" 600
        fleet "Small Northern Merchants" 1000
        fleet "Large Northern Merchants" 3000
        fleet "Small Pug" 700
        fleet "Large Pug" 900
        music "pug"
    system "Fomalhaut"
        government "Pug"
        fleet "Small Core Merchants" 1000
        fleet "Large Core Merchants" 1200
        fleet "Small Pug" 1400
        fleet "Large Pug" 2000
        music "pug"
    system "Nocte"
        government "Pug"
        fleet "Small Northern Merchants" 1500
        fleet "Large Northern Merchants" 5000
        fleet "Small Pug" 3000
        fleet "Large Pug" 7000
        fleet "Human Miners" 1600
        music "pug"
    planet "Silver"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Shiver"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Millrace"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"

event "pug invasion 3"
    unlink "Delta Capricorni" "Markab"
    unlink "Delta Capricorni" "Scheat"
    unlink "Alderamin" "Alnair"
    link "Deneb" "Delta Capricorni"
    link "Deneb" "Alderamin"
    unvisit "Delta Capricorni"
    unvisit "Alderamin"
    unvisit "Scheat"
    unvisit "Alnair"
    "tribute: Maker" /= 1700
    "tribute: Furnace" /= 1200
    system "Delta Capricorni"
        government "Pug"
        fleet "Small Core Merchants" 700
        fleet "Large Core Merchants" 800
        fleet "Small Pug" 800
        fleet "Large Pug" 1100
        music "pug"
    system "Alderamin"
        government "Pug"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 3200
        fleet "Small Pug" 1200
        fleet "Large Pug" 2500
        music "pug"
    planet "Maker"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Furnace"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"

event "pug invasion 4"
    unlink "Caph" "Sol"
    unlink "Caph" "Eteron"
    unlink "Diphda" "Acamar"
    unlink "Diphda" "Ankaa"
    link "Fomalhaut" "Caph"
    unvisit "Caph"
    unvisit "Diphda"
    unvisit "Ankaa"
    "tribute: Reunion" /= 2900
    "tribute: Kraken Station" /= 500
    "tribute: Tinker" /= 1100
    system "Sol"
        fleet "Small Northern Merchants" 300
        fleet "Large Northern Merchants" 500
        fleet "Small Republic" 600
        fleet "Large Republic" 900
        fleet "Republic Logistics" 2000
        fleet "Small Core Merchants" 1000
        fleet "Large Core Merchants" 2000
    system "Diphda"
        government "Pug"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 600
        fleet "Small Pug" 1000
        fleet "Large Pug" 1500
        music "pug"
    system "Caph"
        government "Pug"
        fleet "Small Core Merchants" 500
        fleet "Large Core Merchants" 600
        fleet "Small Pug" 700
        fleet "Large Pug" 1000
        fleet "Human Miners" 2000
        music "pug"
    planet "Reunion"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Kraken Station"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Tinker"
        security 0
        tribute 1
            threshold 4000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"


event "battle for delta capricorni"
    system "Delta Capricorni"
        government Syndicate
        music "main"
    "tribute: Maker" *= 1700
    planet "Maker"
        security 0.4
        tribute 1700
            threshold 4500
            fleet "Large Syndicate" 12
        music "main"

event "liberation of altair"
    "tribute: Shiver" *= 300
    system "Altair"
        government "Republic"
        fleet "Small Core Merchants" 1000
        fleet "Large Core Merchants" 2000
        fleet "Small Pug" 2000
        fleet "Large Syndicate" 800
        music "main"
    planet "Shiver"
        security 0.1
        tribute 300
            threshold 2000
            fleet "Small Republic" 10
            fleet "Large Republic" 2
        music "main"

event "pug flee"
    unvisit "Deneb"
    system "Zeta Aquilae"
        fleet "Small Southern Merchants" 1000
        fleet "Large Southern Merchants" 3000
        fleet "Small Republic" 1000
        fleet "Large Republic" 2000
        music "main"
    system "Rasalhague"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
        fleet "Small Republic" 1200
        fleet "Large Republic" 2500
        music "main"
    system "Vega"
        fleet "Small Northern Merchants" 800
        fleet "Large Northern Merchants" 3000
        fleet "Small Republic" 800
        fleet "Large Republic" 1200
        music "main"
    system "Altair"
        fleet "Small Core Merchants" 400
        fleet "Large Core Merchants" 600
        fleet "Small Northern Merchants" 1000
        fleet "Large Northern Merchants" 3000
        fleet "Small Republic" 700
        fleet "Large Republic" 900
        music "main"
    system "Fomalhaut"
        fleet "Small Core Merchants" 1000
        fleet "Large Core Merchants" 1200
        fleet "Small Republic" 1600
        fleet "Large Republic" 3000
        music "main"
    system "Delta Capricorni"
        fleet "Small Core Merchants" 700
        fleet "Large Core Merchants" 800
        fleet "Small Syndicate" 500
        fleet "Large Syndicate" 600
        music "main"
    system "Alderamin"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 3200
        fleet "Small Syndicate" 700
        fleet "Large Syndicate" 900
        music "main"
    system "Diphda"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 600
        fleet "Small Republic" 1600
        fleet "Large Republic" 3000
        music "main"
    system "Caph"
        fleet "Small Core Merchants" 500
        fleet "Large Core Merchants" 600
        fleet "Small Republic" 1600
        fleet "Large Republic" 3000
        music "main"
    system "Nocte"
        fleet "Small Northern Merchants" 1500
        fleet "Large Northern Merchants" 5000
        fleet "Small Republic" 3000
        fleet "Large Republic" 7000
        fleet "Small Northern Pirates" 2500
        fleet "Derelict Northern" 10000
        music "main"
    system "Orvala"
        fleet "Small Southern Merchants" 3000
        fleet "Large Southern Merchants" 6000
        fleet "Small Southern Pirates" 1000
        fleet "Large Southern Pirates" 3000
        fleet "Derelict Southern" 10000
        music "main"
    system "Deneb"
        fleet "Small Core Merchants" 5000
        add object "Pug Wormhole"
            sprite planet/wormhole
            distance 2320.29
            period 1788.27
        music "main"
    planet "Pugglemug"
        attributes uninhabited
        music "main"
    planet "Pugglequat"
        attributes uninhabited
        music "main"
    planet "Rand"
        music "main"
    planet "Oblivion"
        music "main"
    planet "Silver"
        music "main"
    planet "Millrace"
        music "main"
    planet "Furnace"
        music "main"
    planet "Reunion"
        music "main"
    planet "Kraken Station"
        music "main"
    planet "Tinker"
        music "main"

# Checkmate
event "fwc pug invasion"
    unlink "Vega" "Sol"
    unlink "Altair" "Sol"
    unlink "Altair" "Fomalhaut"
    unlink "Delta Capricorni" "Markab"
    unlink "Delta Capricorni" "Scheat"
    unlink "Alderamin" "Alnair"
    unlink "Zeta Aquilae" "Ascella"
    unlink "Rasalhague" "Ascella"
    unlink "Rasalhague" "Cebalrai"
    unlink "Vega" "Menkent"
    link "Vega" "Deneb"
    link "Altair" "Deneb"
    link "Delta Capricorni" "Deneb"
    link "Alderamin" "Deneb"
    link "Zeta Aquilae" "Deneb"
    link "Rasalhague" "Deneb"
    "reputation: Pug" <?= -1000
    "tribute: Rand" /= 500
    "tribute: Oblivion" /= 500
    "tribute: Shiver" /= 300
    "tribute: Maker" /= 1700
    "tribute: Furnace" /= 1200
    government "Pug"
        "attitude toward"
            "Free Worlds" -.01
    system "Zeta Aquilae"
        government "Pug"
        fleet "Small Southern Merchants" 1000
        fleet "Large Southern Merchants" 3000
        fleet "Small Pug" 1000
        fleet "Large Pug" 2000
        music "pug"
    system "Rasalhague"
        government "Pug"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
        fleet "Small Pug" 800
        fleet "Large Pug" 2000
        music "pug"
    system "Orvala"
        government "Pug"
        fleet "Small Southern Merchants" 3000
        fleet "Large Southern Merchants" 6000
        fleet "Small Pug" 5000
        fleet "Large Pug" 9000
        music "pug"
    system "Altair"
        government "Pug"
        fleet "Small Core Merchants" 400
        fleet "Large Core Merchants" 600
        fleet "Small Northern Merchants" 1000
        fleet "Large Northern Merchants" 3000
        fleet "Small Pug" 700
        fleet "Large Pug" 900
        music "pug"
    system "Vega"
        government "Free Worlds"
        music "pug"
    system "Delta Capricorni"
        government "Pug"
        fleet "Small Core Merchants" 700
        fleet "Large Core Merchants" 800
        fleet "Small Pug" 800
        fleet "Large Pug" 1100
        music "pug"
    system "Alderamin"
        government "Pug"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 3200
        fleet "Small Pug" 1200
        fleet "Large Pug" 2500
        music "pug"
    system "Nocte"
        government "Pug"
        fleet "Small Northern Merchants" 1500
        fleet "Large Northern Merchants" 5000
        fleet "Small Pug" 3000
        fleet "Large Pug" 7000
        fleet "Human Miners" 1600
        music "pug"
    planet "Silver"
        music "pug"
    planet "Rand"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Oblivion"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Shiver"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Maker"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"
    planet "Furnace"
        security 0
        tribute 1
            threshold 3000
            fleet "Small Pug" 15
            fleet "Large Pug" 3
        music "pug"

event "fwc liberation of rasalhague"
    "tribute: Oblivion" *= 500
    system "Rasalhague"
        government "Free Worlds"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
        fleet "Small Republic" 400
        fleet "Large Republic" 600
        fleet "Small Free Worlds" 400
        fleet "Large Free Worlds" 600
        music "main"
    system "Zeta Aquilae"
        fleet "Small Southern Merchants" 1000
        fleet "Large Southern Merchants" 3000
    system "Vega"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
    system "Altair"
        fleet "Small Core Merchants" 400
        fleet "Large Core Merchants" 600
    system "Delta Capricorni"
        fleet "Small Core Merchants" 700
        fleet "Large Core Merchants" 800
    system "Alderamin"
        fleet "Small Core Merchants" 2000
        fleet "Large Core Merchants" 3200
    system "Deneb"
        fleet "Small Core Merchants" 10000
        fleet "Small Pug" 100
        fleet "Large Pug" 100
    planet "Oblivion"
        security 0.05
        tribute 500
            threshold 3000
            fleet "Large Militia" 10
        music "main"

event "fwc reconnect zeta aquilae"
    link "Zeta Aquilae" Ascella
    "tribute: Rand" *= 500
    system "Zeta Aquilae"
        government "Free Worlds"
        fleet "Small Southern Merchants" 1500
        fleet "Large Southern Merchants" 2000
        fleet "Small Republic" 400
        fleet "Large Republic" 600
        fleet "Small Free Worlds" 600
        fleet "Large Free Worlds" 800
        music "main"
    system "Orvala"
        government "Free Worlds"
        music "main"
    planet "Rand"
        security 0.05
        tribute 500
            threshold 3000
            fleet "Large Militia" 10
        music "main"

event "fwc liberation of vega"
    "tribute: Silver" *= 700
    system "Vega"
        government "Republic"
        music "main"
    planet "Silver"
        security 0.1
        tribute 700
            threshold 4000
            fleet "Small Republic" 25
            fleet "Large Republic" 2
        music "main"

event "fwc pug defeated"
    "tribute: Shiver" *= 300
    "tribute: Maker" *= 1700
    "tribute: Furnace" *= 1200
    system "Altair"
        government "Republic"
        music "main"
    system "Delta Capricorni"
        government "Syndicate"
        music "main"
    system "Alderamin"
        government "Syndicate"
        music "main"
    system "Deneb"
        government "Neutral"
        fleet "Small Core Merchants" 400
        fleet "Large Core Merchants" 600
        fleet "Small Northern Merchants" 1000
        fleet "Large Northern Merchants" 3000
        fleet "Small Republic" 700
        fleet "Large Republic" 900
        fleet "Small Syndicate" 1200
        fleet "Large Syndicate" 2000
        music "main"
    system "Nocte"
        government "Republic"
        music "main"
    planet "Pugglemug"
        remove attributes
        "bribe" 0.01
        music "main"
    planet "Pugglequat"
        remove attributes
        "bribe" 0.01
        music "main"
    planet "Shiver"
        security 0.1
        tribute 300
            threshold 2000
            fleet "Small Republic" 10
            fleet "Large Republic" 2
        music "main"
    planet "Maker"
        security 0.4
        tribute 1700
            threshold 4500
            fleet "Large Syndicate" 12
        music "main"
    planet "Furnace"
        security 0.1
        tribute 1200
            threshold 3500
            fleet "Large Syndicate" 9
        music "main"
