Commit graph

54 commits

Author SHA1 Message Date
Kaphotics
cc9cee5d1a Tweak egg move check
Renamed some variables, fixed an internal error
2016-03-12 10:35:17 -08:00
Kaphotics
0ebbcbccb4 Move Legality check rewrite
Moved to checks
Returns why it's invalid
Added base egg move checks -- all eggs need level1 moves, can only be
pushed out. The move table acts as a sliding window; grab a list of
level1 moves, tack on relearn moves, then observe window view (last 4).
Added egg met level check
2016-03-12 09:16:41 -08:00
Kaphotics
c4612e2d9f Legality ContextMenu now returns analysis
Hooked up all the methods and can spit out if invalid.

I plan to put a legality indication where QR! was, but the legality
analysis needs more checks (moves, ability, nickname, ball, fateful...
you get it) and stability.

Have fun playing with the initial legality checks 😄
2016-03-11 19:43:40 -08:00
Kaphotics
b6fca5b306 Add some basic legality checks
Besides moves/encounters, we can check validity of certain traits.
2016-03-10 20:36:32 -08:00