Add abbreviations to various items for ease of typing

This commit is contained in:
MarioSpore
2025-09-24 18:56:57 -04:00
parent a63c33a711
commit 17861c1050
2 changed files with 145 additions and 126 deletions

View File

@@ -35,6 +35,24 @@ def get_item_names_per_category() -> dict[str, set[str]]:
return categories return categories
REL: str = "Rotten Egg Launcher"
RS: str = "Rocket Spring"
SS: str = "Slime Shooter"
OCD: str = "Octopus Climbing Device"
MM: str = "Marine Mobile"
GC: str = "Grinch Copter"
WV: str = "Whoville Vacuum Tube"
WF: str = "Who Forest Vacuum Tube"
WD: str = "Who Dump Vacuum Tube"
WL: str = "Who Lake Vacuum Tube"
PVT: str = "Progressive Vacuum Tube"
PC: str = "Pancake"
SR: str = "Sleigh Room Key"
BB: str = "Bad Breath"
PNP: str = "Push & Pull"
M: str = "Max"
TT: str = "Tip Toe"
#Gadgets #Gadgets
#All gadgets require at least 4 different blueprints to be unlocked in the computer in Mount Crumpit. #All gadgets require at least 4 different blueprints to be unlocked in the computer in Mount Crumpit.
GADGETS_TABLE: dict[str, GrinchItemData] = { GADGETS_TABLE: dict[str, GrinchItemData] = {

View File

@@ -4,6 +4,7 @@ import Utils
from BaseClasses import CollectionState from BaseClasses import CollectionState
from worlds.AutoWorld import World from worlds.AutoWorld import World
from worlds.generic.Rules import add_rule from worlds.generic.Rules import add_rule
from .Items import *
#Adds all rules from access_rules_dict to locations #Adds all rules from access_rules_dict to locations
def set_location_rules(world: World): def set_location_rules(world: World):
@@ -89,71 +90,71 @@ rules_dict: dict[str,list[list[str]]] = {
["Painting Bucket"] ["Painting Bucket"]
], ],
"WV - Launching Eggs Into Houses": [ "WV - Launching Eggs Into Houses": [
["Rotten Egg Launcher"] [REL]
], ],
"WV - City Hall - Modifying The Mayor's Statue": [ "WV - City Hall - Modifying The Mayor's Statue": [
["Sculpting Tools"] ["Sculpting Tools"]
], ],
"WV - Clock Tower - Advancing The Countdown-To-Xmas Clock": [ "WV - Clock Tower - Advancing The Countdown-To-Xmas Clock": [
["Hammer", "Rocket Spring"] ["Hammer", RS]
], ],
"WV - Squashing All Gifts": [ "WV - Squashing All Gifts": [
["Grinch Copter", "Slime Shooter", "Rotten Egg Launcher", "Who Cloak", "Rocket Spring"] [GC, SS, REL, "Who Cloak", RS]
], ],
"WF - Making Xmas Trees Droop": [ "WF - Making Xmas Trees Droop": [
["Rotten Egg Launcher"] [REL]
], ],
"WF - Sabotaging Snow Cannon With Glue": [ "WF - Sabotaging Snow Cannon With Glue": [
["Glue Bucket", "Rocket Spring"], ["Glue Bucket", RS],
["Glue Bucket", "Grinch Copter"] ["Glue Bucket", GC]
], ],
"WF - Putting Beehives In Cabins": [ "WF - Putting Beehives In Cabins": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - Ski Resort - Sliming The Mayor's Skis": [ "WF - Ski Resort - Sliming The Mayor's Skis": [
["Slime Shooter", "Rotten Egg Launcher"] [SS, REL]
], ],
"WF - Civic Center - Replacing The Candles On The Cake With Fireworks": [ "WF - Civic Center - Replacing The Candles On The Cake With Fireworks": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Rocket Spring"] [REL, OCD, RS]
], ],
"WF - Squashing All Gifts": [ "WF - Squashing All Gifts": [
["Grinch Copter", "Cable Car Access Card", "Slime Shooter", "Rotten Egg Launcher"], [GC, "Cable Car Access Card", SS, REL],
["Octopus Climbing Device", "Rocket Spring", "Cable Car Access Card", "Slime Shooter", "Rotten Egg Launcher"] [OCD, RS, "Cable Car Access Card", SS, REL]
], ],
"WD - Stealing Food From Birds": [ "WD - Stealing Food From Birds": [
["Rocket Spring", "Rotten Egg Launcher"] [RS, REL]
], ],
"WD - Feeding The Computer With Robot Parts": [ "WD - Feeding The Computer With Robot Parts": [
["Rocket Spring", "Rotten Egg Launcher"] [RS, REL]
], ],
"WD - Infesting The Mayor's House With Rats": [ "WD - Infesting The Mayor's House With Rats": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WD - Conducting The Stinky Gas To Who-Bris' Shack": [ "WD - Conducting The Stinky Gas To Who-Bris' Shack": [
["Rocket Spring", "Rotten Egg Launcher"] [RS, REL]
], ],
"WD - Minefield - Shaving Who Dump Guardian": [ "WD - Minefield - Shaving Who Dump Guardian": [
["Scissors", "Grinch Copter"], ["Scissors", GC],
["Scissors", "Slime Shooter", "Rocket Spring"] ["Scissors", SS, RS]
], ],
"WD - Generator Building - Short-Circuiting Power-Plant": [ "WD - Generator Building - Short-Circuiting Power-Plant": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Slime Shooter", "Rocket Spring"] [REL, OCD, SS, RS]
], ],
"WD - Squashing All Gifts": [ "WD - Squashing All Gifts": [
["Grinch Copter", "Rocket Spring", "Slime Shooter", "Rotten Egg Launcher"], [GC, RS, SS, REL],
["Octopus Climbing Device", "Rocket Spring", "Slime Shooter", "Rotten Egg Launcher"] [OCD, RS, SS, REL]
], ],
"WL - South Shore - Putting Thistles In Shorts": [ "WL - South Shore - Putting Thistles In Shorts": [
["Rotten Egg Launcher", "Octopus Climbing Device"], [REL, OCD],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WL - South Shore - Sabotaging The Tents": [ "WL - South Shore - Sabotaging The Tents": [
["Octopus Climbing Device", "Rocket Spring"], [OCD, RS],
["Grinch Copter"] [GC]
], ],
"WL - North Shore - Drilling Holes In Canoes": [ "WL - North Shore - Drilling Holes In Canoes": [
["Drill"] ["Drill"]
@@ -163,11 +164,11 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WL - Mayor's Villa - Hooking The Mayor's Bed To The Motorboat": [ "WL - Mayor's Villa - Hooking The Mayor's Bed To The Motorboat": [
["Rope", "Hook", "Rotten Egg Launcher", "Scout Clothes"] ["Rope", "Hook", REL, "Scout Clothes"]
], ],
"WL - Squashing All Gifts": [ "WL - Squashing All Gifts": [
["Grinch Copter", "Marine Mobile", "Scout Clothes", "Rotten Egg Launcher", "Hook", "Rope"], [GC, MM, "Scout Clothes", REL, "Hook", "Rope"],
["Octopus Climbing Device", "Rocket Spring", "Marine Mobile", "Scout Clothes", "Rotten Egg Launcher", "Hook", "Rope"] [OCD, RS, MM, "Scout Clothes", REL, "Hook", "Rope"]
], ],
"WV - Binoculars BP on Post Office Roof": [ "WV - Binoculars BP on Post Office Roof": [
[] []
@@ -220,88 +221,88 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WF - RS BP on Tree House": [ "WF - RS BP on Tree House": [
["Rotten Egg Launcher"], [REL],
["Grinch Copter"] [GC]
], ],
"WF - SS BP in Branch Platform Elevated House": [ "WF - SS BP in Branch Platform Elevated House": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in Branch Platform House next to Beast": [ "WF - SS BP in Branch Platform House next to Beast": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in House in front of Civic Center Cave": [ "WF - SS BP in House in front of Civic Center Cave": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in House next to Tree House": [ "WF - SS BP in House next to Tree House": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in House across from Tree House": [ "WF - SS BP in House across from Tree House": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in 2nd House near Vacuum Tube Right Side": [ "WF - SS BP in 2nd House near Vacuum Tube Right Side": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in 2nd House near Vacuum Tube Left Side": [ "WF - SS BP in 2nd House near Vacuum Tube Left Side": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in 2nd House near Vacuum Tube inbetween Blueprints": [ "WF - SS BP in 2nd House near Vacuum Tube inbetween Blueprints": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WF - SS BP in House near Vacuum Tube": [ "WF - SS BP in House near Vacuum Tube": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WD - OCD BP inside Middle Pipe": [ "WD - OCD BP inside Middle Pipe": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Slime Shooter", "Rocket Spring"], [SS, RS],
["Slime Shooter", "Grinch Copter"] [SS, GC]
], ],
"WD - OCD BP inside Right Pipe": [ "WD - OCD BP inside Right Pipe": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WD - OCD BP in Vent to Mayor's House": [ "WD - OCD BP in Vent to Mayor's House": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"WD - OCD BP inside Left Pipe": [ "WD - OCD BP inside Left Pipe": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Slime Shooter", "Rocket Spring"], [SS, RS],
["Slime Shooter", "Grinch Copter"] [SS, GC]
], ],
"WD - OCD BP near Right Side of Power Plant Wall": [ "WD - OCD BP near Right Side of Power Plant Wall": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Slime Shooter", "Rocket Spring"], [SS, RS],
["Slime Shooter", "Grinch Copter"] [SS, GC]
], ],
"WD - OCD BP near Who-Bris' Shack": [ "WD - OCD BP near Who-Bris' Shack": [
["Rotten Egg Launcher", "Rocket Spring"] [REL, RS]
], ],
"WD - Minefield - OCD BP on Left Side of House": [ "WD - Minefield - OCD BP on Left Side of House": [
[] []
# ["Rotten Egg Launcher", "Grinch Copter"], # [REL, GC],
# ["Rotten Egg Launcher", "Slime Shooter", "Rocket Spring"] # [REL, SS, RS]
# ["Max"] # ["Max"]
], ],
"WD - Minefield - OCD BP on Right Side of Shack": [ "WD - Minefield - OCD BP on Right Side of Shack": [
["Grinch Copter"], [GC],
["Slime Shooter", "Rocket Spring"] [SS, RS]
], ],
"WD - Minefield - OCD BP inside Guardian's House": [ "WD - Minefield - OCD BP inside Guardian's House": [
[] []
# ["Rotten Egg Launcher", "Grinch Copter"], # [REL, GC],
# ["Rotten Egg Launcher", "Slime Shooter", "Rocket Spring"] # [REL, SS, RS]
# ["Max"] # ["Max"]
], ],
"WL - South Shore - MM BP on Bridge to Scout's Hut": [ "WL - South Shore - MM BP on Bridge to Scout's Hut": [
@@ -317,20 +318,20 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WL - South Shore - MM BP on Scout's Hut Roof": [ "WL - South Shore - MM BP on Scout's Hut Roof": [
["Rocket Spring"], [RS],
["Grinch Copter"] [GC]
], ],
"WL - South Shore - MM BP on Grass Platform": [ "WL - South Shore - MM BP on Grass Platform": [
["Rocket Spring"], [RS],
["Grinch Copter"] [GC]
], ],
"WL - South Shore - MM BP across Zipline Platform": [ "WL - South Shore - MM BP across Zipline Platform": [
["Rocket Spring", "Octopus Climbing Device"], [RS, OCD],
["Grinch Copter"] [GC]
], ],
"WL - South Shore - MM BP behind Summer Beast": [ "WL - South Shore - MM BP behind Summer Beast": [
["Rotten Egg Launcher", "Octopus Climbing Device"], [REL, OCD],
["Grinch Copter"] [GC]
], ],
"WL - North Shore - MM BP below Bridge": [ "WL - North Shore - MM BP below Bridge": [
[] []
@@ -365,11 +366,11 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WV - Clock Tower - GC BP in Bedroom": [ "WV - Clock Tower - GC BP in Bedroom": [
["Rocket Spring"] [RS]
# ["Max", "Rocket Spring"] # ["Max", RS]
], ],
"WV - Clock Tower - GC BP in Bell Room": [ "WV - Clock Tower - GC BP in Bell Room": [
["Rocket Spring"] [RS]
], ],
"WF - Ski Resort - GC BP inside Dog's Fence": [ "WF - Ski Resort - GC BP inside Dog's Fence": [
[] []
@@ -379,53 +380,53 @@ rules_dict: dict[str,list[list[str]]] = {
# ["Max"] # ["Max"]
], ],
"WF - Civic Center - GC BP on Left Side in Bat Cave Wall": [ "WF - Civic Center - GC BP on Left Side in Bat Cave Wall": [
["Grinch Copter"], [GC],
["Octopus Climbing Device", "Rocket Spring"] [OCD, RS]
], ],
"WF - Civic Center - GC BP in Frozen Ice": [ "WF - Civic Center - GC BP in Frozen Ice": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Rocket Spring"], [REL, OCD, RS],
["Slime Shooter", "Grinch Copter"], [SS, GC],
["Slime Shooter", "Octopus Climbing Device", "Rocket Spring"] [SS, OCD, RS]
], ],
"WD - Power Plant - GC BP in Max Cave": [ "WD - Power Plant - GC BP in Max Cave": [
[] []
# ["Max"] # ["Max"]
], ],
"WD - Power Plant - GC BP After First Gate": [ "WD - Power Plant - GC BP After First Gate": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Grinch Copter"] [GC]
# ["Max", "Rotten Egg Launcher", "Rocket Spring"] # ["Max", REL, RS]
], ],
"WD - Generator Building - GC BP on the Highest Platform": [ "WD - Generator Building - GC BP on the Highest Platform": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Slime Shooter", "Rocket Spring"] [REL, OCD, SS, RS]
], ],
"WD - Generator Building - GC BP at the Entrance after Mission Completion": [ "WD - Generator Building - GC BP at the Entrance after Mission Completion": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Slime Shooter", "Rocket Spring"] [REL, OCD, SS, RS]
], ],
"WL - Submarine World - GC BP Just Below Water Surface": [ "WL - Submarine World - GC BP Just Below Water Surface": [
["Marine Mobile"] [MM]
], ],
"WL - Submarine World - GC BP Underwater": [ "WL - Submarine World - GC BP Underwater": [
["Marine Mobile"] [MM]
], ],
"WL - Mayor's Villa - GC BP on Tree Branch": [ "WL - Mayor's Villa - GC BP on Tree Branch": [
["Grinch Copter"], [GC],
["Rotten Egg Launcher", "Rocket Spring"] [REL, RS]
], ],
"WL - Mayor's Villa - GC BP in Pirate's Cave": [ "WL - Mayor's Villa - GC BP in Pirate's Cave": [
["Grinch Copter"], [GC],
["Rotten Egg Launcher", "Rocket Spring"] [REL, RS]
], ],
"MC - Sleigh Ride - Stealing All Gifts": [ "MC - Sleigh Ride - Stealing All Gifts": [
# ["Exhaust Pipes", "Tires", "Skis", "Twin-End Tuba"] # ["Exhaust Pipes", "Tires", "Skis", "Twin-End Tuba"]
["Rotten Egg Launcher", "Who Forest Vacuum Tube", "Who Dump Vacuum Tube", "Who Lake Vacuum Tube", "Rocket Spring", "Marine Mobile"] [REL, "Who Forest Vacuum Tube", "Who Dump Vacuum Tube", "Who Lake Vacuum Tube", RS, MM]
], ],
"MC - Sleigh Ride - Neutralizing Santa": [ "MC - Sleigh Ride - Neutralizing Santa": [
# ["Exhaust Pipes", "Tires", "Skis", "Twin-End Tuba"] # ["Exhaust Pipes", "Tires", "Skis", "Twin-End Tuba"]
["Rotten Egg Launcher", "Who Forest Vacuum Tube", "Who Dump Vacuum Tube", "Who Lake Vacuum Tube", "Rocket Spring", "Marine Mobile"] [REL, "Who Forest Vacuum Tube", "Who Dump Vacuum Tube", "Who Lake Vacuum Tube", RS, MM]
], ],
"WV - Post Office - Heart of Stone": [ "WV - Post Office - Heart of Stone": [
[] []
@@ -434,8 +435,8 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WD - Minefield - Heart of Stone": [ "WD - Minefield - Heart of Stone": [
["Grinch Copter"], [GC],
["Rotten Egg Launcher", "Slime Shooter", "Rocket Spring"] [REL, SS, RS]
], ],
"WL - North Shore - Heart of Stone": [ "WL - North Shore - Heart of Stone": [
[] []
@@ -478,19 +479,19 @@ rules_dict: dict[str,list[list[str]]] = {
[] []
], ],
"WV - Exhaust Pipes": [ "WV - Exhaust Pipes": [
["Rotten Egg Launcher"] [REL]
], ],
"WF - Skis": [ "WF - Skis": [
["Who Forest Vacuum Tube"] ["Who Forest Vacuum Tube"]
], ],
"WD - Tires": [ "WD - Tires": [
["Who Dump Vacuum Tube", "Rocket Spring", "Rotten Egg Launcher"] ["Who Dump Vacuum Tube", RS, REL]
], ],
"WL - Submarine World - Twin-End Tuba": [ "WL - Submarine World - Twin-End Tuba": [
["Who Lake Vacuum Tube", "Marine Mobile"] ["Who Lake Vacuum Tube", MM]
], ],
"WL - South Shore - GPS": [ "WL - South Shore - GPS": [
["Who Lake Vacuum Tube", "Rotten Egg Launcher"] ["Who Lake Vacuum Tube", REL]
], ],
"MC - 1st Crate Squashed": [ "MC - 1st Crate Squashed": [
[] []
@@ -514,7 +515,7 @@ rules_dict: dict[str,list[list[str]]] = {
# [] # []
# ], # ],
# "Pink Present": [ # "Pink Present": [
# ["Rotten Egg Launcher"], # [REL],
# ["Pancake"] # ["Pancake"]
# ], # ],
# "Yellow Present": [ # "Yellow Present": [
@@ -532,7 +533,7 @@ access_rules_dict: dict[str,list[list[str]]] = {
["Who Cloak"] ["Who Cloak"]
], ],
"City Hall": [ "City Hall": [
["Rotten Egg Launcher"] [REL]
], ],
"Clock Tower": [ "Clock Tower": [
[] []
@@ -545,33 +546,33 @@ access_rules_dict: dict[str,list[list[str]]] = {
["Cable Car Access Card"] ["Cable Car Access Card"]
], ],
"Civic Center": [ "Civic Center": [
["Grinch Copter"], [GC],
["Octopus Climbing Device"] [OCD]
], ],
"Who Dump": [ "Who Dump": [
["Who Dump Vacuum Tube"], ["Who Dump Vacuum Tube"],
# ["Progressive Vacuum Tube": 2] # ["Progressive Vacuum Tube": 2]
], ],
"Minefield": [ "Minefield": [
["Rotten Egg Launcher", "Rocket Spring"], [REL, RS],
["Rotten Egg Launcher", "Grinch Copter"] [REL, GC]
], ],
"Power Plant": [ "Power Plant": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Slime Shooter", "Grinch Copter"], [SS, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Slime Shooter", "Rocket Spring"] [REL, OCD, SS, RS]
], ],
"Generator Building": [ "Generator Building": [
["Rotten Egg Launcher", "Grinch Copter"], [REL, GC],
["Rotten Egg Launcher", "Octopus Climbing Device", "Slime Shooter", "Rocket Spring"] [REL, OCD, SS, RS]
], ],
"Who Lake": [ "Who Lake": [
["Who Lake Vacuum Tube"], ["Who Lake Vacuum Tube"],
# ["Progressive Vacuum Tube": 3] # ["Progressive Vacuum Tube": 3]
], ],
"Scout's Hut": [ "Scout's Hut": [
["Grinch Copter"], [GC],
["Rocket Spring"] [RS]
], ],
"North Shore": [ "North Shore": [
["Scout Clothes"] ["Scout Clothes"]
@@ -580,7 +581,7 @@ access_rules_dict: dict[str,list[list[str]]] = {
["Scout Clothes"] ["Scout Clothes"]
], ],
"Submarine World": [ "Submarine World": [
["Marine Mobile"] [MM]
], ],
"Sleigh Room": [ "Sleigh Room": [
["Sleigh Room Key"] ["Sleigh Room Key"]