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

Spread out units of same type in custom formation. #4592

Merged

Conversation

amnykon
Copy link
Contributor

@amnykon amnykon commented Jan 15, 2022

local function HasWaterWeapon(UnitDefID) is no longer used. and removed.

@amnykon
Copy link
Contributor Author

amnykon commented Jan 15, 2022

I have not seen any issues with maxHngTime and maxNoXTime; however, they may need to be lowered as now these timeouts are now per unit type. I don't make large numbers of fleas, so I did not stress test it.

@GoogleFrog
Copy link
Contributor

I'm not sure how I feel about this situation:
image

Cut down on tiny table creation. Remove pairs, ipairs. Remove unnecessary foreach. Reformulate priority into finding a maximum, as it doesn't require any properties of the underlying numbers (ie being at most 1). Replace empty declaration if-else chain with a function call. Removed explicit comparison with nil.
@amnykon
Copy link
Contributor Author

amnykon commented Jan 16, 2022

If the com has area cloak or shield, he needs to be centered.

@GoogleFrog GoogleFrog merged commit f0d1f78 into ZeroK-RTS:master Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants