Commit graph

3685 commits

Author SHA1 Message Date
Kurt
234189b627 Add RBY ingame trades
A little bit of logic reorganization
2017-02-22 21:19:34 -08:00
Kaphotics
e7fcee3b62 Merge pull request #879 from Mrtops/patch-2
Update supported save files
2017-02-22 16:37:27 -08:00
Mrtops
ac1d621137 Update supported save files 2017-02-22 12:16:34 -05:00
Kaphotics
0a8dd47bf9 Merge pull request #877 from LegoFigure11/patch-3
Add .gci in the supported file type dropdown
2017-02-22 08:47:53 -08:00
LegoFigure11
3ab2d303f8 Update Main.cs 2017-02-22 19:15:30 +11:00
LegoFigure11
33f1dd3221 Add .gci in the supported file type dropdown 2017-02-22 17:23:20 +11:00
Kurt
19bdcf518e Add dream ball incense breeds
Unbans dream ball species that acquired via breeding while holding
incense.
Closes #876.
2017-02-21 21:38:31 -08:00
Kurt
08436babfa Add empty-pouch consideration
FF is beyond pouch size limits
2017-02-21 19:45:08 -08:00
Kurt
8198bba01b Reorder move source determination
Closes #875
Also removes XY default eggmoves (will be necessary for new legality
checks for prior generations)
2017-02-21 18:10:09 -08:00
Kurt
9edf8615ab Add exclusion for greninja demo gift
Closes #869
2017-02-20 22:03:10 -08:00
Michael Scire
d1039e20f3 WC7 description support for cards with >1 item 2017-02-20 21:46:25 -08:00
Kurt
8136d33c15 Add zygarde forme change->core ability in gen7
Closes #868
2017-02-20 21:19:25 -08:00
Kurt
36624e14e9 Fix 1->7 evo chain disjointing
Original encounter details were replaced, thus breaking the chain at the
current species.

Closes #872
2017-02-20 21:00:49 -08:00
Kurt
c7874f19b6 Fix get all evo chains
init for all possible formats
2017-02-20 20:25:15 -08:00
Kurt
b2f9bf50ec Minor refactoring
Memories are only set by generation 6 games (bank i/o is a single
memory). Only check for gen6 situations.

Generation=2 and Format=1 is not possible, as for 1/2 it's dependent on
format. Would need to detect encounters for gen2 games to determine what
game it originated from.

