Commit Graph

17 Commits

Author SHA1 Message Date
Quinton Lee
55fa6c630e Rulesets: standardize types and names (#2838)
Rules that affect validation are now typed ValidatorRule and rule
names are no longer affected by Tools.getFormat input.
2016-10-12 14:24:53 -05:00
Ben Davies
54d0ff203a Performance: replace direct references to arguments with rest parametres (#2818)
Replacing direct references to the arguments object of functions with rest
parametres prevents the function from being deoptimized while still allowing
use of arbitrary arguments. This may also fix some minor memory leaks related
to mishandling the arguments object.
2016-10-04 16:29:14 -07:00
Marty-D
6e9d443ddd Gen II: Fix female Attack DVs 2016-01-24 23:32:39 -05:00
Konrad Borowski
81f602b8d8 Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
Juanma Serrano
c4ac8d6e2f Use strict mode and let and const instead of var
This commit also fixes some duplicated variable declarations.
2015-11-06 21:56:52 -05:00
Ivo Julca
85d92a58f4 Rename validateSet|Team and changeSet: prefix with "on" 2015-08-20 17:24:26 -05:00
Juanma Serrano
c3a28abc61 Gen 2: Proper chain breeding learnset check
This is quite complex.
In gen 2, the egg moves pass through father and species through mother.
Therefore, we must check that:
1. Two egg moves come from the same father or are learned in another way.
2. If two egg moves come from the same father, check if the father can learn those two as well.
Also, we must keep track of the state of egg and machine moves in the learnset in order to properly reject them when the problem is found.

Related commits: 17e8515486 and 33cc1e09eb
2015-05-13 16:45:23 +02:00
unfixable ꒰*⑅˃̶͈ ৺˂̶͈⑅꒱੭ु⁾⁾·°
e961dd33ad Make Explosion + Rapid Spin illegal on Cloyster
Unable to be on the same set. Gen 1 TM + Gen 2 Egg move.
2015-04-08 20:53:45 -07:00
Ivo Julca
4c069668e6 Add "Cancel Mod" ruleset
- It enables the `supportCancel` battle flag.
- Add it to all formats and standard rulesets.
2015-01-29 21:53:10 -05:00
Juanma Serrano
4b7dfccfbf Gen 2: Manage DVs for SD Marowak automatically 2015-01-13 10:53:02 +01:00
Juanma Serrano
bd591c393a Put Gen 2 SleepPerishTrap ban in its Standard ruling 2014-12-22 14:09:22 +01:00
The Immortal
560d16fb31 Add HP Percentage Mod to Gen 2 2014-09-10 19:27:30 +04:00
Ivo Julca
b4ec88610f Properly load banlist tables for modded formats
They are no longer loaded in Tools.getFormat, which could be called from any modded tools and cached the bans.
2014-08-24 22:24:09 -05:00
Guangcong Luo
af2026436a More style fixes and Gulpfile updates
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.
2014-08-10 20:43:53 -04:00
小太
5c8fc7b982 Space after function for anonymous functions 2014-04-22 01:58:16 +10:00
小太
6fb3bc332a Spaces around operators and === instead of == 2014-04-22 01:56:11 +10:00
Guangcong Luo
e2f82fa8f3 Rename data/formats.js -> data/rulesets.js 2014-01-09 19:37:04 -08:00