Meritous: Minor logic change (#584)

This commit is contained in:
Felix R 2022-05-27 19:52:14 -03:00 committed by GitHub
parent 8adc0dd7eb
commit 5d3b4c8efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View File

@ -163,6 +163,8 @@ class MeritousItem(Item):
self.type = name
elif name == "Extra Life":
self.type = "Other"
elif self.advancement:
self.type = "Important Artifact"
else:
self.type = "Artifact"
self.never_exclude = True
@ -210,5 +212,6 @@ item_groups = {
"Artifacts": ["Map", "Shield Boost", "Crystal Efficiency", "Circuit Booster",
"Metabolism", "Dodge Enhancer", "Ethereal Monocle", "Crystal Gatherer",
"Portable Compass"],
"Important Artifacts": ["Shield Boost", "Circuit Booster", "Metabolism", "Dodge Enhancer"],
"Crystals": ["Crystals x500", "Crystals x1000", "Crystals x2000"]
}

View File

@ -68,7 +68,8 @@ def create_regions(world: MultiWorld, player: int):
entrance_map = {
"To Meridian": {
"to": "Meridian",
"rule": lambda state: state.has_group("PSI Keys", player, 1)
"rule": lambda state: state.has_group("PSI Keys", player, 1) and
state.has_group("Important Artifacts", player, 1)
},
"To Second Quarter": {
"to": "Second Quarter",
@ -76,7 +77,8 @@ def create_regions(world: MultiWorld, player: int):
},
"To Ataraxia": {
"to": "Ataraxia",
"rule": lambda state: state.has_group("PSI Keys", player, 2)
"rule": lambda state: state.has_group("PSI Keys", player, 2) and
state.has_group("Important Artifacts", player, 2)
},
"To Third Quarter": {
"to": "Third Quarter",
@ -84,7 +86,8 @@ def create_regions(world: MultiWorld, player: int):
},
"To Merodach": {
"to": "Merodach",
"rule": lambda state: state.has_group("PSI Keys", player, 3)
"rule": lambda state: state.has_group("PSI Keys", player, 3) and
state.has_group("Important Artifacts", player, 3)
},
"To Last Quarter": {
"to": "Last Quarter",

View File

@ -24,6 +24,8 @@ class MeritousWeb(WebWorld):
"setup/en",
["KewlioMZX"]
)]
theme = "ice"
bug_report_page = "https://github.com/FelicitusNeko/meritous-ap/issues"
class MeritousWorld(World):
@ -60,7 +62,10 @@ class MeritousWorld(World):
@staticmethod
def _is_progression(name):
return "PSI Key" in name or name in ["Cursed Seal", "Agate Knife"]
return "PSI Key" in name or name in [
"Cursed Seal", "Agate Knife", "Dodge Enhancer",
"Shield Boost", "Metabolism", "Circuit Booster"
]
def create_item(self, name: str) -> Item:
return MeritousItem(name, self._is_progression(