set_rule(world.multiworld.get_location("Watch Out Below!: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("Watch Out Below!: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("Watch Out Below!: Stars",player),lambdastate:state.has("Large Spring Ball",player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("Watch Out Below!: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of Chomp Rock: Red Coins",player),lambdastate:state.has("Chomp Rock",player))
set_rule(world.multiworld.get_location("The Cave Of Chomp Rock: Flowers",player),lambdastate:state.has("Chomp Rock",player))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Red Coins",player),lambdastate:state.has("Spring Ball",player))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Flowers",player),lambdastate:state.has_all({"Spring Ball","Key"},player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Stars",player),lambdastate:state.has("Spring Ball",player)and(logic.has_midring(state)orstate.has("Key",player)))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Flashing Eggs","Mole Tank Morph","! Switch"},player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Stars",player),lambdastate:(logic.has_midring(state)andstate.has("Tulip",player)orlogic.has_midring(state)andstate.has("Beanstalk",player))andstate.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","Beanstalk"},player))
set_rule(world.multiworld.get_location("Touch Fuzzy Get Dizzy: Red Coins",player),lambdastate:state.has_all({"Flashing Eggs","Spring Ball","Chomp Rock","Beanstalk"},player))
set_rule(world.multiworld.get_location("Touch Fuzzy Get Dizzy: Stars",player),lambdastate:logic.has_midring(state)or(logic.cansee_cloudsandstate.has_all({"Spring Ball","Chomp Rock","Beanstalk"},player)))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Red Coins",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Flowers",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Stars",player),lambdastate:logic.has_midring(state)and(state.has("Platform Ghost",player)orstate.has_all({"Arrow Wheel","Key"},player)))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Red Coins",player),lambdastate:state.has_all({"Poochy","Large Spring Ball","Spring Ball"},player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Flowers",player),lambdastate:state.has_all({"Super Star","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Stars",player),lambdastate:state.has("Large Spring Ball",player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Baseball Boys: Red Coins",player),lambdastate:state.has_all({"Beanstalk","Super Star","Egg Launcher","Large Spring Ball","Mole Tank Morph"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Flowers",player),lambdastate:state.has_all({"Beanstalk","Super Star","Egg Launcher","Large Spring Ball","Spring Ball"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Stars",player),lambdastate:(logic.has_midring(state)and(state.has("Tulip",player)))andstate.has_all({"Beanstalk","Super Star","Large Spring Ball","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Level Clear",player),lambdastate:state.has_all({"Beanstalk","Super Star","Egg Launcher","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("What's Gusty Taste Like?: Red Coins",player),lambdastate:state.has("! Switch",player))
set_rule(world.multiworld.get_location("What's Gusty Taste Like?: Flowers",player),lambdastate:state.has_any({"Large Spring Ball","Super Star"},player))
set_rule(world.multiworld.get_location("What's Gusty Taste Like?: Level Clear",player),lambdastate:state.has_any({"Large Spring Ball","Super Star"},player))
set_rule(world.multiworld.get_location("Bigger Boo's Fort: Red Coins",player),lambdastate:state.has_all({"! Switch","Key","Dashed Stairs"},player))
set_rule(world.multiworld.get_location("Watch Out For Lakitu: Red Coins",player),lambdastate:state.has("Chomp Rock",player))
set_rule(world.multiworld.get_location("Watch Out For Lakitu: Flowers",player),lambdastate:state.has_all({"Key","Train Morph","Chomp Rock"},player))
set_rule(world.multiworld.get_location("Watch Out For Lakitu: Level Clear",player),lambdastate:state.has("Chomp Rock",player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Stars",player),lambdastate:state.has("Large Spring Ball",player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Lakitu's Wall: Red Coins",player),lambdastate:(state.has_any({"Dashed Platform","Giant Eggs"},player)orlogic.combat_item(state))andstate.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Lakitu's Wall: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player)and(logic.combat_item(state)orstate.has("Giant Eggs",player)))
set_rule(world.multiworld.get_location("Jammin' Through The Trees: Flowers",player),lambdastate:state.has("Watermelon",player)orlogic.melon_item(state))
set_rule(world.multiworld.get_location("Jammin' Through The Trees: Stars",player),lambdastate:((logic.has_midring(state)orstate.has("Tulip",player))andlogic.cansee_clouds(state))orlogic.has_midring(state)andstate.has("Tulip",player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Red Coins",player),lambdastate:state.has_all({"Chomp Rock","Beanstalk","Mole Tank Morph","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Flowers",player),lambdastate:state.has_all({"Chomp Rock","Beanstalk","Mole Tank Morph","Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Stars",player),lambdastate:state.has_all({"Tulip","Large Spring Ball","Dashed Stairs","Chomp Rock","Beanstalk","Mole Tank Morph"},player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Level Clear",player),lambdastate:state.has_all({"Chomp Rock","Large Spring Ball","Key"},player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Red Coins",player),lambdastate:state.has_all({"! Switch","Submarine Morph","Large Spring Ball","Beanstalk"},player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Flowers",player),lambdastate:state.has_all({"Beanstalk","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Stars",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Naval Piranha's Castle: Red Coins",player),lambdastate:(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","! Switch","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Stars",player),lambdastate:state.has_all({"Large Spring Ball","Spring Ball"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Don't Look Back!: Red Coins",player),lambdastate:state.has_all({"Helicopter Morph","! Switch","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Don't Look Back!: Flowers",player),lambdastate:state.has_all({"! Switch","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Chomp Rock Zone: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Chomp Rock"},player))
set_rule(world.multiworld.get_location("Chomp Rock Zone: Flowers",player),lambdastate:state.has_all({"Chomp Rock","! Switch","Spring Ball","Dashed Platform"},player))
set_rule(world.multiworld.get_location("Chomp Rock Zone: Stars",player),lambdastate:state.has_all({"Chomp Rock","! Switch","Spring Ball","Dashed Platform"},player))
set_rule(world.multiworld.get_location("Lake Shore Paradise: Red Coins",player),lambdastate:state.has_any({"Large Spring Ball","Spring Ball"},player)and(state.has("Egg Plant",player)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Lake Shore Paradise: Flowers",player),lambdastate:state.has_any({"Large Spring Ball","Spring Ball"},player)and(state.has("Egg Plant",player)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Ride Like The Wind: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Stars",player),lambdastate:(logic.has_midring(state)andstate.has("Helicopter Morph",player))andstate.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Red Coins",player),lambdastate:state.has_all({"Dashed Stairs","Vanishing Arrow Wheel","Key"},player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Vanishing Arrow Wheel","Key"},player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Stars",player),lambdastate:logic.has_midring(state)and(state.has_any({"Dashed Stairs","Vanishing Arrow Wheel"},player)))
set_rule(world.multiworld.get_location("BLIZZARD!!!: Red Coins",player),lambdastate:state.has_all({"Helicopter Morph","Dashed Stairs"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Red Coins",player),lambdastate:state.has_all({"Dashed Stairs","Dashed Platform","Platform Ghost"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Platform Ghost","Dashed Platform"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Stars",player),lambdastate:((state.has_all({"Dashed Stairs","Platform Ghost"},player))andlogic.has_midring(state))or(logic.cansee_clouds(state)andstate.has("Dashed Stairs",player)andstate.has("Dashed Platform",player)))
set_rule(world.multiworld.get_location("Goonie Rides!: Red Coins",player),lambdastate:state.has_all({"Helicopter Morph","! Switch"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Red Coins",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Flowers",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Stars",player),lambdastate:logic.has_midring(state)andstate.has("Arrow Wheel",player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Red Coins",player),lambdastate:state.has_all({"Dashed Platform","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Flowers",player),lambdastate:state.has_all({"Dashed Platform","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Level Clear",player),lambdastate:state.has_all({"Dashed Platform","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Red Coins",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Flowers",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Stars",player),lambdastate:logic.cansee_clouds(state)orlogic.has_midring(state))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Level Clear",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Red Coins",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Flowers",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Stars",player),lambdastate:logic.has_midring(state)andstate.has_all({"Spring Ball","Large Spring Ball","Egg Plant","Key"},player))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Red Coins",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Flowers",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Stars",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state))andlogic.has_midring(state))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Red Coins",player),lambdastate:state.has_all({"Chomp Rock","Key","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Flowers",player),lambdastate:state.has_all({"Chomp Rock","Key","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Stars",player),lambdastate:state.has_all({"Chomp Rock","Tulip","Key"},player)or(logic.has_midring(state)andstate.has_all({"Key","Chomp Rock","Large Spring Ball"},player)))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Level Clear",player),lambdastate:state.has_all({"Chomp Rock","Key","Large Spring Ball","Dashed Platform"},player))
set_rule(world.multiworld.get_location("KEEP MOVING!!!!: Red Coins",player),lambdastate:(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Hit That Switch!!: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Red Coins",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph","Flashing Eggs"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Flowers",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Stars",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Level Clear",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("Kamek's Revenge: Red Coins",player),lambdastate:state.has_all({"Key","Skis","Helicopter Morph","! Switch"},player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Red Coins",player),lambdastate:(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Flowers",player),lambdastate:(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Stars",player),lambdastate:logic.has_midring(state)andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Level Clear",player),lambdastate:(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Watch Out Below!: Red Coins",player),lambdastate:state.has("Helicopter Morph",player))
set_rule(world.multiworld.get_location("Watch Out Below!: Flowers",player),lambdastate:state.has("Helicopter Morph",player))
set_rule(world.multiworld.get_location("Watch Out Below!: Stars",player),lambdastate:logic.has_midring(state))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Red Coins",player),lambdastate:state.has("Spring Ball",player))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Flowers",player),lambdastate:state.has_all({"Spring Ball","Key"},player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Stars",player),lambdastate:state.has("Spring Ball",player))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Level Clear",player),lambdastate:logic._14CanFightBoss(state))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Flashing Eggs","Mole Tank Morph","! Switch"},player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Stars",player),lambdastate:(logic.has_midring(state)andstate.has_any(["Tulip","Beanstalk"],player))or(state.has_all(["Tulip","Beanstalk","Large Spring Ball"],player)))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","Beanstalk"},player))
set_rule(world.multiworld.get_location("Touch Fuzzy Get Dizzy: Red Coins",player),lambdastate:state.has_all({"Flashing Eggs","Spring Ball","Chomp Rock","Beanstalk"},player))
set_rule(world.multiworld.get_location("Touch Fuzzy Get Dizzy: Stars",player),lambdastate:logic.has_midring(state)or(logic.cansee_cloudsandstate.has_all({"Spring Ball","Chomp Rock","Beanstalk"},player)))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Red Coins",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Flowers",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Stars",player),lambdastate:logic.has_midring(state)and(state.has("Platform Ghost",player)orstate.has_all({"Arrow Wheel","Key"},player)))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Red Coins",player),lambdastate:state.has_all({"Poochy","Large Spring Ball","Spring Ball"},player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Flowers",player),lambdastate:state.has_all({"Super Star","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Stars",player),lambdastate:state.has("Large Spring Ball",player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Baseball Boys: Red Coins",player),lambdastate:state.has_all({"Beanstalk","Super Star","Large Spring Ball","Mole Tank Morph"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Flowers",player),lambdastate:state.has_all({"Super Star","Large Spring Ball","Beanstalk","Spring Ball"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Stars",player),lambdastate:(logic.has_midring(state)or(state.has("Tulip",player)))andstate.has_all({"Beanstalk","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Baseball Boys: Level Clear",player),lambdastate:state.has_all({"Beanstalk","Super Star","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("What's Gusty Taste Like?: Red Coins",player),lambdastate:state.has("! Switch",player))
set_rule(world.multiworld.get_location("Bigger Boo's Fort: Red Coins",player),lambdastate:state.has_all({"! Switch","Key","Dashed Stairs"},player))
set_rule(world.multiworld.get_location("Watch Out For Lakitu: Flowers",player),lambdastate:state.has_all({"Key","Train Morph"},player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Stars",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Mystery Maze: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Lakitu's Wall: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player)and(logic.combat_item(state)orstate.has("Giant Eggs",player)))
set_rule(world.multiworld.get_location("Jammin' Through The Trees: Flowers",player),lambdastate:state.has("Watermelon",player)orlogic.melon_item(state))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Red Coins",player),lambdastate:state.has_any({"Dashed Stairs","Beanstalk"},player)andstate.has_all({"Mole Tank Morph","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Flowers",player),lambdastate:state.has_any({"Dashed Stairs","Beanstalk"},player)andstate.has_all({"! Switch","Mole Tank Morph","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Stars",player),lambdastate:(state.has_any({"Dashed Stairs","Beanstalk"},player)andstate.has_all({"Mole Tank Morph","Large Spring Ball"},player))and(logic.has_midring(state)orstate.has("Tulip",player)))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","Key"},player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Red Coins",player),lambdastate:state.has_all({"! Switch","Submarine Morph","Large Spring Ball","Beanstalk"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","! Switch","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Stars",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Don't Look Back!: Red Coins",player),lambdastate:state.has_all({"Helicopter Morph","! Switch","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Don't Look Back!: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Stars",player),lambdastate:(logic.has_midring(state)orstate.has("Helicopter Morph",player))andstate.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Red Coins",player),lambdastate:state.has_all({"Dashed Stairs","Vanishing Arrow Wheel","Key"},player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Vanishing Arrow Wheel","Key"},player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Stars",player),lambdastate:logic.has_midring(state)or(state.has_any({"Dashed Stairs","Vanishing Arrow Wheel"},player)))
set_rule(world.multiworld.get_location("BLIZZARD!!!: Red Coins",player),lambdastate:state.has_any({"Dashed Stairs","Ice Melon"},player)and(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state)orstate.has("Helicopter Morph",player)))
set_rule(world.multiworld.get_location("Danger - Icy Conditions Ahead: Red Coins",player),lambdastate:(state.has("Fire Melon",player)orlogic.melon_item(state))and(state.has_all({"Spring Ball","Skis"},player))and(state.has("Super Star",player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Red Coins",player),lambdastate:state.has_all({"Dashed Stairs","Dashed Platform","Platform Ghost"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Platform Ghost","Dashed Platform"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Stars",player),lambdastate:((state.has_all({"Dashed Stairs","Platform Ghost"},player)))or(logic.cansee_clouds(state)andstate.has("Dashed Stairs",player)))
set_rule(world.multiworld.get_location("Goonie Rides!: Red Coins",player),lambdastate:state.has("Helicopter Morph",player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Red Coins",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Flowers",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Stars",player),lambdastate:logic.has_midring(state))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Red Coins",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Flowers",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Level Clear",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Stars",player),lambdastate:logic.has_midring(state)andstate.has_all({"Spring Ball","Egg Plant","Key"},player))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Red Coins",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Flowers",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Stars",player),lambdastate:state.has("Chomp Rock",player)and(state.has("Egg Capacity Upgrade",player,2)orlogic.combat_item(state))andlogic.has_midring(state))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Red Coins",player),lambdastate:state.has_all({"Chomp Rock","Key","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Flowers",player),lambdastate:state.has_all({"Chomp Rock","Key","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Stars",player),lambdastate:state.has_all({"Chomp Rock","Tulip","Key"},player)or(logic.has_midring(state)andstate.has_all({"Key","Chomp Rock","Large Spring Ball"},player)))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Level Clear",player),lambdastate:state.has_all({"Key","Large Spring Ball","Dashed Platform"},player)and(logic.combat_item(state)orstate.has("Chomp Rock",player)))
set_rule(world.multiworld.get_location("Hit That Switch!!: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Red Coins",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph","Flashing Eggs"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Flowers",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Stars",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Level Clear",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("Kamek's Revenge: Red Coins",player),lambdastate:state.has_all({"Key","Skis","Helicopter Morph","! Switch"},player)andlogic.has_midring(state))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Red Coins",player),lambdastate:(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Flowers",player),lambdastate:(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Stars",player),lambdastate:logic.has_midring(state)orstate.has(("Large Spring Ball"),player))
set_rule(world.multiworld.get_location("Castles - Masterpiece Set: Level Clear",player),lambdastate:(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state))andstate.has(("Large Spring Ball"),player))
defset_hard_rules(world:"YoshisIslandWorld"):
logic=YoshiLogic(world)
player=world.player
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Red Coins",player),lambdastate:state.has("Spring Ball",player))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Flowers",player),lambdastate:state.has_all({"Spring Ball","Key"},player)and(state.has("Egg Capacity Upgrade",player,3)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Burt The Bashful's Fort: Stars",player),lambdastate:state.has("Spring Ball",player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","Flashing Eggs","Mole Tank Morph","! Switch"},player))
set_rule(world.multiworld.get_location("Shy-Guys On Stilts: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Touch Fuzzy Get Dizzy: Red Coins",player),lambdastate:state.has_all({"Flashing Eggs","Spring Ball","Chomp Rock","Beanstalk"},player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Red Coins",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Salvo The Slime's Castle: Flowers",player),lambdastate:state.has("Platform Ghost",player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Red Coins",player),lambdastate:state.has("Large Spring Ball",player)and(state.has("Poochy",player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Flowers",player),lambdastate:state.has_all({"Super Star","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Stars",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Visit Koopa And Para-Koopa: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Baseball Boys: Red Coins",player),lambdastate:state.has("Mole Tank Morph",player)and(state.has_any({"Ice Melon","Large Spring Ball"},player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("The Baseball Boys: Flowers",player),lambdastate:(state.has_any({"Ice Melon","Large Spring Ball"},player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("The Baseball Boys: Level Clear",player),lambdastate:(state.has_any({"Ice Melon","Large Spring Ball"},player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("What's Gusty Taste Like?: Red Coins",player),lambdastate:state.has("! Switch",player))
set_rule(world.multiworld.get_location("Bigger Boo's Fort: Red Coins",player),lambdastate:state.has_all({"! Switch","Key"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Red Coins",player),lambdastate:state.has("Mole Tank Morph",player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Flowers",player),lambdastate:state.has_all({"Mole Tank Morph","! Switch"},player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Stars",player),lambdastate:logic.has_midring(state)orstate.has("Tulip",player))
set_rule(world.multiworld.get_location("The Cave Of Harry Hedgehog: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","Key"},player))
set_rule(world.multiworld.get_location("Monkeys' Favorite Lake: Red Coins",player),lambdastate:state.has_all({"! Switch","Submarine Morph"},player))
set_rule(world.multiworld.get_location("GO! GO! MARIO!!: Red Coins",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Red Coins",player),lambdastate:state.has_all({"! Switch","Egg Launcher"},player))
set_rule(world.multiworld.get_location("The Cave Of The Lakitus: Flowers",player),lambdastate:state.has("Egg Launcher",player))
set_rule(world.multiworld.get_location("Don't Look Back!: Red Coins",player),lambdastate:state.has_all({"Helicopter Morph","Large Spring Ball"},player))
set_rule(world.multiworld.get_location("Don't Look Back!: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Stars",player),lambdastate:(logic.has_midring(state)orstate.has("Helicopter Morph",player))andstate.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Ride Like The Wind: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Red Coins",player),lambdastate:state.has_all({"Key","Dashed Stairs"},player))
set_rule(world.multiworld.get_location("Hookbill The Koopa's Castle: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Key"},player))
set_rule(world.multiworld.get_location("Danger - Icy Conditions Ahead: Red Coins",player),lambdastate:(state.has("Fire Melon",player)orlogic.melon_item(state))and(state.has_all({"Spring Ball","Skis"},player))and(state.has("Super Star",player)orlogic.melon_item(state)))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Red Coins",player),lambdastate:state.has_all({"Dashed Stairs","Dashed Platform","Platform Ghost"},player))
set_rule(world.multiworld.get_location("Sluggy The Unshaven's Fort: Flowers",player),lambdastate:state.has_all({"Dashed Stairs","Platform Ghost"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Red Coins",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Raphael The Raven's Castle: Flowers",player),lambdastate:state.has_all({"Arrow Wheel","Train Morph"},player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Red Coins",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Flowers",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("Scary Skeleton Goonies!: Level Clear",player),lambdastate:state.has("Large Spring Ball",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Red Coins",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Flowers",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("The Cave Of The Bandits: Level Clear",player),lambdastate:state.has("Super Star",player))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Red Coins",player),lambdastate:state.has_all({"Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Flowers",player),lambdastate:state.has_all({"Egg Plant","Key"},player)and(state.has("Egg Capacity Upgrade",player,1)orlogic.combat_item(state)))
set_rule(world.multiworld.get_location("Tap-Tap The Red Nose's Fort: Stars",player),lambdastate:state.has("Egg Plant",player)andstate.has("Key",player))
set_rule(world.multiworld.get_location("The Very Loooooong Cave: Stars",player),lambdastate:logic.has_midring(state))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Red Coins",player),lambdastate:state.has_all({"Key","Large Spring Ball"},player)and(logic.combat_item(state)orstate.has("Chomp Rock",player)))
set_rule(world.multiworld.get_location("The Deep, Underground Maze: Flowers",player),lambdastate:state.has_all({"Key","Large Spring Ball"},player)and(logic.combat_item(state)orstate.has("Chomp Rock",player)))
set_rule(world.multiworld.get_location("Hit That Switch!!: Red Coins",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Flowers",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("Hit That Switch!!: Level Clear",player),lambdastate:state.has_all({"Large Spring Ball","! Switch"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Red Coins",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph","Flashing Eggs"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Flowers",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Stars",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph"},player))
set_rule(world.multiworld.get_location("The Impossible? Maze: Level Clear",player),lambdastate:state.has_all({"Spring Ball","Large Spring Ball","Mole Tank Morph","Helicopter Morph"},player))
set_rule(world.multiworld.get_location("Kamek's Revenge: Red Coins",player),lambdastate:state.has_all({"Key","Skis","Helicopter Morph"},player))