Commit Graph

24 Commits

Author SHA1 Message Date
Slayer95
7ef281e254 Declare some variables
In Gen 1 files
2014-06-05 15:06:51 -05:00
Slayer95
5d82f38b41 Fix recoil for multihit moves
- Recoil for Parental Bond Double Edge, etc should happen after all the hits have finished.
- Also removed the event 'Secondary', currently unused in the codebase.
2014-05-14 13:30:12 -05:00
Guangcong Luo
c18641490f Fix a crash in gen 1 2014-05-08 16:40:12 -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
Slayer95
3fc36ef80f 'clampIntRange is now a method of 'Tools' and no longer global 2014-04-18 15:14:54 -05:00
Ivo Julca
2a67901135 Gen 1 now inherits data from Gen 2
Just a logical step after 456883914b
2014-02-12 21:42: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
小太
f2f973fe29 Obliterate trailing whitespace 2013-08-18 21:33:15 +10:00
Joimer
b9421651eb Gen 1: Implement partial trapping 0 pp bug
When a partial trapping move is executing its 0 pp sequence, if
the opponent switches the pps get rolled back to max.
2013-08-08 21:30:42 +02:00
Guangcong Luo
4c60f96269 Fix crash when partialtrapping a Substitute 2013-06-16 21:48:57 -07:00
Marty-D
794fc16a20 Gen I: Correct secondary effect chances.
- 10% is actually ~9.8%, etc.
2013-06-11 12:18:04 -04:00
Joim
1555d879fb Gen 1: Limit learnsets to not to use tradebacks
Gen 1 learnsets now include all Gen 1 and Gen 2 moves. Limit the moves since pure RBY format does not allow tradeback Pokémon.
2013-05-25 11:36:29 +03:00
Guangcong Luo
df8c66d937 Optimize banning things from newer gens 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
Cathy J. Fitzpatrick
cbfc3e5e16 Working implementation of sending exact damage for own pokemon
This isn't as elegant as I might like, but it does appear to work.
2013-04-09 03:46:45 -06:00
Cathy J. Fitzpatrick
e45652180b Remove use of some obsolete functions 2013-03-29 01:27:49 -06:00
Joim
600f98f9b7 Gen 1: Add speed and attack drop cancel to Boost
The speed and attack drops from paralysis and burn should be dealt 
with entirely in the boost function.
2013-03-17 20:15:43 +01:00
Marty-D
674e3174ab Gen I: Less confusing accuracy checking.
- Also, removal of many useless sections in moves.
2013-03-09 22:25:48 -05:00
Marty-D
4e99705b89 Gen I: More correct accuracy checking.
- Also several other move changes to prepare for additional fixes.
2013-03-09 15:53:45 -05:00
Joim
9ffddb07d4 Fix explosion, tidy up scripts.js
Explosion should only not faint the user in case a Substitue 
fainted. If there's a Substitute but the target is Ghost-
type, the user will faint.
Attack category is dealt with in moves.js, no need to hardcode 
it in the getDamage function.
2013-03-09 10:01:47 +01:00
Guangcong Luo
9bea44a939 Fix crash in gen 1
(It wasn't updated for the stats refactor.)
2013-03-08 09:01:16 -08:00
Joimer
e700169f06 Substitute breaking stops multihit moves. 2013-03-06 21:51:30 +01:00
Joimer
2548bef89d Add all gen 1 files 2013-03-06 12:53:53 +01:00