Commit Graph

17 Commits

Author SHA1 Message Date
Guangcong Luo
2f0be453cc Gen 3: Fix Pressure PP tracking
This commit makes it so players are always informed about their own
Pressure activations. This fixes Pressure PP tracking for players.
PP tracking for spectators will still be wrong; there's no fix for
that.

Fixes https://github.com/Zarel/Pokemon-Showdown-Client/issues/766
2018-10-16 21:00:03 -05:00
Quinton Lee
94016f6218 Update Typescript to 3.1 (#4879) 2018-10-05 04:02:54 -05:00
HoeenHero
4032bea927 Fix 7e602dba73 2018-10-04 13:10:25 -04:00
HoeenHero
7e602dba73 Don't clear text from battle logs
This prevents evidence from being cleared after a staff member locks a user in a battle.
2018-10-04 12:22:49 -04:00
whales
f46e0fc860 Remove user's text from scrollback log (#4751) 2018-09-13 06:51:46 -05:00
Guangcong Luo
ae526834a2 Fix uhtmlchange Roomlogs function
Caught by LGTM:

fc22f4fb8d/files/roomlogs.js (xa1bd0a177ef2410d):1
2018-09-06 02:31:12 -05:00
Marty-D
9796b3bfb5
Fix "duplicate" battle messages 2018-03-28 23:48:55 -04:00
KrisXV
3bf1aeb79f Refactor for...length to for...of where applicable (#4516) 2018-03-24 14:47:40 -07:00
CheeseMuffin
fbb916ff5f Add Chat to TypeScript globals (#4287) 2018-02-26 15:15:44 +09:00
Guangcong Luo
7e26ea49df Add new API room.log.hasUsername 2018-01-20 02:47:50 -06:00
Guangcong Luo
df4aeebcd5 Use new Streams for FS streams 2018-01-13 03:59:09 -06:00
whales
20ae4cb127 Roomlogs: don't remove too many newlines (#4307) 2018-01-04 09:57:42 -06:00
Guangcong Luo
6b031eb7cd Fix roomlogs not rolling 2017-12-20 17:48:47 -06:00
Guangcong Luo
27f1dae0ca Fix memory leak in Roomlogs 2017-12-19 20:45:46 -05:00
Guangcong Luo
c74fefa2c7 Simplify getLog(0) in battles
It no longer sends useless `|choice|` and `|seed|` entries.
2017-12-18 17:45:07 -06:00
Guangcong Luo
f3705a3c17 Fix some roomlog bugs 2017-12-18 16:03:51 -06:00
Guangcong Luo
5094631fcf Implement Roomlog library
Rooms now have their logging abstracted into their own file, which also
allows the rest of rooms.js to be simplified by a decent margin.

This is in preparation for using Redis as a backing for scrollback log
storage, which will give us a lot more RAM to work with.

My newest newest plan is actually to locally cache room scrollback, and
only read battle logs from Redis. This will make chatroom-joining
faster.
2017-12-16 15:40:45 -06:00