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
Fix tree owner to Neutral for all trees on RA/TD maps #15457
Conversation
Do we want some kind of lint rule to enforce this? |
What property would you base such a rule on? I can only imagine such a lintrule working if we add a trait specifically to these kind of actors and the lintrule would then check for the ownership of the actors with that trait. |
Yes, exactly. The trait would be added on the base templates, so only needs to be declared a few times. |
In that case, I can get behind that idea. |
It would be even better if we could enforce this (Neutral owner) in the editor as well if the actor has that trait, because forgetting to change the player before placing trees can happen easily and fixing it manually is only really feasible via text editor, which requires unzipping/saving unpackaged, making the whole process a pain. |
Owner: Creeps can lead to AI trying to attack trees, so all trees must have Neutral as owner.
Needs to be Neutral instead of Creeps, to avoid confusing the AI.
92b8884
to
bd1dec6
Compare
Updated, fixed all other maps as well. The trait + lint check I used to identify them will come in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Sorry, but this was merged a tad too early, looks like something went wrong while updating/saving the TD maps. I'll file a follow-up shortly. |
Otherwise AI squads will try to attack them and get stuck (because only flame units can damage them).