Commit Graph

5435 Commits

Author SHA1 Message Date
Guangcong Luo
b228d488c2 Start modularizing some battle files
Progress is very incomplete, but this is mostly an experiment to
establish this as possible at all.

What's going on here is that we're using `remove-import-export` so
the `import` and `export` statements just disappear after compiling
(everything's still a global).

This allows us to piecewise convert files to modules.

So we're just using TypeScript to keep track of dependencies, and
also to make it easier to use these files in other projects later on.

I've tried to avoid circular dependencies, but there's one between
`battle-animations` and `battle-animations-moves`.
2021-07-18 22:00:38 -05:00
Mia
5458936f2e
ntbb-database: Don't leak partial passwords in errors (#1838) 2021-07-12 16:24:09 -04:00
Kris Johnson
fb9ceab6f9
Change 'letsgo' mod to 'gen7letsgo' in build-indexes (#1834) 2021-07-07 21:23:42 -07:00
Karthik
da6b93ffd7
Fix Smogon Analysis links in teambuilder (#1833) 2021-07-06 12:12:39 -07:00
Guangcong Luo
66238a9ee0 Refactor ntbb-session with auth checking
Auth checking was done relatively sporadically in the past, but this
change adds $users->isSysop/isAdmin/isLeader for more centralized
auth checking.
2021-07-05 18:25:35 -04:00
Guangcong Luo
ca91a728eb Split website/servers.php into website/servers/
This splits servers.php into two files: servers/index.php and
servers/server.php.
2021-07-05 18:07:34 -04:00
Guangcong Luo
05b9b19dcc Show an error message on connection failures
Apparently this code has been broken ever since we migrated to
HTTPS.
2021-07-05 18:07:34 -04:00
Guangcong Luo
7a3783d1c8 Fix challenge notifications
Apparently there's some really buggy code for whether or not `/raw`
notifies (yes but only if it contains an HTML tag, notification is
the contents of the first HTML tag) which I didn't have time to fix,
but someone should probably fix that.
2021-07-05 18:07:34 -04:00
Guangcong Luo
9c334ac890 Reject invalid email addresses for 2FA settings
This isn't a real validation, it's just to guard against typoes.
2021-07-05 18:07:34 -04:00
Guangcong Luo
4554858226 Require Admin (not Leader) to reset passwords
At some point, Leaders were given the ability to reset passwords. But
the permissions were always intended to be scoped to the Admin
position which requires a working 2FA setting.
2021-07-05 18:07:34 -04:00
Karthik
3388024234
Tooltips: Check if user is grounded for Terrain Pulse (#1828) 2021-07-05 14:17:29 -07:00
Mia
2d37d2353a
Support specifying prefixes in ladder/*.json requests (#1832) 2021-07-04 15:51:38 -07:00
TheSupervillain
a0cfdd995f
Rename dueldisk avatars to wonderlauncher (#1831) 2021-07-04 14:42:04 -07:00
Karthik
d4f526eeba
Gen 5: Reveal Mail in Team Preview (#1825) 2021-06-12 18:00:09 -07:00
Leonard Craft III
a859faf85c
Update password reset links (#1824) 2021-06-06 18:41:36 -07:00
Guangcong Luo
2ce8d639b8
Update required Node version 2021-06-06 07:38:17 -07:00
WeWuzNidokangz
1441c9a171
Show correct typechange content for Pokemon with 3+ types (#1823) 2021-06-05 15:07:36 -07:00
Karthik
3e48940fdd
Update sidebar for all forme changes (#1822) 2021-06-04 11:25:24 -07:00
Karthik
eb6bd3a517
Show Air Lock/Cloud Nine activation in battle scene (#1815) 2021-06-03 06:27:19 -07:00
Karthik
e4a4526e02
Fix AltFormPopup and setForm (#1820) 2021-05-29 17:28:09 -07:00
Karthik
dcaeedca5b
Support |-swapsideconditions| for Court Change (#1783) 2021-05-27 19:36:33 -07:00
Karthik
39000052be
Use getGen3Category to override category for gen<3 (#1818) 2021-05-27 19:34:46 -07:00
Leonard Craft III
ec64f8331c
Tooltips: Improve accuracy (#1819) 2021-05-27 19:33:34 -07:00
Karthik
ebd6b25acd
Fix Mummy failure message (#1816) 2021-05-26 21:25:50 -07:00
Karthik
baaa4448e7
Fix transformed Pokemon showing wrong speed range (#1817) 2021-05-26 21:10:34 -07:00
Guangcong Luo
c833975782 Upgrade to TypeScript 4.3
Unlike in the server:

74211859c9

We're using Babel here, and can immediately start using `override`.
2021-05-26 19:37:44 -07:00
Karthik
e003a0e744
Refactor past-gen Species/Move data format (#1813) 2021-05-26 14:32:16 -07:00
May Evans
675191cd4b
Add OU by technicality to RBY (#1814) 2021-05-25 21:46:00 -07:00
Leonard Craft III
d16734d018
Tooltips: Display sound/powder only after Gen 5 (#1812) 2021-05-25 11:28:14 -07:00
Karthik
337a3ef8f8
Tooltips: Fix various Pressure related bugs (#1810) 2021-05-25 09:25:33 -04:00
Karthik
572369397f
Tooltips: Don't show stat boosts from items while being ignored (#1809) 2021-05-25 09:24:52 -04:00
Karthik
812151ec9c
Tooltips: Don't show sandstorm Sp. Def boost after type change (#1807) 2021-05-25 09:23:16 -04:00
Annika
de02766625
Default Doubles LC sets to level 5 (#1806) 2021-05-25 09:22:42 -04:00
Karthik
84c63c63de
Gen 1: Show 1/256 accuracy glitch in tooltip (#1808) 2021-05-24 19:16:14 -07:00
Leonard Craft III
31a0957e5b
Don't display 100% HP lost if HP still exists (#1811) 2021-05-24 18:37:33 -07:00
Marty-D
7a759c2ced
Fix some Trainer sprite names 2021-05-24 15:03:22 -04:00
Guangcong Luo
1c9e465f96 Fix build error 2021-05-17 13:45:51 -07:00
Guangcong Luo
e4487fb5e6
Support new challenge protocol (#1799) 2021-05-16 03:05:10 -07:00
Annika
75cc1c37de
Fix tab titles for non-battle games (#1802) 2021-05-15 21:43:20 -07:00
Joseph Madamba
4f3841d597
Use more styled buttons (#1787) 2021-05-15 15:12:04 -07:00
Distrib
d12eb17d38
Add challenge notification sound (#1793) 2021-05-14 21:16:06 -07:00
Annika
f5c6fd934f
Support |notify| in battle rooms (#1801) 2021-05-14 21:13:38 -07:00
Mia
d85bd52807
Explicitly notate messages sent to lobby (#1800) 2021-05-14 10:50:07 -07:00
Guangcong Luo
3d6b33e27f Fix style error 2021-05-14 04:51:48 -04:00
Leonard Craft III
948a73fce6
Fix Transform's interaction with Gigantamax (#1794) 2021-05-13 23:15:51 -07:00
Leonard Craft III
8f40f8a04b
Teambuilder: Improve Attack stat guesser (#1798) 2021-05-13 22:38:26 -07:00
Guangcong Luo
fa1e379497 Fix style error 2021-05-13 22:37:35 -07:00
Leonard Craft III
cd7c6d29e7
Tooltips: Don't display Illusion hint on 4+ moves with Mimic (#1795) 2021-05-13 20:24:51 -07:00
Leonard Craft III
90df33a57f
Teambuilder: Fix Gen VII analysis links (#1797) 2021-05-13 20:24:13 -07:00
Karthik
cd7fa99528
Add separate physical/special Shell Side Arm anims (#1796) 2021-05-13 20:18:40 -07:00