mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-13 04:01:41 -05:00
Show unreleased status of moves and items in /details
This commit is contained in:
parent
12dd0a08b7
commit
be279f3703
|
|
@ -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 = {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user