pokemongo-dev-contrib / pokemongo-json-pokedex

Transform the data from the Pokemon GO master files to a better readable & processable JSON file.
Apache License 2.0
54 stars 14 forks source link

Add Items #12

Closed BrunnerLivio closed 6 years ago

BrunnerLivio commented 6 years ago

Metadata

JSON Key: itemSettngs Outputfile: item.json Unanswered Questions:

Example

{
    "templateId": "ITEM_BLUK_BERRY",
    "itemSettings": {
        "itemId": "ITEM_BLUK_BERRY",
        "itemType": "ITEM_TYPE_FOOD",
        "category": "ITEM_CATEGORY_FOOD",
        "dropTrainerLevel": 100,
        "food": {
            "itemEffect": ["ITEM_EFFECT_CAP_NO_MOVEMENT"],
            "itemEffectPercent": [1],
            "growthPercent": 0.1
        }
    }
}

Expected Output

{
    "id": "ITEM_BLUK_BERRY",
    "name": "Bluk Berry",
    "category": {
         "id": "ITEM_CATEGORY_FOOD",
         "name": "Food"
    },
   "dropTrainerLevel": 100
}
feralheart commented 6 years ago

food.itemEffect: It's needed becouse it show's what the berry do. Possible input's right now:

food.itemEffectPercent: This says that how effective what they do. For example on candy award (Pinap Berry) it's value is 2 and we got double candy with Pinap

food.growthPercent: Maybe a future feature?

BrunnerLivio commented 6 years ago

Alright, started a new branch. See #13