示例#1
0
def turn():
    Clear.clear()
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
        #variables["week"] += 1
        #f.close()
    variables["week"] += 1
    with open("UniData.txt", 'w') as f2:
        json.dump(variables, f2, indent=3)
        #f2.close()
    WordCore.word_core("A new week has come...", 0.01)
    print("\n")
    print("Week Number: " + str(variables["week"]))
    Generation.dna_weekly()
    Generation.dna_random()
    infecting_agent()
    check_cure_start()
    BURST_check()
    NECROSIS_check()
    ZOMBIFY_check()
    enforce_value_maximums()
    print("\n")
    Graph.graphical_analysis_mini()
    #time.sleep(3)
    player_menu()
示例#2
0
def player_menu():
    Clear.clear()
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_lux()
        UI.Color_player_menu_UI()
        answer = input(str(Green_Blackxx + "Command: "))
        print(Reset, end='')
    else:
        UI.lux()
        UI.player_menu_UI()
        answer = input(str("Command: "))
    if answer == "WORLD":
        Clear.clear()
        if variables["color"] != 0:
            Graph.color_graphical_analysis()
        else:
            Graph.graphical_analysis()
        player_menu()
    elif answer == "VIRUS":
        Clear.clear()
        if variables["color"] != 0:
            Graph.color_plague_status_graph()
        else:
            Graph.plague_status_graph()
        player_menu()
    elif answer == "LAB":
        Clear.clear()
        attribute_menu()
    elif answer == "TURN":
        Clear.clear()
        turn()
    elif answer == "FAST":
        Clear.clear()
        fast_turn()
    elif answer == "SAVE":
        Clear.clear()
        WordCore.word_core("SAVING | ", 0.1)
        save_1()
        print("Save completed successfully")
        time.sleep(2)
        Clear.clear()
        player_menu()
    elif answer == "LOAD":
        Clear.clear()
        WordCore.word_core("LOADING | ", 0.1)
        load_1()
        print("Loading complete...")
        time.sleep(2)
        Clear.clear()
        player_menu()
    elif answer == "EXIT":
        Clear.clear()
        exit_game()
    else:
        player_menu()
示例#3
0
def victory():  # Everyone dies
    Clear.clear()
    UI.victory_icon()
    WordCore.word_corex(
        "VICTORY |",
        "All life on earth, except you and your select, have been exterminated"
    )
    input(str("Press ENTER to continue...."))
    gc.collect()
示例#4
0
def fast_turn():
    WordCore.word_core("Press ENTER to take a turn...", 0.1)
    print("\n")
    WordCore.word_core("Type STOP to go back to Player Menu...", 0.1)
    print("\n")
    while True:
        turn_fast()
        inp = input(str())
        if inp == "STOP":
            player_menu()
示例#5
0
def cured_game_over():  # You got cured
    Clear.clear()
    UI.cured_game_over_icon()
    time.sleep(1)
    print("\n")
    WordCore.word_corex(
        "CURE COMPLETE |",
        "All infected have been cured and zombies quarentined....")
    print("\n")
    input(str("Press ENTER to continue...."))
    gc.collect()
    Clear.clear()
示例#6
0
文件: Graph.py 项目: 78Alpha/Necro
def color_dea_graph():
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    corpse = int((float(variables["dead"]) / variables["limit"]) * 100)
    dea = "["
    for i in range(corpse):  # Amount variables["dead"]
        dea += ColorSplash.Green_Squarexx + "|" + ColorSplash.Reset
    for i in range(100 - int(corpse)):  # Amount not variables["dead"]
        dea += ColorSplash.Red_Squarexxxx + "." + ColorSplash.Reset
    dea2 = str(dea) + "] " + str(corpse) + "% Dead"
    print("Population Dead")
    print(dea2)
    print("\n")
    WordCore.word_corex("Dead |", str(variables["dead"]) + " People Dead")
    print("\n")
    time.sleep(1)
