pokemon-showdown/config
Joimer 051ac52d27 Refactor rank check: room only ranks do not interact with demote/promote
The function getNextGroupSymbol now takes an extra parameter to exclude room only ranks, which are defined in config.
The function will try to find the closest non room only rank with a safeguard against maliciously or badly crafted config.js to crash the server.
If no rank is found regardless of room only or not status, the first or last rank are returned accordingly.
This refactor allows getNextGroupSymbol's name to keep true to its functionality, while also providing a way to exclude crafted ranks for rooms or otherwise from the global demote/promote scheme.
2013-07-31 12:46:15 +02:00
..
avatars Changes to static file serving 2013-04-24 20:41:49 -06:00
commands.js NEXT is no longer Gen-NEXT 2013-07-24 21:55:33 -07:00
config-example.js Refactor rank check: room only ranks do not interact with demote/promote 2013-07-31 12:46:15 +02:00
custom-example.css Changes to static file serving 2013-04-24 20:41:49 -06:00