mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-09 12:29:11 -05:00
Update AFD 2019 implementation
AFD messages are now disabled by `/afd off`
This commit is contained in:
@@ -55,6 +55,7 @@ fs.writeFileSync(
|
||||
fs.readFileSync('js/battle-log.js') + '\n\n' +
|
||||
fs.readFileSync('src/battle-log-misc.js') +
|
||||
fs.readFileSync('data/text.js') + '\n\n' +
|
||||
fs.readFileSync('data/text-afd.js') + '\n\n' +
|
||||
fs.readFileSync('js/battle-text-parser.js')
|
||||
);
|
||||
|
||||
|
||||
@@ -906,9 +906,11 @@
|
||||
var cleanedTarget = toId(target);
|
||||
if (cleanedTarget === 'off' || cleanedTarget === 'disable') {
|
||||
Config.server.afd = false;
|
||||
if (typeof BattleTextNotAFD !== 'undefined') BattleText = BattleTextNotAFD;
|
||||
this.add('April Fools\' day mode disabled.');
|
||||
} else {
|
||||
Config.server.afd = true;
|
||||
if (typeof BattleTextAFD !== 'undefined') BattleText = BattleTextAFD;
|
||||
this.add('April Fools\' day mode enabled.');
|
||||
}
|
||||
for (var roomid in app.rooms) {
|
||||
|
||||
Reference in New Issue
Block a user