Latest Posts

Topic: Shipyards Production

stonerl
Avatar
Joined: 2018-07-30, 00:03
Posts: 95
Ranking
Likes to be here
Location: Earth
Posted at: 2018-09-04, 15:59

Currently 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. I made some changes to the shipyards of all tribes, the code can be found on Launchpad.

Basically one building step of ship is divided into 2 working steps of the shipyard and therefore will increase productivity by 10%. Instead of only 5%.

Here you can see the atlanteans shipyard:

   programs = {
      work = {
         -- TRANSLATORS: Completed/Skipped/Did not start working because ...
         descname = _"working",
         actions = {
            "call=ship on failure fail",
            "call=ship_preparation",
            "return=no_stats"
         }
      },
      ship = {
         -- TRANSLATORS: Completed/Skipped/Did not start constructing a ship because ...
         descname = _"constructing a ship",
         actions = {
            "checkmap=seafaring",
            "sleep=20000",
            "construct=atlanteans_shipconstruction buildship 6",
         }
      },
      ship_preparation = {
         descname = _"working",
         actions = {
            "animate=working 35000",
         }
      },
   },

Maybe the sleeptime could be divided into 2x 10s. 10s before construct and 10s after.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2626
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-09-05, 07:34

+1 for splitting up the sleep time. It would look nicer with the animation not to make the building switch over to preparation the instant that the worker is back.


Busy indexing nil values

Top Quote
stonerl
Avatar
Joined: 2018-07-30, 00:03
Posts: 95
Ranking
Likes to be here
Location: Earth
Posted at: 2018-09-05, 11:53

Looks as follows, now:

      ship = {
         -- TRANSLATORS: Completed/Skipped/Did not start constructing a ship because ...
         descname = _"constructing a ship",
         actions = {
            "checkmap=seafaring",
            "sleep=10000",
            "construct=atlanteans_shipconstruction buildship 6",
            "sleep=10000",
         }
      },

Top Quote