Kromster80 / kam_remake

"KaM Remake" is an RTS game remake written in Delphi from scratch.
http://www.kamremake.com
GNU Affero General Public License v3.0
355 stars 88 forks source link

AI opponents not able to use the marketplace #434

Open lolslayer opened 6 years ago

lolslayer commented 6 years ago

This might be conflicting with the design, but I think it would be great to allow the AI to use the Marketplace on maps that allow marketplaces.

Me and my friends often play against AI opponents, but if we play for too long the AI runs out of gold and slowly dies from hunger without being able to replace the lost citizens.

If the AI is able to buy gold for example when it runs low, this problem is automatically fixed.

A suggestion for how to implement stuff like this: -There are a few resources that can run out like gold, iron, coal and stone. The AI can be tasked to check for those resources if they run low or are completely depleted from the warehouse and if so, it trades goods for those resources. -The AI shouldn't trade resources that can run out for other resources, so I suggest the AI to have pre-defined resources that it can choose out of when trading in a Marketplace, like wine and planks. The AI can check which resource has the biggest reserves and trade those resources in for the desired resources in the Marketplace.

I hope that I explained it well enough and to see if it gets accepted. :)

TehPlayer14 commented 4 years ago

This can be closed, Adv AI has it