Summary: AI won't build sea-only workers
Submitted by: cazfi
Submitted on: Sun 16 Mar 2014 04:21:21 AM EET
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Discussion Lock: Any
Planned Release: 2.6.0
Once sea-only worker units become avilable in my ruleset, AI failed to build
any workers capable of moving on land. That's because it blindly takes the
latest available worker type, and that happened to be the sea-only one.
Attached patch improves the situation a bit by making sure that AI never
builds sea-only workers. If presented with a choice between land-only and
sea-only workers, it will build land-only ones.
This patch is not as counter-productive as one may think ("why don't you
really fix it?") as almost all of the code added is about building the
framework for AI to select role units based on where they can move. That's
certainly needed in full fix to make AI to build different units based on
where they are needed.
Date: Sun 16 Mar 2014 04:21:21 AM EET Name: LandSettlers.patch Size: 6kB
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list