Skip to content

ogamed-service /bot/check-fleet endpoint#155

Open
0xE232FE wants to merge 1 commit into
alaingilbert:developfrom
0xE232FE:develop-b82c0f4aac5c11d051ae469394ee4cdceb761901
Open

ogamed-service /bot/check-fleet endpoint#155
0xE232FE wants to merge 1 commit into
alaingilbert:developfrom
0xE232FE:develop-b82c0f4aac5c11d051ae469394ee4cdceb761901

Conversation

@0xE232FE
Copy link
Copy Markdown
Contributor

@0xE232FE 0xE232FE commented May 22, 2025

added planet endpoint to get fleet-cargo, -capacity, fuel-consumption and flight-duration

Example:
curl 127.0.0.1:8080/bot/planets/123/check-fleet -d 'ships=202,1&speed=1&galaxy=1&system=384&position=5&type=1&mission=4&metal=1&crystal=2&deuterium=3'

{
  "Status": "ok",
  "Code": 200,
  "Message": "",
  "Result": {
    "origin": {
      "Galaxy": 1,
      "System": 384,
      "Position": 4,
      "Type": 1
    },
    "destination": {
      "Galaxy": 1,
      "System": 384,
      "Position": 5,
      "Type": 1
    },
    "flightTime": 19619,
    "fuel": 2,
    "resources": {
      "Metal": 1,
      "Crystal": 2,
      "Deuterium": 3,
      "Energy": 0,
      "Darkmatter": 0,
      "Population": 0,
      "Food": 0
    },
    "cargo": 5750,
    "cargoUsed": 6,
    "ships": {
      "LightFighter": 0,
      "HeavyFighter": 0,
      "Cruiser": 0,
      "Battleship": 0,
      "Battlecruiser": 0,
      "Bomber": 0,
      "Destroyer": 0,
      "Deathstar": 0,
      "SmallCargo": 1,
      "LargeCargo": 0,
      "ColonyShip": 0,
      "Recycler": 0,
      "EspionageProbe": 0,
      "SolarSatellite": 0,
      "Crawler": 0,
      "Reaper": 0,
      "Pathfinder": 0
    },
    "mission": 4,
    "speed": 1
  }
}

added planet endpoint to get fleet-cargo, -capacity, fuel-consumption and flight-duration

Example:
curl 127.0.0.1:8080/bot/planets/123/send-fleet -d 'ships=202,1&speed=1&galaxy=1&system=384&position=5&type=1&mission=4&metal=1&crystal=2&deuterium=3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant