Commit graph

2617 commits

Author SHA1 Message Date
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
Kurt
dcb30e61a8 Add Festival Plaza name changing
Closes #854
2017-02-14 19:09:10 -08:00
Kurt
2e9f8e19ea Menu sprite distortion fix
Closes #858 by adding in updated Steelix sprite, uses ripped files
re-saved in paint.net
Thanks @sora10pls !
2017-02-14 18:54:46 -08:00
Kaphotics
c8fbb8e6ee Merge pull request #859 from Mrtops/patch-1
Add links and proper Name for Mono Runtime
2017-02-14 18:40:08 -08:00
Kurt
f9cc9c10ca Tweak suggestion behavior
Prefer lowest level wild encounter; expand suggestion for evolved pkm.
Add click event to Current Level (for gen1+ pkm since Met Location not
visible).
Add Nickname CheckIdentifier to change incorrect identifiers in Nickname
check.
2017-02-14 17:33:57 -08:00
Kurt
1087b31586 Fix wc7 gen7 species base friendship
personalinfo returned entry 0 for out of range on AO's table, just
define the table at the start instead of duplicate references.
flip some property setting around, no functional change. Pattern is card
val / sav val to be consistent with Nature etc.
2017-02-14 16:28:10 -08:00
Mrtops
f45df15c49 Add links and proper Name for Mono Runtime 2017-02-14 14:03:44 -05:00
Kurt
925a720b4c Fix wc7->pk7 gender determination
needed to reference SM not AO
2017-02-14 08:43:09 -08:00
Kurt
8c78afe499 Misc fixes
Fix volt tackle tutor for pikachu in gen6 (missing parenthesis)
fix rb fishing table species list
stop performing gen7 checks on pk1s
add special move check (do future games have encounters with 2+ special
moves)?
properly handle amnesiaduck/surfchu
still missing ingame trades lol
2017-02-13 22:49:32 -08:00
Kurt
a5e09bfe31 Fix legal move selection allowing future moves
Initially populated with a filtered list, was unfiltered when
repopulated for legal moves. Just split legal/illegal, have the main
form choose which one is the stored list.

Remove unnecessary linq for other forms
2017-02-13 21:20:10 -08:00
Kurt
6722afef76 Misc behavior updates
Closes #855
2017-02-13 20:42:39 -08:00
Kurt
749aa97bb3 Tweak gen1+transfer checking
Add stadium exclusives (surfchu / amnesiaduck) which are flagged on gen7
2017-02-13 18:06:01 -08:00
Kurt
1990870744 Merge branch 'master' of https://github.com/kwsch/PKHeX 2017-02-13 15:44:27 -08:00
Kurt
5294599533 Add 1->7 ingame trade OT name conversion 2017-02-13 15:44:24 -08:00
Kaphotics
5a318e2e5d Update README.md
Asterisk terminators
2017-02-13 14:35:41 -08:00
Evan Dixon
ce75c57b51 Merge pull request #852 from spof95/unix_check
Add Framework check for non-windows OS
2017-02-13 14:04:39 -06:00
Pol Eyschen
19b53e10e9 Tabs -> Spaces & Typo 2017-02-13 19:55:02 +01:00
SPoF
cf9bf85bb4 Add Framework check for non-windows OS
GetFrameworkVersion() throws an System.NullReferenceException since
there is no Registry on non-windows systems.

Fixed by checking the OS under which the program runs. If it's not
Windows, check the CLR Version instead of querying the (non-existant)
registry.
2017-02-13 13:06:54 +01:00
Kurt
41d8cc96ca Simplify move checking
extract duplicated method and simplify empty checks within
add z-moves to invalid sketch
2017-02-12 23:08:39 -08:00