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

[Endpoint]: /api/breeding #97

Open
maael opened this issue Jul 30, 2021 · 0 comments
Open

[Endpoint]: /api/breeding #97

maael opened this issue Jul 30, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@maael
Copy link
Owner

maael commented Jul 30, 2021

This is a rough dump of what I had in mind for the breeding endpoint - I'm not sure how useful it will be, and any alterations/suggestions are welcome.

Endpoint: /api/breeding
Method: POST

Request Body:

{
  "male": {
    "temtem": id or name?,
    "breedingItem": "item name",
    "isLuma": boolean,  
    "stats": {
      "hp": number,
      "sta": number,
      "spd": number,
      "atk": number,
      "def": number,
      "spatk": number,
      "spdef": number,
      "total": number
    },
  },
  "female": {
    "temtem": id or name?,
    "breedingItem": "item name",
    "isLuma": boolean,  
    "stats": {
      "hp": number,
      "sta": number,
      "spd": number,
      "atk": number,
      "def": number,
      "spatk": number,
      "spdef": number,
      "total": number
    },
  }
}

Response:

{
  "temtem": id or name?, //Expandable with ?expand query param to include whole temtem object, will be the female
  "eggTechniques": Technique[],
  "lumaChance": number,
  "trait1": Trait[], // List of possible traits based on held items etc
  "trait2": Trait[], // List of possible traits based on held items etc
  "stats": {
    "hp": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },
    "sta": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },,
    "spd": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },,
    "atk": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },,
    "def": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },,
    "spatk": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },,
    "spdef": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },
    "total": { // Based on held items and temtems
      "min": number,
      "minChance": 20,
      "max": number,
      "maxChance": 40,
      "avg": number, // Average rounded up
      "avgChance: 40,
    },
  },
}
@maael maael added enhancement New feature or request help wanted Extra attention is needed labels Jul 30, 2021
@maael maael mentioned this issue Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant