Show unreleased status of moves and items in /details

This commit is contained in:
Marty-D 2017-08-21 10:15:56 -04:00 committed by GitHub
parent 12dd0a08b7
commit be279f3703

View File

@ -530,6 +530,9 @@ exports.commands = {
if (move.id === 'mirrormove') {
details['<a href="https://pokemonshowdown.com/dex/moves/mirrormove">Mirrorable Moves</a>'] = '';
}
if (move.isUnreleased) {
details["Unreleased in Gen " + mod.gen] = "";
}
} else if (newTargets[0].searchType === 'item') {
let item = mod.getItem(newTargets[0].name);
details = {
@ -552,6 +555,9 @@ exports.commands = {
details["Natural Gift Type"] = item.naturalGift.type;
details["Natural Gift Base Power"] = item.naturalGift.basePower;
}
if (item.isUnreleased) {
details["Unreleased in Gen " + mod.gen] = "";
}
} else {
details = {};
}