Commit Graph

708 Commits

Author SHA1 Message Date
panpawn
7b4a482373 Data: Remove unneeded constructor hack check (#3019) 2016-12-11 20:34:55 -08:00
spekss
21d6bd8521 Add /tour banlist in /roomhelp (#3006)
* Add /tour banlist in /roomhelp
2016-12-11 21:24:35 +01:00
Ben Davies
a04215bf17 Trivia: fix UGM random category games (#3012) 2016-12-11 03:23:24 -08:00
Ben Davies
ffe26e0506 Trivia: temp UGM activity toggle (#3011) 2016-12-11 04:34:25 -05:00
panpawn
51c6567975 Standardize using <br /> instead of variations (#3009)
Across PS, in most places we use <br /> - however, in some other places we used <br> and in some <br/>.  This standardizes that to simply be <br />, since that's what we use in the majority of places.
2016-12-11 04:34:07 -05:00
panpawn
fd4f11570d Roomfaqs: Remove trailing whitespace in help cmd (#3008)
And also indent them like the rest of the multi-line help commands across the repo
2016-12-10 23:28:15 -05:00
asgdf
6622c2d4ee Expand help entry for /learn (#3002)
Also remove /g6learn, which is now made redundant by /learn
pentagon,gen6,... and didn't work anymore anyway.
2016-12-07 10:40:00 -06:00
Guangcong Luo
ddc7e0412e Clarify /learn message for gen 6-7 egg moves 2016-12-07 05:20:22 -05:00
Guangcong Luo
6969290d67 Support passing format name to /learn 2016-12-06 20:31:32 -06:00
Guangcong Luo
0ed2071217 Improve /learn
It now accepts a generation parameter, as well as "pentagon", as
options before the pokemon species.

In addition to making it easier to remember the syntax and supporting
pentagon checks, this also allows /learnall to be used in past gens.

e.g.

`/learn pentagon, mence, dd`

will show:

> In Gen 7, Salamence can learn Dragon Dance only when obtained from:
> gen 7 egg: axew, dragonair, dragonite, dratini, ...

`/learn gen3, mence, dd`

will show:

> In Gen 3, Salamence can learn Dragon Dance only when obtained from:
> gen 3 egg: altaria, charmander, dragonair, dragonite, ...
> gen 3 event: 1 salamence
2016-12-06 19:33:51 -06:00
panpawn
7c12efc594 Checkpunishments: Mark truly offline users only (#2995)
The user object could of just not yet expired, but they also might not be online, which is why this is necessary
2016-12-06 12:31:51 -06:00
Charlie Kobayashi
6a7d27e6ac checkpunishment: Fix checking for offline users (#2991)
- It returns nothing in the case the user does not exist in the map
2016-12-05 15:11:55 -06:00
asgdf
2d2c4d1f06 Fix room punishment checking (#2990) 2016-12-05 14:45:10 +01:00
Bär Halberkamp
71b8ee0f87 Don't display "(offline)" for online users in /checkpunishment 2016-12-03 17:55:28 +01:00
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