Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlacePanel: Limit max based on unit requirements. #11887

Merged
merged 4 commits into from
Aug 21, 2023

Commits on Aug 18, 2023

  1. PlacePanel: Limit max based on unit requirements.

    This change caps the max for each unit type in the place panel to the max that can be placed for that type when considering "units which require units" logic (i.e. factory types).
    
    This partially prevents the error "Cannot place more units which require units, than production capacity of territories with the required units" after making the selection in the place panel.
    
    Note: That error can still happen when selecting multiple units of different types that surpass the max.
    asvitkine committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    a2afde1 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Configuration menu
    Copy the full SHA
    e8c0a2c View commit details
    Browse the repository at this point in the history
  2. Add a test.

    asvitkine committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    572a5ce View commit details
    Browse the repository at this point in the history
  3. Spotless.

    asvitkine committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    d4fa12c View commit details
    Browse the repository at this point in the history