Merge lp:~widelands-dev/widelands/mines-worldsavior into lp:widelands

Proposed by GunChleoc
Status: Merged
Merged at revision: 8823
Proposed branch: lp:~widelands-dev/widelands/mines-worldsavior
Merge into: lp:widelands
Diff against target: 2981 lines (+958/-490)
70 files modified
data/campaigns/emp04.wmf/scripting/tribes/farm2.lua (+1/-1)
data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua (+6/-6)
data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua (+34/-10)
data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua (+70/-34)
data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua (+22/-10)
data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua (+24/-8)
data/tribes/buildings/productionsites/atlanteans/smelting_works/init.lua (+2/-4)
data/tribes/buildings/productionsites/atlanteans/smokery/init.lua (+2/-6)
data/tribes/buildings/productionsites/atlanteans/toolsmithy/init.lua (+19/-31)
data/tribes/buildings/productionsites/atlanteans/weaponsmithy/init.lua (+15/-15)
data/tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua (+8/-11)
data/tribes/buildings/productionsites/barbarians/ax_workshop/init.lua (+9/-9)
data/tribes/buildings/productionsites/barbarians/big_inn/init.lua (+7/-6)
data/tribes/buildings/productionsites/barbarians/coalmine/init.lua (+20/-3)
data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua (+23/-7)
data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua (+24/-7)
data/tribes/buildings/productionsites/barbarians/goldmine/init.lua (+2/-1)
data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua (+23/-7)
data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua (+23/-7)
data/tribes/buildings/productionsites/barbarians/granitemine/init.lua (+21/-4)
data/tribes/buildings/productionsites/barbarians/helmsmithy/init.lua (+9/-9)
data/tribes/buildings/productionsites/barbarians/inn/init.lua (+1/-2)
data/tribes/buildings/productionsites/barbarians/ironmine/init.lua (+2/-1)
data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua (+21/-5)
data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua (+22/-8)
data/tribes/buildings/productionsites/barbarians/smelting_works/init.lua (+2/-4)
data/tribes/buildings/productionsites/barbarians/tavern/init.lua (+4/-2)
data/tribes/buildings/productionsites/barbarians/warmill/init.lua (+18/-18)
data/tribes/buildings/productionsites/empire/armorsmithy/init.lua (+13/-12)
data/tribes/buildings/productionsites/empire/coalmine/init.lua (+22/-7)
data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua (+24/-7)
data/tribes/buildings/productionsites/empire/goldmine/init.lua (+19/-5)
data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua (+20/-5)
data/tribes/buildings/productionsites/empire/inn/init.lua (+5/-6)
data/tribes/buildings/productionsites/empire/ironmine/init.lua (+20/-5)
data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua (+23/-7)
data/tribes/buildings/productionsites/empire/marblemine/init.lua (+48/-18)
data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua (+31/-7)
data/tribes/buildings/productionsites/empire/smelting_works/init.lua (+2/-4)
data/tribes/buildings/productionsites/empire/tavern/init.lua (+3/-2)
data/tribes/buildings/productionsites/empire/weaponsmithy/init.lua (+15/-15)
data/tribes/buildings/productionsites/frisians/armor_smithy_large/init.lua (+9/-9)
data/tribes/buildings/productionsites/frisians/armor_smithy_small/init.lua (+10/-9)
data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua (+12/-12)
data/tribes/buildings/productionsites/frisians/coalmine/init.lua (+20/-3)
data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua (+26/-13)
data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua (+6/-3)
data/tribes/buildings/productionsites/frisians/furnace/init.lua (+2/-4)
data/tribes/buildings/productionsites/frisians/goldmine/init.lua (+2/-1)
data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua (+24/-7)
data/tribes/buildings/productionsites/frisians/honey_bread_bakery/init.lua (+3/-3)
data/tribes/buildings/productionsites/frisians/ironmine/init.lua (+2/-1)
data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua (+26/-7)
data/tribes/buildings/productionsites/frisians/mead_brewery/init.lua (+3/-3)
data/tribes/buildings/productionsites/frisians/recycling_center/init.lua (+2/-2)
data/tribes/buildings/productionsites/frisians/rockmine/init.lua (+19/-5)
data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua (+26/-10)
data/tribes/buildings/productionsites/frisians/sewing_room/init.lua (+2/-1)
data/tribes/buildings/productionsites/frisians/smokery/init.lua (+2/-2)
data/tribes/buildings/productionsites/frisians/tailors_shop/init.lua (+6/-4)
data/tribes/buildings/productionsites/frisians/tavern/init.lua (+8/-4)
data/tribes/buildings/trainingsites/atlanteans/dungeon/init.lua (+1/-0)
data/tribes/buildings/trainingsites/barbarians/battlearena/init.lua (+1/-0)
data/tribes/buildings/trainingsites/empire/arena/init.lua (+1/-1)
data/tribes/buildings/trainingsites/empire/colosseum/init.lua (+1/-0)
data/tribes/buildings/trainingsites/frisians/training_arena/init.lua (+1/-0)
data/tribes/scripting/help/ware_help.lua (+55/-44)
data/txts/developers.json (+1/-0)
src/logic/map_objects/tribes/production_program.cc (+4/-3)
src/logic/map_objects/tribes/worker.cc (+4/-3)
To merge this branch: bzr merge lp:~widelands-dev/widelands/mines-worldsavior
Reviewer Review Type Date Requested Status
GunChleoc Approve
Toni Förster Approve
hessenfarmer Needs Resubmitting
Benedikt Straub review Approve
Review via email: mp+350716@code.launchpad.net

Commit message

Diverse balancing tweaks for productionsites
- Honey Bread Bakery now only ignores economy requirements when producing
  Honeybread and the workers need experience. Same goes for Mead Brewery.
- All Smelting Works, Furnaces, Smokeries, Recycling Center, Altantean and
  Frisian Toolsmithies, Taverns, Inns and Drinking Halls no longer waste time
  if a ware is missing and they ave to skip a program.
- Tweaked programs for Weapon/Armor producing buildings
- Imperial Armor Smithy produces 1 more Helm per run to balance the amount of
  armor types for training.
- Changed the order of programs in the Atlantean Toolsmithy
- Improved efficiency for Frisian Deep Mines to align with the efficiency of
  the corresponding Barbarian mines
- Gave the Barbarian Deep Gold Mine the same stats as the Deep Iron Mine

To post a comment you must log in.
Revision history for this message
Benedikt Straub (nordfriese) wrote :

Reviewed the code, added a lot of small comments for code style. Feel free to ignore.
Also found a typo in the frisian deep gold mine and a possible bug in the design of all mines, please fix.

Is it really intended that the frisian deep gold and iron mines produce gold and iron directly now, rather than ores???

review: Needs Fixing (review)
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Agree to most of Nordfrieses Comments

stats are looking much better now in the Excel. will upload them to the bug ASAP

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3718. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/407539420.
Appveyor build 3518. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3518.

Revision history for this message
Benedikt Straub (nordfriese) wrote :

Found another issue: For the buildings where the penalty for missing wares has been removed, the program order is now:
  "return=skipped unless economy needs <ware>",
  "consume=<wares>",
  "animate=working <time>",
  "sleep=<time>",
  "produce=<wares>"
The last two lines should be switched here for all those buildings. It´ll look strange if the building works, then nothing happens, much later after some sleeptime a ware is produced.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I agree to Nordfrieses last comment.
Just ignore my commet about worker experience didn't see that it is the upgraded building.

We should document the new philosophy of the mines preferably in the RST section:
- now one ressource on the map delivers exactly one ware
- the probability is now calculated over the complete work cycle and implemented in the first mine command
- all working animations are put at the beginning of the command cycle.

I will try to playtest These values with the AI as this Change might have an Impact on AI due to different stats if depleted.

Thanks to WorldSavior for the changes

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

found an error which prevented playtesting
will fix the errors and upload within an hour so please do not upload anything until then.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3721. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/407778348.
Appveyor build 3521. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3521.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Ok yesterday I fixed all diff comments from Nordfriese and me. (Hope I caught all of them)
Did a testrun of 4 Ai (one of each tribe) on Full moon map. No anomalies showed up in the first 3 hours. Although no mine got depleted so I couldn't get the stats of a depleted mine. Ai was working ok.
Did some updates to my excel calculations about the needed Buildings to supply the soldier production. I uploaded the excel file to the frisians balancing bug. The calculations showed that we needed to adjust frisian weapon production times a lot. I entered values of comparable weapons of the other tribes. And added them to lua.

Furthermore I discovered that we should set the trainingsite percentage of at least one trainingsite for each tribe due to their different full cycle time (e.g. for barbarians the trainingcamp does need 240 seconds for a whole cycle while the arena does need only 60 which means the arena could supply 4 camps with fully trained soldiers) so I fixed this on the fly.
From my side the branch could be ready now pending further review of my late changes.

review: Needs Resubmitting
Revision history for this message
Benedikt Straub (nordfriese) wrote :

Found no more errors, changes look sensible. Didn´t test.

review: Approve (review)
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

After discussing this in the Forum the marble mine probability settings need to be changed back to 20%.
found another issue in the code of the mine program
in lines following
https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/logic/map_objects/tribes/production_program.cc#L1164

a penalty for depleting fields is defined. this leads to a failed production program without taking into account the chance when depleted. see line
https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/logic/map_objects/tribes/production_program.cc#L1214

