Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an endpoint to view speedups etc. #72

Open
phxql opened this issue Feb 15, 2015 · 5 comments
Open

Provide an endpoint to view speedups etc. #72

phxql opened this issue Feb 15, 2015 · 5 comments

Comments

@phxql
Copy link
Owner

phxql commented Feb 15, 2015

Currently there is no way to get, for example, the real build time of a building with applied command center bonus. Provide an endpoint to get the real values with an applied bonus or return the formula so the client can calculate it for himself.

@vlow
Copy link

vlow commented Feb 16, 2015

This can also be done in the same manner as this request: #77

@phxql
Copy link
Owner Author

phxql commented Feb 17, 2015

Done. Looks like this:

  {
    "type": "COMMAND_CENTER",
    "level": 5,
    "buildTime": 150,
    "buildCost": {
      "crystal": 600,
      "gas": 300,
      "energy": 2400
    },
    "description": "Constructs buildings",
    "prerequisites": {
      "buildings": [],
      "technologies": []
    },
    "buildingBuildTimeSpeedUp": 40
  },
 {
    "type": "SHIPYARD",
    "level": 5,
    "buildTime": 300,
    "buildCost": {
      "crystal": 900,
      "gas": 450,
      "energy": 3600
    },
    "description": "Constructs ships",
    "prerequisites": {
      "buildings": [
        {
          "type": "COMMAND_CENTER",
          "level": 1
        },
        {
          "type": "RESEARCH_CENTER",
          "level": 1
        },
        {
          "type": "TELESCOPE",
          "level": 1
        }
      ],
      "technologies": []
    },
    "shipBuildTimeSpeedUp": 40
  },
{
    "type": "RESEARCH_CENTER",
    "level": 5,
    "buildTime": 150,
    "buildCost": {
      "crystal": 600,
      "gas": 300,
      "energy": 2400
    },
    "description": "Researches technology",
    "prerequisites": {
      "buildings": [
        {
          "type": "COMMAND_CENTER",
          "level": 1
        }
      ],
      "technologies": []
    },
    "researchTimeSpeedUp": 40
  }

@phxql phxql closed this as completed in 06686a4 Feb 17, 2015
@phxql
Copy link
Owner Author

phxql commented Feb 17, 2015

Nevertheless it would be great to query the real build time / cost for buildings, researches and ships without needing to apply the bonus manually.

@phxql phxql reopened this Feb 17, 2015
@vlow
Copy link

vlow commented Feb 26, 2015

Is the speed up measured in %?

@phxql
Copy link
Owner Author

phxql commented Mar 7, 2015

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants