Core: Minor Options cleanup (#1182)
* Options.py cleanup * TextChoice cleanup * make Option.current_option_name a property * title the TextChoce option names * satisfy the linter * a little more options cleanup * move the typing import * typing should be PlandoSettings * fix incorrect conflict merging * make imports local * the tests seem to want me to import these twice though i hate it. * changes from review. Make the various Location verifying Options `LocationSet` * remove unnecessary fluff * begrudgingly support get_current_option_name. Leave a comment that worlds shouldn't be touching this * log a deprecation warning and return the property for `get_current_option_name()` --------- Co-authored-by: beauxq <beauxq@yahoo.com> Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
@@ -255,7 +255,7 @@ class ZillionWorld(World):
|
||||
group_players = group["players"]
|
||||
start_chars = cast(Dict[int, ZillionStartChar], getattr(multiworld, "start_char"))
|
||||
players_start_chars = [
|
||||
(player, start_chars[player].get_current_option_name())
|
||||
(player, start_chars[player].current_option_name)
|
||||
for player in group_players
|
||||
]
|
||||
start_char_counts = Counter(sc for _, sc in players_start_chars)
|
||||
|
||||
Reference in New Issue
Block a user