Commit graph

20 commits

Author SHA1 Message Date
Samuel Henrique
382bd801f9 Unifies database and adds pokemon types 2017-06-29 13:40:06 -03:00
Griffin Young
f21446be6e fixed light threshold 2017-06-25 15:39:03 -07:00
Griffin Young
62fceca4fa changed id -> name in light/dark data file 2017-06-25 12:25:40 -07:00
IamCarbonMan
97ce1dafc7 Merge branch 'master' into master 2017-06-25 11:17:58 -07:00
Griffin Young
016c0fc91f added threshold and all options to get_light/get_dark. added full light-dark table. added unit test 2017-06-25 11:12:45 -07:00
Griffin Young
f52c73ed9b added light and dark options 2017-06-24 19:51:50 -07:00
LazoCoder
1a9c69c637 Upgraded compression
Replaced pngquant compression with imageoptim compression.

Quality is better and size is smaller. Backgrounds went from ~30mb -> ~17mb and Samples went from ~7mb to ~4mb.

Also fixed bug with clear | off | disable.
2017-06-24 15:35:15 -04:00
LazoCoder
cfb920fb7c Fixed issue with how the database loads pokemon
If not converted to lowercase it causes problems.
2017-06-21 19:26:14 -04:00
LazoCoder
12a6e04f73 Fixed Value Error
ValueError: '=' alignment not allowed in string format specifier
2017-06-21 19:11:19 -04:00
cclauss
239aad543c List comprehensions, and other simplifications
Use isinstance() for type comparisons.
Use with open() to ensure that file close() happens.
Also random.choice(), str.join(), str.format(), str.partition(), ternary if
2017-06-21 07:40:10 +02:00
Ben Magee
1219b1d7c7 Added get_random_from_region(region) function to the Database class, which picks a random Pokemon from the specified region (passed as a string: johto, kanto, hoenn, sinnoh). Added a wrapper in the main.py file, so a call such as 'pokemon random-johto' can be made to pick a random Pokemon from the Johto region. 2017-06-07 10:03:52 +01:00
LazoCoder
7c43b0c93e Bug fix for FileNotFoundError
Attempt at fixing:
[Errno 2] No such file or directory:
'/Library/Frameworks/Python.framework/Versions/3.5/bin/./Data/pokemon.tx
t'
2017-06-06 16:53:55 -04:00
LazoCoder
392d4a119b Fixed issue with relative path 2017-06-06 12:31:24 -04:00
LazoCoder
44d471826d Fixed index out of bounds bug in random function 2017-04-30 21:58:43 -04:00
LazoCoder
18f5b8f08d Added ability to check what the current pokemon is in the terminal or wallpaper 2017-04-28 19:17:44 -04:00
LazoCoder
7faf120282 Changing wallpaper support 2017-04-28 18:26:00 -04:00
LazoCoder
9838c3eb15 Refactored database, added different ways of retrieving pokemon & made unit test class 2017-04-28 15:51:42 -04:00
LazoCoder
9dc09c1d79 Fixed Pokemon class where __str__ method wasn't working for null values 2017-04-28 04:02:50 -04:00
LazoCoder
87f8cec207 Added random selection and fixed typo in johto getter 2017-04-28 03:55:40 -04:00
LazoCoder
a863512084 Added script creator and a bunch of print methods 2017-04-28 03:46:39 -04:00
Renamed from Source/database.py (Browse further)