From ae4426af08fda82b01be11e4f62c2ef1cb4da46a Mon Sep 17 00:00:00 2001 From: Duck <31627079+duckboycool@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:46:26 -0600 Subject: [PATCH] Core: Pad version string in world printout #5511 --- Main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Main.py b/Main.py index d872a3c1..892baa8d 100644 --- a/Main.py +++ b/Main.py @@ -54,13 +54,16 @@ def main(args, seed=None, baked_server_options: dict[str, object] | None = None) logger.info(f"Found {len(AutoWorld.AutoWorldRegister.world_types)} World Types:") longest_name = max(len(text) for text in AutoWorld.AutoWorldRegister.world_types) - item_count = len(str(max(len(cls.item_names) for cls in AutoWorld.AutoWorldRegister.world_types.values()))) - location_count = len(str(max(len(cls.location_names) for cls in AutoWorld.AutoWorldRegister.world_types.values()))) + world_classes = AutoWorld.AutoWorldRegister.world_types.values() + + version_count = max(len(cls.world_version.as_simple_string()) for cls in world_classes) + item_count = len(str(max(len(cls.item_names) for cls in world_classes))) + location_count = len(str(max(len(cls.location_names) for cls in world_classes))) for name, cls in AutoWorld.AutoWorldRegister.world_types.items(): if not cls.hidden and len(cls.item_names) > 0: logger.info(f" {name:{longest_name}}: " - f"v{cls.world_version.as_simple_string()} |" + f"v{cls.world_version.as_simple_string():{version_count}} | " f"Items: {len(cls.item_names):{item_count}} | " f"Locations: {len(cls.location_names):{location_count}}")