Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.3 KB

Development.pod

File metadata and controls

54 lines (40 loc) · 1.3 KB

Development Methods

Development is accessible via the URL /development.

The higher the development ministry, the more builds you can put in your build queue.

The list of methods below represents changes and additions to the methods that all Buildings share.

view ( session, building_id )

This method is extended to include details about what's in your build queue.

{
   "building" : { ... },
   "status" : { ... },
   "build_queue" : [
       {
           "building_id" : "building-id-goes-here",
           "name" : "Planetary Commmand",
           "to_level" : 9,
           "seconds_remaining" : 537,
           "x" : 0,
           "y" : 0
       },
       {
           "building_id" : "building-id-goes-here",
           "name" : "Wheat Farm",
           "to_level" : 15,
           "seconds_remaining" : 9748,
           "x" : -1,
           "y" : 4
       }
   ],
   "subsidy_cost" : 8 # the essentia cost to subsidize the build queue
}

subsidize_build_queue ( session_id, building_id )

Allows a player to instantly finish any buildings in their build queue. The cost is returned by the view method. Returns:

{
   "status" : { ... },
   "essentia_spent" : 8
}

session_id

A session id.

building_id

The id of the development ministry.