Commit Graph

694 Commits

Author SHA1 Message Date
panpawn
62760c3836 Rename unclear variable in Chat#toDurationString (#2971)
This renames 'limit' -> 'precision'.
2016-11-30 19:56:19 -06:00
Bär Halberkamp
d345c15336 Remove placeholder code for gen 7 sprites 2016-12-01 02:42:06 +01:00
Marty-D
ed86f0bad4 Remove Contest categories from move details
They don't exist anymore.
2016-11-29 22:12:36 -05:00
Bär Halberkamp
8fce8c2633 Refactor /whois and /checkpunishment (#2967)
Also add a Punishment monitor
2016-11-29 19:18:24 -06:00
panpawn
62d6800eff Whois: Add hover room title to battle rooms (#2960)
This will tell a user who the battle is against (if it's a battle room) by hovering over it, kind of like how user-popups work.
2016-11-29 13:13:05 -06:00
asgdf
1d6ac79158 Fix /ds not working for gen 7 mons with 2+ moves as argument (#2944) 2016-11-27 23:54:02 -06:00
Marty-D
1ddf9180b3 Add Z-Move info to /dt 2016-11-24 18:50:43 -05:00
urkerab
9f371b2953 Add Shore Up to the list of recovery moves searched by /dexsearch (#2939) 2016-11-23 22:37:46 -05:00
Lionyx
848fcd2c2b Roomsettings: Change variable spelling (#2935)
minor syntaxic change "atuh" → "auth"
2016-11-22 17:01:25 -06:00
InactiveUser
0a7689b6c9 Reword htmlbox help (#2910)
* Reword htmlbox help

I think the way it was before kind of confusing, especially with the not rank part, hopefully this helps?

* Removed *
2016-11-22 13:01:58 -06:00
Bär Halberkamp
30d2f6affb Fix gen 7 mons in giveaways 2016-11-22 00:45:57 +01:00
The Immortal
e8cac27e55 Fix b137faf 2016-11-20 05:24:09 +04:00
Bär Halberkamp
b137faf5ed Make using 'max' in /statcalc also set boosting nature 2016-11-20 01:27:11 +01:00
urkerab
27f0b82592 Actually make /oraslearn work (#2911) 2016-11-19 13:49:15 -06:00
Bär Halberkamp
ed315b4937 Wifi: change wording in the GA window 2016-11-19 02:07:48 +01:00
urkerab
5e9d04e0aa Change default /learn gen and add /oraslearn (#2902) 2016-11-18 09:16:29 -06:00
panpawn
f87a137e96 Roomsettings: Fix a couple of bugs (#2900)
These were just a few typos that messed up roomsettings a little bit.
2016-11-18 01:07:15 -05:00
HoeenCoder
cf1f723fa6 A few fixes (#2893) 2016-11-17 13:39:40 -06:00
Ivo Julca
4fa6c5499b Build: Fix issues reported by the latest Eslint version 2016-11-17 14:27:39 -05:00
panpawn
1db95501b6 Slowchat: Add a bypassall check for min user req (#2892) 2016-11-15 23:14:43 -06:00
Bär Halberkamp
61b03fff04 Fix /checkpunishment giving results for names with toId(target) === '' 2016-11-15 16:03:53 +01:00
Bär Halberkamp
ba7470f3eb Show the command that's actually being used when failing a permission check in /whois 2016-11-15 16:03:53 +01:00
panpawn
56f63700d3 Roomsettings: Change way of generating button HTML (#2890)
This removes a lot of repeated HTML and also makes it more readable
2016-11-13 18:46:27 -08:00
panpawn
fae82aa78f Update a few help commands (#2877)
-Moves groupshelp up a line, and also slightly reword it
-Moves statcalchelp up a line
2016-11-07 23:17:29 -08:00
panpawn
c93ad6a29b Studio: Remove period from modnote on sotd (#2878) 2016-11-06 01:23:44 +01:00
etienne maury
5eb4c4a42e add room rank and global rank on /groups (#2875) 2016-11-05 03:06:40 -07:00
panpawn
da7fbe031b Checkpunishment: Don't use target id in UI (#2863)
This makes it more streamlined to how `/whois` looks
2016-10-29 00:04:20 -05:00
panpawn
157d419c1a Studio: Add Song of the Day functionality (#2848)
Requested by #Don't Lose

This also fixes the check for it a user can talk in the set command to be the same check throughout PS.

This also fixes escaping HTML for the set artist in two specific instances.
2016-10-26 18:57:59 -05:00
panpawn
5f8d655609 chat-plugins/faq.js -> chat-plugins/room-faqs.js (#2859)
'faq.js' is vague and inconsistent to it's actual functionality, that being, specifically for *rooms*
2016-10-26 18:56:44 -05:00
panpawn
2f834d6551 Roomfaqs: Add missing </code> tag in UI (#2858) 2016-10-26 12:31:56 +02:00
Guangcong Luo
22c6342c00 Support offline users in /alts
/alts now delegates to a new command /checkpunishment, if passed an
unknown username. This allows mods to check offline users for active
punishments.
2016-10-23 22:00:49 -04:00
Nixola
a99992c14c Added third type to /weakness (#2851)
* Added third type to /weakness
In case of Trick-or-Treat or Forest's Curse, a pokémon can have three types. I updated the /weakness command to reflect that.

* Fixed Travis' warning and error
2016-10-22 18:36:41 -05:00
051
8d32874c4b Grammar fix in /scavengerstatus (#2850) 2016-10-22 04:00:24 -05:00
Guangcong Luo
2604780ec5 Refactor Tools
Tools will be renamed to Dex soon, which is why the code inside Tools
is calling itself "Dex" now, but right now we're just refactoring its
internal code and not officially renaming it yet.

In the meantime, Tools is now an ES6 Class.

A long-standing bug in learnset loading order (the one
test/chat-plugins/datasearch.js tests for) has finally been fixed, so
Tools.includeMods() is no longer necessary to accurately access modded
data.

Tools.mod has been split into Tools.mod(modid) and
Tools.format(format). The issue of Tools.mod being ambiguous about
whether it's passed a mod or a format hasn't been a _bug_ for a while,
but this is still more readable.

Other renames include:

Tools#isLoaded -> Tools#dataLoaded
Tools.includeMods() -> Tools.includeModData()
Tools.preloadMods() -> Tools.includeMods()
Tools.preloadedMods -> Tools.modsLoaded
Tools.moddedTools -> Tools.dexes

Do not just rename your calls of Tools.includeMods() to
Tools.includeModData(). With the learnset loading bug fixed, there's
no reason to use it unless you need direct access to
Tools.dexes[...].data for some reason (you don't, just use
Tools.mod(...).data)
2016-10-21 13:23:21 -05:00
Guangcong Luo
87c41eb67c Rename simulator.js to room-battle.js
simulator.js doesn't actually contain the simulator, but is really just
an implementation of battles in the RoomGame interface.

Renames:
`Simulator.Battle` -> `Rooms.RoomBattle`
`Simulator.BattlePlayer` -> `Rooms.RoomBattlePlayer`
`Simulator.SimulatorManager` -> `Rooms.SimulatorManager`
`Simulator.SimulatorProcess` -> `Rooms.SimulatorProcess`
`Simulator.create` -> no longer exists, use `new Rooms.RoomBattle(...)`
2016-10-21 13:21:12 -05:00
Guangcong Luo
d84d06a8d2 Add !optionsbutton and !soundsbutton 2016-10-20 21:31:52 -04:00
Quinton Lee
fbce77a521 The Happy Place plugin: change permission to mod+ 2016-10-19 19:53:50 -05:00
panpawn
5912b2b512 Give drivers access to /banword list (#2845)
It doesn't make sense to me that drivers have access to /showbl but not for /banword list
2016-10-18 13:31:24 +02:00
The Immortal
7193860ac1 Analysis: Fix BH links 2016-10-16 05:24:12 +04:00
HoeenCoder
0d867de0d2 Fix incorrect wording in modjoin (#2843) 2016-10-14 23:12:30 -04:00
Bär Halberkamp
62d29ec2d6 Roomfaqs: add previews 2016-10-13 17:57:13 +02:00
Bär Halberkamp
7439278f66 Roomfaqs: Allow other HTML formatting tags 2016-10-13 17:57:13 +02:00
Bär Halberkamp
08d4e622cb Fix mafia votes 2016-10-11 17:55:09 +02:00
Bär Halberkamp
b96b5025b4 Add a basic faq feature for rooms (#2825) 2016-10-11 05:42:02 -07:00
panpawn
8ab309ae74 Add missing linebreak in /opensource (#2833) 2016-10-10 03:21:54 +04:00
panpawn
76285471a0 Fix double errorReply while muted in some cases (#2830)
Due to the recent refactor that changed how `this.canTalk` works, if a user was muted in a room, and then tried to do a command that wasn't allowed to be used if they can't talk, it would send two replies: "You are muted and cannot talk in this room." AND "You cannot do this while unable to talk."

This makes it so that if you're using a command while muted that isn't allowed to be used if you can't talk, it will just use the "You are muted and cannot talk in this room." errorReply.
2016-10-08 20:58:16 -07:00
panpawn
dd8fcf6d7c Roomsettings: Don't use 'true' in UI (#2828)
This makes it more consistent with the rest of the UI, specifically for the respected changes of filtering capitals / stretching.
2016-10-06 21:49:13 -07:00
panpawn
8744e94a2d Tournaments: Allow ROs to allow % and up to run tours (#2826)
This was requested several times, as a lot of rooms have bots to allow drivers to run tournaments for them.

Note: current room settings for tournaments will not change by default; if you had your room set to allow mods and up before, that will still be the case unless you change it; same for if you had tournaments disabled all together.

This changes the command syntax for `/tournament enable` to be: `/tournament enable [%/@]`.  The command syntax for `/tournament disable` has not changed. (disabling a tournament will make it so only # and up can run tournaments.)

This also re-arranges the roomsettings rank order UI for tournaments; it only makes sense that the ranks go in order of power least to greatest (left to right).
2016-10-06 00:49:53 -07:00
panpawn
420e28ce91 Chat: Tell locked users their lock duration (#2823)
This also adds `Punishments#checkLockExpiration` - mostly for this, but also to remove some repetitive code in the whois command as well.
2016-10-04 23:52:19 -07:00
Ben Davies
1446ec6deb Trivia: implement /trivia search command (#2820)
Now users can search for questions/submissions without having to rummage
through the entire list of questions. Trivia data and its writer are exported
once more so edits can be made to it with /eval if necessary.
2016-10-04 20:53:39 -07:00