Skip to content

Commit

Permalink
Added tracking Gym Leaders beaten (#30)
Browse files Browse the repository at this point in the history
Adds offline tracking for brock_beaten and gym_beaten using hosted items attached to the existing Gym Reward locations
---------

Co-authored-by: Coveleski <1399862+coveleski@users.noreply.github.com>
  • Loading branch information
KamekoSkye and coveleski authored Jun 30, 2024
1 parent ea6ea49 commit 09e72bb
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 5 deletions.
46 changes: 42 additions & 4 deletions items/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -788,14 +788,52 @@
"codes": "moonstone,stone,keyitem"
},
{
"name": "Any Gym Beaten",
"name": "",
"type": "toggle",
"codes": "gym_beaten"
"img": "images/items/doesnotexist.png",
"codes": "brock_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "misty_beaten,gym_beaten"
},
{
"name": "Brock Beaten",
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "surge_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "erika_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "koga_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "sabrina_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"img": "images/items/doesnotexist.png",
"codes": "blaine_beaten,gym_beaten"
},
{
"name": "",
"type": "toggle",
"codes": "brock_beaten"
"img": "images/items/doesnotexist.png",
"codes": "giovanni_beaten,gym_beaten"
},
{
"name": "Helped Bill",
Expand Down
18 changes: 17 additions & 1 deletion locations/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
},
{
"name": "Lt. Surge",
"hosted_item": "surge_beaten",
"chest_unopened_img": "images/trainers/ltsurge.png",
"chest_opened_img": "images/trainers/ltsurge_done.png",
"item_count": 2,
Expand All @@ -60,6 +61,7 @@
},
{
"name": "​Lt. Surge",
"hosted_item": "surge_beaten",
"chest_unopened_img": "images/trainers/ltsurge.png",
"chest_opened_img": "images/trainers/ltsurge_done.png",
"item_count": 1,
Expand Down Expand Up @@ -141,6 +143,7 @@
},
{
"name": "Koga",
"hosted_item": "koga_beaten",
"chest_unopened_img": "images/trainers/koga.png",
"chest_opened_img": "images/trainers/koga_done.png",
"item_count": 2,
Expand All @@ -149,6 +152,7 @@
},
{
"name": "​Koga",
"hosted_item": "koga_beaten",
"chest_unopened_img": "images/trainers/koga.png",
"chest_opened_img": "images/trainers/koga_done.png",
"item_count": 1,
Expand Down Expand Up @@ -364,6 +368,7 @@
},
{
"name": "Erika",
"hosted_item": "erika_beaten",
"chest_unopened_img": "images/trainers/erika.png",
"chest_opened_img": "images/trainers/erika_done.png",
"item_count": 2,
Expand All @@ -372,6 +377,7 @@
},
{
"name": "​Erika",
"hosted_item": "erika_beaten",
"chest_unopened_img": "images/trainers/erika.png",
"chest_opened_img": "images/trainers/erika_done.png",
"item_count": 1,
Expand Down Expand Up @@ -488,6 +494,7 @@
},
{
"name": "Giovanni",
"hosted_item": "giovanni_beaten",
"chest_unopened_img": "images/trainers/giovanni.png",
"chest_opened_img": "images/trainers/giovanni_done.png",
"item_count": 2,
Expand All @@ -496,6 +503,7 @@
},
{
"name": "​Giovanni",
"hosted_item": "giovanni_beaten",
"chest_unopened_img": "images/trainers/giovanni.png",
"chest_opened_img": "images/trainers/giovanni_done.png",
"item_count": 1,
Expand Down Expand Up @@ -549,7 +557,8 @@
"visibility_rules": ["trainer_on"]
},
{
"name": "Brock",
"name": "Brock",
"hosted_item": "brock_beaten",
"chest_unopened_img": "images/trainers/brock.png",
"chest_opened_img": "images/trainers/brock_done.png",
"item_count": 2,
Expand All @@ -558,6 +567,7 @@
},
{
"name": "​Brock",
"hosted_item": "brock_beaten",
"chest_unopened_img": "images/trainers/brock.png",
"chest_opened_img": "images/trainers/brock_done.png",
"item_count": 1,
Expand Down Expand Up @@ -607,6 +617,7 @@
},
{
"name": "Misty",
"hosted_item": "misty_beaten",
"chest_unopened_img": "images/trainers/misty.png",
"chest_opened_img": "images/trainers/misty_done.png",
"item_count": 2,
Expand All @@ -615,6 +626,7 @@
},
{
"name": "​Misty",
"hosted_item": "misty_beaten",
"chest_unopened_img": "images/trainers/misty.png",
"chest_opened_img": "images/trainers/misty_done.png",
"item_count": 1,
Expand Down Expand Up @@ -1611,6 +1623,7 @@
},
{
"name": "Blaine",
"hosted_item": "blaine_beaten",
"chest_unopened_img": "images/trainers/blaine.png",
"chest_opened_img": "images/trainers/blaine_done.png",
"item_count": 2,
Expand All @@ -1619,6 +1632,7 @@
},
{
"name": "​Blaine",
"hosted_item": "blaine_beaten",
"chest_unopened_img": "images/trainers/blaine.png",
"chest_opened_img": "images/trainers/blaine_done.png",
"item_count": 1,
Expand Down Expand Up @@ -1740,6 +1754,7 @@
},
{
"name": "Sabrina",
"hosted_item": "sabrina_beaten",
"chest_unopened_img": "images/trainers/sabrina.png",
"chest_opened_img": "images/trainers/sabrina_done.png",
"item_count": 2,
Expand All @@ -1748,6 +1763,7 @@
},
{
"name": "​Sabrina",
"hosted_item": "sabrina_beaten",
"chest_unopened_img": "images/trainers/sabrina.png",
"chest_opened_img": "images/trainers/sabrina_done.png",
"item_count": 1,
Expand Down

0 comments on commit 09e72bb

Please sign in to comment.