jsettlers / settlers-remake

A Remake of "The Settlers III" for Windows, Linux, Mac and Android
http://www.settlers-android-clone.com
MIT License
355 stars 101 forks source link

Fixed offer stacks & building scripts #740

Closed nptr closed 6 years ago

nptr commented 6 years ago
nptr commented 6 years ago

Elaboration on the baker fix: The failjob branch of the material-availability-checks jumped to the A_wait action, being the end of the "take flour" act / begin of the "take water" act, effectively skipping "take flour". So despite missing flour, "take water" and "make bread" is executed, having the above mentioned effect of making bread just from water.

Furthermore, the drop location of the bread did not match the offerStack location. Also the location for the "offer stack not full" check was wrong, meaning the baker produced bread endless despite the offer stack being full (wasting water and maybe flour).

With those problems fixed, new problems arose: failing unit/integration tests

andreas-eberle commented 6 years ago

@nptr: Thansk for working on this. To ensure that the answers to your questions will be findable in the future, I wrote them in our wiki. Here the links to the answers and reasons:

nptr commented 6 years ago

Here we go: [+] marked stack position + NPC path as protected, was just 4 nearby points. [+] increased the time limit for EASY vs. VERY_EASY because of the now delayed bread production [+] reduced soldier requirement. Got 865 tho, not 834. AI is very susceptible to some things..

Yes, i might add a PR which buffs the AI again if necessary.