- For Gen 2 and 3, Pokedex was filled with redundant data. Gen 4 was about the same, except for Rotom formes.
- Remove references to baby prevolutions in gens where they don't exist.
- Fix a bug preventing Magmar below level 30 from being used in Gen 1.
- Apply 417907072 and a39fdd600 to Gen 1.
randomBattleMoves is now an array, and has been renamed from
viableMoves since it no longer is used for anything other than
random battles.
This commit also does some cleanup of some code relating to
random battle moves, including fixing gen 1's randomSet function,
which apparently has never worked.
JSHint is now a fair bit stricter, and is now correctly checking
files in `mods/`.
The code has been fixed to match the new stricter standards.
JSHint has now caught its second actual bug: Gen 5 Pinap Berry
was Ice instead of Grass.
- Recoil for Parental Bond Double Edge, etc should happen after all the hits have finished.
- Also removed the event 'Secondary', currently unused in the codebase.
During initialisation of Tools, each new mod no longer makes a copy
of every data object from the parent mod. Instead, a new object is
created when and only when the mod actually makes changes to a
particular object. In other words, this is a "copy-on-write" system.
Explosion should only not faint the user in case a Substitue
fainted. If there's a Substitute but the target is Ghost-
type, the user will faint.
Attack category is dealt with in moves.js, no need to hardcode
it in the getDamage function.