so the situation where 2 mined resources could be thrown away (3rd mining step failing seem to be much more frequent than I thought. This effect will be worse the bigger the radius is (worst for Atlanteans) So we need to consider this in the programs probably or we need to change the mining code

review: Needs Fixing
Revision history for this message
GunChleoc (gunchleoc) wrote :

> We should document the new philosophy of the mines preferably in the RST section:
> - now one ressource on the map delivers exactly one ware
> - the probability is now calculated over the complete work cycle and implemented in the first mine command
> - all working animations are put at the beginning of the command cycle.

Good idea - make sure that it gets phrased as a string recommendation rather than a guarantee, since there is no implementation enforcing it. also a little howto on how to calculate the probability?

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I have some proposals to fix the issues discovered.
see my latest post in
https://wl.widelands.org/forum/topic/4232/?page=8#post-25429

in short the mine programs should look like

   programs = {
      work = {
         -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
         descname = _"mining coal",
         actions = {
            "sleep=40000",
            "return=skipped unless economy needs coal",
            "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
            "animate=working 60000",
            "call=mine_produce",
            "call=mine_produce",
            "call=mine_produce",
            "call=mine_produce",
            "call=mine_produce",
            "call=mine_produce",
            "call=mine_produce",

         }
      },
      mine_produce = {
         -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
         descname = _"mining and producing",
         actions = {
            "sleep=1000",
            "mine=coal 4 100 5 2",
            "produce=coal",
      },
   },

Additionally the penalty for totally depleted fields should be removed in
https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/logic/map_objects/tribes/production_program.cc#L1214
last but not least statistics have to be fixed and the production return_string should be defined at the end of the complete "work programm" at least for the mines.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3746. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/411028029.
Appveyor build 3546. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3546.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3757. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/412175411.
Appveyor build 3557. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3557.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Ok did some playtesting. Programs work fine. mine statistics seem to be much better now (e.g. around 5% when depleted). Atlanteans mines deplete faster now while still having some problems finding the last bit.
Should be ok now.

review: Needs Resubmitting
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3764. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/414390985.
Appveyor build 3563. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3563.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3808. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/416273240.
Appveyor build 3607. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3607.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Is this ready for merging?

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

In principle Yes. Needs some reviews however and I can't do this for my own stuff.

Revision history for this message
Toni Förster (stonerl) wrote :

The atlantian's crystalmine has the sleep between the conditional "return=skipped" and "consume" while all other mines(for all tribes) have it before the return=skipped. Which one is correct? Also I remember that this penalty was removed e.g. for the taverns. Why is it still in place for all the mines except this one?

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I agree that is somewhat not very streamlined. The difference for the crystalline is that it produces different outputs while normal mindshare producing only one. So the current design doesn't do that much harm but we should keep this consistent.
I from my perspective a beginning sleep of 5 seconds for all mines except crystal and marble mine would be ok. Rest of the sleep time should be moved before the call commands.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3828. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/418892074.
Appveyor build 3627. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3627.

Revision history for this message
Toni Förster (stonerl) wrote :

One question regarding the shipyards. It takes 16 steps to complete a ship. But 20 to reach 100% productivity. That somehow doesn't feel right; having built an entire ship but only 80% productivity.

What about moving the animation to the work program and remove the return from there to have statistics calculated. Instead move the sleep to the ship program.

It's like in the real world: preparing parts in the workshop, packinge them move to the dock, assemble them.

One step in building a ship would then gain 10% in productivity.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I think we should discuss this in the forum. I see the point but I believe your proposed solution would result in unreliable stats in the case that not enough construction material is delivered to the shipyard.
Furthermore I think we should not have this in this branch cause it got already much bigger than its title suggests. I really would like if somebody could review the changes and approve this one. Still hope for Worldsaviors opinion over the forum (he has no Launchpad account).

Revision history for this message
GunChleoc (gunchleoc) wrote :

Agreed. This branch should only get tweaks to changes that are already in it. @Toni, would you like to review hessenfarmer's work?

Revision history for this message
Toni Förster (stonerl) wrote :

I already had a look at some of the changes made here. From my side it looks okay so far. Any particular I have to look at?

Revision history for this message
Toni Förster (stonerl) wrote :

LGTM

review: Approve
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3897. State: errored. Details: https://travis-ci.org/widelands/widelands/builds/424658912.
Appveyor build 3695. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3695.

Revision history for this message
GunChleoc (gunchleoc) wrote :

The wares cannot be fixed without a bug overhaul of the production program code, and it's too late in the release cycle to do that now. The only alternative would be some really really ugly hacks, which I don't want to do.

The problem is that the consumed wares are not in the same programs as the produced wares.

I propose that we split off all the changes that don't create this problem into a new branch and merge that one.

review: Needs Fixing
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

The changes creating the problem are the heart of this change, cause they fix a lot of weird behaviour in the mines as well as adjusting timings for better balance.

Therefore I would vote for having the branch as it is and just adding a note to the encyclopedia window and to the release notes that the values for all mined products aren't correct. Perhaps we can make the homepage show the correct values otherwise we need to find another way to inform the players about this.

For me it seems better to have consistent mines with a lot less issues and have an issue with the encyclopedia instead.

Revision history for this message
GunChleoc (gunchleoc) wrote :

I'll see about programming a filter into the help's Lua script.

Revision history for this message
GunChleoc (gunchleoc) wrote :

It will now show "Calculation needed" if the building is a mine, and the produced and consumed wares as usual for all other buildings.

review: Needs Resubmitting
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Should be ok for the moment being.
I was thinking of a solution to count the call's for a production program to have the correct amount. and display the consume information of the calling program.
But at the moment I am still struggling how to asses the production programs tables in lua.

Any hints would be welcome but this can easily be done in a follow on branch.

Revision history for this message
GunChleoc (gunchleoc) wrote :

If it could be done easily, I would have already done it. I actually started coding for it and then reverted my changes, because it became pretty hacky and complicated very fast.

We need a proper tree structure for production programs - it's a good idea to have one anyway, since that will also get rid of the problem that you had with the program names regarding in which order they are loaded by the engine. Replacing the "call" program with nested tables is the way to go.

@bunnybot merge

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I found a solution to have the correct values in the encyclopedia. Maybe it is not very elegant but it is at least working until we have the redesign. See if you want to have it.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3918. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/426311064.
Appveyor build 3716. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3716.

Revision history for this message
bunnybot (widelandsofficial) wrote :
Download full text (5.1 KiB)

Error merging this proposal:

Output:
stdout:

stderr:
 M data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua
 M data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua
 M data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua
 M data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua
 M data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua
 M data/tribes/buildings/productionsites/atlanteans/smelting_works/init.lua
 M data/tribes/buildings/productionsites/atlanteans/smokery/init.lua
 M data/tribes/buildings/productionsites/atlanteans/toolsmithy/init.lua
 M data/tribes/buildings/productionsites/atlanteans/weaponsmithy/init.lua
 M data/tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua
 M data/tribes/buildings/productionsites/barbarians/ax_workshop/init.lua
 M data/tribes/buildings/productionsites/barbarians/big_inn/init.lua
 M data/tribes/buildings/productionsites/barbarians/coalmine/init.lua
 M data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua
 M data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua
 M data/tribes/buildings/productionsites/barbarians/goldmine/init.lua
 M data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua
 M data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua
 M data/tribes/buildings/productionsites/barbarians/granitemine/init.lua
 M data/tribes/buildings/productionsites/barbarians/helmsmithy/init.lua
 M data/tribes/buildings/productionsites/barbarians/inn/init.lua
 M data/tribes/buildings/productionsites/barbarians/ironmine/init.lua
 M data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua
 M data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua
 M data/tribes/buildings/productionsites/barbarians/smelting_works/init.lua
 M data/tribes/buildings/productionsites/barbarians/tavern/init.lua
 M data/tribes/buildings/productionsites/barbarians/warmill/init.lua
 M data/tribes/buildings/productionsites/empire/armorsmithy/init.lua
 M data/tribes/buildings/productionsites/empire/coalmine/init.lua
 M data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua
 M data/tribes/buildings/productionsites/empire/goldmine/init.lua
 M data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua
 M data/tribes/buildings/productionsites/empire/inn/init.lua
 M data/tribes/buildings/productionsites/empire/ironmine/init.lua
 M data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua
 M data/tribes/buildings/productionsites/empire/marblemine/init.lua
 M data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua
 M data/tribes/buildings/productionsites/empire/smelting_works/init.lua
 M data/tribes/buildings/productionsites/empire/tavern/init.lua
 M data/tribes/buildings/productionsites/empire/weaponsmithy/init.lua
 M data/tribes/buildings/productionsites/frisians/armor_smithy_large/init.lua
 M data/tribes/buildings/productionsites/frisians/armor_smithy_small/init.lua
 M data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua
 M data/tribes/buildings/productio...

Read more...

Revision history for this message
Toni Förster (stonerl) wrote :

I do have one question regarding the empire.

The armorsmithy produces 2 armor_helmet with the changes made in this branch, instead of one. The question I have is: why does the trainingcamp need helmets? The soldiers are already equipped with one.

The barbarians for example don't have a helmet when they start as a soldier they just need an ax and when they level up the receive new improved gear.

Why not go the same route with the empire?

Option 1:

Normal soldiers receive only a wooden spear but no helmet.
When they level up they receive their helmets.

Option 2:

Normal soldiers receive a wooden spear and helmet, but the trainingcamp doesn't need one.

I just noticed this while merging trunk and fixing merge conflicts.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

I don't know why this is the case. and yes this is really illogical, ut I know that changing this would affect balancing directly as the empire would need one item less to build fully trained soldiers.
The idea behind the balance of tribes is to some extent based on equal costs.
Nevertheless I will search the forum for a reason / thread. I am open to change this in build 21 while keeping the balance. But this needs proper evaluation.
So feel free to start / continue a forum discussion and open a bug to not forget the issue.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3929. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/426668190.
Appveyor build 3727. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3727.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Code with the dummy program LGTM. Can you please add a TODO comment to the wares help in order to document that it's a hack and waiting for an engine redesign on the production programs?

Not tested yet.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Tested now and TODO comment added

@bunnybot merge

review: Approve
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3939. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/427302588.
Appveyor build 3737. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_mines_worldsavior-3737.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/campaigns/emp04.wmf/scripting/tribes/farm2.lua'
--- data/campaigns/emp04.wmf/scripting/tribes/farm2.lua 2018-08-22 06:48:57 +0000
+++ data/campaigns/emp04.wmf/scripting/tribes/farm2.lua 2018-09-11 16:57:31 +0000
@@ -46,7 +46,7 @@
46 actions = {46 actions = {
47 "call=plant",47 "call=plant",
48 "call=harvest",48 "call=harvest",
49 "return=skipped"49 "return=no_stats"
50 }50 }
51 },51 },
52 plant = {52 plant = {
5353
=== modified file 'data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -151,11 +151,11 @@
151 -- TRANSLATORS: Completed/Skipped/Did not start forging a steel shield because ...151 -- TRANSLATORS: Completed/Skipped/Did not start forging a steel shield because ...
152 descname = _"forging a steel shield",152 descname = _"forging a steel shield",
153 actions = {153 actions = {
154 -- time total: 90154 -- time total: 67 + 3.6
155 "return=skipped unless economy needs shield_steel",155 "return=skipped unless economy needs shield_steel",
156 "sleep=45000", -- +13 enlarge
157 "consume=iron:2 coal:2",156 "consume=iron:2 coal:2",
158 "animate=working 45000", -- +10 enlarge157 "sleep=32000",
158 "animate=working 35000",
159 "produce=shield_steel"159 "produce=shield_steel"
160 }160 }
161 },161 },
@@ -163,11 +163,11 @@
163 -- TRANSLATORS: Completed/Skipped/Did not start forging an advanced shield because ...163 -- TRANSLATORS: Completed/Skipped/Did not start forging an advanced shield because ...
164 descname = _"forging an advanced shield",164 descname = _"forging an advanced shield",
165 actions = {165 actions = {
166 -- time total: 110166 -- time total: 77 + 3.6
167 "return=skipped unless economy needs shield_advanced",167 "return=skipped unless economy needs shield_advanced",
168 "consume=iron:2 coal:2 gold",168 "consume=iron:2 coal:2 gold",
169 "sleep=50000", -- +18 enlarge169 "sleep=32000",
170 "animate=working 60000", -- +15 enlarge170 "animate=working 45000",
171 "produce=shield_advanced"171 "produce=shield_advanced"
172 }172 }
173 },173 },
174174
=== modified file 'data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua 2018-09-11 16:57:31 +0000
@@ -57,21 +57,45 @@
57 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...57 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
58 descname = _"mining coal",58 descname = _"mining coal",
59 actions = {59 actions = {
60 "sleep=45000",60 -- time total: 105 + 7 x 3.6
61 "sleep=5000",
61 "return=skipped unless economy needs coal",62 "return=skipped unless economy needs coal",
62 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",63 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
63 "animate=working 20000",64 "sleep=30000",
64 "mine=coal 4 100 5 2",65 -- after having the food the miners are working 7 times
65 "produce=coal:2",66 -- each cycle lasts 10 seconds for mining and producing coal
66 "animate=working 20000",67 -- and 3.6 seconds to deliver the coal to the flag
67 "mine=coal 4 100 5 2",68 -- calling the subroutine "mine_produce" has the effect
68 "produce=coal:2",69 -- that even when depleted the mine has 7 working cycles
69 "animate=working 20000",70 -- as no call cycle is skipped due to a failed mine command
70 "mine=coal 4 100 5 2",71 "call=mine_produce",
71 "produce=coal:3"72 "call=mine_produce",
73 "call=mine_produce",
74 "call=mine_produce",
75 "call=mine_produce",
76 "call=mine_produce",
77 "call=mine_produce",
78 "return=no_stats"
79 },
80 },
81 mine_produce = {
82 descname = _"mining coal",
83 actions = {
84 "animate=working 10000",
85 "mine=coal 4 100 5 2",
86 "produce=coal",
87 }
88 },
89 encyclopedia = {
90 -- just a dummy program to fix encyclopedia
91 descname = "encyclopedia",
92 actions = {
93 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
94 "produce=coal:7",
72 }95 }
73 },96 },
74 },97 },
98
75 out_of_resource_notification = {99 out_of_resource_notification = {
76 -- Translators: Short for "Out of ..." for a resource100 -- Translators: Short for "Out of ..." for a resource
77 title = _"No Coal",101 title = _"No Coal",
78102
=== modified file 'data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua 2018-09-11 16:57:31 +0000
@@ -71,20 +71,15 @@
71 descname = _"mining granite",71 descname = _"mining granite",
72 actions = {72 actions = {
73 "return=skipped unless economy needs granite",73 "return=skipped unless economy needs granite",
74 "sleep=45000",74 "sleep=40000",
75 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",75 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
76 "animate=working 20000",76 "call=a_mine_produce_granite",
77 "mine=stones 4 100 5 2",77 "call=a_mine_produce_granite",
78 "produce=granite:2",78 "call=a_mine_produce_granite",
79 "animate=working 20000",79 "call=a_mine_produce_quartz",
80 "mine=stones 4 100 5 2",80 "call=a_mine_produce_granite",
81 "produce=granite:2",81 "call=a_mine_produce_granite",
82 "animate=working 20000",82 "return=no_stats"
83 "mine=stones 4 100 5 2",
84 "produce=granite",
85 "animate=working 20000",
86 "mine=stones 4 100 5 2",
87 "produce=quartz"
88 }83 }
89 },84 },
90 mine_quartz = {85 mine_quartz = {
@@ -92,17 +87,15 @@
92 descname = _"mining quartz",87 descname = _"mining quartz",
93 actions = {88 actions = {
94 "return=skipped unless economy needs quartz",89 "return=skipped unless economy needs quartz",
95 "sleep=45000",90 "sleep=30000",
96 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",91 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
97 "animate=working 20000",92 "call=a_mine_produce_quartz",
98 "mine=stones 4 100 5 2",93 "call=a_mine_produce_granite",
99 "produce=granite quartz",94 "call=a_mine_produce_granite",
100 "animate=working 20000",95 "call=a_mine_produce_granite",
101 "mine=stones 4 100 5 2",96 "call=a_mine_produce_quartz",
102 "produce=granite:2",97 "call=a_mine_produce_quartz",
103 "animate=working 20000",98 "return=no_stats"
104 "mine=stones 4 100 5 2",
105 "produce=quartz:2"
106 }99 }
107 },100 },
108 mine_diamond = {101 mine_diamond = {
@@ -110,17 +103,60 @@
110 descname = _"mining diamonds",103 descname = _"mining diamonds",
111 actions = {104 actions = {
112 "return=skipped unless economy needs diamond",105 "return=skipped unless economy needs diamond",
113 "sleep=45000",106 "sleep=40000",
114 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",107 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
115 "animate=working 20000",108 "call=a_mine_produce_diamond",
116 "mine=stones 4 100 5 2",109 "call=a_mine_produce_granite",
117 "produce=diamond",110 "call=a_mine_produce_diamond",
118 "animate=working 20000",111 "return=no_stats"
119 "mine=stones 4 100 5 2",112 }
120 "produce=diamond",113 },
121 "animate=working 20000",114 a_mine_produce_granite = {
122 "mine=stones 4 100 5 2",115 descname = _"mining granite",
123 "produce=granite"116 actions = {
117 "animate=working 15000",
118 "mine=stones 4 100 5 2",
119 "produce=granite",
120 }
121 },
122 a_mine_produce_quartz = {
123 descname = _"mining quartz",
124 actions = {
125 "animate=working 10000",
126 "mine=stones 4 100 5 2",
127 "produce=quartz",
128 }
129 },
130 a_mine_produce_diamond = {
131 descname = _"mining diamonds",
132 actions = {
133 "animate=working 25000",
134 "mine=stones 4 100 5 2",
135 "produce=diamond",
136 }
137 },
138 encyclopedia_granite = {
139 -- just a dummy program to fix encyclopedia
140 descname = "encyclopedia",
141 actions = {
142 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
143 "produce=granite:5 quartz",
144 }
145 },
146 encyclopedia_quartz = {
147 -- just a dummy program to fix encyclopedia
148 descname = "encyclopedia",
149 actions = {
150 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
151 "produce=quartz:3 granite:3",
152 }
153 },
154 encyclopedia_diamond = {
155 -- just a dummy program to fix encyclopedia
156 descname = "encyclopedia",
157 actions = {
158 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
159 "produce=diamond:2 granite",
124 }160 }
125 },161 },
126 },162 },
127163
=== modified file 'data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua 2018-09-11 16:57:31 +0000
@@ -57,18 +57,30 @@
57 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...57 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
58 descname = _"mining gold",58 descname = _"mining gold",
59 actions = {59 actions = {
60 "sleep=45000",60 "sleep=5000",
61 "return=skipped unless economy needs gold_ore",61 "return=skipped unless economy needs gold_ore",
62 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",62 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
63 "animate=working 20000",63 "sleep=34000",
64 "mine=gold 4 100 5 2",64 "call=mine_produce",
65 "produce=gold_ore",65 "call=mine_produce",
66 "animate=working 20000",66 "call=mine_produce",
67 "mine=gold 4 100 5 2",67 "return=no_stats"
68 "produce=gold_ore",68 }
69 "animate=working 20000",69 },
70 "mine=gold 4 100 5 2",70 mine_produce = {
71 "produce=gold_ore"71 descname = _"mining gold",
72 actions = {
73 "animate=working 22000",
74 "mine=gold 4 100 5 2",
75 "produce=gold_ore",
76 }
77 },
78 encyclopedia = {
79 -- just a dummy program to fix encyclopedia
80 descname = "encyclopedia",
81 actions = {
82 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
83 "produce=gold_ore:3",
72 }84 }
73 },85 },
74 },86 },
7587
=== modified file 'data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua 2018-03-04 14:11:19 +0000
+++ data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua 2018-09-11 16:57:31 +0000
@@ -57,21 +57,37 @@
57 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...57 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
58 descname = _"mining iron",58 descname = _"mining iron",
59 actions = {59 actions = {
60 "sleep=45000",60 -- time total: 105 + 5 x 3.6
61 "sleep=5000",
61 "return=skipped unless economy needs iron_ore",62 "return=skipped unless economy needs iron_ore",
62 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",63 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
63 "animate=working 20000",64 "sleep=30000",
64 "mine=iron 4 100 5 2",65 "call=mine_produce",
65 "produce=iron_ore:2",66 "call=mine_produce",
66 "animate=working 20000",67 "call=mine_produce",
68 "call=mine_produce",
69 "call=mine_produce",
70 "return=no_stats"
71 },
72 },
73 mine_produce = {
74 descname = _"mining iron",
75 actions = {
76 "animate=working 14000",
67 "mine=iron 4 100 5 2",77 "mine=iron 4 100 5 2",
68 "produce=iron_ore",78 "produce=iron_ore",
69 "animate=working 20000",79 }
70 "mine=iron 4 100 5 2",80 },
71 "produce=iron_ore:2"81 encyclopedia = {
82 -- just a dummy program to fix encyclopedia
83 descname = "encyclopedia",
84 actions = {
85 "consume=smoked_fish,smoked_meat:2 atlanteans_bread:2",
86 "produce=iron_ore:5",
72 }87 }
73 },88 },
74 },89 },
90
75 out_of_resource_notification = {91 out_of_resource_notification = {
76 -- Translators: Short for "Out of ..." for a resource92 -- Translators: Short for "Out of ..." for a resource
77 title = _"No Iron",93 title = _"No Iron",
7894
=== modified file 'data/tribes/buildings/productionsites/atlanteans/smelting_works/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/smelting_works/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/smelting_works/init.lua 2018-09-11 16:57:31 +0000
@@ -66,9 +66,8 @@
66 descname = _"smelting iron",66 descname = _"smelting iron",
67 actions = {67 actions = {
68 "return=skipped unless economy needs iron",68 "return=skipped unless economy needs iron",
69 "sleep=5000", -- penalty for unavailable iron_ore (2x)
70 "consume=iron_ore coal",69 "consume=iron_ore coal",
71 "sleep=20000",70 "sleep=25000",
72 "playsound=sound/metal fizzle 150",71 "playsound=sound/metal fizzle 150",
73 "animate=working 35000",72 "animate=working 35000",
74 "playsound=sound/metal ironping 80",73 "playsound=sound/metal ironping 80",
@@ -80,9 +79,8 @@
80 descname = _"smelting gold",79 descname = _"smelting gold",
81 actions = {80 actions = {
82 "return=skipped unless economy needs gold",81 "return=skipped unless economy needs gold",
83 "sleep=10000", -- penalty for unavailable gold_ore
84 "consume=gold_ore coal",82 "consume=gold_ore coal",
85 "sleep=15000",83 "sleep=25000",
86 "playsound=sound/metal fizzle 150",84 "playsound=sound/metal fizzle 150",
87 "animate=working 35000",85 "animate=working 35000",
88 "playsound=sound/metal goldping 80",86 "playsound=sound/metal goldping 80",
8987
=== modified file 'data/tribes/buildings/productionsites/atlanteans/smokery/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/smokery/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/smokery/init.lua 2018-09-11 16:57:31 +0000
@@ -68,12 +68,10 @@
68 descname = _"smoking meat",68 descname = _"smoking meat",
69 actions = {69 actions = {
70 -- time total: 6070 -- time total: 60
71 "return=skipped when site has fish and economy needs smoked_fish and not economy needs smoked_meat",
72 "return=skipped unless economy needs smoked_meat",71 "return=skipped unless economy needs smoked_meat",
73 "sleep=10000",
74 "consume=meat:2 log",72 "consume=meat:2 log",
75 "animate=working 30000",73 "animate=working 30000",
76 "sleep=20000",74 "sleep=30000",
77 "produce=smoked_meat:2"75 "produce=smoked_meat:2"
78 }76 }
79 },77 },
@@ -82,12 +80,10 @@
82 descname = _"smoking fish",80 descname = _"smoking fish",
83 actions = {81 actions = {
84 -- time total: 6082 -- time total: 60
85 "return=skipped when site has meat and economy needs smoked_meat and not economy needs smoked_fish",
86 "return=skipped unless economy needs smoked_fish",83 "return=skipped unless economy needs smoked_fish",
87 "sleep=10000",
88 "consume=fish:2 log",84 "consume=fish:2 log",
89 "animate=working 30000",85 "animate=working 30000",
90 "sleep=20000",86 "sleep=30000",
91 "produce=smoked_fish:2"87 "produce=smoked_fish:2"
92 }88 }
93 },89 },
9490
=== modified file 'data/tribes/buildings/productionsites/atlanteans/toolsmithy/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/toolsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/toolsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -64,18 +64,18 @@
64 -- TRANSLATORS: Completed/Skipped/Did not start working because ...64 -- TRANSLATORS: Completed/Skipped/Did not start working because ...
65 descname = _"working",65 descname = _"working",
66 actions = {66 actions = {
67 "call=produce_bread_paddle",
68 "call=produce_buckets",
69 "call=produce_fire_tongs",67 "call=produce_fire_tongs",
70 "call=produce_fishing_net",
71 "call=produce_hammer",
72 "call=produce_hook_pole",
73 "call=produce_hunting_bow",68 "call=produce_hunting_bow",
74 "call=produce_milking_tongs",
75 "call=produce_pick",69 "call=produce_pick",
70 "call=produce_hammer",
76 "call=produce_saw",71 "call=produce_saw",
72 "call=produce_shovel",
77 "call=produce_scythe",73 "call=produce_scythe",
78 "call=produce_shovel",74 "call=produce_bread_paddle",
75 "call=produce_hook_pole",
76 "call=produce_buckets",
77 "call=produce_milking_tongs",
78 "call=produce_fishing_net",
79 "return=no_stats"79 "return=no_stats"
80 }80 }
81 },81 },
@@ -84,9 +84,8 @@
84 descname = _"making a bread paddle",84 descname = _"making a bread paddle",
85 actions = {85 actions = {
86 "return=skipped unless economy needs bread_paddle",86 "return=skipped unless economy needs bread_paddle",
87 "sleep=5000",
88 "consume=iron log",87 "consume=iron log",
89 "sleep=27000",88 "sleep=32000",
90 "playsound=sound/smiths toolsmith 192",89 "playsound=sound/smiths toolsmith 192",
91 "animate=working 35000",90 "animate=working 35000",
92 "produce=bread_paddle"91 "produce=bread_paddle"
@@ -97,9 +96,8 @@
97 descname = _"making a pair of buckets",96 descname = _"making a pair of buckets",
98 actions = {97 actions = {
99 "return=skipped unless economy needs buckets",98 "return=skipped unless economy needs buckets",
100 "sleep=5000",
101 "consume=iron log",99 "consume=iron log",
102 "sleep=27000",100 "sleep=32000",
103 "playsound=sound/smiths toolsmith 192",101 "playsound=sound/smiths toolsmith 192",
104 "animate=working 35000",102 "animate=working 35000",
105 "produce=buckets"103 "produce=buckets"
@@ -110,9 +108,8 @@
110 descname = _"making fire tongs",108 descname = _"making fire tongs",
111 actions = {109 actions = {
112 "return=skipped unless economy needs fire_tongs",110 "return=skipped unless economy needs fire_tongs",
113 "sleep=5000",
114 "consume=iron log",111 "consume=iron log",
115 "sleep=27000",112 "sleep=32000",
116 "playsound=sound/smiths toolsmith 192",113 "playsound=sound/smiths toolsmith 192",
117 "animate=working 35000",114 "animate=working 35000",
118 "produce=fire_tongs"115 "produce=fire_tongs"
@@ -123,9 +120,8 @@
123 descname = _"making a fishing net",120 descname = _"making a fishing net",
124 actions = {121 actions = {
125 "return=skipped unless economy needs fishing_net",122 "return=skipped unless economy needs fishing_net",
126 "sleep=5000",
127 "consume=spidercloth:2",123 "consume=spidercloth:2",
128 "sleep=27000",124 "sleep=32000",
129 "playsound=sound/smiths toolsmith 192",125 "playsound=sound/smiths toolsmith 192",
130 "animate=working 35000",126 "animate=working 35000",
131 "produce=fishing_net"127 "produce=fishing_net"
@@ -136,9 +132,8 @@
136 descname = _"making a hammer",132 descname = _"making a hammer",
137 actions = {133 actions = {
138 "return=skipped unless economy needs hammer",134 "return=skipped unless economy needs hammer",
139 "sleep=5000",
140 "consume=iron log",135 "consume=iron log",
141 "sleep=27000",136 "sleep=32000",
142 "playsound=sound/smiths toolsmith 192",137 "playsound=sound/smiths toolsmith 192",
143 "animate=working 35000",138 "animate=working 35000",
144 "produce=hammer"139 "produce=hammer"
@@ -149,9 +144,8 @@
149 descname = _"making a hook pole",144 descname = _"making a hook pole",
150 actions = {145 actions = {
151 "return=skipped unless economy needs hook_pole",146 "return=skipped unless economy needs hook_pole",
152 "sleep=5000",
153 "consume=iron log",147 "consume=iron log",
154 "sleep=27000",148 "sleep=32000",
155 "playsound=sound/smiths toolsmith 192",149 "playsound=sound/smiths toolsmith 192",
156 "animate=working 35000",150 "animate=working 35000",
157 "produce=hook_pole"151 "produce=hook_pole"
@@ -162,9 +156,8 @@
162 descname = _"making a hunting bow",156 descname = _"making a hunting bow",
163 actions = {157 actions = {
164 "return=skipped unless economy needs hunting_bow",158 "return=skipped unless economy needs hunting_bow",
165 "sleep=5000",
166 "consume=log spidercloth",159 "consume=log spidercloth",
167 "sleep=27000",160 "sleep=32000",
168 "playsound=sound/smiths toolsmith 192",161 "playsound=sound/smiths toolsmith 192",
169 "animate=working 35000",162 "animate=working 35000",
170 "produce=hunting_bow"163 "produce=hunting_bow"
@@ -175,9 +168,8 @@
175 descname = _"making milking tongs",168 descname = _"making milking tongs",
176 actions = {169 actions = {
177 "return=skipped unless economy needs milking_tongs",170 "return=skipped unless economy needs milking_tongs",
178 "sleep=5000",
179 "consume=iron log",171 "consume=iron log",
180 "sleep=27000",172 "sleep=32000",
181 "playsound=sound/smiths toolsmith 192",173 "playsound=sound/smiths toolsmith 192",
182 "animate=working 35000",174 "animate=working 35000",
183 "produce=milking_tongs"175 "produce=milking_tongs"
@@ -188,9 +180,8 @@
188 descname = _"making a pick",180 descname = _"making a pick",
189 actions = {181 actions = {
190 "return=skipped unless economy needs pick",182 "return=skipped unless economy needs pick",
191 "sleep=5000",
192 "consume=iron log",183 "consume=iron log",
193 "sleep=27000",184 "sleep=32000",
194 "playsound=sound/smiths toolsmith 192",185 "playsound=sound/smiths toolsmith 192",
195 "animate=working 35000",186 "animate=working 35000",
196 "produce=pick"187 "produce=pick"
@@ -201,9 +192,8 @@
201 descname = _"making a saw",192 descname = _"making a saw",
202 actions = {193 actions = {
203 "return=skipped unless economy needs saw",194 "return=skipped unless economy needs saw",
204 "sleep=5000",
205 "consume=iron log",195 "consume=iron log",
206 "sleep=27000",196 "sleep=32000",
207 "playsound=sound/smiths toolsmith 192",197 "playsound=sound/smiths toolsmith 192",
208 "animate=working 35000",198 "animate=working 35000",
209 "produce=saw"199 "produce=saw"
@@ -214,9 +204,8 @@
214 descname = _"making a scythe",204 descname = _"making a scythe",
215 actions = {205 actions = {
216 "return=skipped unless economy needs scythe",206 "return=skipped unless economy needs scythe",
217 "sleep=5000",
218 "consume=iron log",207 "consume=iron log",
219 "sleep=27000",208 "sleep=32000",
220 "playsound=sound/smiths toolsmith 192",209 "playsound=sound/smiths toolsmith 192",
221 "animate=working 35000",210 "animate=working 35000",
222 "produce=scythe"211 "produce=scythe"
@@ -227,9 +216,8 @@
227 descname = _"making a shovel",216 descname = _"making a shovel",
228 actions = {217 actions = {
229 "return=skipped unless economy needs shovel",218 "return=skipped unless economy needs shovel",
230 "sleep=5000",
231 "consume=iron log",219 "consume=iron log",
232 "sleep=27000",220 "sleep=32000",
233 "playsound=sound/smiths toolsmith 192",221 "playsound=sound/smiths toolsmith 192",
234 "animate=working 35000",222 "animate=working 35000",
235 "produce=shovel"223 "produce=shovel"
236224
=== modified file 'data/tribes/buildings/productionsites/atlanteans/weaponsmithy/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/weaponsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/weaponsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -72,12 +72,12 @@
72 -- TRANSLATORS: Completed/Skipped/Did not start forging a light trident because ...72 -- TRANSLATORS: Completed/Skipped/Did not start forging a light trident because ...
73 descname = _"forging a light trident",73 descname = _"forging a light trident",
74 actions = {74 actions = {
75 -- time total: 6475 -- time total: 50 + 3.6
76 "return=skipped unless economy needs trident_light",76 "return=skipped unless economy needs trident_light",
77 "sleep=27000", -- +7 enlarge
78 "consume=iron planks",77 "consume=iron planks",
78 "sleep=20000",
79 "playsound=sound/smiths smith 192",79 "playsound=sound/smiths smith 192",
80 "animate=working 28000", -- +7 enlarge80 "animate=working 21000",
81 "playsound=sound/smiths sharpening 120",81 "playsound=sound/smiths sharpening 120",
82 "sleep=9000",82 "sleep=9000",
83 "produce=trident_light"83 "produce=trident_light"
@@ -87,12 +87,12 @@
87 -- TRANSLATORS: Completed/Skipped/Did not start forging a long trident because ...87 -- TRANSLATORS: Completed/Skipped/Did not start forging a long trident because ...
88 descname = _"forging a long trident",88 descname = _"forging a long trident",
89 actions = {89 actions = {
90 -- time total: 10290 -- time total: 77 + 3.6
91 "return=skipped unless economy needs trident_long",91 "return=skipped unless economy needs trident_long",
92 "consume=iron coal planks",92 "consume=iron coal planks",
93 "sleep=47000", -- +15 enlarge93 "sleep=32000",
94 "playsound=sound/smiths smith 192",94 "playsound=sound/smiths smith 192",
95 "animate=working 46000", -- +10 enlarge95 "animate=working 36000",
96 "playsound=sound/smiths sharpening 120",96 "playsound=sound/smiths sharpening 120",
97 "sleep=9000",97 "sleep=9000",
98 "produce=trident_long"98 "produce=trident_long"
@@ -102,12 +102,12 @@
102 -- TRANSLATORS: Completed/Skipped/Did not start forging a steel trident because ...102 -- TRANSLATORS: Completed/Skipped/Did not start forging a steel trident because ...
103 descname = _"forging a steel trident",103 descname = _"forging a steel trident",
104 actions = {104 actions = {
105 -- time total: 110105 -- time total: 77 + 3.6
106 "return=skipped unless economy needs trident_steel",106 "return=skipped unless economy needs trident_steel",
107 "consume=iron:2 coal planks",107 "consume=iron:2 coal planks",
108 "sleep=50000", -- +18 enlarge108 "sleep=32000",
109 "playsound=sound/smiths smith 192",109 "playsound=sound/smiths smith 192",
110 "animate=working 51000", -- +15 enlarge110 "animate=working 36000",
111 "playsound=sound/smiths sharpening 120",111 "playsound=sound/smiths sharpening 120",
112 "sleep=9000",112 "sleep=9000",
113 "produce=trident_steel"113 "produce=trident_steel"
@@ -117,12 +117,12 @@
117 -- TRANSLATORS: Completed/Skipped/Did not start forging a double trident because ...117 -- TRANSLATORS: Completed/Skipped/Did not start forging a double trident because ...
118 descname = _"forging a double trident",118 descname = _"forging a double trident",
119 actions = {119 actions = {
120 -- time total: 115120 -- time total: 77 + 3.6
121 "return=skipped unless economy needs trident_double",121 "return=skipped unless economy needs trident_double",
122 "consume=iron coal:2 planks gold",122 "consume=iron coal:2 planks gold",
123 "sleep=55000", -- +23 enlarge123 "sleep=32000",
124 "playsound=sound/smiths smith 192",124 "playsound=sound/smiths smith 192",
125 "animate=working 51000", -- +15 enlarge125 "animate=working 36000",
126 "playsound=sound/smiths sharpening 120",126 "playsound=sound/smiths sharpening 120",
127 "sleep=9000",127 "sleep=9000",
128 "produce=trident_double"128 "produce=trident_double"
@@ -132,12 +132,12 @@
132 -- TRANSLATORS: Completed/Skipped/Did not start forging a heavy double trident because ...132 -- TRANSLATORS: Completed/Skipped/Did not start forging a heavy double trident because ...
133 descname = _"forging a heavy double trident",133 descname = _"forging a heavy double trident",
134 actions = {134 actions = {
135 -- time total: 120135 -- time total: 77 + 3.6
136 "return=skipped unless economy needs trident_heavy_double",136 "return=skipped unless economy needs trident_heavy_double",
137 "consume=iron:2 coal:2 planks gold",137 "consume=iron:2 coal:2 planks gold",
138 "sleep=55000", -- +23 enlarge138 "sleep=32000",
139 "playsound=sound/smiths smith 192",139 "playsound=sound/smiths smith 192",
140 "animate=working 56000", -- +20 enlarge140 "animate=working 36000",
141 "playsound=sound/smiths sharpening 120",141 "playsound=sound/smiths sharpening 120",
142 "sleep=9000",142 "sleep=9000",
143 "produce=trident_heavy_double"143 "produce=trident_heavy_double"
144144
=== modified file 'data/tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua'
--- data/tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua 2018-09-11 16:57:31 +0000
@@ -67,13 +67,12 @@
67 -- TRANSLATORS: Completed/Skipped/Did not start weaving spidercloth because ...67 -- TRANSLATORS: Completed/Skipped/Did not start weaving spidercloth because ...
68 descname = _"weaving spidercloth",68 descname = _"weaving spidercloth",
69 actions = {69 actions = {
70 -- total time 47 sec70 -- time total: 40 + 3.6
71 "return=skipped unless economy needs spidercloth",71 "return=skipped unless economy needs spidercloth",
72 "sleep=10000",
73 "consume=spider_silk",72 "consume=spider_silk",
73 "sleep=20000",
74 "playsound=sound/mill weaving 120",74 "playsound=sound/mill weaving 120",
75 "animate=working 20000",75 "animate=working 20000",
76 "sleep=17000",
77 "produce=spidercloth"76 "produce=spidercloth"
78 }77 }
79 },78 },
@@ -81,13 +80,12 @@
81 -- TRANSLATORS: Completed/Skipped/Did not start tailoring a tabard because ...80 -- TRANSLATORS: Completed/Skipped/Did not start tailoring a tabard because ...
82 descname = _"tailoring a tabard",81 descname = _"tailoring a tabard",
83 actions = {82 actions = {
84 -- total time 55 sec83 -- time total: 40 + 3.6
85 "return=skipped unless economy needs tabard",84 "return=skipped unless economy needs tabard",
86 "sleep=10000",
87 "consume=spider_silk",85 "consume=spider_silk",
86 "sleep=20000",
88 "playsound=sound/mill weaving 120",87 "playsound=sound/mill weaving 120",
89 "animate=working 26000",88 "animate=working 20000",
90 "sleep=19000",
91 "produce=tabard"89 "produce=tabard"
92 }90 }
93 },91 },
@@ -95,13 +93,12 @@
95 -- TRANSLATORS: Completed/Skipped/Did not start tailoring a golden tabard because ...93 -- TRANSLATORS: Completed/Skipped/Did not start tailoring a golden tabard because ...
96 descname = _"tailoring a golden tabard",94 descname = _"tailoring a golden tabard",
97 actions = {95 actions = {
98 -- total time 60 sec96 -- time total: 40 + 3.6
99 "return=skipped unless economy needs tabard_golden",97 "return=skipped unless economy needs tabard_golden",
100 "consume=spider_silk gold_thread",98 "consume=spider_silk gold_thread",
101 "sleep=15000",99 "sleep=20000",
102 "playsound=sound/mill weaving 120",100 "playsound=sound/mill weaving 120",
103 "animate=working 30000",101 "animate=working 20000",
104 "sleep=15000",
105 "produce=tabard_golden"102 "produce=tabard_golden"
106 }103 }
107 },104 },
108105
=== modified file 'data/tribes/buildings/productionsites/barbarians/ax_workshop/init.lua'
--- data/tribes/buildings/productionsites/barbarians/ax_workshop/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/barbarians/ax_workshop/init.lua 2018-09-11 16:57:31 +0000
@@ -76,12 +76,12 @@
76 -- TRANSLATORS: Completed/Skipped/Did not start forging an ax because ...76 -- TRANSLATORS: Completed/Skipped/Did not start forging an ax because ...
77 descname = _"forging an ax",77 descname = _"forging an ax",
78 actions = {78 actions = {
79 -- time total: 7379 -- time total: 57 + 3.6
80 "return=skipped unless economy needs ax",80 "return=skipped unless economy needs ax",
81 "sleep=36000", -- +10 enlarge
82 "consume=coal iron",81 "consume=coal iron",
82 "sleep=26000",
83 "playsound=sound/smiths smith 192",83 "playsound=sound/smiths smith 192",
84 "animate=working 28000", -- +6 enlarge84 "animate=working 22000",
85 "playsound=sound/smiths sharpening 120",85 "playsound=sound/smiths sharpening 120",
86 "sleep=9000",86 "sleep=9000",
87 "produce=ax"87 "produce=ax"
@@ -91,12 +91,12 @@
91 -- TRANSLATORS: Completed/Skipped/Did not start forging a sharp ax because ...91 -- TRANSLATORS: Completed/Skipped/Did not start forging a sharp ax because ...
92 descname = _"forging a sharp ax",92 descname = _"forging a sharp ax",
93 actions = {93 actions = {
94 -- time total: 7694 -- time total: 57 + 3.6
95 "return=skipped unless economy needs ax_sharp",95 "return=skipped unless economy needs ax_sharp",
96 "consume=coal iron:2",96 "consume=coal iron:2",
97 "sleep=37000", -- +11 enlarge97 "sleep=26000",
98 "playsound=sound/smiths smith 192",98 "playsound=sound/smiths smith 192",
99 "animate=working 30000", -- +8 enlarge99 "animate=working 22000",
100 "playsound=sound/smiths sharpening 120",100 "playsound=sound/smiths sharpening 120",
101 "sleep=9000",101 "sleep=9000",
102 "produce=ax_sharp"102 "produce=ax_sharp"
@@ -106,12 +106,12 @@
106 -- TRANSLATORS: Completed/Skipped/Did not start forging a broad ax because ...106 -- TRANSLATORS: Completed/Skipped/Did not start forging a broad ax because ...
107 descname = _"forging a broad ax",107 descname = _"forging a broad ax",
108 actions = {108 actions = {
109 -- time total: 79109 -- time total: 57 + 3.6
110 "return=skipped unless economy needs ax_broad",110 "return=skipped unless economy needs ax_broad",
111 "consume=coal:2 iron:2",111 "consume=coal:2 iron:2",
112 "sleep=38000", -- +12 enlarge112 "sleep=26000",
113 "playsound=sound/smiths smith 192",113 "playsound=sound/smiths smith 192",
114 "animate=working 32000", -- +10 enlarge114 "animate=working 22000",
115 "playsound=sound/smiths sharpening 120",115 "playsound=sound/smiths sharpening 120",
116 "sleep=9000",116 "sleep=9000",
117 "produce=ax_broad"117 "produce=ax_broad"
118118
=== modified file 'data/tribes/buildings/productionsites/barbarians/big_inn/init.lua'
--- data/tribes/buildings/productionsites/barbarians/big_inn/init.lua 2018-09-09 10:17:40 +0000
+++ data/tribes/buildings/productionsites/barbarians/big_inn/init.lua 2018-09-11 16:57:31 +0000
@@ -71,10 +71,11 @@
71 actions = {71 actions = {
72 -- time total: 3372 -- time total: 33
73 "return=skipped unless economy needs ration",73 "return=skipped unless economy needs ration",
74 "sleep=23000",74 "sleep=5000",
75 "consume=barbarians_bread,fish,meat",75 "consume=barbarians_bread,fish,meat",
76 "playsound=sound/barbarians/taverns tavern 100",76 "playsound=sound/barbarians/taverns tavern 100",
77 "animate=working 10000",77 "animate=working 18000",
78 "sleep=10000",
78 "produce=ration"79 "produce=ration"
79 }80 }
80 },81 },
@@ -84,10 +85,10 @@
84 actions = {85 actions = {
85 -- time total: 3786 -- time total: 37
86 "return=skipped unless economy needs snack",87 "return=skipped unless economy needs snack",
87 "sleep=5000",
88 "consume=barbarians_bread fish,meat beer",88 "consume=barbarians_bread fish,meat beer",
89 "playsound=sound/barbarians/taverns biginn 100",89 "playsound=sound/barbarians/taverns biginn 100",
90 "animate=working 32000",90 "animate=working 27000",
91 "sleep=10000",
91 "produce=snack"92 "produce=snack"
92 }93 }
93 },94 },
@@ -97,10 +98,10 @@
97 actions = {98 actions = {
98 -- time total: 4099 -- time total: 40
99 "return=skipped unless economy needs meal",100 "return=skipped unless economy needs meal",
100 "sleep=5000",
101 "consume=barbarians_bread fish,meat beer_strong",101 "consume=barbarians_bread fish,meat beer_strong",
102 "playsound=sound/barbarians/taverns biginn 100",102 "playsound=sound/barbarians/taverns biginn 100",
103 "animate=working 35000",103 "animate=working 30000",
104 "sleep=10000",
104 "produce=meal"105 "produce=meal"
105 }106 }
106 },107 },
107108
=== modified file 'data/tribes/buildings/productionsites/barbarians/coalmine/init.lua'
--- data/tribes/buildings/productionsites/barbarians/coalmine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/barbarians/coalmine/init.lua 2018-09-11 16:57:31 +0000
@@ -60,12 +60,29 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
61 descname = _"mining coal",61 descname = _"mining coal",
62 actions = {62 actions = {
63 "sleep=45000",63 "sleep=5000",
64 "return=skipped unless economy needs coal",64 "return=skipped unless economy needs coal",
65 "consume=ration",65 "consume=ration",
66 "animate=working 20000",66 "sleep=40000",
67 "call=mine_produce",
68 "call=mine_produce",
69 "return=no_stats"
70 }
71 },
72 mine_produce = {
73 descname = _"mining coal",
74 actions = {
75 "animate=working 10000",
67 "mine=coal 2 33 5 17",76 "mine=coal 2 33 5 17",
68 "produce=coal:2"77 "produce=coal",
78 }
79 },
80 encyclopedia = {
81 -- just a dummy program to fix encyclopedia
82 descname = "encyclopedia",
83 actions = {
84 "consume=ration",
85 "produce=coal:2",
69 }86 }
70 },87 },
71 },88 },
7289
=== modified file 'data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua'
--- data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -60,15 +60,31 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
61 descname = _"mining coal",61 descname = _"mining coal",
62 actions = {62 actions = {
63 "sleep=42000",63 "sleep=5000",
64 "return=skipped unless economy needs coal",64 "return=skipped unless economy needs coal",
65 "consume=snack",65 "consume=snack",
66 "animate=working 18000",66 "sleep=35000",
67 "mine=coal 2 66 5 17",67 "call=mine_produce",
68 "produce=coal:2",68 "call=mine_produce",
69 "animate=working 18000",69 "call=mine_produce",
70 "mine=coal 2 66 5 17",70 "call=mine_produce",
71 "produce=coal:2"71 "return=no_stats"
72 }
73 },
74 mine_produce = {
75 descname = _"mining coal",
76 actions = {
77 "animate=working 9500",
78 "mine=coal 2 66 5 17",
79 "produce=coal",
80 }
81 },
82 encyclopedia = {
83 -- just a dummy program to fix encyclopedia
84 descname = "encyclopedia",
85 actions = {
86 "consume=snack",
87 "produce=coal:4",
72 }88 }
73 },89 },
74 },90 },
7591
=== modified file 'data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua'
--- data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua 2018-09-11 16:57:31 +0000
@@ -59,15 +59,32 @@
59 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...59 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
60 descname = _"mining coal",60 descname = _"mining coal",
61 actions = {61 actions = {
62 "sleep=40000",62 "sleep=5000",
63 "return=skipped unless economy needs coal",63 "return=skipped unless economy needs coal",
64 "consume=meal",64 "consume=meal",
65 "animate=working 16000",65 "sleep=32000",
66 "mine=coal 2 100 10 2",66 "call=mine_produce",
67 "produce=coal:2",67 "call=mine_produce",
68 "animate=working 16000",68 "call=mine_produce",
69 "mine=coal 2 100 10 2",69 "call=mine_produce",
70 "produce=coal:3"70 "call=mine_produce",
71 "return=no_stats"
72 }
73 },
74 mine_produce = {
75 descname = _"mining coal",
76 actions = {
77 "animate=working 7000",
78 "mine=coal 2 100 10 2",
79 "produce=coal",
80 }
81 },
82 encyclopedia = {
83 -- just a dummy program to fix encyclopedia
84 descname = "encyclopedia",
85 actions = {
86 "consume=meal",
87 "produce=coal:5",
71 }88 }
72 },89 },
73 },90 },
7491
=== modified file 'data/tribes/buildings/productionsites/barbarians/goldmine/init.lua'
--- data/tribes/buildings/productionsites/barbarians/goldmine/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/goldmine/init.lua 2018-09-11 16:57:31 +0000
@@ -60,9 +60,10 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
61 descname = _"mining gold",61 descname = _"mining gold",
62 actions = {62 actions = {
63 "sleep=45000",63 "sleep=5000",
64 "return=skipped unless economy needs gold_ore",64 "return=skipped unless economy needs gold_ore",
65 "consume=ration",65 "consume=ration",
66 "sleep=40000",
66 "animate=working 20000",67 "animate=working 20000",
67 "mine=gold 2 33 5 17",68 "mine=gold 2 33 5 17",
68 "produce=gold_ore"69 "produce=gold_ore"
6970
=== modified file 'data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua'
--- data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -60,15 +60,31 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
61 descname = _"mining gold",61 descname = _"mining gold",
62 actions = {62 actions = {
63 "sleep=42000",63 "sleep=5000",
64 "return=skipped unless economy needs gold_ore",64 "return=skipped unless economy needs gold_ore",
65 "consume=snack",65 "consume=snack",
66 "animate=working 18000",66 "sleep=35000",
67 "mine=gold 2 66 5 17",67 "call=mine_produce",
68 "produce=gold_ore:2",68 "call=mine_produce",
69 "animate=working 18000",69 "call=mine_produce",
70 "mine=gold 2 66 5 17",70 "call=mine_produce",
71 "produce=gold_ore:2"71 "return=no_stats"
72 }
73 },
74 mine_produce = {
75 descname = _"mining gold",
76 actions = {
77 "animate=working 9500",
78 "mine=gold 2 66 5 17",
79 "produce=gold_ore",
80 }
81 },
82 encyclopedia = {
83 -- just a dummy program to fix encyclopedia
84 descname = "encyclopedia",
85 actions = {
86 "consume=snack",
87 "produce=gold_ore:4",
72 }88 }
73 },89 },
74 },90 },
7591
=== modified file 'data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua'
--- data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua 2018-09-11 16:57:31 +0000
@@ -59,15 +59,31 @@
59 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...59 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
60 descname = _"mining gold",60 descname = _"mining gold",
61 actions = {61 actions = {
62 "sleep=40000",62 "sleep=5000",
63 "return=skipped unless economy needs gold_ore",63 "return=skipped unless economy needs gold_ore",
64 "consume=meal",64 "consume=meal",
65 "animate=working 16000",65 "sleep=33000",
66 "mine=gold 2 100 10 2",66 "call=mine_produce",
67 "produce=gold_ore:2",67 "call=mine_produce",
68 "animate=working 18000",68 "call=mine_produce",
69 "mine=gold 2 100 10 2",69 "call=mine_produce",
70 "produce=gold_ore:2"70 "return=no_stats"
71 }
72 },
73 mine_produce = {
74 descname = _"mining gold",
75 actions = {
76 "animate=working 9000",
77 "mine=gold 2 100 10 2",
78 "produce=gold_ore",
79 }
80 },
81 encyclopedia = {
82 -- just a dummy program to fix encyclopedia
83 descname = "encyclopedia",
84 actions = {
85 "consume=meal",
86 "produce=gold_ore:4",
71 }87 }
72 },88 },
73 },89 },
7490
=== modified file 'data/tribes/buildings/productionsites/barbarians/granitemine/init.lua'
--- data/tribes/buildings/productionsites/barbarians/granitemine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/barbarians/granitemine/init.lua 2018-09-11 16:57:31 +0000
@@ -58,12 +58,29 @@
58 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...58 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
59 descname = _"mining granite",59 descname = _"mining granite",
60 actions = {60 actions = {
61 "sleep=20000",61 "sleep=5000",
62 "return=skipped unless economy needs granite",62 "return=skipped unless economy needs granite",
63 "consume=ration",63 "consume=ration",
64 "animate=working 20000",64 "sleep=15000",
65 "mine=stones 2 100 5 17",65 "call=mine_produce",
66 "produce=granite:2"66 "call=mine_produce",
67 "return=no_stats"
68 }
69 },
70 mine_produce = {
71 descname = _"mining granite",
72 actions = {
73 "animate=working 10000",
74 "mine=stones 2 100 5 2",
75 "produce=granite",
76 }
77 },
78 encyclopedia = {
79 -- just a dummy program to fix encyclopedia
80 descname = "encyclopedia",
81 actions = {
82 "consume=ration",
83 "produce=granite:2",
67 }84 }
68 },85 },
69 },86 },
7087
=== modified file 'data/tribes/buildings/productionsites/barbarians/helmsmithy/init.lua'
--- data/tribes/buildings/productionsites/barbarians/helmsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/barbarians/helmsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -77,11 +77,11 @@
77 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...77 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...
78 descname = _"forging a helmet",78 descname = _"forging a helmet",
79 actions = {79 actions = {
80 -- time total: 8080 -- time total: 67 + 3.6
81 "return=skipped unless economy needs helmet",81 "return=skipped unless economy needs helmet",
82 "sleep=40000", -- +8 enlarge
83 "consume=coal iron",82 "consume=coal iron",
84 "animate=working 40000", -- +5 enlarge83 "sleep=32000",
84 "animate=working 35000",
85 "produce=helmet"85 "produce=helmet"
86 }86 }
87 },87 },
@@ -89,11 +89,11 @@
89 -- TRANSLATORS: Completed/Skipped/Did not start forging a mask because ...89 -- TRANSLATORS: Completed/Skipped/Did not start forging a mask because ...
90 descname = _"forging a mask",90 descname = _"forging a mask",
91 actions = {91 actions = {
92 -- time total: 9092 -- time total: 77 + 3.6
93 "return=skipped unless economy needs helmet_mask",93 "return=skipped unless economy needs helmet_mask",
94 "consume=coal iron:2",94 "consume=coal iron:2",
95 "sleep=40000", -- +8 enlarge95 "sleep=32000",
96 "animate=working 50000", -- +5 enlarge96 "animate=working 45000",
97 "produce=helmet_mask"97 "produce=helmet_mask"
98 }98 }
99 },99 },
@@ -101,11 +101,11 @@
101 -- TRANSLATORS: Completed/Skipped/Did not start forging a warhelm because ...101 -- TRANSLATORS: Completed/Skipped/Did not start forging a warhelm because ...
102 descname = _"forging a warhelm",102 descname = _"forging a warhelm",
103 actions = {103 actions = {
104 -- time total: 100104 -- time total: 87 + 3.6
105 "return=skipped unless economy needs helmet_warhelm",105 "return=skipped unless economy needs helmet_warhelm",
106 "consume=coal gold iron:2",106 "consume=coal gold iron:2",
107 "sleep=40000", -- +8 enlarge107 "sleep=32000",
108 "animate=working 60000", -- +5 enlarge108 "animate=working 55000",
109 "produce=helmet_warhelm"109 "produce=helmet_warhelm"
110 }110 }
111 },111 },
112112
=== modified file 'data/tribes/buildings/productionsites/barbarians/inn/init.lua'
--- data/tribes/buildings/productionsites/barbarians/inn/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/barbarians/inn/init.lua 2018-09-11 16:57:31 +0000
@@ -82,10 +82,9 @@
82 actions = {82 actions = {
83 -- time total: 3783 -- time total: 37
84 "return=skipped unless economy needs snack",84 "return=skipped unless economy needs snack",
85 "sleep=5000",
86 "consume=barbarians_bread fish,meat beer",85 "consume=barbarians_bread fish,meat beer",
87 "playsound=sound/barbarians/taverns inn 100",86 "playsound=sound/barbarians/taverns inn 100",
88 "animate=working 22000",87 "animate=working 27000",
89 "sleep=10000",88 "sleep=10000",
90 "produce=snack"89 "produce=snack"
91 }90 }
9291
=== modified file 'data/tribes/buildings/productionsites/barbarians/ironmine/init.lua'
--- data/tribes/buildings/productionsites/barbarians/ironmine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/barbarians/ironmine/init.lua 2018-09-11 16:57:31 +0000
@@ -60,9 +60,10 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
61 descname = _"mining iron",61 descname = _"mining iron",
62 actions = {62 actions = {
63 "sleep=45000",63 "sleep=5000",
64 "return=skipped unless economy needs iron_ore",64 "return=skipped unless economy needs iron_ore",
65 "consume=ration",65 "consume=ration",
66 "sleep=40000",
66 "animate=working 20000",67 "animate=working 20000",
67 "mine=iron 2 33 5 17",68 "mine=iron 2 33 5 17",
68 "produce=iron_ore"69 "produce=iron_ore"
6970
=== modified file 'data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua'
--- data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -60,15 +60,31 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...60 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
61 descname = _"mining iron",61 descname = _"mining iron",
62 actions = {62 actions = {
63 "sleep=43000",63 "sleep=5000",
64 "return=skipped unless economy needs iron_ore",64 "return=skipped unless economy needs iron_ore",
65 "consume=snack",65 "consume=snack",
66 "animate=working 18000",66 "sleep=35000",
67 "call=mine_produce",
68 "call=mine_produce",
69 "call=mine_produce",
70 "call=mine_produce",
71 "return=no_stats"
72 }
73 },
74 mine_produce = {
75 descname = _"mining iron",
76 actions = {
77 "animate=working 9500",
67 "mine=iron 2 66 5 17",78 "mine=iron 2 66 5 17",
68 "produce=iron_ore",79 "produce=iron_ore",
69 "animate=working 18000",80 }
70 "mine=iron 2 66 5 17",81 },
71 "produce=iron_ore:1"82 encyclopedia = {
83 -- just a dummy program to fix encyclopedia
84 descname = "encyclopedia",
85 actions = {
86 "consume=snack",
87 "produce=iron_ore:4",
72 }88 }
73 },89 },
74 },90 },
7591
=== modified file 'data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua'
--- data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua 2018-09-11 16:57:31 +0000
@@ -59,18 +59,32 @@
59 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...59 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
60 descname = _"mining iron",60 descname = _"mining iron",
61 actions = {61 actions = {
62 "sleep=40000",62 "sleep=5000",
63 "return=skipped unless economy needs iron_ore",63 "return=skipped unless economy needs iron_ore",
64 "consume=meal",64 "consume=meal",
65 "animate=working 16000",65 "sleep=33000",
66 "call=mine_produce",
67 "call=mine_produce",
68 "call=mine_produce",
69 "call=mine_produce",
70 "call=mine_produce",
71 "return=no_stats"
72 }
73 },
74 mine_produce = {
75 descname = _"mining iron",
76 actions = {
77 "animate=working 10000",
66 "mine=iron 2 100 10 2",78 "mine=iron 2 100 10 2",
67 "produce=iron_ore",79 "produce=iron_ore",
68 "animate=working 16000",80 }
69 "mine=iron 2 100 10 2",81 },
70 "produce=iron_ore:2",82 encyclopedia = {
71 "animate=working 16000",83 -- just a dummy program to fix encyclopedia
72 "mine=iron 2 100 10 2",84 descname = "encyclopedia",
73 "produce=iron_ore:2"85 actions = {
86 "consume=meal",
87 "produce=iron_ore:5",
74 }88 }
75 },89 },
76 },90 },
7791
=== modified file 'data/tribes/buildings/productionsites/barbarians/smelting_works/init.lua'
--- data/tribes/buildings/productionsites/barbarians/smelting_works/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/barbarians/smelting_works/init.lua 2018-09-11 16:57:31 +0000
@@ -70,9 +70,8 @@
70 descname = _"smelting iron",70 descname = _"smelting iron",
71 actions = {71 actions = {
72 "return=skipped unless economy needs iron",72 "return=skipped unless economy needs iron",
73 "sleep=5000", -- penalty for unavailable iron_ore (2x)
74 "consume=coal iron_ore",73 "consume=coal iron_ore",
75 "sleep=27000",74 "sleep=32000",
76 "playsound=sound/metal furnace 192",75 "playsound=sound/metal furnace 192",
77 "animate=working 35000",76 "animate=working 35000",
78 "playsound=sound/metal ironping 80",77 "playsound=sound/metal ironping 80",
@@ -84,9 +83,8 @@
84 descname = _"smelting gold",83 descname = _"smelting gold",
85 actions = {84 actions = {
86 "return=skipped unless economy needs gold",85 "return=skipped unless economy needs gold",
87 "sleep=10000", -- penalty for unavailable gold_ore
88 "consume=coal gold_ore",86 "consume=coal gold_ore",
89 "sleep=22000",87 "sleep=32000",
90 "playsound=sound/metal furnace 192",88 "playsound=sound/metal furnace 192",
91 "animate=working 35000",89 "animate=working 35000",
92 "playsound=sound/metal goldping 80",90 "playsound=sound/metal goldping 80",
9391
=== modified file 'data/tribes/buildings/productionsites/barbarians/tavern/init.lua'
--- data/tribes/buildings/productionsites/barbarians/tavern/init.lua 2017-11-18 17:57:00 +0000
+++ data/tribes/buildings/productionsites/barbarians/tavern/init.lua 2018-09-11 16:57:31 +0000
@@ -60,11 +60,13 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ...60 -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ...
61 descname = _"preparing a ration",61 descname = _"preparing a ration",
62 actions = {62 actions = {
63 "sleep=14000",63 -- time total: 33
64 "return=skipped unless economy needs ration",64 "return=skipped unless economy needs ration",
65 "sleep=5000",
65 "consume=barbarians_bread,fish,meat",66 "consume=barbarians_bread,fish,meat",
66 "playsound=sound/barbarians/taverns tavern 100",67 "playsound=sound/barbarians/taverns tavern 100",
67 "animate=working 19000",68 "animate=working 18000",
69 "sleep=10000",
68 "produce=ration"70 "produce=ration"
69 },71 },
70 },72 },
7173
=== modified file 'data/tribes/buildings/productionsites/barbarians/warmill/init.lua'
--- data/tribes/buildings/productionsites/barbarians/warmill/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/barbarians/warmill/init.lua 2018-09-11 16:57:31 +0000
@@ -83,12 +83,12 @@
83 -- TRANSLATORS: Completed/Skipped/Did not start forging an ax because ...83 -- TRANSLATORS: Completed/Skipped/Did not start forging an ax because ...
84 descname = _"forging an ax",84 descname = _"forging an ax",
85 actions = {85 actions = {
86 -- time total: 7386 -- time total: 57 + 3.6
87 "return=skipped unless economy needs ax",87 "return=skipped unless economy needs ax",
88 "sleep=36000", -- +10 enlarge
89 "consume=coal iron",88 "consume=coal iron",
89 "sleep=26000",
90 "playsound=sound/smiths smith 192",90 "playsound=sound/smiths smith 192",
91 "animate=working 28000", -- +6 enlarge91 "animate=working 22000",
92 "playsound=sound/smiths sharpening 120",92 "playsound=sound/smiths sharpening 120",
93 "sleep=9000",93 "sleep=9000",
94 "produce=ax"94 "produce=ax"
@@ -98,12 +98,12 @@
98 -- TRANSLATORS: Completed/Skipped/Did not start forging a sharp ax because ...98 -- TRANSLATORS: Completed/Skipped/Did not start forging a sharp ax because ...
99 descname = _"forging a sharp ax",99 descname = _"forging a sharp ax",
100 actions = {100 actions = {
101 -- time total: 76101 -- time total: 57 + 3.6
102 "return=skipped unless economy needs ax_sharp",102 "return=skipped unless economy needs ax_sharp",
103 "consume=coal iron:2",103 "consume=coal iron:2",
104 "sleep=37000", -- +11 enlarge104 "sleep=26000",
105 "playsound=sound/smiths smith 192",105 "playsound=sound/smiths smith 192",
106 "animate=working 30000", -- +8 enlarge106 "animate=working 22000",
107 "playsound=sound/smiths sharpening 120",107 "playsound=sound/smiths sharpening 120",
108 "sleep=9000",108 "sleep=9000",
109 "produce=ax_sharp"109 "produce=ax_sharp"
@@ -113,12 +113,12 @@
113 -- TRANSLATORS: Completed/Skipped/Did not start forging a broad ax because ...113 -- TRANSLATORS: Completed/Skipped/Did not start forging a broad ax because ...
114 descname = _"forging a broad ax",114 descname = _"forging a broad ax",
115 actions = {115 actions = {
116 -- time total: 79116 -- time total: 57 + 3.6
117 "return=skipped unless economy needs ax_broad",117 "return=skipped unless economy needs ax_broad",
118 "consume=coal:2 iron:2",118 "consume=coal:2 iron:2",
119 "sleep=38000", -- +12 enlarge119 "sleep=26000",
120 "playsound=sound/smiths smith 192",120 "playsound=sound/smiths smith 192",
121 "animate=working 32000", -- +10 enlarge121 "animate=working 22000",
122 "playsound=sound/smiths sharpening 120",122 "playsound=sound/smiths sharpening 120",
123 "sleep=9000",123 "sleep=9000",
124 "produce=ax_broad"124 "produce=ax_broad"
@@ -128,12 +128,12 @@
128 -- TRANSLATORS: Completed/Skipped/Did not start forging a bronze ax because ...128 -- TRANSLATORS: Completed/Skipped/Did not start forging a bronze ax because ...
129 descname = _"forging a bronze ax",129 descname = _"forging a bronze ax",
130 actions = {130 actions = {
131 -- time total: 82131 -- time total: 57 + 3.6
132 "return=skipped unless economy needs ax_bronze",132 "return=skipped unless economy needs ax_bronze",
133 "consume=coal:2 iron:2",133 "consume=coal:2 iron:2",
134 "sleep=39000", -- +13 enlarge134 "sleep=26000",
135 "playsound=sound/smiths smith 192",135 "playsound=sound/smiths smith 192",
136 "animate=working 34000", -- +12 enlarge136 "animate=working 22000",
137 "playsound=sound/smiths sharpening 120",137 "playsound=sound/smiths sharpening 120",
138 "sleep=9000",138 "sleep=9000",
139 "produce=ax_bronze"139 "produce=ax_bronze"
@@ -143,12 +143,12 @@
143 -- TRANSLATORS: Completed/Skipped/Did not start forging a battle ax because ...143 -- TRANSLATORS: Completed/Skipped/Did not start forging a battle ax because ...
144 descname = _"forging a battle ax",144 descname = _"forging a battle ax",
145 actions = {145 actions = {
146 -- time total: 87146 -- time total: 57 + 3.6
147 "return=skipped unless economy needs ax_battle",147 "return=skipped unless economy needs ax_battle",
148 "consume=coal gold iron:2",148 "consume=coal gold iron:2",
149 "sleep=41000", -- +15 enlarge149 "sleep=26000",
150 "playsound=sound/smiths smith 192",150 "playsound=sound/smiths smith 192",
151 "animate=working 37000", -- +15 enlarge151 "animate=working 22000",
152 "playsound=sound/smiths sharpening 120",152 "playsound=sound/smiths sharpening 120",
153 "sleep=9000",153 "sleep=9000",
154 "produce=ax_battle"154 "produce=ax_battle"
@@ -158,12 +158,12 @@
158 -- TRANSLATORS: Completed/Skipped/Did not start forging a warrior’s ax because ...158 -- TRANSLATORS: Completed/Skipped/Did not start forging a warrior’s ax because ...
159 descname = _"forging a warrior’s ax",159 descname = _"forging a warrior’s ax",
160 actions = {160 actions = {
161 -- time total: 92161 -- time total: 57 + 3.6
162 "return=skipped unless economy needs ax_warriors",162 "return=skipped unless economy needs ax_warriors",
163 "consume=coal:2 gold:2 iron:2",163 "consume=coal:2 gold:2 iron:2",
164 "sleep=43000", -- +17 enlarge164 "sleep=26000",
165 "playsound=sound/smiths smith 192",165 "playsound=sound/smiths smith 192",
166 "animate=working 40000", -- +18 enlarge166 "animate=working 22000",
167 "playsound=sound/smiths sharpening 120",167 "playsound=sound/smiths sharpening 120",
168 "sleep=9000",168 "sleep=9000",
169 "produce=ax_warriors"169 "produce=ax_warriors"
170170
=== modified file 'data/tribes/buildings/productionsites/empire/armorsmithy/init.lua'
--- data/tribes/buildings/productionsites/empire/armorsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/empire/armorsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -71,6 +71,7 @@
71 "call=produce_armor",71 "call=produce_armor",
72 "call=produce_armor_chain",72 "call=produce_armor_chain",
73 "call=produce_armor_gilded",73 "call=produce_armor_gilded",
74 "call=produce_armor_helmet",
74 "return=no_stats"75 "return=no_stats"
75 }76 }
76 },77 },
@@ -78,11 +79,11 @@
78 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...79 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...
79 descname = _"forging a helmet",80 descname = _"forging a helmet",
80 actions = {81 actions = {
81 -- time total: 8082 -- time total: 67 + 3.6
82 "return=skipped unless economy needs armor_helmet",83 "return=skipped unless economy needs armor_helmet",
83 "sleep=40000", -- +8 enlarge
84 "consume=iron coal",84 "consume=iron coal",
85 "animate=working 40000", -- +5 enlarge85 "sleep=47000",
86 "animate=working 20000",
86 "produce=armor_helmet"87 "produce=armor_helmet"
87 }88 }
88 },89 },
@@ -90,11 +91,11 @@
90 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of armor because ...91 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of armor because ...
91 descname = _"forging a suit of armor",92 descname = _"forging a suit of armor",
92 actions = {93 actions = {
93 -- time total: 9094 -- time total: 77 + 3.6
94 "return=skipped unless economy needs armor",95 "return=skipped unless economy needs armor",
95 "consume=iron coal cloth",96 "consume=iron coal cloth",
96 "sleep=40000", -- +8 enlarge97 "sleep=32000",
97 "animate=working 50000", -- +5 enlarge98 "animate=working 45000",
98 "produce=armor"99 "produce=armor"
99 }100 }
100 },101 },
@@ -102,11 +103,11 @@
102 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of chain armor because ...103 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of chain armor because ...
103 descname = _"forging a suit of chain armor",104 descname = _"forging a suit of chain armor",
104 actions = {105 actions = {
105 -- time total: 108106 -- time total: 77 + 3.6
106 "return=skipped unless economy needs armor_chain",107 "return=skipped unless economy needs armor_chain",
107 "consume=iron:2 coal cloth",108 "consume=iron:2 coal cloth",
108 "sleep=47000", -- +15 enlarge109 "sleep=32000",
109 "animate=working 61000", -- +16 enlarge110 "animate=working 45000",
110 "produce=armor_chain"111 "produce=armor_chain"
111 }112 }
112 },113 },
@@ -114,11 +115,11 @@
114 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of gilded armor because ...115 -- TRANSLATORS: Completed/Skipped/Did not start forging a suit of gilded armor because ...
115 descname = _"forging a suit of gilded armor",116 descname = _"forging a suit of gilded armor",
116 actions = {117 actions = {
117 -- time total: 115118 -- time total: 77 + 3.6
118 "return=skipped unless economy needs armor_gilded",119 "return=skipped unless economy needs armor_gilded",
119 "consume=iron:2 coal:2 cloth gold",120 "consume=iron:2 coal:2 cloth gold",
120 "sleep=51000", -- +19 enlarge121 "sleep=32000",
121 "animate=working 64000", -- +19 enlarge122 "animate=working 45000",
122 "produce=armor_gilded"123 "produce=armor_gilded"
123 }124 }
124 },125 },
125126
=== modified file 'data/tribes/buildings/productionsites/empire/coalmine/init.lua'
--- data/tribes/buildings/productionsites/empire/coalmine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/empire/coalmine/init.lua 2018-09-11 16:57:31 +0000
@@ -58,15 +58,30 @@
58 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...58 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
59 descname = _"mining coal",59 descname = _"mining coal",
60 actions = {60 actions = {
61 "sleep=45000",61 "sleep=5000",
62 "return=skipped unless economy needs coal",62 "return=skipped unless economy needs coal",
63 "consume=beer ration",63 "consume=beer ration",
64 "animate=working 20000",64 "sleep=38000",
65 "mine=coal 2 50 5 17",65 "call=mine_produce",
66 "produce=coal:2",66 "call=mine_produce",
67 "animate=working 20000",67 "call=mine_produce",
68 "mine=coal 2 50 5 17",68 "return=no_stats"
69 "produce=coal"69 }
70 },
71 mine_produce = {
72 descname = _"mining coal",
73 actions = {
74 "animate=working 14000",
75 "mine=coal 2 50 5 17",
76 "produce=coal",
77 }
78 },
79 encyclopedia = {
80 -- just a dummy program to fix encyclopedia
81 descname = "encyclopedia",
82 actions = {
83 "consume=beer ration",
84 "produce=coal:3",
70 }85 }
71 },86 },
72 },87 },
7388
=== modified file 'data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua'
--- data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -56,15 +56,32 @@
56 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...56 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
57 descname = _"mining coal",57 descname = _"mining coal",
58 actions = {58 actions = {
59 "sleep=42000",59 "sleep=5000",
60 "return=skipped unless economy needs coal",60 "return=skipped unless economy needs coal",
61 "consume=beer meal",61 "consume=beer meal",
62 "animate=working 18000",62 "sleep=33000",
63 "mine=coal 2 100 5 2",63 "call=mine_produce",
64 "produce=coal:2",64 "call=mine_produce",
65 "animate=working 18000",65 "call=mine_produce",
66 "mine=coal 2 100 5 2",66 "call=mine_produce",
67 "produce=coal:3"67 "call=mine_produce",
68 "return=no_stats"
69 }
70 },
71 mine_produce = {
72 descname = _"mining coal",
73 actions = {
74 "animate=working 8000",
75 "mine=coal 2 100 5 2",
76 "produce=coal",
77 }
78 },
79 encyclopedia = {
80 -- just a dummy program to fix encyclopedia
81 descname = "encyclopedia",
82 actions = {
83 "consume=beer meal",
84 "produce=coal:5",
68 }85 }
69 },86 },
70 },87 },
7188
=== modified file 'data/tribes/buildings/productionsites/empire/goldmine/init.lua'
--- data/tribes/buildings/productionsites/empire/goldmine/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/empire/goldmine/init.lua 2018-09-11 16:57:31 +0000
@@ -58,15 +58,29 @@
58 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...58 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
59 descname = _"mining gold",59 descname = _"mining gold",
60 actions = {60 actions = {
61 "sleep=45000",61 "sleep=5000",
62 "return=skipped unless economy needs gold_ore",62 "return=skipped unless economy needs gold_ore",
63 "consume=ration wine",63 "consume=ration wine",
64 "animate=working 20000",64 "sleep=38000",
65 "call=mine_produce",
66 "call=mine_produce",
67 "return=no_stats"
68 }
69 },
70 mine_produce = {
71 descname = _"mining gold",
72 actions = {
73 "animate=working 21000",
65 "mine=gold 2 50 5 17",74 "mine=gold 2 50 5 17",
66 "produce=gold_ore",75 "produce=gold_ore",
67 "animate=working 20000",76 }
68 "mine=gold 2 50 5 17",77 },
69 "produce=gold_ore"78 encyclopedia = {
79 -- just a dummy program to fix encyclopedia
80 descname = "encyclopedia",
81 actions = {
82 "consume=ration wine",
83 "produce=gold_ore:2",
70 }84 }
71 },85 },
72 },86 },
7387
=== modified file 'data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua'
--- data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -56,15 +56,30 @@
56 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...56 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
57 descname = _"mining gold",57 descname = _"mining gold",
58 actions = {58 actions = {
59 "sleep=43000",59 "sleep=5000",
60 "return=skipped unless economy needs gold_ore",60 "return=skipped unless economy needs gold_ore",
61 "consume=meal wine",61 "consume=meal wine",
62 "animate=working 18000",62 "sleep=35000",
63 "call=mine_produce",
64 "call=mine_produce",
65 "call=mine_produce",
66 "return=no_stats"
67 }
68 },
69 mine_produce = {
70 descname = _"mining gold",
71 actions = {
72 "animate=working 13000",
63 "mine=gold 2 100 5 2",73 "mine=gold 2 100 5 2",
64 "produce=gold_ore",74 "produce=gold_ore",
65 "animate=working 18000",75 }
66 "mine=gold 2 100 5 2",76 },
67 "produce=gold_ore:2"77 encyclopedia = {
78 -- just a dummy program to fix encyclopedia
79 descname = "encyclopedia",
80 actions = {
81 "consume=meal wine",
82 "produce=gold_ore:3",
68 }83 }
69 },84 },
70 },85 },
7186
=== modified file 'data/tribes/buildings/productionsites/empire/inn/init.lua'
--- data/tribes/buildings/productionsites/empire/inn/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/empire/inn/init.lua 2018-09-11 16:57:31 +0000
@@ -64,11 +64,11 @@
64 actions = {64 actions = {
65 -- time total: 3365 -- time total: 33
66 "return=skipped unless economy needs ration",66 "return=skipped unless economy needs ration",
67 "sleep=10000",67 "sleep=5000",
68 "consume=empire_bread,fish,meat",68 "consume=empire_bread,fish,meat",
69 "playsound=sound/empire/taverns ration 100",69 "playsound=sound/empire/taverns ration 100",
70 "animate=working 19000",70 "animate=working 18000",
71 "sleep=4000",71 "sleep=10000",
72 "produce=ration"72 "produce=ration"
73 }73 }
74 },74 },
@@ -78,11 +78,10 @@
78 actions = {78 actions = {
79 -- time total: 4079 -- time total: 40
80 "return=skipped unless economy needs meal",80 "return=skipped unless economy needs meal",
81 "sleep=10000",
82 "consume=empire_bread fish,meat",81 "consume=empire_bread fish,meat",
83 "playsound=sound/empire/taverns meal 100",82 "playsound=sound/empire/taverns meal 100",
84 "animate=working 25000",83 "animate=working 30000",
85 "sleep=5000",84 "sleep=10000",
86 "produce=meal"85 "produce=meal"
87 }86 }
88 },87 },
8988
=== modified file 'data/tribes/buildings/productionsites/empire/ironmine/init.lua'
--- data/tribes/buildings/productionsites/empire/ironmine/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/empire/ironmine/init.lua 2018-09-11 16:57:31 +0000
@@ -58,15 +58,30 @@
58 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...58 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
59 descname = _"mining iron",59 descname = _"mining iron",
60 actions = {60 actions = {
61 "sleep=45000",61 "sleep=5000",
62 "return=skipped unless economy needs iron_ore",62 "return=skipped unless economy needs iron_ore",
63 "consume=ration beer",63 "consume=ration beer",
64 "animate=working 20000",64 "sleep=38000",
65 "call=mine_produce",
66 "call=mine_produce",
67 "call=mine_produce",
68 "return=no_stats"
69 }
70 },
71 mine_produce = {
72 descname = _"mining iron",
73 actions = {
74 "animate=working 14000",
65 "mine=iron 2 50 5 17",75 "mine=iron 2 50 5 17",
66 "produce=iron_ore",76 "produce=iron_ore",
67 "animate=working 20000",77 }
68 "mine=iron 2 50 5 17",78 },
69 "produce=iron_ore:2"79 encyclopedia = {
80 -- just a dummy program to fix encyclopedia
81 descname = "encyclopedia",
82 actions = {
83 "consume=ration beer",
84 "produce=iron_ore:3",
70 }85 }
71 },86 },
72 },87 },
7388
=== modified file 'data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua'
--- data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua 2017-09-03 07:59:51 +0000
+++ data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -56,15 +56,31 @@
56 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...56 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
57 descname = _"mining iron",57 descname = _"mining iron",
58 actions = {58 actions = {
59 "sleep=43000",59 "sleep=5000",
60 "return=skipped unless economy needs iron_ore",60 "return=skipped unless economy needs iron_ore",
61 "consume=meal beer",61 "consume=meal beer",
62 "animate=working 18000",62 "sleep=34000",
63 "mine=iron 2 100 5 2",63 "call=mine_produce",
64 "produce=iron_ore:2",64 "call=mine_produce",
65 "animate=working 18000",65 "call=mine_produce",
66 "mine=iron 2 100 5 2",66 "call=mine_produce",
67 "produce=iron_ore:2"67 "return=no_stats"
68 }
69 },
70 mine_produce = {
71 descname = _"mining iron",
72 actions = {
73 "animate=working 10000",
74 "mine=iron 2 100 5 2",
75 "produce=iron_ore",
76 }
77 },
78 encyclopedia = {
79 -- just a dummy program to fix encyclopedia
80 descname = "encyclopedia",
81 actions = {
82 "consume=meal beer",
83 "produce=iron_ore:4",
68 }84 }
69 },85 },
70 },86 },
7187
=== modified file 'data/tribes/buildings/productionsites/empire/marblemine/init.lua'
--- data/tribes/buildings/productionsites/empire/marblemine/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/empire/marblemine/init.lua 2018-09-11 16:57:31 +0000
@@ -60,8 +60,22 @@
60 -- TRANSLATORS: Completed/Skipped/Did not start working because ...60 -- TRANSLATORS: Completed/Skipped/Did not start working because ...
61 descname = _"working",61 descname = _"working",
62 actions = {62 actions = {
63 "call=mine_granite",
63 "call=mine_marble",64 "call=mine_marble",
64 "call=mine_granite",65 "return=no_stats"
66 }
67 },
68 mine_granite = {
69 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
70 descname = _"mining granite",
71 actions = {
72 "sleep=18000",
73 "return=skipped unless economy needs marble or economy needs granite",
74 "consume=ration wine",
75 "call=a_mine_produce_granite",
76 "call=a_mine_produce_granite",
77 "call=a_mine_produce_marble",
78 "call=a_mine_produce_granite",
65 "return=no_stats"79 "return=no_stats"
66 }80 }
67 },81 },
@@ -69,30 +83,46 @@
69 -- TRANSLATORS: Completed/Skipped/Did not start mining marble because ...83 -- TRANSLATORS: Completed/Skipped/Did not start mining marble because ...
70 descname = _"mining marble",84 descname = _"mining marble",
71 actions = {85 actions = {
72 "sleep=20000",86 "sleep=18000",
73 "return=skipped unless economy needs marble or economy needs granite",87 "return=skipped unless economy needs marble or economy needs granite",
74 "consume=wine ration",88 "consume=wine ration",
75 "animate=working 20000",89 "call=a_mine_produce_marble",
76 "mine=stones 2 50 5 17",90 "call=a_mine_produce_marble",
77 "produce=marble:2",91 "call=a_mine_produce_granite",
78 "animate=working 20000",92 "call=a_mine_produce_marble",
79 "mine=stones 2 50 5 17",93 "return=no_stats"
80 "produce=marble granite"
81 }94 }
82 },95 },
83 mine_granite = {96 a_mine_produce_granite = {
84 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
85 descname = _"mining granite",97 descname = _"mining granite",
86 actions = {98 actions = {
87 "sleep=20000",99 "animate=working 10500",
88 "return=skipped unless economy needs marble or economy needs granite",100 "mine=stones 2 50 5 17",
101 "produce=granite",
102 }
103 },
104 a_mine_produce_marble = {
105 descname = _"mining marble",
106 actions = {
107 "animate=working 10500",
108 "mine=stones 2 50 5 17",
109 "produce=marble",
110 }
111 },
112 encyclopedia_granite = {
113 -- just a dummy program to fix encyclopedia
114 descname = "encyclopedia",
115 actions = {
89 "consume=ration wine",116 "consume=ration wine",
90 "animate=working 20000",117 "produce=granite:3 marble",
91 "mine=stones 2 50 5 17",118 }
92 "produce=granite marble",119 },
93 "animate=working 20000",120 encyclopedia_marble = {
94 "mine=stones 2 50 5 17",121 -- just a dummy program to fix encyclopedia
95 "produce=granite:2"122 descname = "encyclopedia",
123 actions = {
124 "consume=wine ration",
125 "produce=marble:3 granite",
96 }126 }
97 },127 },
98 },128 },
99129
=== modified file 'data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua'
--- data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua 2016-09-03 14:59:10 +0000
+++ data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -57,15 +57,39 @@
57 -- TRANSLATORS: Completed/Skipped/Did not start mining marble because ...57 -- TRANSLATORS: Completed/Skipped/Did not start mining marble because ...
58 descname = _"mining marble",58 descname = _"mining marble",
59 actions = {59 actions = {
60 "sleep=43000",60 "sleep=40000",
61 "return=skipped unless economy needs marble or economy needs granite",61 "return=skipped unless economy needs marble or economy needs granite",
62 "consume=meal wine",62 "consume=meal wine",
63 "animate=working 18000",63 "call=mine_produce_marble",
64 "mine=stones 2 100 5 2",64 "call=mine_produce_granite",
65 "produce=marble:2",65 "call=mine_produce_marble",
66 "animate=working 18000",66 "call=mine_produce_granite",
67 "mine=stones 2 100 5 2",67 "call=mine_produce_marble",
68 "produce=marble granite:2"68 "return=no_stats"
69 }
70 },
71 mine_produce_granite = {
72 descname = _"mining marble",
73 actions = {
74 "animate=working 7800",
75 "mine=stones 2 100 5 2",
76 "produce=granite",
77 }
78 },
79 mine_produce_marble = {
80 descname = _"mining marble",
81 actions = {
82 "animate=working 7800",
83 "mine=stones 2 100 5 2",
84 "produce=marble",
85 }
86 },
87 encyclopedia = {
88 -- just a dummy program to fix encyclopedia
89 descname = "encyclopedia",
90 actions = {
91 "consume=meal wine",
92 "produce=marble:3 granite:2",
69 }93 }
70 },94 },
71 },95 },
7296
=== modified file 'data/tribes/buildings/productionsites/empire/smelting_works/init.lua'
--- data/tribes/buildings/productionsites/empire/smelting_works/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/empire/smelting_works/init.lua 2018-09-11 16:57:31 +0000
@@ -71,9 +71,8 @@
71 descname = _"smelting iron",71 descname = _"smelting iron",
72 actions = {72 actions = {
73 "return=skipped unless economy needs iron",73 "return=skipped unless economy needs iron",
74 "sleep=5000", -- penalty for unavailable iron_ore (2x)
75 "consume=iron_ore coal",74 "consume=iron_ore coal",
76 "sleep=20000",75 "sleep=25000",
77 "playsound=sound/metal fizzle 150",76 "playsound=sound/metal fizzle 150",
78 "animate=working 35000",77 "animate=working 35000",
79 "playsound=sound/metal ironping 80",78 "playsound=sound/metal ironping 80",
@@ -85,9 +84,8 @@
85 descname = _"smelting gold",84 descname = _"smelting gold",
86 actions = {85 actions = {
87 "return=skipped unless economy needs gold",86 "return=skipped unless economy needs gold",
88 "sleep=10000", -- penalty for unavailable gold_ore
89 "consume=gold_ore coal",87 "consume=gold_ore coal",
90 "sleep=15000",88 "sleep=25000",
91 "playsound=sound/metal fizzle 150",89 "playsound=sound/metal fizzle 150",
92 "animate=working 35000",90 "animate=working 35000",
93 "playsound=sound/metal goldping 80",91 "playsound=sound/metal goldping 80",
9492
=== modified file 'data/tribes/buildings/productionsites/empire/tavern/init.lua'
--- data/tribes/buildings/productionsites/empire/tavern/init.lua 2017-11-18 17:57:00 +0000
+++ data/tribes/buildings/productionsites/empire/tavern/init.lua 2018-09-11 16:57:31 +0000
@@ -56,11 +56,12 @@
56 descname = _"preparing a ration",56 descname = _"preparing a ration",
57 actions = {57 actions = {
58 -- time total: 3358 -- time total: 33
59 "sleep=14000",
60 "return=skipped unless economy needs ration",59 "return=skipped unless economy needs ration",
60 "sleep=5000",
61 "consume=empire_bread,fish,meat",61 "consume=empire_bread,fish,meat",
62 "playsound=sound/empire/taverns ration 100",62 "playsound=sound/empire/taverns ration 100",
63 "animate=working 19000",63 "animate=working 18000",
64 "sleep=10000",
64 "produce=ration"65 "produce=ration"
65 }66 }
66 },67 },
6768
=== modified file 'data/tribes/buildings/productionsites/empire/weaponsmithy/init.lua'
--- data/tribes/buildings/productionsites/empire/weaponsmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/empire/weaponsmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -77,12 +77,12 @@
77 -- TRANSLATORS: Completed/Skipped/Did not start forging a wooden spear because ...77 -- TRANSLATORS: Completed/Skipped/Did not start forging a wooden spear because ...
78 descname = _"forging a wooden spear",78 descname = _"forging a wooden spear",
79 actions = {79 actions = {
80 -- time total: 6480 -- time total: 50 + 3.6
81 "return=skipped unless economy needs spear_wooden",81 "return=skipped unless economy needs spear_wooden",
82 "sleep=27000", -- +7 enlarge
83 "consume=planks",82 "consume=planks",
83 "sleep=20000",
84 "playsound=sound/smiths smith 192",84 "playsound=sound/smiths smith 192",
85 "animate=working 28000", -- +7 enlarge85 "animate=working 21000",
86 "playsound=sound/smiths sharpening 120",86 "playsound=sound/smiths sharpening 120",
87 "sleep=9000",87 "sleep=9000",
88 "produce=spear_wooden"88 "produce=spear_wooden"
@@ -92,12 +92,12 @@
92 -- TRANSLATORS: Completed/Skipped/Did not start forging a spear because ...92 -- TRANSLATORS: Completed/Skipped/Did not start forging a spear because ...
93 descname = _"forging a spear",93 descname = _"forging a spear",
94 actions = {94 actions = {
95 -- time total: 10295 -- time total: 77 + 3.6
96 "return=skipped unless economy needs spear",96 "return=skipped unless economy needs spear",
97 "consume=coal iron planks",97 "consume=coal iron planks",
98 "sleep=47000", -- +15 enlarge98 "sleep=32000",
99 "playsound=sound/smiths smith 192",99 "playsound=sound/smiths smith 192",
100 "animate=working 46000", -- +10 enlarge100 "animate=working 36000",
101 "playsound=sound/smiths sharpening 120",101 "playsound=sound/smiths sharpening 120",
102 "sleep=9000",102 "sleep=9000",
103 "produce=spear"103 "produce=spear"
@@ -107,12 +107,12 @@
107 -- TRANSLATORS: Completed/Skipped/Did not start forging an advanced spear because ...107 -- TRANSLATORS: Completed/Skipped/Did not start forging an advanced spear because ...
108 descname = _"forging an advanced spear",108 descname = _"forging an advanced spear",
109 actions = {109 actions = {
110 -- time total: 110110 -- time total: 77 + 3.6
111 "return=skipped unless economy needs spear_advanced",111 "return=skipped unless economy needs spear_advanced",
112 "consume=coal iron:2 planks",112 "consume=coal iron:2 planks",
113 "sleep=50000", -- +18 enlarge113 "sleep=32000",
114 "playsound=sound/smiths smith 192",114 "playsound=sound/smiths smith 192",
115 "animate=working 51000", -- +15 enlarge115 "animate=working 36000",
116 "playsound=sound/smiths sharpening 120",116 "playsound=sound/smiths sharpening 120",
117 "sleep=9000",117 "sleep=9000",
118 "produce=spear_advanced"118 "produce=spear_advanced"
@@ -122,12 +122,12 @@
122 -- TRANSLATORS: Completed/Skipped/Did not start forging a heavy spear because ...122 -- TRANSLATORS: Completed/Skipped/Did not start forging a heavy spear because ...
123 descname = _"forging a heavy spear",123 descname = _"forging a heavy spear",
124 actions = {124 actions = {
125 -- time total: 115125 -- time total: 77 + 3.6
126 "return=skipped unless economy needs spear_heavy",126 "return=skipped unless economy needs spear_heavy",
127 "consume=coal:2 gold iron planks",127 "consume=coal:2 gold iron planks",
128 "sleep=55000", -- +23 enlarge128 "sleep=32000",
129 "playsound=sound/smiths smith 192",129 "playsound=sound/smiths smith 192",
130 "animate=working 51000", -- +15 enlarge130 "animate=working 36000",
131 "playsound=sound/smiths sharpening 120",131 "playsound=sound/smiths sharpening 120",
132 "sleep=9000",132 "sleep=9000",
133 "produce=spear_heavy"133 "produce=spear_heavy"
@@ -137,12 +137,12 @@
137 -- TRANSLATORS: Completed/Skipped/Did not start forging a war spear because ...137 -- TRANSLATORS: Completed/Skipped/Did not start forging a war spear because ...
138 descname = _"forging a war spear",138 descname = _"forging a war spear",
139 actions = {139 actions = {
140 -- time total: 120140 -- time total: 77 + 3.6
141 "return=skipped unless economy needs spear_war",141 "return=skipped unless economy needs spear_war",
142 "consume=coal:2 gold iron:2 planks",142 "consume=coal:2 gold iron:2 planks",
143 "sleep=55000", -- +23 enlarge143 "sleep=32000",
144 "playsound=sound/smiths smith 192",144 "playsound=sound/smiths smith 192",
145 "animate=working 56000", -- +20 enlarge145 "animate=working 36000",
146 "playsound=sound/smiths sharpening 120",146 "playsound=sound/smiths sharpening 120",
147 "sleep=9000",147 "sleep=9000",
148 "produce=spear_war"148 "produce=spear_war"
149149
=== modified file 'data/tribes/buildings/productionsites/frisians/armor_smithy_large/init.lua'
--- data/tribes/buildings/productionsites/frisians/armor_smithy_large/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/armor_smithy_large/init.lua 2018-09-11 16:57:31 +0000
@@ -74,12 +74,12 @@
74 -- TRANSLATORS: Completed/Skipped/Did not start forging a broadsword because ...74 -- TRANSLATORS: Completed/Skipped/Did not start forging a broadsword because ...
75 descname = _"forging a broadsword",75 descname = _"forging a broadsword",
76 actions = {76 actions = {
77 -- time total: 8277 -- time total: 57 + 3.6
78 "return=skipped unless economy needs sword_broad",78 "return=skipped unless economy needs sword_broad",
79 "sleep=39000",
80 "consume=coal iron:2 gold",79 "consume=coal iron:2 gold",
80 "sleep=24000",
81 "playsound=sound/smiths smith 192",81 "playsound=sound/smiths smith 192",
82 "animate=working 34000",82 "animate=working 24000",
83 "playsound=sound/smiths sharpening 120",83 "playsound=sound/smiths sharpening 120",
84 "sleep=9000",84 "sleep=9000",
85 "produce=sword_broad"85 "produce=sword_broad"
@@ -89,12 +89,12 @@
89 -- TRANSLATORS: Completed/Skipped/Did not start forging a double-edged sword because ...89 -- TRANSLATORS: Completed/Skipped/Did not start forging a double-edged sword because ...
90 descname = _"forging a double-edged sword",90 descname = _"forging a double-edged sword",
91 actions = {91 actions = {
92 -- time total: 8792 -- time total: 57 + 3.6
93 "return=skipped unless economy needs sword_double",93 "return=skipped unless economy needs sword_double",
94 "consume=coal:2 iron:2 gold",94 "consume=coal:2 iron:2 gold",
95 "sleep=41000",95 "sleep=24000",
96 "playsound=sound/smiths smith 192",96 "playsound=sound/smiths smith 192",
97 "animate=working 37000",97 "animate=working 24000",
98 "playsound=sound/smiths sharpening 120",98 "playsound=sound/smiths sharpening 120",
99 "sleep=9000",99 "sleep=9000",
100 "produce=sword_double"100 "produce=sword_double"
@@ -104,11 +104,11 @@
104 -- TRANSLATORS: Completed/Skipped/Did not start forging a golden helmet because ...104 -- TRANSLATORS: Completed/Skipped/Did not start forging a golden helmet because ...
105 descname = _"forging a golden helmet",105 descname = _"forging a golden helmet",
106 actions = {106 actions = {
107 -- time total: 115107 -- time total: 67 + 3.6
108 "return=skipped unless economy needs helmet_golden",108 "return=skipped unless economy needs helmet_golden",
109 "consume=coal:2 iron:2 gold",109 "consume=coal:2 iron:2 gold",
110 "sleep=51000",110 "sleep=30000",
111 "animate=working 64000",111 "animate=working 37000",
112 "produce=helmet_golden"112 "produce=helmet_golden"
113 },113 },
114 },114 },
115115
=== modified file 'data/tribes/buildings/productionsites/frisians/armor_smithy_small/init.lua'
--- data/tribes/buildings/productionsites/frisians/armor_smithy_small/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/armor_smithy_small/init.lua 2018-09-11 16:57:31 +0000
@@ -73,12 +73,12 @@
73 -- TRANSLATORS: Completed/Skipped/Did not start forging a short sword because ...73 -- TRANSLATORS: Completed/Skipped/Did not start forging a short sword because ...
74 descname = _"forging a short sword",74 descname = _"forging a short sword",
75 actions = {75 actions = {
76 -- time total: 7676 -- time total: 57 + 3.6
77 "return=skipped unless economy needs sword_short",77 "return=skipped unless economy needs sword_short",
78 "sleep=37000",
79 "consume=coal iron",78 "consume=coal iron",
79 "sleep=24000",
80 "playsound=sound/smiths smith 192",80 "playsound=sound/smiths smith 192",
81 "animate=working 30000",81 "animate=working 24000",
82 "playsound=sound/smiths sharpening 120",82 "playsound=sound/smiths sharpening 120",
83 "sleep=9000",83 "sleep=9000",
84 "produce=sword_short"84 "produce=sword_short"
@@ -88,12 +88,12 @@
88 -- TRANSLATORS: Completed/Skipped/Did not start forging a long sword because ...88 -- TRANSLATORS: Completed/Skipped/Did not start forging a long sword because ...
89 descname = _"forging a long sword",89 descname = _"forging a long sword",
90 actions = {90 actions = {
91 -- time total: 7991 -- time total: 57 + 3.6
92 "return=skipped unless economy needs sword_long",92 "return=skipped unless economy needs sword_long",
93 "consume=coal iron:2",93 "consume=coal iron:2",
94 "sleep=38000",94 "sleep=24000",
95 "playsound=sound/smiths smith 192",95 "playsound=sound/smiths smith 192",
96 "animate=working 32000",96 "animate=working 24000",
97 "playsound=sound/smiths sharpening 120",97 "playsound=sound/smiths sharpening 120",
98 "sleep=9000",98 "sleep=9000",
99 "produce=sword_long"99 "produce=sword_long"
@@ -103,11 +103,12 @@
103 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...103 -- TRANSLATORS: Completed/Skipped/Did not start forging a helmet because ...
104 descname = _"forging a helmet",104 descname = _"forging a helmet",
105 actions = {105 actions = {
106 -- time total: 100106 -- time total: 67 + 3.6
107 "return=skipped unless economy needs helmet",107 "return=skipped unless economy needs helmet",
108 "consume=coal iron:2",108 "consume=coal iron:2",
109 "sleep=50000",109 "sleep=30000",
110 "animate=working 50000",110 "playsound=sound/smiths smith 192",
111 "animate=working 37000",
111 "produce=helmet"112 "produce=helmet"
112 },113 },
113 },114 },
114115
=== modified file 'data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua'
--- data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua 2018-09-11 16:57:31 +0000
@@ -94,8 +94,8 @@
94 descname = _"forging a felling ax",94 descname = _"forging a felling ax",
95 actions = {95 actions = {
96 "return=skipped unless economy needs felling_ax",96 "return=skipped unless economy needs felling_ax",
97 "consume=log iron",
97 "sleep=32000",98 "sleep=32000",
98 "consume=log iron",
99 "animate=working 35000",99 "animate=working 35000",
100 "produce=felling_ax"100 "produce=felling_ax"
101 },101 },
@@ -105,8 +105,8 @@
105 descname = _"forging a pick",105 descname = _"forging a pick",
106 actions = {106 actions = {
107 "return=skipped unless economy needs pick",107 "return=skipped unless economy needs pick",
108 "consume=log iron",
108 "sleep=32000",109 "sleep=32000",
109 "consume=log iron",
110 "animate=working 35000",110 "animate=working 35000",
111 "produce=pick"111 "produce=pick"
112 },112 },
@@ -116,8 +116,8 @@
116 descname = _"making a scythe",116 descname = _"making a scythe",
117 actions = {117 actions = {
118 "return=skipped unless economy needs scythe",118 "return=skipped unless economy needs scythe",
119 "consume=log iron",
119 "sleep=32000",120 "sleep=32000",
120 "consume=log iron",
121 "animate=working 35000",121 "animate=working 35000",
122 "produce=scythe"122 "produce=scythe"
123 },123 },
@@ -127,8 +127,8 @@
127 descname = _"making a shovel",127 descname = _"making a shovel",
128 actions = {128 actions = {
129 "return=skipped unless economy needs shovel",129 "return=skipped unless economy needs shovel",
130 "consume=log iron",
130 "sleep=32000",131 "sleep=32000",
131 "consume=log iron",
132 "animate=working 35000",132 "animate=working 35000",
133 "produce=shovel"133 "produce=shovel"
134 },134 },
@@ -138,8 +138,8 @@
138 descname = _"making a basket",138 descname = _"making a basket",
139 actions = {139 actions = {
140 "return=skipped unless economy needs basket",140 "return=skipped unless economy needs basket",
141 "sleep=32000",
142 "consume=thatch_reed log",141 "consume=thatch_reed log",
142 "sleep=32000",
143 "animate=working 35000",143 "animate=working 35000",
144 "produce=basket"144 "produce=basket"
145 },145 },
@@ -149,8 +149,8 @@
149 descname = _"making a hunting spear",149 descname = _"making a hunting spear",
150 actions = {150 actions = {
151 "return=skipped unless economy needs hunting_spear",151 "return=skipped unless economy needs hunting_spear",
152 "consume=log iron",
152 "sleep=32000",153 "sleep=32000",
153 "consume=log iron",
154 "animate=working 35000",154 "animate=working 35000",
155 "produce=hunting_spear"155 "produce=hunting_spear"
156 },156 },
@@ -160,8 +160,8 @@
160 descname = _"making a fishing net",160 descname = _"making a fishing net",
161 actions = {161 actions = {
162 "return=skipped unless economy needs fishing_net",162 "return=skipped unless economy needs fishing_net",
163 "sleep=32000",
164 "consume=thatch_reed:2",163 "consume=thatch_reed:2",
164 "sleep=32000",
165 "animate=working 35000",165 "animate=working 35000",
166 "produce=fishing_net"166 "produce=fishing_net"
167 },167 },
@@ -171,8 +171,8 @@
171 descname = _"making a bread paddle",171 descname = _"making a bread paddle",
172 actions = {172 actions = {
173 "return=skipped unless economy needs bread_paddle",173 "return=skipped unless economy needs bread_paddle",
174 "consume=log iron",
174 "sleep=32000",175 "sleep=32000",
175 "consume=log iron",
176 "animate=working 35000",176 "animate=working 35000",
177 "produce=bread_paddle"177 "produce=bread_paddle"
178 },178 },
@@ -182,8 +182,8 @@
182 descname = _"making kitchen tools",182 descname = _"making kitchen tools",
183 actions = {183 actions = {
184 "return=skipped unless economy needs kitchen_tools",184 "return=skipped unless economy needs kitchen_tools",
185 "consume=log iron",
185 "sleep=32000",186 "sleep=32000",
186 "consume=log iron",
187 "animate=working 35000",187 "animate=working 35000",
188 "produce=kitchen_tools"188 "produce=kitchen_tools"
189 },189 },
@@ -193,8 +193,8 @@
193 descname = _"making a hammer",193 descname = _"making a hammer",
194 actions = {194 actions = {
195 "return=skipped unless economy needs hammer",195 "return=skipped unless economy needs hammer",
196 "consume=log iron",
196 "sleep=32000",197 "sleep=32000",
197 "consume=log iron",
198 "animate=working 35000",198 "animate=working 35000",
199 "produce=hammer"199 "produce=hammer"
200 },200 },
@@ -204,8 +204,8 @@
204 descname = _"making fire tongs",204 descname = _"making fire tongs",
205 actions = {205 actions = {
206 "return=skipped unless economy needs fire_tongs",206 "return=skipped unless economy needs fire_tongs",
207 "consume=iron",
207 "sleep=32000",208 "sleep=32000",
208 "consume=iron",
209 "animate=working 35000",209 "animate=working 35000",
210 "produce=fire_tongs"210 "produce=fire_tongs"
211 },211 },
@@ -215,8 +215,8 @@
215 descname = _"making needles",215 descname = _"making needles",
216 actions = {216 actions = {
217 "return=skipped unless economy needs needles",217 "return=skipped unless economy needs needles",
218 "consume=iron",
218 "sleep=32000",219 "sleep=32000",
219 "consume=iron",
220 "animate=working 35000",220 "animate=working 35000",
221 "produce=needles:2"221 "produce=needles:2"
222 },222 },
223223
=== modified file 'data/tribes/buildings/productionsites/frisians/coalmine/init.lua'
--- data/tribes/buildings/productionsites/frisians/coalmine/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/coalmine/init.lua 2018-09-11 16:57:31 +0000
@@ -64,12 +64,29 @@
64 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...64 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
65 descname = _"mining coal",65 descname = _"mining coal",
66 actions = {66 actions = {
67 "sleep=45000",67 "sleep=5000",
68 "return=skipped unless economy needs coal",68 "return=skipped unless economy needs coal",
69 "consume=ration",69 "consume=ration",
70 "animate=working 40000",70 "sleep=40000",
71 "call=mine_produce",
72 "call=mine_produce",
73 "return=no_stats"
74 }
75 },
76 mine_produce = {
77 descname = _"mining coal",
78 actions = {
79 "animate=working 15000",
71 "mine=coal 3 50 5 20",80 "mine=coal 3 50 5 20",
72 "produce=coal:2"81 "produce=coal",
82 }
83 },
84 encyclopedia = {
85 -- just a dummy program to fix encyclopedia
86 descname = "encyclopedia",
87 actions = {
88 "consume=ration",
89 "produce=coal:2",
73 }90 }
74 },91 },
75 },92 },
7693
=== modified file 'data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua'
--- data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -63,21 +63,34 @@
63 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...63 -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ...
64 descname = _"mining coal",64 descname = _"mining coal",
65 actions = {65 actions = {
66 "sleep=40000",66 "sleep=5000",
67 "return=skipped unless economy needs coal",67 "return=skipped unless economy needs coal",
68 "consume=meal",68 "consume=meal",
69 "animate=working 9000",69 "sleep=34900",
70 "mine=coal 3 100 10 5",70 "call=mine_produce",
71 "produce=coal",71 "call=mine_produce",
72 "animate=working 9000",72 "call=mine_produce",
73 "mine=coal 3 100 10 5",73 "call=mine_produce",
74 "produce=coal",74 "call=mine_produce",
75 "animate=working 9000",75 "call=mine_produce",
76 "mine=coal 3 100 10 5",76 "call=mine_produce",
77 "produce=coal",77 "return=no_stats"
78 "animate=working 9000",78 }
79 "mine=coal 3 100 10 5",79 },
80 "produce=coal"80 mine_produce = {
81 descname = _"mining coal",
82 actions = {
83 "animate=working 8700",
84 "mine=coal 3 100 10 5",
85 "produce=coal",
86 }
87 },
88 encyclopedia = {
89 -- just a dummy program to fix encyclopedia
90 descname = "encyclopedia",
91 actions = {
92 "consume=meal",
93 "produce=coal:7",
81 }94 }
82 },95 },
83 },96 },
8497
=== modified file 'data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua'
--- data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/drinking_hall/init.lua 2018-09-11 16:57:31 +0000
@@ -72,10 +72,12 @@
72 -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ...72 -- TRANSLATORS: Completed/Skipped/Did not start preparing a ration because ...
73 descname = _"preparing a ration",73 descname = _"preparing a ration",
74 actions = {74 actions = {
75 -- time total: 33
75 "return=skipped unless economy needs ration",76 "return=skipped unless economy needs ration",
76 "sleep=14000",77 "sleep=5000",
77 "consume=fruit,smoked_fish,smoked_meat",78 "consume=fruit,smoked_fish,smoked_meat",
78 "animate=working 19000",79 "animate=working 18000",
80 "sleep=10000",
79 "produce=ration"81 "produce=ration"
80 }82 }
81 },83 },
@@ -83,10 +85,11 @@
83 -- TRANSLATORS: Completed/Skipped/Did not start preparing a meal because ...85 -- TRANSLATORS: Completed/Skipped/Did not start preparing a meal because ...
84 descname = _"preparing a meal",86 descname = _"preparing a meal",
85 actions = {87 actions = {
88 --time total: 40
86 "return=skipped unless economy needs meal",89 "return=skipped unless economy needs meal",
87 "sleep=10000",
88 "consume=beer honey_bread smoked_fish,smoked_meat",90 "consume=beer honey_bread smoked_fish,smoked_meat",
89 "animate=working 30000",91 "animate=working 30000",
92 "sleep=10000",
90 "produce=meal"93 "produce=meal"
91 }94 }
92 },95 },
9396
=== modified file 'data/tribes/buildings/productionsites/frisians/furnace/init.lua'
--- data/tribes/buildings/productionsites/frisians/furnace/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/furnace/init.lua 2018-09-11 16:57:31 +0000
@@ -80,9 +80,8 @@
80 descname = _"smelting iron",80 descname = _"smelting iron",
81 actions = {81 actions = {
82 "return=skipped unless economy needs iron",82 "return=skipped unless economy needs iron",
83 "sleep=5000",
84 "consume=coal iron_ore",83 "consume=coal iron_ore",
85 "sleep=22000",84 "sleep=27000",
86 "animate=working_iron 35000",85 "animate=working_iron 35000",
87 "produce=iron"86 "produce=iron"
88 },87 },
@@ -92,9 +91,8 @@
92 descname = _"smelting gold",91 descname = _"smelting gold",
93 actions = {92 actions = {
94 "return=skipped unless economy needs gold",93 "return=skipped unless economy needs gold",
95 "sleep=10000",
96 "consume=coal gold_ore",94 "consume=coal gold_ore",
97 "sleep=17000",95 "sleep=27000",
98 "animate=working_gold 35000",96 "animate=working_gold 35000",
99 "produce=gold"97 "produce=gold"
100 },98 },
10199
=== modified file 'data/tribes/buildings/productionsites/frisians/goldmine/init.lua'
--- data/tribes/buildings/productionsites/frisians/goldmine/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/goldmine/init.lua 2018-09-11 16:57:31 +0000
@@ -65,9 +65,10 @@
65 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...65 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
66 descname = _"mining gold",66 descname = _"mining gold",
67 actions = {67 actions = {
68 "sleep=45000",68 "sleep=5000",
69 "return=skipped unless economy needs gold_ore",69 "return=skipped unless economy needs gold_ore",
70 "consume=ration",70 "consume=ration",
71 "sleep=40000",
71 "animate=working 20000",72 "animate=working 20000",
72 "mine=gold 3 50 5 20", --name radius % chance_empty gain_exp_on_empty73 "mine=gold 3 50 5 20", --name radius % chance_empty gain_exp_on_empty
73 "produce=gold_ore"74 "produce=gold_ore"
7475
=== modified file 'data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua'
--- data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -63,15 +63,32 @@
63 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...63 -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ...
64 descname = _"mining gold",64 descname = _"mining gold",
65 actions = {65 actions = {
66 "sleep=40000",66 "sleep=5000",
67 "return=skipped unless economy needs gold_ore",67 "return=skipped unless economy needs gold_ore",
68 "consume=meal",68 "consume=meal",
69 "animate=working 18000",69 "sleep=34800",
70 "mine=gold 3 100 10 5",70 "call=mine_produce",
71 "produce=gold_ore:2",71 "call=mine_produce",
72 "animate=working 18000",72 "call=mine_produce",
73 "mine=gold 3 100 10 5",73 "call=mine_produce",
74 "produce=gold_ore:2"74 "call=mine_produce",
75 "return=no_stats"
76 }
77 },
78 mine_produce = {
79 descname = _"mining gold",
80 actions = {
81 "animate=working 12200",
82 "mine=gold 3 100 10 5",
83 "produce=gold_ore",
84 }
85 },
86 encyclopedia = {
87 -- just a dummy program to fix encyclopedia
88 descname = "encyclopedia",
89 actions = {
90 "consume=meal",
91 "produce=gold_ore:5",
75 }92 }
76 },93 },
77 },94 },
7895
=== modified file 'data/tribes/buildings/productionsites/frisians/honey_bread_bakery/init.lua'
--- data/tribes/buildings/productionsites/frisians/honey_bread_bakery/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/honey_bread_bakery/init.lua 2018-09-11 16:57:31 +0000
@@ -72,8 +72,8 @@
72 descname = _"baking honey bread",72 descname = _"baking honey bread",
73 actions = {73 actions = {
74 "return=skipped unless economy needs honey_bread or workers need experience",74 "return=skipped unless economy needs honey_bread or workers need experience",
75 "consume=barley water honey",
75 "sleep=35000",76 "sleep=35000",
76 "consume=barley water honey",
77 "animate=working 35000",77 "animate=working 35000",
78 "produce=honey_bread"78 "produce=honey_bread"
79 }79 }
@@ -82,9 +82,9 @@
82 -- TRANSLATORS: Completed/Skipped/Did not start baking bread because ...82 -- TRANSLATORS: Completed/Skipped/Did not start baking bread because ...
83 descname = _"baking bread",83 descname = _"baking bread",
84 actions = {84 actions = {
85 "return=skipped unless economy needs bread_frisians or workers need experience",85 "return=skipped unless economy needs bread_frisians",
86 "consume=barley water",
86 "sleep=20000",87 "sleep=20000",
87 "consume=barley water",
88 "animate=working 20000",88 "animate=working 20000",
89 "produce=bread_frisians"89 "produce=bread_frisians"
90 }90 }
9191
=== modified file 'data/tribes/buildings/productionsites/frisians/ironmine/init.lua'
--- data/tribes/buildings/productionsites/frisians/ironmine/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/ironmine/init.lua 2018-09-11 16:57:31 +0000
@@ -65,9 +65,10 @@
65 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...65 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
66 descname = _"mining iron",66 descname = _"mining iron",
67 actions = {67 actions = {
68 "sleep=45000",68 "sleep=5000",
69 "return=skipped unless economy needs iron_ore",69 "return=skipped unless economy needs iron_ore",
70 "consume=ration",70 "consume=ration",
71 "sleep=40000",
71 "animate=working 20000",72 "animate=working 20000",
72 "mine=iron 3 50 5 20",73 "mine=iron 3 50 5 20",
73 "produce=iron_ore"74 "produce=iron_ore"
7475
=== modified file 'data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua'
--- data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -63,15 +63,34 @@
63 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...63 -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ...
64 descname = _"mining iron",64 descname = _"mining iron",
65 actions = {65 actions = {
66 "sleep=40000",66 "sleep=5000",
67 "return=skipped unless economy needs iron_ore",67 "return=skipped unless economy needs iron_ore",
68 "consume=meal",68 "consume=meal",
69 "animate=working 18000",69 "sleep=57100",
70 "mine=iron 3 100 10 5",70 "call=mine_produce",
71 "produce=iron_ore:2",71 "call=mine_produce",
72 "animate=working 18000",72 "call=mine_produce",
73 "mine=iron 3 100 10 5",73 "call=mine_produce",
74 "produce=iron_ore:2"74 "call=mine_produce",
75 "call=mine_produce",
76 "call=mine_produce",
77 "return=no_stats"
78 }
79 },
80 mine_produce = {
81 descname = _"mining iron",
82 actions = {
83 "animate=working 8700",
84 "mine=iron 3 100 10 5",
85 "produce=iron_ore",
86 }
87 },
88 encyclopedia = {
89 -- just a dummy program to fix encyclopedia
90 descname = "encyclopedia",
91 actions = {
92 "consume=meal",
93 "produce=iron_ore:7",
75 }94 }
76 },95 },
77 },96 },
7897
=== modified file 'data/tribes/buildings/productionsites/frisians/mead_brewery/init.lua'
--- data/tribes/buildings/productionsites/frisians/mead_brewery/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/mead_brewery/init.lua 2018-09-11 16:57:31 +0000
@@ -70,8 +70,8 @@
70 descname = _"brewing mead",70 descname = _"brewing mead",
71 actions = {71 actions = {
72 "return=skipped unless economy needs mead or workers need experience",72 "return=skipped unless economy needs mead or workers need experience",
73 "consume=barley water honey",
73 "sleep=35000",74 "sleep=35000",
74 "consume=barley water honey",
75 "animate=working 35000",75 "animate=working 35000",
76 "produce=mead"76 "produce=mead"
77 }77 }
@@ -80,9 +80,9 @@
80 -- TRANSLATORS: Completed/Skipped/Did not start brewing beer because ...80 -- TRANSLATORS: Completed/Skipped/Did not start brewing beer because ...
81 descname = _"brewing beer",81 descname = _"brewing beer",
82 actions = {82 actions = {
83 "return=skipped unless economy needs beer or workers need experience",83 "return=skipped unless economy needs beer",
84 "consume=barley water",
84 "sleep=30000",85 "sleep=30000",
85 "consume=barley water",
86 "animate=working 30000",86 "animate=working 30000",
87 "produce=beer"87 "produce=beer"
88 }88 }
8989
=== modified file 'data/tribes/buildings/productionsites/frisians/recycling_center/init.lua'
--- data/tribes/buildings/productionsites/frisians/recycling_center/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/recycling_center/init.lua 2018-09-11 16:57:31 +0000
@@ -96,9 +96,9 @@
96 descname = pgettext("frisians_building", "recycling iron"),96 descname = pgettext("frisians_building", "recycling iron"),
97 actions = {97 actions = {
98 "return=skipped unless economy needs iron",98 "return=skipped unless economy needs iron",
99 "sleep=40000",
100 "consume=scrap_iron:2 coal",99 "consume=scrap_iron:2 coal",
101 "animate=working_metal 40000",100 "animate=working_metal 40000",
101 "sleep=40000",
102 "produce=iron:2"102 "produce=iron:2"
103 }103 }
104 },104 },
@@ -107,9 +107,9 @@
107 descname = pgettext("frisians_building", "recycling iron and gold"),107 descname = pgettext("frisians_building", "recycling iron and gold"),
108 actions = {108 actions = {
109 "return=skipped unless economy needs iron or economy needs gold",109 "return=skipped unless economy needs iron or economy needs gold",
110 "sleep=40000",
111 "consume=scrap_metal_mixed:2 coal",110 "consume=scrap_metal_mixed:2 coal",
112 "animate=working_metal 40000",111 "animate=working_metal 40000",
112 "sleep=40000",
113 "produce=iron gold"113 "produce=iron gold"
114 }114 }
115 },115 },
116116
=== modified file 'data/tribes/buildings/productionsites/frisians/rockmine/init.lua'
--- data/tribes/buildings/productionsites/frisians/rockmine/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/rockmine/init.lua 2018-09-11 16:57:31 +0000
@@ -65,15 +65,29 @@
65 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...65 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
66 descname = _"mining granite",66 descname = _"mining granite",
67 actions = {67 actions = {
68 "sleep=45000",68 "sleep=5000",
69 "return=skipped unless economy needs granite",69 "return=skipped unless economy needs granite",
70 "consume=ration",70 "consume=ration",
71 "animate=working 20000",71 "sleep=38000",
72 "call=mine_produce",
73 "call=mine_produce",
74 "return=no_stats"
75 }
76 },
77 mine_produce = {
78 descname = _"mining granite",
79 actions = {
80 "animate=working 21000",
72 "mine=stones 3 50 5 20",81 "mine=stones 3 50 5 20",
73 "produce=granite",82 "produce=granite",
74 "animate=working 20000",83 }
75 "mine=stones 3 50 5 20",84 },
76 "produce=granite"85 encyclopedia = {
86 -- just a dummy program to fix encyclopedia
87 descname = "encyclopedia",
88 actions = {
89 "consume=ration",
90 "produce=granite:2",
77 }91 }
78 },92 },
79 },93 },
8094
=== modified file 'data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua'
--- data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua 2018-07-19 09:40:06 +0000
+++ data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua 2018-09-11 16:57:31 +0000
@@ -63,18 +63,34 @@
63 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...63 -- TRANSLATORS: Completed/Skipped/Did not start mining granite because ...
64 descname = _"mining granite",64 descname = _"mining granite",
65 actions = {65 actions = {
66 "sleep=40000",66 "sleep=5000",
67 "return=skipped unless economy needs granite",67 "return=skipped unless economy needs granite",
68 "consume=meal",68 "consume=meal",
69 "animate=working 12000",69 "sleep=34900",
70 "mine=stones 3 100 10 5",70 "call=mine_produce",
71 "produce=granite",71 "call=mine_produce",
72 "animate=working 12000",72 "call=mine_produce",
73 "mine=stones 3 100 10 5",73 "call=mine_produce",
74 "produce=granite",74 "call=mine_produce",
75 "animate=working 12000",75 "call=mine_produce",
76 "mine=stones 3 100 10 5",76 "call=mine_produce",
77 "produce=granite"77 "return=no_stats"
78 }
79 },
80 mine_produce = {
81 descname = _"mining granite",
82 actions = {
83 "animate=working 8700",
84 "mine=stones 3 100 10 5",
85 "produce=granite",
86 }
87 },
88 encyclopedia = {
89 -- just a dummy program to fix encyclopedia
90 descname = "encyclopedia",
91 actions = {
92 "consume=meal",
93 "produce=granite:7",
78 }94 }
79 },95 },
80 },96 },
8197
=== modified file 'data/tribes/buildings/productionsites/frisians/sewing_room/init.lua'
--- data/tribes/buildings/productionsites/frisians/sewing_room/init.lua 2018-07-09 09:25:35 +0000
+++ data/tribes/buildings/productionsites/frisians/sewing_room/init.lua 2018-09-11 16:57:31 +0000
@@ -58,10 +58,11 @@
58 -- TRANSLATORS: Completed/Skipped/Did not start sewing fur garment because ...58 -- TRANSLATORS: Completed/Skipped/Did not start sewing fur garment because ...
59 descname = _"sewing fur garment",59 descname = _"sewing fur garment",
60 actions = {60 actions = {
61 -- time total: 40 + 3.6
61 "sleep=20000",62 "sleep=20000",
62 "return=skipped unless economy needs fur_garment or workers need experience",63 "return=skipped unless economy needs fur_garment or workers need experience",
63 "consume=fur:2",64 "consume=fur:2",
64 "animate=working 25000",65 "animate=working 20000",
65 "produce=fur_garment"66 "produce=fur_garment"
66 },67 },
67 },68 },
6869
=== modified file 'data/tribes/buildings/productionsites/frisians/smokery/init.lua'
--- data/tribes/buildings/productionsites/frisians/smokery/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/smokery/init.lua 2018-09-11 16:57:31 +0000
@@ -73,8 +73,8 @@
73 descname = _"smoking fish",73 descname = _"smoking fish",
74 actions = {74 actions = {
75 "return=skipped unless economy needs smoked_fish",75 "return=skipped unless economy needs smoked_fish",
76 "sleep=16000",
77 "consume=fish:2 log",76 "consume=fish:2 log",
77 "sleep=16000",
78 "animate=working 30000",78 "animate=working 30000",
79 "produce=smoked_fish:2"79 "produce=smoked_fish:2"
80 },80 },
@@ -85,8 +85,8 @@
85 actions = {85 actions = {
86 "return=skipped when site has fish:2 and economy needs smoked_fish",86 "return=skipped when site has fish:2 and economy needs smoked_fish",
87 "return=skipped unless economy needs smoked_meat",87 "return=skipped unless economy needs smoked_meat",
88 "sleep=16000",
89 "consume=meat:2 log",88 "consume=meat:2 log",
89 "sleep=16000",
90 "animate=working 30000",90 "animate=working 30000",
91 "produce=smoked_meat:2"91 "produce=smoked_meat:2"
92 },92 },
9393
=== modified file 'data/tribes/buildings/productionsites/frisians/tailors_shop/init.lua'
--- data/tribes/buildings/productionsites/frisians/tailors_shop/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/tailors_shop/init.lua 2018-09-11 16:57:31 +0000
@@ -70,10 +70,11 @@
70 -- TRANSLATORS: Completed/Skipped/Did not start sewing studded fur garment because ...70 -- TRANSLATORS: Completed/Skipped/Did not start sewing studded fur garment because ...
71 descname = _"sewing studded fur garment",71 descname = _"sewing studded fur garment",
72 actions = {72 actions = {
73 -- time total: 50 + 3.6
73 "return=skipped unless economy needs fur_garment_studded",74 "return=skipped unless economy needs fur_garment_studded",
74 "sleep=45000",75 "sleep=25000",
75 "consume=fur_garment iron",76 "consume=fur_garment iron",
76 "animate=working 45000",77 "animate=working 25000",
77 "produce=fur_garment_studded"78 "produce=fur_garment_studded"
78 },79 },
79 },80 },
@@ -81,10 +82,11 @@
81 -- TRANSLATORS: Completed/Skipped/Did not start sewing golden fur garment because ...82 -- TRANSLATORS: Completed/Skipped/Did not start sewing golden fur garment because ...
82 descname = _"sewing golden fur garment",83 descname = _"sewing golden fur garment",
83 actions = {84 actions = {
85 -- time total: 50 + 3.6
84 "return=skipped unless economy needs fur_garment_golden",86 "return=skipped unless economy needs fur_garment_golden",
85 "sleep=47000",87 "sleep=25000",
86 "consume=fur_garment iron gold",88 "consume=fur_garment iron gold",
87 "animate=working 61000",89 "animate=working 25000",
88 "produce=fur_garment_golden"90 "produce=fur_garment_golden"
89 },91 },
90 },92 },
9193
=== modified file 'data/tribes/buildings/productionsites/frisians/tavern/init.lua'
--- data/tribes/buildings/productionsites/frisians/tavern/init.lua 2018-09-06 08:21:35 +0000
+++ data/tribes/buildings/productionsites/frisians/tavern/init.lua 2018-09-11 16:57:31 +0000
@@ -73,11 +73,13 @@
73 -- TRANSLATORS: Completed/Skipped/Did not start preparing only one ration because ... (can produce more efficient when supply is good)73 -- TRANSLATORS: Completed/Skipped/Did not start preparing only one ration because ... (can produce more efficient when supply is good)
74 descname = _"preparing only one ration",74 descname = _"preparing only one ration",
75 actions = {75 actions = {
76 -- time total: 49.5
76 "return=skipped unless economy needs ration",77 "return=skipped unless economy needs ration",
77 "return=skipped when site has fruit,bread_frisians and site has smoked_fish,smoked_meat",78 "return=skipped when site has fruit,bread_frisians and site has smoked_fish,smoked_meat",
78 "sleep=21000",79 "sleep=5000",
79 "consume=fruit,bread_frisians,smoked_fish,smoked_meat",80 "consume=fruit,bread_frisians,smoked_fish,smoked_meat",
80 "animate=working 28500",81 "animate=working 34500",
82 "sleep=10000",
81 "produce=ration"83 "produce=ration"
82 },84 },
83 },85 },
@@ -85,10 +87,12 @@
85 -- TRANSLATORS: Completed/Skipped/Did not start preparing rations because ...87 -- TRANSLATORS: Completed/Skipped/Did not start preparing rations because ...
86 descname = _"preparing rations",88 descname = _"preparing rations",
87 actions = {89 actions = {
90 -- time total: 66
88 "return=skipped unless economy needs ration",91 "return=skipped unless economy needs ration",
92 "sleep=5000",
89 "consume=fruit,bread_frisians smoked_fish,smoked_meat",93 "consume=fruit,bread_frisians smoked_fish,smoked_meat",
90 "sleep=28000",94 "animate=working 51000",
91 "animate=working 38000",95 "sleep=10000",
92 "produce=ration:2"96 "produce=ration:2"
93 },97 },
94 },98 },
9599
=== modified file 'data/tribes/buildings/trainingsites/atlanteans/dungeon/init.lua'
--- data/tribes/buildings/trainingsites/atlanteans/dungeon/init.lua 2017-11-18 21:23:09 +0000
+++ data/tribes/buildings/trainingsites/atlanteans/dungeon/init.lua 2018-09-11 16:57:31 +0000
@@ -112,6 +112,7 @@
112 },112 },
113113
114 aihints = {114 aihints = {
115 trainingsites_max_percent = 40,
115 prohibited_till = 1500,116 prohibited_till = 1500,
116 very_weak_ai_limit = 0,117 very_weak_ai_limit = 0,
117 weak_ai_limit = 1118 weak_ai_limit = 1
118119
=== modified file 'data/tribes/buildings/trainingsites/barbarians/battlearena/init.lua'
--- data/tribes/buildings/trainingsites/barbarians/battlearena/init.lua 2017-11-18 21:23:09 +0000
+++ data/tribes/buildings/trainingsites/barbarians/battlearena/init.lua 2018-09-11 16:57:31 +0000
@@ -46,6 +46,7 @@
46 },46 },
4747
48 aihints = {48 aihints = {
49 trainingsites_max_percent = 25,
49 prohibited_till = 900,50 prohibited_till = 900,
50 very_weak_ai_limit = 1,51 very_weak_ai_limit = 1,
51 weak_ai_limit = 252 weak_ai_limit = 2
5253
=== modified file 'data/tribes/buildings/trainingsites/empire/arena/init.lua'
--- data/tribes/buildings/trainingsites/empire/arena/init.lua 2017-11-18 21:23:09 +0000
+++ data/tribes/buildings/trainingsites/empire/arena/init.lua 2018-09-11 16:57:31 +0000
@@ -37,7 +37,7 @@
37 },37 },
3838
39 aihints = {39 aihints = {
40 trainingsites_max_percent = 20,40 trainingsites_max_percent = 10,
41 prohibited_till = 900,41 prohibited_till = 900,
42 very_weak_ai_limit = 1,42 very_weak_ai_limit = 1,
43 weak_ai_limit = 243 weak_ai_limit = 2
4444
=== modified file 'data/tribes/buildings/trainingsites/empire/colosseum/init.lua'
--- data/tribes/buildings/trainingsites/empire/colosseum/init.lua 2017-11-18 21:23:09 +0000
+++ data/tribes/buildings/trainingsites/empire/colosseum/init.lua 2018-09-11 16:57:31 +0000
@@ -33,6 +33,7 @@
33 },33 },
3434
35 aihints = {35 aihints = {
36 trainingsites_max_percent = 25,
36 prohibited_till = 1200,37 prohibited_till = 1200,
37 very_weak_ai_limit = 1,38 very_weak_ai_limit = 1,
38 weak_ai_limit = 239 weak_ai_limit = 2
3940
=== modified file 'data/tribes/buildings/trainingsites/frisians/training_arena/init.lua'
--- data/tribes/buildings/trainingsites/frisians/training_arena/init.lua 2018-07-18 14:33:41 +0000
+++ data/tribes/buildings/trainingsites/frisians/training_arena/init.lua 2018-09-11 16:57:31 +0000
@@ -42,6 +42,7 @@
42 },42 },
4343
44 aihints = {44 aihints = {
45 trainingsites_max_percent = 40,
45 prohibited_till = 1500,46 prohibited_till = 1500,
46 very_weak_ai_limit = 0,47 very_weak_ai_limit = 0,
47 weak_ai_limit = 148 weak_ai_limit = 1
4849
=== modified file 'data/tribes/scripting/help/ware_help.lua'
--- data/tribes/scripting/help/ware_help.lua 2018-01-10 16:21:50 +0000
+++ data/tribes/scripting/help/ware_help.lua 2018-09-11 16:57:31 +0000
@@ -53,52 +53,63 @@
53 -- TRANSLATORS: Ware Encyclopedia: A building producing a ware53 -- TRANSLATORS: Ware Encyclopedia: A building producing a ware
54 result = result .. h2(_"Producer")54 result = result .. h2(_"Producer")
55 result = result .. dependencies({building, ware_description}, building.descname)55 result = result .. dependencies({building, ware_description}, building.descname)
56
57 -- Find out which programs in the building produce this ware
58 local producing_programs = {}56 local producing_programs = {}
59 for j, program_name in ipairs(building.production_programs) do57 if (building.is_mine) then
60 for ware, amount in pairs(building:produced_wares(program_name)) do58 -- Find out which programs in the building produce this ware for the mines we skip the real production and take a dummy "encyclopedia" program
61 if (ware_description.name == ware) then59 -- TODO(GunChleoc): Reimplement production programs as a proper tree, so that we can get rid of this hack and of the special case for mines.
62 table.insert(producing_programs, program_name)60 for j, program_name in ipairs(building.production_programs) do
63 end61 for ware, amount in pairs(building:produced_wares(program_name)) do
64 end62 local consumes = building:consumed_wares_workers(program_name)
65 end63 if (ware_description.name == ware and #consumes > 0) then
6664 table.insert(producing_programs, program_name)
67 -- Now collect all wares produced by the filtered programs65 end
68 local produced_wares_strings = {}66 end
69 local produced_wares_counters = {}67 end
70 for j, program_name in ipairs(producing_programs) do68 else
71 local produced_wares_amount = {}69 -- Find out which programs in the building produce this ware
72 produced_wares_counters[program_name] = 070 for j, program_name in ipairs(building.production_programs) do
73 for ware, amount in pairs(building:produced_wares(program_name)) do71 for ware, amount in pairs(building:produced_wares(program_name)) do
74 if (produced_wares_amount[ware] == nil) then72 if (ware_description.name == ware) then
75 produced_wares_amount[ware] = 073 table.insert(producing_programs, program_name)
76 end74 end
77 produced_wares_amount[ware] = produced_wares_amount[ware] + amount75 end
78 produced_wares_counters[program_name] = produced_wares_counters[program_name] + amount76 end
79 end77 end
80 local produced_wares_string = ""78
81 for ware, amount in pairs(produced_wares_amount) do79 -- Now collect all wares produced by the filtered programs
82 local ware_descr = wl.Game():get_ware_description(ware)80 local produced_wares_strings = {}
83 produced_wares_string = produced_wares_string81 local produced_wares_counters = {}
84 .. help_ware_amount_line(ware_descr, amount)82 for j, program_name in ipairs(producing_programs) do
85 end83 local produced_wares_amount = {}
86 produced_wares_strings[program_name] = produced_wares_string84 produced_wares_counters[program_name] = 0
87 end85 for ware, amount in pairs(building:produced_wares(program_name)) do
8886 if (produced_wares_amount[ware] == nil) then
89 -- Now collect the consumed wares for each filtered program and print the program info87 produced_wares_amount[ware] = 0
90 for j, program_name in ipairs(producing_programs) do88 end
91 result = result .. help_consumed_wares_workers(tribe, building, program_name)89 produced_wares_amount[ware] = produced_wares_amount[ware] + amount
92 if (produced_wares_counters[program_name] > 0) then90 produced_wares_counters[program_name] = produced_wares_counters[program_name] + amount
93 result = result91 end
94 -- TRANSLATORS: Ware Encyclopedia: Wares produced by a productionsite92 local produced_wares_string = ""
95 .. h3(ngettext("Ware produced:", "Wares produced:", produced_wares_counters[program_name]))93 for ware, amount in pairs(produced_wares_amount) do
96 .. produced_wares_strings[program_name]94 local ware_descr = wl.Game():get_ware_description(ware)
97 end95 produced_wares_string = produced_wares_string
98 end96 .. help_ware_amount_line(ware_descr, amount)
9997 end
98 produced_wares_strings[program_name] = produced_wares_string
99 end
100
101 -- Now collect the consumed wares for each filtered program and print the program info
102 for j, program_name in ipairs(producing_programs) do
103 result = result .. help_consumed_wares_workers(tribe, building, program_name)
104 if (produced_wares_counters[program_name] > 0) then
105 result = result
106 -- TRANSLATORS: Ware Encyclopedia: Wares produced by a productionsite
107 .. h3(ngettext("Ware produced:", "Wares produced:", produced_wares_counters[program_name]))
108 .. produced_wares_strings[program_name]
109 end
110 end
111 end
100 end112 end
101 end
102 return result113 return result
103end114end
104115
105116
=== modified file 'data/txts/developers.json'
--- data/txts/developers.json 2018-09-03 08:00:41 +0000
+++ data/txts/developers.json 2018-09-11 16:57:31 +0000
@@ -390,6 +390,7 @@
390 "members":[390 "members":[
391 "Matt Howe (mdhowe)",391 "Matt Howe (mdhowe)",
392 "Samuel Tilly (eldamar)",392 "Samuel Tilly (eldamar)",
393 "WorldSavior",
393 "and many, many more (thank you for everything you've done)"394 "and many, many more (thank you for everything you've done)"
394 ]395 ]
395 }396 }
396397
=== modified file 'src/logic/map_objects/tribes/production_program.cc'
--- src/logic/map_objects/tribes/production_program.cc 2018-09-09 10:17:40 +0000
+++ src/logic/map_objects/tribes/production_program.cc 2018-09-11 16:57:31 +0000
@@ -1163,10 +1163,11 @@
1163 totalstart += start_amount;1163 totalstart += start_amount;
1164 totalchance += 8 * amount;1164 totalchance += 8 * amount;
11651165
1166 // Add penalty for fields that are running out1166 // Add penalty for fields that are running out
1167 // Except for totally depleted fields or wrong ressource fields
1168 // if we already know there is no ressource (left) we won't mine there
1167 if (amount == 0)1169 if (amount == 0)
1168 // we already know it's completely empty, so punish is less1170 totalchance += 0;
1169 totalchance += 1;
1170 else if (amount <= 2)1171 else if (amount <= 2)
1171 totalchance += 6;1172 totalchance += 6;
1172 else if (amount <= 4)1173 else if (amount <= 4)
11731174
=== modified file 'src/logic/map_objects/tribes/worker.cc'
--- src/logic/map_objects/tribes/worker.cc 2018-09-10 05:59:47 +0000
+++ src/logic/map_objects/tribes/worker.cc 2018-09-11 16:57:31 +0000
@@ -137,10 +137,11 @@
137 totalres += amount;137 totalres += amount;
138 totalchance += 8 * amount;138 totalchance += 8 * amount;
139139
140 // Add penalty for fields that are running out140 // Add penalty for fields that are running out
141 // Except for totally depleted fields or wrong ressource fields
142 // if we already know there is no ressource (left) we won't mine there
141 if (amount == 0)143 if (amount == 0)
142 // we already know it's completely empty, so punish is less144 totalchance += 0;
143 totalchance += 1;
144 else if (amount <= 2)145 else if (amount <= 2)
145 totalchance += 6;146 totalchance += 6;
146 else if (amount <= 4)147 else if (amount <= 4)

Subscribers

People subscribed via source and target branches

to status/vote changes: