Commit Graph

4699 Commits

Author SHA1 Message Date
Guangcong Luo
260dcb0f2f Add better error message for spread move crash 2019-08-25 05:37:14 -04:00
Guangcong Luo
f1a560f90a Refactor background music
- Fixes bugs relating to multiple battles with background music going
  simultaneously

- Battles now instantly progress to Team Preview; no need for
  `.fastForwardTo(0)`

- Battles no longer play music before `|start|` or `|teampreview|`. This
  makes it possible for roomgames not to have music.

We now use a modern technique of "figure out what the music state should
be from battle state, then move toward it", instead of "directly figure
out what music state changes result from what battle state changes".

This is the trick I learned from React, and it makes the code
significantly simpler and more maintainable.
2019-08-24 15:12:52 -04:00
Guangcong Luo
898280c5e5 Improve format/team selector
This introduces a new TeamForm component, which can be used to choose
formats and teams.
2019-08-22 11:08:43 -07:00
Guangcong Luo
a736a4fa50 Fix replay URLs again 2019-08-21 11:17:16 -04:00
TheJetOU
586e8585bf Fix replays ordering (#1353) 2019-08-17 16:16:51 +02:00
Kirk Scheibelhut
bc72f40841 Fix missing sigils in replays.lib.php 2019-08-17 11:03:02 +02:00
kanmingxu00
9863615c69 Support folders in the battle team selector (#1343) 2019-08-14 00:56:26 -07:00
whales
dea589abb7 Show timestamp in nonotify PMs (#1351) 2019-08-13 17:09:09 +02:00
Kirk Scheibelhut
db3d655648 Unify username and format replay search internals (#1346) 2019-08-12 04:26:48 -07:00
Guangcong Luo
5e2f1be9a4 Clarify /hidejoins message
The settings used to be called "ON" and "OFF"; they're now called
"ALWAYS ON" and "AUTOMATIC", which should make it clearer why
join/leave messages still appear in battles/groupchats when it's set
to off.
2019-08-07 13:31:59 -07:00
Guangcong Luo
3afbeb8402 Fix unguessable replay URLs 2019-08-07 16:31:12 -04:00
Guangcong Luo
ff1cde5484 Stop caching privileged replay data
(Thanks Slayer95 for the tip)
2019-08-07 16:30:44 -04:00
Guangcong Luo
27038e2721 Add <<forgotpassword>> shortlink 2019-08-07 16:28:54 -04:00
Kirk Scheibelhut
f3a2440067 Change packed encoding of ability and gender 2019-08-06 09:53:16 +02:00
whales
afe4e47399 Don't mark afk from rename messages (#1345)
(only mark it from updateuser messages)
2019-08-05 09:45:29 +02:00
Kirk Scheibelhut
665e55e8cf Make saved replays default to https (#1344) 2019-08-04 12:49:48 -05:00
Guangcong Luo
1aac108356 Update build script
We now use `chdir` instead of `path.resolve` to get file-relative
paths.
2019-08-03 16:49:51 -05:00
Guangcong Luo
91573af30e Fix style error 2019-08-03 16:16:53 -05:00
Guangcong Luo
7b4adde51f Fix |uhtmlchange|
It will no longer drag down uhtml boxes that are unavailable. (They'll
instead be added to the top, which should be pretty unobtrusive while
still being available.)
2019-08-01 17:22:46 -05:00
Kirk Scheibelhut
b582b3eac6 Make battle search filter case insensitive fire on submit 2019-08-01 12:09:48 +02:00
TheJetOU
62ee23abe4 Allow filtering by userid prefix in battle search (#1342) 2019-08-01 10:10:27 +02:00
urkerab
ab44cc18f4 Use fervent wish message for Rayquaza (#1341) 2019-07-31 17:11:24 -05:00
Guangcong Luo
5da579f508 Update teambuilder Pokeball/HPtype selectors
- Pokeball selector is now hidden (to be shown after the server-side
  implementation is done)
- HP type default setting is now "(automatic type)" to make it clearer
  that you don't normally need to change it.
2019-07-31 02:23:34 -05:00
Kirk Scheibelhut
62d1b70ef6 Support importing/exporting Pokeballs/Hidden Power (#1340) 2019-07-31 00:21:07 +02:00
Kirk Scheibelhut
7951e4ac90 HP Type -> Hidden Power 2019-07-27 14:14:18 +02:00
Kirk Scheibelhut
fde4595b3b Clean up Pokeball and HP Type selectors
- Add title to HP Type for clarity
  - Filter out impossible Normal/Fairy Hidden Powers
  - Add missing ':' to Pokeball label
2019-07-27 14:00:58 +02:00
Timo
e917aa0a42 Update button phrasing in replay 404 page (#1339) 2019-07-26 15:00:40 -05:00
Guangcong Luo
9a70ec6a48 Give private replays unguessable URLs
Future private replays will be saved under URLs that can't be guessed.
Old private replays should be unaffected.

Replays saved for locks will never have an unguessable URL, but they
can still be considered private (and not show up in searches).
2019-07-25 20:43:59 -04:00
TheJetOU
972ef67a66 Fix /hl (list/roomlist) not returning response (#1338) 2019-07-25 18:55:51 -05:00
Kirk Scheibelhut
d564debfb3 Implement HP Type and Pokeball selector in Teambuilder UI (#1335) 2019-07-25 14:16:08 -05:00
Guangcong Luo
635c09d7ea Add temporary fix for Smogtours's lack of HTTPS cert
(A full fix would require PS to support running HTTPS on ports other
than 443.)
2019-07-24 22:40:22 -04:00
Guangcong Luo
e0fd3a44b9 Fix mass highlight bug
(Bug is from 259dd6dab3)
2019-07-24 22:37:08 -04:00
TheJetOU
259dd6dab3 Support room highlights (#1334) 2019-07-22 12:00:52 -05:00
Jacob McLemore
212bffd87f Fix messages for Queenly Majesty, Dazzling, and Damp (#1332) 2019-07-21 13:30:31 +02:00
Guangcong Luo
8ca9916bdc Fix bugs in ladder prefix search
- `$prefix` needs to be initialized
- `$_REQUEST['prefix']` was misspelled as `$_REQUEST['format']`
- prefix argument in `getTop` not correctly marked as optional
- fix missing `FROM`, `AS alias`, and extraneous `)` in query
- `LIMIT` apparently can't be parameterized in MySQL?
2019-07-19 16:36:43 -04:00
Kirk Scheibelhut
787a7998da Fix ladder prefix search to search by ID 2019-07-19 06:45:48 -07:00
Kirk Scheibelhut
80aaab1ef1 Support filtering ladder by username prefix (for OLT) (#1326) 2019-07-18 14:02:06 -05:00
Guangcong Luo
b2a90ba8a8 Fix Blitz clause detection 2019-07-17 21:52:28 -04:00
Guangcong Luo
a9117e1945 Fix Flower Veil activation animation 2019-07-17 20:51:25 -05:00
Guangcong Luo
e47d261b46 Fix Flower Veil message 2019-07-17 20:42:36 -05:00
Jacob McLemore
7a4f5bd969 Make -copyboost copy crit ratio and laser focus for gen 6 and later (#1328) 2019-07-17 09:23:07 -07:00
NotTsunami
e35def4ff5 Desktop: Small package.json changes (#1327)
Restrict node-remote to https as per suggestion in https://github.com/Zarel/Pokemon-Showdown-Client/pull/1246#discussion_r290869251

no-edit-menu defaults to false since v0.7.3 (https://github.com/nwjs/nw.js/wiki/Manifest-format#no-edit-menu) to current (http://docs.nwjs.io/en/latest/References/Manifest%20Format/#no-edit-menu-mac)
2019-07-17 02:27:21 -05:00
Guangcong Luo
149d306321 Support Blitz custom rule 2019-07-16 17:08:21 -04:00
Guangcong Luo
62e6c8e617 Make room for two rows of Japanese in status text 2019-07-16 11:53:49 -04:00
Guangcong Luo
c658542f17 Don't show "15sec left" in Blitz games 2019-07-16 11:53:33 -04:00
Guangcong Luo
213dcbcc1f Add "hyperfast" speed option to replays
This option is honestly a bit too fast to follow, but I guess it's
useful for people to preview how fast Blitz is.
2019-07-16 07:10:21 -04:00
Guangcong Luo
458a630426 Support hyperfast animation in blitz formats 2019-07-16 05:51:40 -05:00
Kirk Scheibelhut
ff8fa2385a Revert "Include status in user card always, defaulting to (Online)"
This reverts commit 438511c7e9.
2019-07-15 10:44:13 -07:00
Guangcong Luo
ac741d2352 Limit userstatus size 2019-07-15 13:18:09 -04:00
Guangcong Luo
22729c7cdf Fix bug in rating tooltip 2019-07-15 10:57:46 -04:00