示例#7
0
文件: Graph.py 项目: 78Alpha/Necro
def color_zom_graph():  # Graph of variables["zombies"]
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    walkers = int((float(variables["zombies"]) / variables["limit"]) * 100)
    zom = "["
    for i in range(walkers):  # Are zombs
        zom += ColorSplash.Green_Squarexx + "|" + ColorSplash.Reset
    for i in range(100 - int(walkers)):  # Are not zombs
        zom += ColorSplash.Red_Squarexxxx + "." + ColorSplash.Reset
    zom2 = str(zom) + "] " + str(walkers) + "% Zombies"
    print("Population Zombified")
    print(zom2)
    print("\n")
    WordCore.word_corex("Zombies |",
                        str(variables["zombies"]) + " People Zombified")
    print("\n")
    time.sleep(1)
示例#8
0
文件: Graph.py 项目: 78Alpha/Necro
def inf_graph():  # Visuals for population infection
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    infect = int((float(variables["infected"]) / variables["limit"]) * 100)
    inf = "["
    for i in range(infect):  # Visual for infection
        inf += "|"
    for i in range(100 - int(infect)):  # Visual for non-variables["infected"]
        inf += "."
    inf2 = str(inf) + "] " + str(infect) + "% Infected"
    print("Population Infected")
    print(inf2)
    print("\n")
    WordCore.word_corex("Infected |",
                        str(variables["infected"]) + " People Infected")
    print("\n")
    time.sleep(1)
示例#9
0
文件: Graph.py 项目: 78Alpha/Necro
def color_hea_graph():  # A graph for the amount of variables["healthy"] people
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    hea = "["
    alive2 = (float(variables["healthy"]) / variables["limit"])
    if alive2 > .99:  #Quick fix for the "less than 100%" Bug
        alive2 = 1
    alive3 = int(alive2 * 100)
    for i in range(alive3):  # Amount variables["healthy"]
        hea += ColorSplash.Green_Squarexx + "|" + ColorSplash.Reset
    for i in range(100 - int(alive3)):  # Amount not variables["healthy"]
        hea += ColorSplash.Red_Squarexxxx + "." + ColorSplash.Reset
    cur2 = str(hea) + "] " + str(alive3) + "% Healthy"
    print("Healthy People")
    print(cur2)
    print("\n")
    WordCore.word_corex("Healthy |",
                        str(variables["healthy"]) + " People Healthy")
    print("\n")
    time.sleep(1)
示例#10
0
def intro():  #The intro to the game
    print(Reset, end='')
    Clear.clear()
    with open("Globals.txt", 'r') as file:
        variables = json.load(file)
    if variables["color"] != 0:
        UI.necro_color()
        print(Green_Blackxx, end='')
    else:
        UI.necro()
    print("\n")
    WordCore.word_corex("DEVELOPER |", "78 Alpha\n")
    print("\n")
    time.sleep(0.5)
    WordCore.word_corex("CONTINUE |", "Start the game from previous save")
    print("\n")
    time.sleep(0.5)
    WordCore.word_corex("NEW |", "Create a new game")
    print("\n")
    time.sleep(0.5)
    WordCore.word_corex("SETTINGS |", "Change game settings")
    print("\n")
    time.sleep(0.5)
    WordCore.word_corex("EXIT |", "Exit the application")
    print("\n")
    time.sleep(0.5)
    action = input(str("What would you like to do: "))
    if action == "CONTINUE":
        Level1.Save_Check()
    elif action == "NEW":
        load_3()
        Level1.Save_Check()
    elif action == "SETTINGS":
        settings()
        intro()
    elif action == "EXIT":
        Clear.clear()
        exit()
    else:
        intro()
