Commit Graph

16 Commits

Author SHA1 Message Date
小太
5c8fc7b982 Space after function for anonymous functions 2014-04-22 01:58:16 +10:00
Ivo Julca
244f1700a0 Set old moves' categories on Gen 3 data load
This is only performed for Gen 3, as the data is passed down to older gens.
2014-02-14 18:47:20 -05:00
Guangcong Luo
a39fdd6006 Split off team validation to team-validator.js
This is the first step in a refactor to split team validation into
its own process.
2014-01-09 17:35:19 -08:00
Slayer95
197d5b22be Fix hidden abilities being allowed in Gen 3 & 4
Also fix hidden ability for Flygon in NEXT
2013-11-10 01:48:42 -05:00
Slayer95
9cd05b80a3 Specify basis for inheritance of mods needing it
Create scripts.js file for gen5bw in order to do so.
2013-11-03 16:39:06 -05:00
Joimer
429aef4b8e Gen 3: Delete getDamage override
Gen 3's getDamage is a clone of an older Gen 5's version.
Delete it for now, since it has no reason to exist until differences
in that function have to be added for gen 3.
2013-09-11 10:59:19 +02:00
Joimer
fb72bb4dff Gen 3: Small file cleanup 2013-09-11 10:55:50 +02:00
Joimer
a60204dca2 Gen 3: Add its own getDamage 2013-08-16 22:48:13 +02:00
Marty-D
c671c01f6b Gen III: Fix learnset checking. 2013-05-21 15:06:01 -04:00
Guangcong Luo
df8c66d937 Optimize banning things from newer gens 2013-04-27 11:21:25 -07:00
Guangcong Luo
b263daeea0 Lazily copy data for mods, rather than eagerly 2013-04-27 11:21:25 -07:00
Guangcong Luo
68fd57131c Memory optimisation in Tools data
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.
2013-04-27 04:50:37 -07:00
Guangcong Luo
1a75beb806 Damage category refactor for gen 3
Damage categories are now read using .getCategory, which gen 3 overrides.

move.category can still be read directly to check if something's a status
move, but it should never be used for reading damage categories.

This also fixes a crash in gen 3 and makes it playable again.
2013-03-08 08:36:14 -08:00
Marty-D
9d405b2af8 Fix a typo. 2012-12-19 15:31:21 -05:00
Guangcong Luo
81a3243fe7 Better implementation of pre-phys/spec split gen 3 2012-12-18 23:41:17 -08:00
Christopher Monsanto
fb6a75e3a3 Relados gen3 support. 2012-12-19 01:18:06 -05:00