Jump to content

Gaia (Trees) + GarrisonHolder


Recommended Posts

Yes, trees are just entities like anything else, but currently, you can only garrison in allied buildings, and gaia is considered to be hostile.

Since gaia will fire arrows non-discriminatory to all who are near, it's probably best to make those trees capturable, or let them convert to the territory owner (like farm fields).

But, as there are so many trees on the map, you should watch out to make the tree code not too heavy. When you add a buildingAI to every tree, every tree will have its own range check. Looping over all trees every turn and doing range tests will be bad for performance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...