mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: have generation print plando settings as string instead of numbers (#843)
* have generation print plando settings as string instead of numbers * Change to __str__ * Make to_string not a class method * Suggested fix Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Fix the fix * Better quotes Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
@@ -61,6 +61,11 @@ class PlandoSettings(enum.IntFlag):
|
||||
else:
|
||||
return base | part
|
||||
|
||||
def __str__(self) -> str:
|
||||
if self.value:
|
||||
return ", ".join((flag.name for flag in PlandoSettings if self.value & flag.value))
|
||||
return "Off"
|
||||
|
||||
|
||||
def mystery_argparse():
|
||||
options = get_options()
|
||||
|
Reference in New Issue
Block a user