implement "crossover logic".

Makes it impossible that logical progression for a logic-having player is placed inside a no-logic world. All other placements remain available.
This commit is contained in:
Fabian Dill
2020-06-19 03:01:23 +02:00
parent cb1d4cc39e
commit f311d3a8b9
3 changed files with 29 additions and 2 deletions

View File

@@ -116,6 +116,10 @@ class World(object):
set_player_attr('triforce_pieces_available', 30)
set_player_attr('triforce_pieces_required', 20)
@property
def player_ids(self):
yield from range(1, self.players + 1)
def get_name_string_for_object(self, obj) -> str:
return obj.name if self.players == 1 else f'{obj.name} ({self.get_player_names(obj.player)})'