Commit Graph

23714 Commits

Author SHA1 Message Date
Bill Meltsner
ff22e93daa Two layers of Spikes should deal 1/6 of the opponent's max hp in damage, not 3/16. 2012-06-14 19:17:16 -05:00
TheImmortal
213e66b15c More moves 2012-06-15 03:26:07 +04:00
TheImmortal
6237f77cf5 Added missing onResidualOrders 2012-06-15 03:20:28 +04:00
TheImmortal
c59eb84ad8 Complete all move changes 2012-06-14 20:31:56 +04:00
Guangcong Luo
d68f09d719 Start working on gen 4 2012-06-13 23:25:11 -07:00
Guangcong Luo
b3054fefdf Load all data using tools.js
- the original names BattleItems etc have been deprecated; please use:
  - Tools.getItem() accessor method if possible
  - Tools.data.Items for lower-level access (e.g. iteration)
- app.js was also rearranged a bit
2012-06-13 22:51:37 -07:00
Guangcong Luo
c8f8ddb833 Update /hotpatch for new data layout 2012-06-13 22:48:24 -07:00
Guangcong Luo
cbde94b6a6 Let Tools install itself and scripts into Battles 2012-06-13 22:25:26 -07:00
Guangcong Luo
12e9b5458b Make tools.js support mods (past gens)
- replace Tools.foo with Tools.mod('gen4').foo for gen 4 tools
- mods are stored in mods/modname/ in the same directory structure as data/
- mods modify base data
- further documentation coming soon in mods/modding.md
2012-06-13 08:27:32 -07:00
Guangcong Luo
97eaa07aac Check for a certain spam site
This is just a temporary measure; we'll softcode banlists later
2012-06-13 07:45:06 -07:00
Bill Meltsner
26669add8a Don't swap out rejected abilities if the alternative is also useless. 2012-06-12 22:18:02 -05: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
Bill Meltsner
8f6b7e380c Change the "stall" volatile to work more like the in-game version.
This has the added benefit of not using Math.pow anymore.
2012-06-11 22:22:39 -05:00
Bill Meltsner
bf779986bc Add Battle.random, an implementation of the cartridge PRNG. 2012-06-11 20:42:10 -05:00
The Immortal
d368092f2b Fix Hydreigon 'subsitute' bmelts >_> 2012-06-12 00:30:00 +04:00
Bill Meltsner
9f6e26b2db Add Desolate to avatars list, this time without ruining line endings. 2012-06-11 14:17:21 -05:00
Bill Meltsner
8174271da8 Revert "added Desolate to permanent avatars list"
This reverts commit 567b0255b9.
2012-06-11 14:15:42 -05:00
Guangcong Luo
32481bba92 Merge pull request #62 from licastro/master
added Desolate to permanent avatars list
2012-06-11 09:43:55 -07:00
Angelo Licastro
567b0255b9 added Desolate to permanent avatars list 2012-06-11 12:34:22 -04:00
Bill Meltsner
39bf7f7d87 Tangela and Girafarig have been released in the DW. Also, flag Rotom formes as released.
Thanks to Lamperi for catching these.
2012-06-11 00:56:47 -05:00
Bill Meltsner
21a6d7a15c Wooper's DW ability is released. 2012-06-11 00:15:40 -05:00
Guangcong Luo
935a88134c Fix errors with ladder not being updated 2012-06-10 20:20:56 -07:00
Guangcong Luo
fa80ce4ee0 Merge branch 'master' of github.com:Zarel/Pokemon-Showdown 2012-06-10 20:19:43 -07:00
Bill Meltsner
b673709463 Unbreak laddering, the redux. 2012-06-10 22:20:30 -05:00
Guangcong Luo
1c97dcb9b7 Fix crash with /rank 2012-06-10 20:19:15 -07:00
Bill Meltsner
cd4e557f41 Unbreak laddering. 2012-06-10 22:13:56 -05:00
Bill Meltsner
c585cdacd9 Destroy a user's chat queue when they're disconnected. 2012-06-10 21:15:35 -05:00
Bill Meltsner
e0f005f00e Fix a few occurrences of "move: Substitute". 2012-06-10 15:28:36 -05:00
Bill Meltsner
0111c1ec18 Add a placeholder Struggle "no moves left" message. 2012-06-10 15:27:19 -05:00
Bill Meltsner
92c08bcd03 Implement Mimic. 2012-06-10 07:08:28 -05:00
Bill Meltsner
95a1f6d49d Clear volatiles on switch out instead of switch in.
This has the same practical effect, but is slightly more intuitive and keeps the client better informed. For example, if a Pokemon used Skill Swap and then switched out, previously it would still display the swapped skill on mouseover; now, it displays the original skill, as it should.
2012-06-10 07:07:26 -05:00
Bill Meltsner
f4677c8535 Keep pokemon.moves in sync with pokemon.moveset. 2012-06-10 07:04:02 -05:00
The Immortal
e4414f688e Fix Iron Tail shortDesc 2012-06-10 00:19:04 +04:00
The Immortal
77ee2b475f Fix Shadow Ball shortDesc 2012-06-09 23:28:03 +04:00
Bill Meltsner
00cd357864 Update randbat viable movelists to the latest version.
Also adds a few missed Pokemon into the mix: Ditto, Flaaffy, Unown, Probopass, Drifblim, Jellicent, and Hydreigon.
2012-06-09 02:47:13 -05:00
Bill Meltsner
651881e2f1 Temporarily disable JSONP in Socket.io until https://github.com/LearnBoost/socket.io/issues/609 is fixed. 2012-06-09 01:18:33 -05:00
Bill Meltsner
5cd458eafa Force Belly Drum and Substitute to fail when used by Shedinja. 2012-06-08 22:53:56 -05:00
Bill Meltsner
8c22e394a8 Fix various Substitute messages. 2012-06-08 22:53:55 -05:00
Guangcong Luo
504c81a688 Merge pull request #61 from Marty-D/master
Assist, Copycat, and Mirror Move fixes, with a side of move description edits.
2012-06-08 18:00:54 -07:00
Marty-D
a8059d40cf Fix up Assist, Copycat, and Mirror Move's uncallable moves lists. 2012-06-08 19:30:55 -04:00
Marty-D
16c8e2bd6e Add the 100% secondary effect chances to the short move descriptions. Fix Mirror Move's description to be more correct. 2012-06-08 19:29:40 -04:00
Guangcong Luo
7a18f5a27b Add Zarel to the permanent avatars list
(I swear I'll save it in the users database someday)
2012-06-08 16:06:38 -07:00
Guangcong Luo
7009b3a4bb Revert bmelts's hasty porting of Id etc to Sugar.js extensions
- The reverted utility functions, toId/toUserid/sanitize/clampIntRange, were designed to handle unsanitized data gracefully
2012-06-08 15:44:49 -07:00
Guangcong Luo
37c8fca226 Even fewer globals:- getRoom -> Rooms.get, newRoom -> Rooms.create
- getUser -> Users.get
- getTime has been entirely removed; new Date().getTime() isn't that long
2012-06-08 14:51:40 -07:00
Guangcong Luo
e4f5686dc2 Fewer globals:
- serverid and servertoken are now only available as config.serverid and config.servertoken
- lobby is now only available as rooms.lobby
2012-06-08 14:38:13 -07:00
Guangcong Luo
ce506d3b3e Rooms cleanup:
- Renamed: Room -> BattleRoom, Lobby -> LobbyRoom
- rooms.js is now its own file; app.js is now no longer huge
2012-06-08 14:32:48 -07: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
Guangcong Luo
aa369963f4 Add Belly Drum to the list of physical setup moves for randbat AI 2012-06-07 02:56:49 -07:00
The Immortal
3cb97a87d8 Fix crash when /whois is used on a person with a custom group 2012-06-05 14:57:58 +04:00