Skip to content

Instantly share code, notes, and snippets.

@xepherys
Last active February 6, 2026 18:03
Show Gist options
  • Select an option

  • Save xepherys/2598b21ce46fa03d2cb1f09c4dc61fbc to your computer and use it in GitHub Desktop.

Select an option

Save xepherys/2598b21ce46fa03d2cb1f09c4dc61fbc to your computer and use it in GitHub Desktop.
TheFarmerWasReplaced_UNLOCKS_ORDER.py
# UNLOCKS_ORDER is a static dictionary where the key is the order in which the unlocks should occur. This is subject
# to change with testing and verification. Unlock is what Unlock should be executed. Level is what level of the
# unlock should be queued. Requirements set is the list of requirements needed to unlock that level.
#
# Order Unlock Level Requirements Set
# ----- ------ ----- ----------------
UNLOCKS_ORDER = {0: [Unlocks.Speed, 1, UNLOCKS_DATA[Unlocks.Speed] [0]],
1: [Unlocks.Expand, 1, UNLOCKS_DATA[Unlocks.Expand] [0]],
2: [Unlocks.Plant, 1, UNLOCKS_DATA[Unlocks.Plant] [0]],
3: [Unlocks.Expand, 2, UNLOCKS_DATA[Unlocks.Expand] [1]], #SKIP
4: [Unlocks.Speed, 2, UNLOCKS_DATA[Unlocks.Speed] [1]], #SKIP
5: [Unlocks.Grass, 2, UNLOCKS_DATA[Unlocks.Grass] [1]],
6: [Unlocks.Carrots, 1, UNLOCKS_DATA[Unlocks.Carrots] [0]],
7: [Unlocks.Trees, 1, UNLOCKS_DATA[Unlocks.Trees] [0]],
8: [Unlocks.Watering, 1, UNLOCKS_DATA[Unlocks.Watering] [0]],
9: [Unlocks.Speed, 3, UNLOCKS_DATA[Unlocks.Speed] [2]], #SKIP
10: [Unlocks.Grass, 3, UNLOCKS_DATA[Unlocks.Grass] [2]], #SKIP
11: [Unlocks.Hats, 1, UNLOCKS_DATA[Unlocks.Hats] [0]],
12: [Unlocks.Expand, 3, UNLOCKS_DATA[Unlocks.Expand] [2]], #SKIP
13: [Unlocks.Sunflowers, 1, UNLOCKS_DATA[Unlocks.Sunflowers] [0]], #SKIP
14: [Unlocks.Trees, 2, UNLOCKS_DATA[Unlocks.Trees] [1]], #SKIP
15: [Unlocks.Pumpkins, 1, UNLOCKS_DATA[Unlocks.Pumpkins] [0]],
16: [Unlocks.Watering, 2, UNLOCKS_DATA[Unlocks.Watering] [1]], #SKIP
17: [Unlocks.Speed, 4, UNLOCKS_DATA[Unlocks.Speed] [3]], #SKIP
18: [Unlocks.Speed, 5, UNLOCKS_DATA[Unlocks.Speed] [4]], #SKIP
19: [Unlocks.Expand, 4, UNLOCKS_DATA[Unlocks.Expand] [3]], #SKIP
20: [Unlocks.Trees, 3, UNLOCKS_DATA[Unlocks.Trees] [2]], #SKIP
21: [Unlocks.Fertilizer, 1, UNLOCKS_DATA[Unlocks.Fertilizer] [0]],
22: [Unlocks.Polyculture, 1, UNLOCKS_DATA[Unlocks.Polyculture] [0]], #SKIP
23: [Unlocks.Cactus, 1, UNLOCKS_DATA[Unlocks.Cactus] [0]],
24: [Unlocks.Mazes, 1, UNLOCKS_DATA[Unlocks.Mazes] [0]],
25: [Unlocks.Dinosaurs, 1, UNLOCKS_DATA[Unlocks.Dinosaurs] [0]],
26: [Unlocks.Megafarm, 1, UNLOCKS_DATA[Unlocks.Megafarm] [0]], #SKIP
27: [Unlocks.Leaderboard, 1, UNLOCKS_DATA[Unlocks.Leaderboard] [0]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment