Due to how validateSet and scopes work, STABmons needs either this 2 line hack or to copy basically all moveset check to formats, duplicating code, for it to work.
Using a specially crafted `evs` array of the form
set.evs = [255, 255, ..., "a"]
a user could have used a pokemon with 255 EVs in every stat, because the
expression '...a' > 510 evaluates to false.
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.
Add an automatic way to decide the generation an item comes from.
The items have been numbered the same way in the generations 3, 4, and 5. Generation 2 items need to specify its gen in its item.js specifically.
- crash logging is now handled by `Tools.logCrash`
- simulator processes now send crash emails as well
- emails are now rate limited to 1 email per 5 minutes per process
The learnset checker now allows DW mons to be bred with a mon of the
same species moved from a past generation.
Specifically, this supports DW Sableye with Sucker Punch and Recover
is now supported.
This is simple stuff to bring it in line with PS's coding style.
Mod-specific rules are getting moved to mods/gen1/formats.js and
formats are condensed into one Custom Game format.
- if you bring a level 50 pokemon to VGC, it'll be treated as level 100
for the purposes of checking level-up moves
- we introduce a new flag 'maxForcedLevel' for this
- instead of a free pass, level-up moves from a level higher than the
current level is checked as an egg move
(other ways of learning a level-up move are still available)
- pokemon can only learn level-up moves before their current level
if they can breed
- gen 3 pomeg glitch implemented
- gen 3 pomeg glitch (and any other gen 3 trick) disallowed for gen 4
abilities on pokemon that haven't evolved
- Random battles and automatic detection sets Hidden Power IVs correctly
- Hidden Power now always does damage based on user's IVs
- User's Hidden Power base power is now reported
- No LC Pokemon can legally use its moves that are exclusively obtained from the Dream World
In other words, the Pokemon has to be above level 10 with it's DW ability + DW exclusive move