Tabs->Spaces
2017-02-20 19:40:50 -08:00
Kaphotics
d6574706b1 Merge pull request #863 from javierhimura/master
Past generations legallity tweaks
2017-02-20 17:26:52 -08:00
Kurt
35e9404d79 Fix bagon Focus Energy
clean garc -> unpack -> repack as mini. Only difference was this single
move.
Closes #873
2017-02-20 17:19:04 -08:00
javierhimura
3bcb6a0b57 Merge branch 'kwsch' 2017-02-17 16:19:08 +01:00
javierhimura
a1cca754d7 getMaxLevelGeneration should return met level when pokemon does not HasOriginalMetLocation and is not one of the special cases already considered 2017-02-17 16:16:39 +01:00
javierhimura
56ccddce8d getMaxLevelGeneration should return met level when met level data is lost 2017-02-17 14:56:50 +01:00
Kaphotics
139d08160b Merge pull request #862 from Mrtops/patch-1
Add JKSM and links to sources of resigning services
2017-02-16 07:21:12 -08:00
Mrtops
6c210ad847 final fix 2017-02-16 09:49:25 -05:00
javierhimura
0b0dd21d93 Fix for the last commit 2017-02-16 12:14:10 +01:00
javierhimura
c9bdcdd464 Do not return encounters if maximun level for a generation is 0, is an illegal level encounter 2017-02-16 12:13:06 +01:00
javierhimura
4ccbce5f24 Fix VC2 2017-02-16 12:06:05 +01:00
javierhimura
801b4f97d9 Do not decrease level for VC2 evolved pokemon in gen 1, they could have evolve in gen7 games 2017-02-16 12:01:18 +01:00
javierhimura
f0b4c83365 Create a function to obtain the max and min possible level a given pokemon could have in a given generation 2017-02-16 11:59:07 +01:00
javierhimura
85e25dad5c Fix for VC2 2017-02-16 10:43:27 +01:00
javierhimura
3a830ca682 Check if pokemon is inside an egg in getEvolutionChainsAllGens
Add special conditions for gen1 encounters and chains for spcies in gen2 future evolutions
Use current level to filter encounter slot for pokemon in format 1 and 2
2017-02-16 10:35:14 +01:00
javierhimura
98e11e2332 Remove unnecesary use of linq 2017-02-16 10:33:31 +01:00
javierhimura
26b9308890 Fix in getValidEncounterSlots 2017-02-16 03:03:29 +01:00
javierhimura
036449dfa0 Check future gen evolutions in InhabitedGeneration
Return true when format equals generation
2017-02-16 01:33:17 +01:00
javierhimura
dec2787aef Revert change in form parameter in getValidMoves 2017-02-16 01:23:13 +01:00
javierhimura
2b8cc8ffd5 Fixes 2017-02-16 01:04:48 +01:00
javierhimura
b123218e2c Include the special moves in the filters of level moves and move reminder to avoid duplicates when executing getValidMoves multiple times
Also filter those special moves by generation, to avoid return a gen 5 move when gen 4 is solicitied, even if that only could happen with illegal pokemons
2017-02-16 00:56:54 +01:00
javierhimura
980ffac9d3 Even with met location and met level lost after transfer pokemon from gen 3 to 4, 4 to 5 and 1 to 7 Met Level can still be used to filter some invalid encounter slots, those whose min level is greater that the met level of the pokemon
Even without knowing the real met level, it can be greater than the transfer level
For GB and GBC pokemon the same but with the current level instead. This will make illegal any level 7 glitch Articuno
2017-02-16 00:47:44 +01:00
Mrtops
5c2fac925b fix changes 2017-02-15 18:32:16 -05:00
javierhimura
fc14a2ec50 Tweks in function InhabitedGeneration to take into account future gen evolutions and GB-GBC transfer 2017-02-16 00:05:13 +01:00
javierhimura
8b645de431 Use the list of evolution chains from every generation to search valid moves from a given pokemon 2017-02-15 23:33:59 +01:00
Mrtops
9b3ae94c5c Add JKSM and links to sources of resigning services 2017-02-15 17:20:04 -05:00
javierhimura
3622733ece GenU returns should returns false for VC pokemon 2017-02-15 23:11:01 +01:00
javierhimura
4c04f4eee4 Added function to calculate from a given pokemon evolution chain for all possible generations, every chain will contain only the evolution forms and maximun possible level when the pokemon could exits 2017-02-15 23:10:20 +01:00
javierhimura
b1ecdde41d getEvolutionChain adapted to get evolution chains from previous generations
Excluded future gen evolutions, both evolutions of species that does not exits in the generation expected in the chain, but also evolutions impossible because it requires a level above transfer level
2017-02-15 22:12:06 +01:00
javierhimura
c9af06e2a3 Include RequiresLvlUp info in Lineage 2017-02-15 22:01:39 +01:00
javierhimura
7720e93600 Included min level of evolutions in the Lineage of a Pokemon, used to check evolution legality and to check in what evolutionary forms any pokemon inhabited previous generations 2017-02-15 21:21:23 +01:00
javierhimura
7f9803905d Ignore .vs folder, is a folder where Visual Studio 2015 put all machine and user-specific files 2017-02-15 19:53:25 +01:00
Kurt
f860bd31c7 Add minimum size check for opening files
0bytes -> exception, just use pk2 stored (min size)
2017-02-15 08:29:47 -08:00
Kurt
f001d4d384 Re-add ht memory check for 1->7
GenNumber for VC mons was changed to 1; allow this to be checked.
2017-02-15 08:28:15 -08:00
Kurt
0f45adda89 Handle skipped gens
Expand InhabitedGeneration to actually check if it can inhabit
generation instead of if species can exist on generation
misc behavior tweaks
2017-02-15 00:11:12 -08:00
Kurt
679efcd741 Further tweaks
Handle terminated strings better for 1->7
Indicate RBY encounter origins when transferred to 7+.
Remove check duplication
2017-02-14 22:06:15 -08:00