def queue(): i = 0 while i <= 5: if gameVars.dayCounter[i] == gameVars.dayCounterNeeded[i]: if gameVars.dayCounterDetails[i] == "appletree stoneaxe": print( "\n\nYou chopped an apple tree, and under the leaves you found 3kgs of apples and 6kgs of wood!\n\n" ) treeRewards(6, "apple") durability.decreaseDurability(1, 0, 0, 1, 0, 0, 0) gameVars.consumables_food += 3 elif gameVars.dayCounterDetails[i] == "appletree ironaxe": print( "\n\nYou chopped an apple tree, and under the leaves you found 5kgs of apples and 8kgs of wood!\n\n" ) treeRewards(8, "apple") durability.decreaseDurability(1, 0, 0, 0, 1, 0, 0) gameVars.consumables_food += 5 clock.resetCounter(i) clock.resetCounterDetails(i) i += 1
gameVars.forest_pineTree -= 1 elif(tree == "apple"): gameVars.forest_appleTree -= 1 gameVars.misc_wood += wood toSpawn += 1 which_treeChoice1 = '-1' while which_treeChoice1 != '1' and which_treeChoice1 != '2' and which_treeChoice1 != '3': which_treeChoice1 = input("Choose with the respective number:\n1.Chop an apple tree\n2.Chop a pine tree\n3.Cancel\n>> ") if which_treeChoice1 == '1': if(gameVars.forest_appleTree > 0): tool = '-1' while(tool != '1' and tool != '2' and tool != '3'): tool = input("Which tool do you wish to use?\n1.Stone axe\n2.Iron axe\n3.Cancel\n>> ") if tool == "1": if(durability.decreaseDurability(1,0,0,1,0,0,0) == True): print ("You chopped an apple tree, and under the leaves you found 3kgs of apples and 6kgs of wood!") treeRewards(6,"apple") durability.decreaseDurability(1,0,0,1,0,0,0) gameVars.consumables_food += 3 gameVars.consumables_food -= gameVars.misc_people / 2 else: print("You don't have a Stone Axe! You need to craft another one.") elif tool == "2": if(durability.decreaseDurability(1,0,0,0,1,0,0) == True): print ("You chopped an apple tree, and under the leaves you found 5kgs of apples and 8kgs of wood!") treeRewards(8,"apple") durability.decreaseDurability(1,0,0,0,1,0,0) gameVars.consumables_food += 5 gameVars.consumables_food -= gameVars.misc_people / 2 else: