Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.55 KB

HallsOfVrbansk.pod

File metadata and controls

60 lines (38 loc) · 1.55 KB

Halls Of Vrbansk Methods

Halls Of Vrbansk is accessible via the URL /hallsofvrbansk.

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

get_upgradable_buildings ( session_id, building_id )

Returns a list of buildings that can be upgraded by the Halls of Vrbansk.

{
   "halls_available" : 231,  # Includes total of plans and built Halls.
   "status" : { ... },
   "buildings" : [
       {
           "name" : "Oracle of Anid",
           "id" : "id-goes-here",
           "x" : -3,
           "y" : 2,
           "image" : "oracleanid1",
           "level" : 1,
           "url" : "/oracleofanid"
       },
       ...
   ]
}

session_id

A session id.

building_id

The unique id of the Halls of Vrbansk.

sacrifice_to_upgrade ( session_id, building_id, upgrade_building_id )

Sacrifices a number of the Halls of Vrbansk to upgrade a building.

{
   "status" : { ... }
}

NOTE: In all likelyhood the Halls of Vrbansk that the player is looking at when they call this method will be destroyed. The building will return a status, but then you should close whatever screen you have open for it and refresh the planet surface. The needs_surface_refresh flag will be set in the body status on the return. You should wait for the return to close the building though, in case of an exception.

session_id

A session id.

building_id

The unique id of the Halls of Vrbansk.

upgrade_building_id

The unique id of the building you wish to upgrade.