Add Grimmkin Flames logic

This commit is contained in:
Fabian Dill
2021-02-27 16:27:35 +01:00
parent f15c80953b
commit bda86a65f7
5 changed files with 53 additions and 10 deletions

View File

@@ -603,6 +603,17 @@ class CollectionState(object):
return False
def has_flames(self, player: int, count: int):
from worlds.hk import Items as HKItems
found = 0
for item_name in HKItems.lookup_type_to_names["Flame"]:
found += self.prog_items[item_name, player]
if found >= count:
return True
return False
def has_key(self, item, player, count: int = 1):
if self.world.logic[player] == 'nologic':
return True