Commit Graph

20 Commits

Author SHA1 Message Date
Marty-D
de39153848 Fix Metal Powder. 2012-07-30 21:55:34 -03:00
TheImmortal
734f8b91d0 King's Rock & Razor Fang implementation
Does not interact correctly with Sheer Force & Shield Dust
2012-07-29 05:36:24 +04:00
Bill Meltsner
ba4148cfc7 Fix two-turn moves (mostly).
Two-turn moves are now controlled by a volatile, twoturnmove, which determines whether a Pokemon executes the charge turn or the move turn of a two-turn move. This handles mechanics like Truant Pokemon being unable to use two-turn moves, as the execution turn is their truancy turn. It also handles various edge cases involving moves that call other moves (e.g. Metronome) and Encore.

These changes add a new event, onChargeMove, in which one can return false to "skip" the charging turn and execute the move in full immediately. For example, Solarbeam returns false in onChargeMove if the weather is sunny, and Power Herb returns false if the Pokemon uses its item successfully. (Actually, those are the only two examples at present.)

This implementation is complete except for one issue, an inversion of a previous problem: whereas before, moves like Assist calling two-turn moves would execute them immediately, now, only the charge turn will be executed, and the Pokemon will not be locked into the move. This is due to be fixed soon.
2012-07-18 21:27:43 -05:00
TheImmortal
cb5d120c64 Fix Eject Button bug
Specifically, interaction between U-turn/Volt Switch and Eject Button
2012-07-18 22:05:38 +04:00
TheImmortal
9986b39224 Fix Marty's fix for Full Incense/Lagging Tail 2012-07-17 13:09:48 +04:00
Marty-D
d8feea3659 Fix Full Incense and Lagging Tail. 2012-07-16 11:10:22 -03:00
TheImmortal
9756f4498e Berries in B2W2
Apicot/Ganlon/Liechi/Petaya/Salac
2012-07-14 01:20:47 +04:00
Bill Meltsner
becc665a32 Oh yeah, Quick Claw needs an activation message too. 2012-07-12 01:23:07 -05:00
Bill Meltsner
e6cea7a0a8 Implement Quick Claw. 2012-07-11 23:54:19 -05:00
Marty-D
0adf419599 Fix rounding for some healing items. 2012-07-11 14:55:28 -03:00
Guangcong Luo
3b004b9530 Horrible stopgap fix to make Power Herb not activate for SolarBeam in sun 2012-07-05 21:24:11 -04:00
TheImmortal
f7d8d86cc2 Ganlon Berry is released 2012-07-04 01:12:55 +04:00
TheImmortal
251589cfde Griseous Orb fixes 2012-06-29 23:26:39 +04:00
Bill Meltsner
52a9c86120 Merge pull request #69 from TheImmortal/master
BW2 + DW Updates
2012-06-25 19:25:39 -07:00
Bill Meltsner
548bdbc79c Soul Dew is released. 2012-06-25 21:19:31 -05:00
TheImmortal
7a67ba7730 BW2 + DW updates 2012-06-26 00:58:03 +04:00
Guangcong Luo
6671d2da1b Salac Berry has been released 2012-06-22 22:04:22 -07:00
The Immortal
ce986bad7a Remove debug messages from Gems 2012-06-12 14:46:22 +04:00
Bill Meltsner
9bbb0b8d56 Convert battles to use the new, cartridge-simulating RNG.
Non-battle randomness is still based off of Math.random().
2012-06-12 03:47:14 -05:00
Guangcong Luo
e73c587e7d Move a bunch of files into data/
also take this opportunity to rename movedex.js -> moves.js
2012-06-08 14:25:45 -07:00