示例#11
0
def infected_game_over():
    Clear.clear()
    UI.infected_game_over_icon()
    time.sleep(1)
    print("\n")
    WordCore.word_corex("NO INFECTED |",
                        "All infected have been exterminated....")
    print("\n")
    WordCore.word_corex("NO ZOMBIES |",
                        "All zombies have been exterminated...")
    time.sleep(1)
    print("\n")
    WordCore.word_corex(
        "CURE COMPLETE |",
        "All infected have been cured and zombies quarentined....")
    print("\n")
    input(str("Press ENTER to continue...."))
    gc.collect()
    Clear.clear()
示例#12
0
def exit_game():  # Gotta quit sometime, right?
    Clear.clear()
    WordCore.word_core(
        "You have chosen to exit the game... Are you sure? [y]/[n]", 0.05)
    print("\n")
    ans = input(str())
    print("\n")
    if ans in ["Y", "y", "Yes", "yes", "YES"]:
        WordCore.word_core("Exiting game...", 0.05)
        print("\n")
        Clear.clear()
        return
    elif ans in ["n", "N", "no", "NO", "No"]:
        WordCore.word_core("Not Exiting The Game...", 0.05)
        print("\n")
        Clear.clear()
        player_menu()
    else:
        exit_game()
示例#13
0
def BURST_info():  #displays info about burst
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Burst()
    else:
        UI.BURST_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[0]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus disables pressure regulation of host skull, following up with a forced intake",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  of pressurized oxygen until cranial rupture/explosion occurrs",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey(
        "@@@@  Affects: ", variables["influence[0]"] + ", " +
        variables["influence[1]"] + ", " + variables["influence[2]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#14
0
def AIR_info():  #Displays info about air
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Air()
    else:
        UI.AIR_icon()
    #UI.AIR_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[3]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus begins to cut thin sllices of skin from the host to act as a parachute,",
        "@@@@\n")
    WordCore.word_corey("@@@@",
                        "  carrying itself long distances via updrafts",
                        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  Affects: ", variables["influence[0]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#15
0
def WATER_info():  #Displays info about water
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Water()
    else:
        UI.WATER_icon()
    #UI.WATER_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[2]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus is given an instruction set to build waterproofing from genetic material,",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  can allow for the bypassing of filters with enough biological shielding",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  Affects: ", variables["influence[0]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#16
0
def NECROSIS_info():  #Displays info about necrosis
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Necrosis()
    else:
        UI.NECROSIS_icon()
    #UI.NECROSIS_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[1]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-virus enters a low power state while in a dead host, power is diverted to motion",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  sensors such that individuals within proximity will be attacked before reaction is possible",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey(
        "@@@@  Affects: ",
        variables["influence[0]"] + ", " + variables["influence[1]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#17
0
def BLOOD_info():  # Displays info about blood
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Blood()
    else:
        UI.BLOOD_icon()
    #UI.BLOOD_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[4]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus attaches drone colonies to blood cells, both red and white, weakening the",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  hosts immune system and capability to fight back. Transmission Becomes possible through",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@", "  contact with blood, but only on an open wound or intake",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey(
        "@@@@  Affects: ", variables["influence[0]"] + ", " +
        variables["influence[1]"] + ", " + variables["influence[2]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#18
0
def attribute_menu(
):  # This is the lab, where all genes are synthed and researched
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    Clear.clear()
    UI.lux()
    WordCore.word_corez(
        "@@@@  Welcome back to your lab!                                                                  @@@@\n"
    )
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@ >>> EVOLVE | ",
                        "Research genes to inject into your virus", "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@ >>> LEVEL | ",
                        "Check the research level of gene paths", "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@ >>> INFO | ", "Study the possible gene paths",
                        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@ >>> LEAVE | ", "Leave your lab", "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    decide = input(str("Command: "))
    if decide == "INFO":
        Clear.clear()
        UI.lux()
        BURST_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        NECROSIS_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        WATER_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        AIR_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        BLOOD_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        SALIVA_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        ZOMBIFY_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        UI.lux()
        RISE_info()
        input(str("Press ENTER to continue..."))
        Clear.clear()
        attribute_menu()
    elif decide == "LEVEL":
        Clear.clear()
        UI.lux()
        WordCore.word_corey("@@@@",
                            "  Burst Level: " + str(variables["burst"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@",
                            "  Necrosis Level: " + str(variables["necrosis"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@",
                            "  Water Level: " + str(variables["water"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@", "  Air Level: " + str(variables["air"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@",
                            "  Blood Level: " + str(variables["blood"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@",
                            "  Saliva Level: " + str(variables["saliva"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@",
                            "  Zombify Level: " + str(variables["zombify"]),
                            "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@", "  Rise Level: " + str(variables["rise"]),
                            "@@@@\n")
        WordCore.word_corez(
            "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
        )
        WordCore.word_corez(
            "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
        )
        input(str("Press ENTER to continue..."))
        Clear.clear()
        attribute_menu()
    elif decide == "EVOLVE":
        Clear.clear()
        UI.lux()
        BURST_store_price()
        NECROSIS_store_price()
        WATER_store_price()
        AIR_store_price()
        BLOOD_store_price()
        SALIVA_store_price()
        ZOMBIFY_store_price()
        RISE_store_price()
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[0]"] + " | Research Cost: " +
            str(variables["burst_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[1]"] + " | Research Cost: " +
            str(variables["necrosis_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[2]"] + " | Research Cost: " +
            str(variables["water_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[3]"] + " | Research Cost: " +
            str(variables["air_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[4]"] + " | Research Cost: " +
            str(variables["blood_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[5]"] + " | Research Cost: " +
            str(variables["saliva_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[6]"] + " | Research Cost: " +
            str(variables["zombify_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey(
            "@@@@", "  " + variables["gene[7]"] + " | Research Cost: " +
            str(variables["rise_price"]), "@@@@\n")
        WordCore.word_corey("@@@@", "", "@@@@\n")
        WordCore.word_corey("@@@@  RESEARCH POINTS | ",
                            str(variables["dna_points"]), "@@@@\n")
        WordCore.word_corez(
            "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
        )
        WordCore.word_corez(
            "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
        )
        evo = input(str("Synthesize: "))
        if evo == variables["gene[0]"]:
            if variables["burst_price"] != '--':
                if variables["dna_points"] >= variables["burst_price"]:
                    Clear.clear()
                    variables["burst"] += 1
                    variables["lethality"] += 3
                    variables["severity"] += 25
                    variables["dna_points"] -= variables["burst_price"]
                    WordCore.word_corex(variables["gene[0]"] + " |",
                                        "Successfully synthesized!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["burst_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[0]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[1]"]:  # // passive
            if variables["necrosis_price"] != '--':
                if variables["dna_points"] >= variables["necrosis_price"]:
                    Clear.clear()
                    variables["necrosis"] += 1
                    vriables["severity"] += 10
                    variables["dna_points"] -= variables["necrosis_price"]
                    WordCore.word_corex(variables["gene[1]"] + " |",
                                        "Successfully synthesized!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["necrosis_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[1]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[2]"]:
            if variables["water_price"] != '--':
                if variables["dna_points"] >= variables["water_price"]:
                    Clear.clear()
                    variables["water"] += 1
                    variables["dna_points"] -= variables["water_price"]
                    WordCore.word_corex(variables["gene[2]"] + " |",
                                        "Successfully synthesized!")
                    WATER_check()
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["water_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[2]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[3]"]:
            if variables["air_price"] != '--':
                if variables["dna_points"] >= variables["air_price"]:
                    Clear.clear()
                    variables["air"] += 1
                    variables["dna_points"] -= variables["air_price"]
                    WordCore.word_corex(variables["gene[3]"] + " |",
                                        "Successfully synthesized!")
                    AIR_check()
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["air_price"]:
                    clear.clear()
                    WordCore.word_corex(variables["gene[3]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[4]"]:
            if variables["blood_price"] != '--':
                if variables["dna_points"] >= variables["blood_price"]:
                    Clear.clear()
                    variables["blood"] += 1
                    variables["dna_points"] -= variables["blood_price"]
                    WordCore.word_corex(variables["gene[4]"] + " |",
                                        "Successfully synthesized!")
                    BLOOD_check()
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["blood_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[4]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[5]"]:
            if variables["saliva_price"] != '--':
                if variables["dna_points"] >= variables["saliva_price"]:
                    Clear.clear()
                    variables["saliva"] += 1
                    variables["dna_points"] -= variables["saliva_price"]
                    WordCore.word_corex(variables["gene[5]"] + " |",
                                        "Successfully synthesized!")
                    SALIVA_check()
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["saliva_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[5]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[6]"]:  # // passive
            if variables["zombify_price"] != '--':
                if variables["dna_points"] >= variables["zombify_price"]:
                    Clear.clear()
                    variables["zombify"] += 1
                    variables["dna_points"] -= variables["zombify_price"]
                    WordCore.word_corex(variables["gene[6]"] + " |",
                                        "Successfully synthesized!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["zombify_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[6]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        elif evo == variables["gene[7]"]:
            if variables["rise_price"] != '--':
                if variables["dna_points"] >= variables["rise_price"]:
                    Clear.clear()
                    variables["rise"] += 1
                    variables["dna_points"] -= variables["rise_price"]
                    WordCore.word_corex(variables["gene[7]"] + " |",
                                        "Successfully synthesized!")
                    RISE_check()
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                elif variables["dna_points"] <= variables["rise_price"]:
                    Clear.clear()
                    WordCore.word_corex(variables["gene[7]"] + " |",
                                        "Synthesis Failed!")
                    time.sleep(2)
                    Clear.clear()
                    attribute_menu()
                else:
                    attribute_menu()
            else:
                Clear.clear()
                WordCore.word_core(
                    "There is nothing more to research on this gene...", 0.01)
                time.sleep(1)
                attribute_menu()
        else:
            attribute_menu()
    elif decide == "LEAVE":
        Clear.clear()
        print("Goodbye!\n")
        time.sleep(0.4)
        Clear.clear()
        player_menu()
    else:
        Clear.clear()
        attribute_menu()
示例#19
0
def RISE_info():  # more info
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Rise()
    else:
        UI.RISE_icon()
    #UI.RISE_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[7]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-virus attaches to all vital organs of corpses and applies rapid surges to bring",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Them to a semi-living state, the energy drain takes away from the ability to",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Turna non-hijacked host into a zombie but will bring back infected persons",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  Affects: ", variables["influence[1]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#20
0
def ZOMBIFY_info():  # Explains what zombify is
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Zombify()
    else:
        UI.ZOMBIFY_icon()
    #UI.ZOMBIFY_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[6]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus burrows into brainstem and hijacks the hosts nervous system. The electrical",
        "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  surge of the virus has the potential to bring even the most severely wounded back to life",
        "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey(
        "@@@@  Affects: ", variables["influence[0]"] + ", " +
        variables["influence[1]"] + ", " + variables["influence[2]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
示例#21
0
def SALIVA_info():  # Shows saliva info
    with open("UniData.txt", 'r') as f:
        variables = json.load(f)
    if variables["color"] != 0:
        UI.Color_Saliva()
    else:
        UI.SALIVA_icon()
    #UI.SALIVA_icon()
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  ", "<<" + variables["gene[5]"] + ">>", "@@@@\n")
    WordCore.word_corey(
        "@@@@",
        "  Nano-Virus replicates in salivary glands, transmitting itself through touch with food,",
        "@@@@\n")
    WordCore.word_corey("@@@@", "  Drink, or human contact", "@@@@\n")
    WordCore.word_corey("@@@@", "", "@@@@\n")
    WordCore.word_corey("@@@@  Affects: ", variables["influence[0]"], "@@@@\n")
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )
    WordCore.word_corez(
        "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
    )