Skip to content

Commit

Permalink
Merge to handle new pokemon attack styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurzeh committed Aug 20, 2016
2 parents 9064af3 + d3255a8 commit 0cbb9b0
Show file tree
Hide file tree
Showing 65 changed files with 2,528 additions and 2,527 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ out/
# Personal load details
src/
web/
data/*.db
data/last-location*.json
data/cells-*.json
data/map-caught-*.json
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ install:
- pip install pylint
script:
- python pylint-recursive.py
- python json-validate.py configs/*.json.*
- python -m unittest discover -v -p "*_test.py"
5 changes: 5 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@
* pmquan
* net8q
* SyncX
* umbreon222
* DeXtroTip
* rawgni
* Breeze Ro
* bruno-kenji
68 changes: 59 additions & 9 deletions configs/config.json.cluster.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"location": "SOME_LOCATION",
"gmapkey": "GOOGLE_MAPS_API_KEY",
"encrypt_location": "",
"websocket_server": false,
"heartbeat_threshold": 10,
"tasks": [
{
"type": "HandleSoftBan"
Expand All @@ -20,7 +22,15 @@
}
},
{
"type": "CollectLevelUpReward"
"type": "CompleteTutorial",
"config": {
"enabled": false,
"// set a name": "",
"nickname": ""
}
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
Expand All @@ -39,7 +49,28 @@
}
},
{
"type": "TransferPokemon"
"type": "UpdateLiveInventory",
"config": {
"enabled": false,
"min_interval": 120,
"show_all_multiple_lines": false,
"items": ["pokemon_bag", "space_info", "pokeballs", "greatballs", "ultraballs", "razzberries", "luckyegg"]
}
},
{
"type": "TransferPokemon",
"config": {
"min_free_slot": 5,
"transfer_wait_min": 1,
"transfer_wait_max": 4
}
},
{
"type": "NicknamePokemon",
"config": {
"enabled": false,
"nickname_template": "{iv_pct}_{iv_ads}"
}
},
{
"type": "EvolvePokemon",
Expand All @@ -57,14 +88,20 @@
"type": "RecycleItems",
"config": {
"min_empty_space": 15,
"max_balls_keep": 150,
"max_potions_keep": 50,
"max_berries_keep": 70,
"max_revives_keep": 70,
"item_filter": {
"Pokeball": { "keep" : 100 },
"Potion": { "keep" : 10 },
"Super Potion": { "keep" : 20 },
"Hyper Potion": { "keep" : 30 },
"Revive": { "keep" : 30 },
"Razz Berry": { "keep" : 100 }
}
},
"recycle_wait_min": 1,
"recycle_wait_max": 4
}
},
{
Expand All @@ -73,6 +110,8 @@
"catch_visible_pokemon": true,
"catch_lured_pokemon": true,
"min_ultraball_to_keep": 5,
"berry_threshold": 0.35,
"vip_berry_threshold": 0.9,
"catch_throw_parameters": {
"excellent_rate": 0.1,
"great_rate": 0.5,
Expand All @@ -89,11 +128,11 @@
"berry_wait_max": 3,
"changeball_wait_min": 2,
"changeball_wait_max": 3
},
}
}
},
{
"type": "SpinFort"
"type": "SpinFort",
"config": {
"spin_wait_min": 2,
"spin_wait_max": 3
Expand All @@ -109,20 +148,31 @@
],
"forts": {
"avoid_circles": true,
"max_circle_size": 50
"max_circle_size": 50,
"cache_recent_forts": true
},
"pokemon_bag": {
"// if 'show_at_start' is true, it will log all the pokemons in the bag (not eggs) at bot start": {},
"show_at_start": true,
"// if 'show_count' is true, it will show the amount of each pokemon (minimum 1)": {},
"show_count": false,
"// 'pokemon_info' parameter define which info to show for each pokemon": {},
"// the available options are": {},
"// ['cp', 'iv_ads', 'iv_pct', 'ivcp', 'ncp', 'level', 'hp', 'moveset', 'dps']": {},
"pokemon_info": ["cp", "iv_pct"]
},
"websocket_server": false,
"walk_max": 4.16,
"walk_min": 2.16,
"action_wait_min": 1,
"action_wait_max": 4,
"alt_min": 500,
"alt_max": 1000,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"logging_color": true,
"daily_catch_limit": 800,
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
"// Example of always catching Rattata:": {},
Expand Down
Loading

0 comments on commit 0cbb9b0

Please sign in to comment.