Commit Graph

13 Commits

Author SHA1 Message Date
The Immortal
302c0b3e12 Set OM mods to gen 6 2016-11-19 17:11:52 +04:00
Ivo Julca
ff6776074a Sync scripted mods with the battle engine 2016-11-18 19:31:38 -05:00
Ivo Julca
bf04094f08 Update BattlePokemon#formeChange to use Tools#spreadModify 2016-11-18 19:26:54 -05:00
Guangcong Luo
cc7ccd2efe Stop unnecessarily calling update()
pokemon.update() used to be called after pretty much everything, but
now that we've refactored pretty much everything out of it, it's no
longer necessary for most of the situations we call it for.

It currently only updates pokemon.speed, so I've renamed it updateSpeed
for clarity.

We now only update pokemon.speed on switch-in, right before the
residual event, and at the beginning of every turn. This gives
something like a 30% speed-up.
2016-02-17 01:07:22 -06:00
Guangcong Luo
a8e8272bac Refactor types and remove ModifyPokemon
The unwieldy system that is typesData is now removed, and is replaced by
the array `types` and the string `addedType`, which track the same amount
of information in a much more efficient way. (Roost is now hardcoded, but
let's not talk about that.)

Incidentally, this now roughly matches client, which tracks typechange
and typeadd as volatiles.

This allows us to remove ModifyPokemon, which overall provides a 10%
performance increase. I was hoping it'd be more substantial, but oh well.
2016-02-16 23:42:37 -06: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
SolarisFox
29b961ff69 Style fix: indexOf() comparisons 2015-05-18 15:55:57 -07:00
Ivo Julca
2efe8fa580 Hidden Type: custom type can no longer be copied
- Transform and Reflect Type will replace it by the source hidden type.
- Adds a flag `isCustom` to the type data.
2015-03-18 21:20:17 -05:00
Ivo Julca
01fb763622 Hidden Type: handle forme change mechanics in scripts.js
This would fix Aegislash, as well as Shaymin-Sky's reversion to Land forme if they were allowed in the format.
2014-09-27 19:33:27 -05:00
The Immortal
be386474aa Add Hidden Type mod 2014-09-12 18:14:37 +04:00
The Immortal
29e6ffe8e6 Forgot the mod in previous commit
Forgot to add the mod for the mega evolution bit to the format but after
testing, apparently it's not needed.
2014-09-11 21:36:59 +04:00
The Immortal
e16676bf54 Update OMs
- Removed Mediocremons and added Hidden Type
- Added missing viability rankings to /om
2014-09-11 21:29:49 +04:00