ok, the economy code is a bit more complex than a first glance revealed to me ;)
but, I tested and debuged it, updated my branch ... and now it really works!
My test:
start a new game as barbars, set bread_paddle target quantity to 0, build metalworks and 2 bakeries. Wait until all is done and equiped. You should have 0 bread_padles in your headquater and now bakers neither. Now build a 3rd bakery ... and guess what, the metalworks produces exactly one bread_paddle :)
ok, the economy code is a bit more complex than a first glance revealed to me ;)
but, I tested and debuged it, updated my branch ... and now it really works!
My test:
start a new game as barbars, set bread_paddle target quantity to 0, build metalworks and 2 bakeries. Wait until all is done and equiped. You should have 0 bread_padles in your headquater and now bakers neither. Now build a 3rd bakery ... and guess what, the metalworks produces exactly one bread_paddle :)
the branch to merge for your own testing:
lp:~meitis/widelands/bug861761