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

Make waiting units more aggressive and allows double clicking #96

Merged
merged 3 commits into from
Jan 6, 2024

Conversation

berndrakell
Copy link
Contributor

Closes #95
Also adds a property location to each unit, which holds the x and z value on the map. This property is often used in different scripts, so defining it in the unit itself is easier.

@berndrakell berndrakell changed the title Make waiting units more aggressive Make waiting units more aggressive and allows double clicking Dec 30, 2023
@berndrakell
Copy link
Contributor Author

berndrakell commented Dec 30, 2023

Also Closes #97
Added functionality to the SelectionHandler.gd, which now allows for selecting units of the same type with a double click.

Also adds property "type" to units, which equals their script/resource names (e.g. 'Tank')

@Scony
Copy link
Contributor

Scony commented Jan 3, 2024

Thank you! The change conceptually looks good to me - I'll make a few adjustments on top of that like changing names or extracting helper functions. Anyway, I'll merge it in upcoming days.
Btw. In the future please open one PR per feature - it makes reviewing much easier :)

@berndrakell
Copy link
Contributor Author

Thanks for the feedback. Yes I'll not do that again. Tbh I didn't know new commits automatically get joined in PRs - I was never so busy :D

@Scony Scony merged commit a7e986c into lampe-games:main Jan 6, 2024
1 check failed
Scony added a commit that referenced this pull request Jan 6, 2024
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.

Make waiting units more aggressive
2 participants