Code Monkey home page Code Monkey logo

Comments (9)

kasagon avatar kasagon commented on May 29, 2024 2

It would be nice if we could adjust those settings in the config.properties file.

from pokemongobot.

mroge009 avatar mroge009 commented on May 29, 2024 1

In the code you can declare how much of each item you would like to keep.
I agree however that it would be nice to be able to modify this from the config file.
Ill get started on that.

val uselessItems = mapOf(
            Pair(ItemId.ITEM_REVIVE, 20),
            Pair(ItemId.ITEM_MAX_REVIVE, 10),
            Pair(ItemId.ITEM_POTION, 0),
            Pair(ItemId.ITEM_SUPER_POTION, 20),
            Pair(ItemId.ITEM_HYPER_POTION, 50),
            Pair(ItemId.ITEM_MAX_POTION, 50),
            Pair(ItemId.ITEM_POKE_BALL, 100),
            Pair(ItemId.ITEM_GREAT_BALL, 100),
            Pair(ItemId.ITEM_ULTRA_BALL, 100),
            Pair(ItemId.ITEM_MASTER_BALL, 10),
            Pair(ItemId.ITEM_RAZZ_BERRY, 30)
    )

This is how mine is set up currently. Drop all potions, and try to keep at least 100 of each ball.

from pokemongobot.

mroge009 avatar mroge009 commented on May 29, 2024 1

Config.properties

# Amount of useless items to keep
ITEM_REVIVE=20
ITEM_MAX_REVIVE=0
ITEM_POTION=0
ITEM_SUPER_POTION=20
ITEM_HYPER_POTION=20
ITEM_MAX_POTION=20
ITEM_POKE_BALL=100
ITEM_GREAT_BALL=100
ITEM_ULTRA_BALL=100
ITEM_MASTER_BALL=100
ITEM_RAZZ_BERRY=30

Settings.kt

val uselessItems = mapOf(
            Pair(ItemId.ITEM_REVIVE, getPropertyIfSet("Amount of useless items to keep", "ITEM_REVIVE", 20, String::toInt)),
            Pair(ItemId.ITEM_MAX_REVIVE, getPropertyIfSet("Amount of useless items to keep", "ITEM_MAX_REVIVE", 10, String::toInt)),
            Pair(ItemId.ITEM_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_POTION", 0, String::toInt)),
            Pair(ItemId.ITEM_SUPER_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_SUPER_POTION", 30, String::toInt)),
            Pair(ItemId.ITEM_HYPER_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_HYPER_POTION", 50, String::toInt)),
            Pair(ItemId.ITEM_MAX_POTION, getPropertyIfSet("Amount of useless items to keep", "ITEM_MAX_POTION", 50, String::toInt)),
            Pair(ItemId.ITEM_POKE_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_POKE_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_GREAT_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_GREAT_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_ULTRA_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_ULTRA_BALL", 50, String::toInt)),
            Pair(ItemId.ITEM_MASTER_BALL, getPropertyIfSet("Amount of useless items to keep", "ITEM_MASTER_BALL", 10, String::toInt)),
            Pair(ItemId.ITEM_RAZZ_BERRY, getPropertyIfSet("Amount of useless items to keep", "ITEM_RAZZ_BERRY", 50, String::toInt))
    )

from pokemongobot.

leadboots5 avatar leadboots5 commented on May 29, 2024

working as intended. its set to only keep 20 of them. you can make the change yourself or wait till its changed(someone is working on it).

from pokemongobot.

KyleBoyer avatar KyleBoyer commented on May 29, 2024

Has this been implemented/merged with the main branch?

from pokemongobot.

CosmoRing avatar CosmoRing commented on May 29, 2024

Not yet, waiting for @jabbink approval.

from pokemongobot.

Smir avatar Smir commented on May 29, 2024

it's just waiting for approval kasagon :)

from pokemongobot.

elliottfeng avatar elliottfeng commented on May 29, 2024

same idea with mine. try it on.

from pokemongobot.

jabbink avatar jabbink commented on May 29, 2024

implemented on master

from pokemongobot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.