Move Progressive Items to AutoWorld

This commit is contained in:
Fabian Dill
2021-07-04 15:47:11 +02:00
parent c669bc3e7f
commit 2530d28c9d
3 changed files with 68 additions and 98 deletions

View File

@@ -46,5 +46,12 @@ class World(metaclass=AutoWorldRegister):
def generate_output(self):
pass
def collect(self, state, item) -> bool:
"""Collect an item into state"""
if item.advancement:
state.prog_items[item.name, item.player] += 1
return True # indicate that a logical state change has occured
return False
def get_required_client_version(self) -> tuple:
return 0, 0, 3
return 0, 0, 3