pokemon-showdown/data
Guangcong Luo ecb27edb4d
Introduce ActiveMove; make some types read-only (#4902)
The types Template, Move, Ability, and Item are now read-only. This
should guard against accidental writing to types that shouldn't be
written to.

A new type, ActiveMove, has been introduced. Like it sounds, it's
used for moves that are currently actively being used. A lot of
attributes that are only relevant to active moves, such as
`hasBounced`, are now only available on ActiveMove, not on Move.
ActiveMoves are mutable, unlike Moves.

getMoveCopy has been renamed getActiveMove, to better reflect its
role. `isCopy` has been deprecated, and distinguishing Moves from
ActiveMoves is now done by `typeof move.hit === 'number'` where
necessary.

ActiveMoves now internally track which hit of a multihit move
they're on, in move.hit, so move.hit doesn't need to be manually
incremented by Triple Kick and Parental Bond anymore.

move.hasParentalBond has been replaced by a more generic
move.multihitType.
2018-10-10 16:04:35 -05:00
..
abilities.js Introduce ActiveMove; make some types read-only (#4902) 2018-10-10 16:04:35 -05:00
aliases.js Add 'neckboy' alias for Exeggutor-Alola (#4900) 2018-10-09 23:29:20 -05:00
bss-factory-sets.json BSS Factory: Remove unnecessary set properties (#4623) 2018-04-26 10:51:57 -04:00
factory-sets.json Battle Factory: Update Ubers (#4851) 2018-09-12 23:07:54 +04:00
formats-data.js Fix Drampa's tier 2018-10-08 21:13:56 +04:00
items.js Update Typescript to 3.1 (#4879) 2018-10-05 04:02:54 -05:00
learnsets.js Add new event Pokemon 2018-10-05 20:09:14 -04:00
moves.js Introduce ActiveMove; make some types read-only (#4902) 2018-10-10 16:04:35 -05:00
pokedex.js CAP: Add Mumbao and update prevos 2018-09-04 14:23:14 -04:00
random-teams.js Introduce ActiveMove; make some types read-only (#4902) 2018-10-10 16:04:35 -05:00
rulesets.js Update Typescript to 3.1 (#4879) 2018-10-05 04:02:54 -05:00
scripts.js Introduce ActiveMove; make some types read-only (#4902) 2018-10-10 16:04:35 -05:00
statuses.js Make a move fail if the target is the user and it's not self-target 2018-09-03 11:24:38 -04:00
typechart.js Typescript data/ and config/formats (#4513) 2018-03-26 09:50:51 -05:00