Skip to content

Instantly share code, notes, and snippets.

@SteelPangolin
Created May 12, 2015 04:51

Revisions

  1. SteelPangolin created this gist May 12, 2015.
    131 changes: 131 additions & 0 deletions xcom.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,131 @@
    #!/usr/bin/env python3
    """
    Generate a random X-COM mission name.
    See http://xcom.wikia.com/wiki/Missions_%28XCOM:_Enemy_Unknown%29
    and http://kotaku.com/5916411/why-all-of-xcom-enemy-unknowns-missions-sound-like-1980s-heavy-metal-albums
    """

    from random import choice

    prefixes = [
    "Banished",
    "Black",
    "Bleeding",
    "Blind",
    "Blinding",
    "Bloody",
    "Broken",
    "Brutal",
    "Burning",
    "Cold",
    "Crimson",
    "Cryptic",
    "Crystal",
    "Dark",
    "Defiant",
    "Demon",
    "Devil's",
    "Driving",
    "Dying",
    "Empty",
    "Enduring",
    "Fading",
    "Fallen",
    "Final",
    "First",
    "Flying",
    "Forgotten",
    "Frozen",
    "Glass",
    "Hidden",
    "Hot",
    "Lazy",
    "Lone",
    "Lost",
    "Morbid",
    "Patient",
    "Purple",
    "Red",
    "Rotting",
    "Sacred",
    "Secret",
    "Severed",
    "Shattered",
    "Silent",
    "Soaring",
    "Spectral",
    "Stone",
    "Swift",
    "Twisted",
    "Unceasing",
    "Vengeful",
    ]

    suffixes = [
    "Apollo",
    "Bell",
    "Blade",
    "Breath",
    "Calm",
    "Crone",
    "Crown",
    "Daze",
    "Dream",
    "Druid",
    "Empire",
    "Engine",
    "Fall",
    "Father",
    "Fear",
    "Fog",
    "Future",
    "Grave",
    "God",
    "Hammer",
    "Hawk",
    "Hydra",
    "Hymn",
    "Jester",
    "Justice",
    "King",
    "Line",
    "Law",
    "Moon",
    "Mother",
    "Mountain",
    "Night",
    "Palace",
    "Paramour",
    "Pipe",
    "Priest",
    "Prophet",
    "Pyre",
    "Rain",
    "Ring",
    "Savior",
    "Scepter",
    "Serpent",
    "Shield",
    "Shroud",
    "Skull",
    "Smoke",
    "Stallion",
    "Star",
    "Stranger",
    "Stroke",
    "Summer",
    "Sword",
    "Tears",
    "Thorn",
    "Throne",
    "Thunder",
    "Vanguard",
    "Vengeance",
    "Whisper",
    ]

    def xcom_mission_name():
    return '{} {}'.format(choice(prefixes), choice(suffixes))

    if __name__ == '__main__':
    print(xcom_mission_name())