Standardize a Millennium Dawn mod file using the standardization tools.
File to standardize: $ARGUMENTS
Steps:
- Determine the file type from the path:
common/national_focus/or filename contains "focus" →focusevents/→eventcommon/decisions/→decisioncommon/ideas/→ideacommon/military_industrial_organization/organizations/→miocommon/technologies/→technologyhistory/→history. This also reorders each dated block, so it can change startup statement order.common/ai_equipment/,common/characters/,common/scripted_effects/,common/scripted_triggers/→indent
If the type cannot be determined, ask the user to clarify.
- Run from the
tools/standardization/directory:
```
python3 standardize.py <type> <absolute_file_path> --backup --verbose
```
For focus trees, add --check-naming to also enforce TAG_snake_case on country-specific MODIFIER names. It scans the whole file, so a tree carrying pre-existing violations will fail without writing anything — only use it when you intend to clean those up.
- Report what changed: list each block that was reformatted and what was fixed (missing logging, property reordering, removed performance-hurting patterns, etc.)
- If any issues were warned about but not auto-fixed, list them so the user can address them manually.