Commit Graph

1407 Commits

Author SHA1 Message Date
Guangcong Luo
9936c957c1 Support replay saving on registered servers 2013-04-05 16:21:58 -07:00
Guangcong Luo
2996a86be8 Support - before room number
We're updating room IDs to be in the form 'battle-ou-1' instead of
'battle-ou1'
2013-04-05 14:41:56 -07:00
Guangcong Luo
eab5e45492 Fix HP shadow update times
HP shadows should now more reliably only update at the start of
a turn.
2013-04-05 14:41:29 -07:00
Guangcong Luo
4c1d68a55a Show HP shadow during during choice
So we have an HP 'shadow' that appears to show how much HP you've
lost. The change here is that the 'shadow' now updates at the
beginning of the next turn, rather than the end of the current turn.

The main upshot is that you can now see the previous turn's HP and
how much you've lost this turn, while you make your decision for
the next turn.
2013-04-03 21:11:40 -07:00
Guangcong Luo
9367836562 Fix Toxic in switch menu 2013-04-03 20:53:26 -07:00
Guangcong Luo
588e435451 Fix animation issue with multi-turn moves
Specifically, any more interruption such as full paralysis interacted
badly with a multi-turn move. This has been fixed.
2013-04-03 19:42:12 -07:00
Guangcong Luo
78c789fd1d AFD sprites in Fools Festival 2013-04-03 19:40:51 -07:00
Cathy J. Fitzpatrick
5ae12616d1 More intuitive health and damage display 2013-04-03 20:30:52 -06:00
Guangcong Luo
a81230a102 Removing jQuery++
It had some bugs. :(
2013-04-02 17:36:49 -07:00
Guangcong Luo
a1ccbb1d5a Now using jQuery++
Presumably this will use CSS3 animation where possible, which should
have performance benefits. We'll see.
2013-04-02 15:39:37 -07:00
Cathy J. Fitzpatrick
3166be1fc8 Move getIp to a function of the dispatcher so it can be overriden 2013-04-02 03:28:52 -06:00
Cathy J. Fitzpatrick
c4be8d36c6 File-relative includes in dispatcher 2013-04-02 02:33:42 -06:00
Cathy J. Fitzpatrick
8040e824cc Remove some unnecessary use of globals 2013-04-02 01:42:16 -06:00
Cathy J. Fitzpatrick
fd81ec3931 Fix mistake in previous commit
I accidentally introduced an incorrect `public` specifier by using
a naive find and replace
2013-04-02 01:37:39 -06:00
Cathy J. Fitzpatrick
ce5f2d6f9a Remove some unnecessary database queries 2013-04-02 01:36:19 -06:00
Cathy J. Fitzpatrick
ebca3013e3 Fix XSS vulnerability in ladder.php 2013-04-02 01:13:31 -06:00
Cathy J. Fitzpatrick
82de98d166 Refactor action.php
This moves most of the logic of action.php into a separate file
lib/dispatcher.lib.php and separates the actions into ladder-related
actions and non-ladder-related actions. This is intended to make it
possible to have a second action.php that handlers only ladder-related
actions, which can run on the main server computer and allow
that computer to make HTTP requests to `localhost`, which should
help reduce ladder errors.
2013-04-01 23:21:33 -07:00
Marty-D
c3b77a45a2 Move Jynx to NU in the teambuilder. 2013-04-02 00:34:49 -04:00
Guangcong Luo
c56a30d419 Add the other two afd jokes 2013-04-01 20:41:23 -07:00
Guangcong Luo
7a34df13d6 Fix bug in previous commit 2013-04-01 20:40:00 -07:00
Guangcong Luo
77b6a00399 Support afd sprites
This should theoretically support afd sprites by adding -afd after
a server ID.
2013-04-01 20:37:59 -07:00
Guangcong Luo
bcb357be56 April Fool's 2013 ends 2013-04-01 19:08:33 -07:00
Cathy J. Fitzpatrick
f1f465abd3 Fix some errors in action.php 2013-04-01 17:03:19 -07:00
Cathy J. Fitzpatrick
770c3e7094 Correct escaping of URIs in messageSanitize
For example, this fixes things like `google [&]` which would
previously produce the wrong Google search query.
2013-04-01 17:27:32 -06:00
Marty-D
15a17acf2f Fix Cherish Ball's sprite, shorten Ball descriptions. 2013-04-01 16:52:50 -04:00
Marty-D
242a311d5a Update the teambuilder for recent tier changes. 2013-04-01 15:01:01 -04:00
Guangcong Luo
7e7afd3b96 Change up the link separators
The links in the top right are now separated by whitespace.

The previous brackets were visually pretty noisy, and we no longer
have a need to draw attention to them.
2013-04-01 00:23:50 -07:00
Guangcong Luo
601cd7f916 April Fool's Day changes 2013-03-31 23:13:54 -07:00
Cathy J. Fitzpatrick
1f174a61df Fix improper escaping of certain characters in external URIs 2013-03-31 00:49:10 -06:00
Guangcong Luo
75cf7444ee Update client for new pokedex.js syntax
Specifically, formeLetter and baseSpecies are now camelcased.
2013-03-30 22:18:27 -05:00
Cathy J. Fitzpatrick
873339f3d3 Revert "Update data in Pokedex"
This reverts commit f7cbbb64b0.
2013-03-30 21:02:10 -06:00
Bill Meltsner
3a6b52db44 sync client moves.js 2013-03-30 12:51:53 -07:00
Guangcong Luo
06e62eea9d Merge pull request #16 from Joimer/patch-2
Update data files
2013-03-30 10:16:15 -07:00
Joim
f7cbbb64b0 Update data in Pokedex
Update data in Pokedex to reflect latest server changes.
2013-03-30 12:50:27 +01:00
Joim
d196868bc1 Update data in moves
Update data in moves to reflect latest server changes.
2013-03-30 12:47:28 +01:00
Joim
711f546766 Update data in learnsets
Update data in learnsets to reflect latest server changes, several event Pokemon added.
2013-03-30 12:46:16 +01:00
Joim
4107a290c1 Update data in items.js
Update data in items.js to reflect latest server changes.
2013-03-30 12:43:07 +01:00
Joim
74a246f0eb Update data files, changes in abilities
Updating data files in clients to reflect latest server changes.
2013-03-30 12:42:14 +01:00
Joim
b257f298ad Update data files
Update formats-data.js as it's missing latest added events and Poke Balls.
2013-03-30 12:38:05 +01:00
Cathy J. Fitzpatrick
2d9ffac01f Add regexp matching of origin to CORS support 2013-03-30 01:50:18 -07:00
Cathy J. Fitzpatrick
6e83774cc1 Fix issue when the server sends fnt status with > 0 HP 2013-03-29 20:18:07 -06:00
Cathy J. Fitzpatrick
b2b286c6a9 Add option to skip the IP check in action.php
This fixes requests by servers behind certain kinds of proxies.
2013-03-29 17:49:46 -07:00
Cathy J. Fitzpatrick
6d77efaf7f Better support for old replays with nearest-100th health
These old replays will now display the actual percentages in the log,
rather than the nearest 1/48th percentage.
2013-03-29 17:28:32 -06:00
Cathy J. Fitzpatrick
c0e251d1aa More robust implementation of healthParse
This allows the client to display damage with whatever precision the
server sends, rather than always forced to 48ths.
2013-03-29 17:17:43 -06:00
Cathy J. Fitzpatrick
d93004b2e2 Fix change that broke resources in testclient.html 2013-03-29 17:10:46 -06:00
Cathy J. Fitzpatrick
107c7efe28 Fix change that broke testclient.html 2013-03-29 17:05:35 -06:00
Guangcong Luo
3e5d3857e4 Aesthetically pleasing switch menu HP bar colors 2013-03-29 13:52:31 -07:00
Guangcong Luo
56c439e5cf Use protocol-relative URLs for resources 2013-03-29 10:29:29 -07:00
Guangcong Luo
1e1089fa8d Test page for HP bar colors
This adds style/hpbartest.html, a test page for HP bar colors.
2013-03-29 10:20:50 -07:00
Guangcong Luo
b70329ae52 Fix HP bar animation
Previously, the HP bar would change color while animating, which
actually looks pretty cool but unfortunately was sort of buggy, and
also has a noticeable performance impact because jQuery animation
isn't exactly fast.

This changes the HP bar to change color after animating instead,
which still looks good but is a lot simpler.
2013-03-29 10:17:14 -07:00