Initial Modpack Upload
This commit is contained in:
1 parent
268b0650aa
commit
3d8b956ee4
1429 files changed
+820128
No files matched your search
@@ -0,0 +1,754 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* The server port - the port to run Pokemon Showdown under
|
||||
*
|
||||
* @type {number}
|
||||
*/
|
||||
exports.port = 8000;
|
||||
|
||||
/**
|
||||
* The server address - the address at which Pokemon Showdown should be hosting
|
||||
* This should be kept set to 0.0.0.0 unless you know what you're doing.
|
||||
*
|
||||
* @type {string}
|
||||
*/
|
||||
exports.bindaddress = '0.0.0.0';
|
||||
|
||||
/**
|
||||
* workers - the number of networking child processes to spawn
|
||||
* This should be no greater than the number of threads available on your
|
||||
* server's CPU. If you're not sure how many you have, you can check from a
|
||||
* terminal by running:
|
||||
*
|
||||
* $ node -e "console.log(require('os').cpus().length)"
|
||||
*
|
||||
* Using more workers than there are available threads will cause performance
|
||||
* issues. Keeping a couple threads available for use for OS-related work and
|
||||
* other PS processes will likely give you the best performance, if your
|
||||
* server's CPU is capable of multithreading. If you don't know what any of
|
||||
* this means or you are unfamiliar with PS' networking code, leave this set
|
||||
* to 1.
|
||||
*/
|
||||
exports.workers = 1;
|
||||
|
||||
/**
|
||||
* wsdeflate - compresses WebSocket messages
|
||||
* Toggles use of the Sec-WebSocket-Extension permessage-deflate extension.
|
||||
* This compresses messages sent and received over a WebSocket connection
|
||||
* using the zlib compression algorithm. As a caveat, message compression
|
||||
* may make messages take longer to procress.
|
||||
* @type {AnyObject?}
|
||||
*/
|
||||
exports.wsdeflate = null;
|
||||
|
||||
/*
|
||||
// example:
|
||||
exports.wsdeflate = {
|
||||
level: 5,
|
||||
memLevel: 8,
|
||||
strategy: 0,
|
||||
noContextTakeover: true,
|
||||
requestNoContextTakeover: true,
|
||||
maxWindowBits: 15,
|
||||
requestMaxWindowBits: 15,
|
||||
}; */
|
||||
|
||||
/**
|
||||
* ssl - support WSS, allowing you to access through HTTPS
|
||||
* The client requires port 443, so if you use a different port here,
|
||||
* it will need to be forwarded to 443 through iptables rules or
|
||||
* something.
|
||||
* @type {{port: number, options: {key: string, cert: string}} | null}
|
||||
*/
|
||||
exports.ssl = null;
|
||||
|
||||
/*
|
||||
// example:
|
||||
exports.ssl = {
|
||||
port: 443,
|
||||
options: {
|
||||
key: './config/ssl/privkey.pem',
|
||||
cert: './config/ssl/fullchain.pem',
|
||||
},
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
Main's SSL deploy script from Let's Encrypt looks like:
|
||||
cp /etc/letsencrypt/live/sim.psim.us/privkey.pem ~user/Pokemon-Showdown/config/ssl/
|
||||
cp /etc/letsencrypt/live/sim.psim.us/fullchain.pem ~user/Pokemon-Showdown/config/ssl/
|
||||
chown user:user ~user/Pokemon-Showdown/config/ssl/privkey.pem
|
||||
chown user:user ~user/Pokemon-Showdown/config/ssl/fullchain.pem
|
||||
*/
|
||||
|
||||
/**
|
||||
* proxyip - proxy IPs with trusted X-Forwarded-For headers
|
||||
* This can be either false (meaning not to trust any proxies) or an array
|
||||
* of strings. Each string should be either an IP address or a subnet given
|
||||
* in CIDR notation. You should usually leave this as `false` unless you
|
||||
* know what you are doing
|
||||
* @type {false | string[]}.
|
||||
*/
|
||||
exports.proxyip = false;
|
||||
|
||||
/**
|
||||
* Various debug options
|
||||
*
|
||||
* ofe[something]
|
||||
* ============================================================================
|
||||
*
|
||||
* Write heapdumps if that processs run out of memory.
|
||||
*
|
||||
* If you wish to enable this, you will need to install node-oom-heapdump:
|
||||
*
|
||||
* $ npm install --no-save node-oom-heapdump
|
||||
*
|
||||
* We don't install it by default because it's super flaky and frequently
|
||||
* crashes the installation process.
|
||||
*
|
||||
* You might also want to signal processes to put them in debug mode, for
|
||||
* access to on-demand heapdumps.
|
||||
*
|
||||
* kill -s SIGUSR1 [pid]
|
||||
*
|
||||
* debug[something]processes
|
||||
* ============================================================================
|
||||
*
|
||||
* Attach a `debug` property to `ProcessWrapper`, allowing you to see the last
|
||||
* message it received before it hit an infinite loop.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
* >> ProcessManager.processManagers[4].processes[0].debug
|
||||
* << "{"tar":"spe=60,all,!lc,!nfe","cmd":"dexsearch","canAll":true,"message":"/ds spe=60,all,!lc,!nfe"}"
|
||||
*/
|
||||
exports.ofemain = false;
|
||||
exports.ofesockets = false;
|
||||
exports.debugsimprocesses = true;
|
||||
exports.debugvalidatorprocesses = true;
|
||||
exports.debugdexsearchprocesses = true;
|
||||
|
||||
/**
|
||||
* Pokemon of the Day - put a pokemon's name here to make it Pokemon of the Day
|
||||
* The PotD will always be in the #2 slot (not #1 so it won't be a lead)
|
||||
* in every Random Battle team.
|
||||
*
|
||||
* @type {ID}
|
||||
*/
|
||||
exports.potd = '';
|
||||
|
||||
/**
|
||||
* crash guard - write errors to log file instead of crashing
|
||||
* This is normally not recommended - if Node wants to crash, the
|
||||
* server needs to be restarted
|
||||
* However, most people want the server to stay online even if there is a
|
||||
* crash, so this option is provided
|
||||
*/
|
||||
exports.crashguard = true;
|
||||
|
||||
/**
|
||||
* login server data - don't forget the http:// and the trailing slash
|
||||
* This is the URL of the user database and ladder mentioned earlier.
|
||||
* Don't change this setting - there aren't any other login servers right now
|
||||
*/
|
||||
exports.loginserver = 'http://play.pokemonshowdown.com/';
|
||||
exports.loginserverkeyalgo = "RSA-SHA1";
|
||||
exports.loginserverpublickeyid = 4;
|
||||
exports.loginserverpublickey = `-----BEGIN PUBLIC KEY-----
|
||||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzfWKQXg2k8c92aiTyN37
|
||||
dl76iW0aeAighgzeesdar4xZT1A9yzLpj2DgR8F8rh4R32/EVOPmX7DCf0bYWeh3
|
||||
QttP0HVKKKfsncJZ9DdNtKj1vWdUTklH8oeoIZKs54dwWgnEFKzb9gxqu+z+FJoQ
|
||||
vPnvfjCRUPA84O4kqKSuZT2qiWMFMWNQPXl87v+8Atb+br/WXvZRyiLqIFSG+ySn
|
||||
Nwx6V1C8CA1lYqcPcTfmQs+2b4SzUa8Qwkr9c1tZnXlWIWj8dVvdYtlo0sZZBfAm
|
||||
X71Rsp2vwEleSFKV69jj+IzAfNHRRw+SADe3z6xONtrJOrp+uC/qnLNuuCfuOAgL
|
||||
dnUVFLX2aGH0Wb7ZkriVvarRd+3otV33A8ilNPIoPb8XyFylImYEnoviIQuv+0VW
|
||||
RMmQlQ6RMZNr6sf9pYMDhh2UjU11++8aUxBaso8zeSXC9hhp7mAa7OTxts1t3X57
|
||||
72LqtHHEzxoyLj/QDJAsIfDmUNAq0hpkiRaXb96wTh3IyfI/Lqh+XmyJuo+S5GSs
|
||||
RhlSYTL4lXnj/eOa23yaqxRihS2MT9EZ7jNd3WVWlWgExIS2kVyZhL48VA6rXDqr
|
||||
Ko0LaPAMhcfETxlFQFutoWBRcH415A/EMXJa4FqYa9oeXWABNtKkUW0zrQ194btg
|
||||
Y929lRybWEiKUr+4Yw2O1W0CAwEAAQ==
|
||||
-----END PUBLIC KEY-----
|
||||
`;
|
||||
|
||||
/**
|
||||
* routes - where Pokemon Showdown is hosted.
|
||||
* Don't change this setting - there aren't any other options right now
|
||||
*/
|
||||
exports.routes = {
|
||||
root: 'pokemonshowdown.com',
|
||||
client: 'play.pokemonshowdown.com',
|
||||
dex: 'dex.pokemonshowdown.com',
|
||||
replays: 'replay.pokemonshowdown.com',
|
||||
};
|
||||
|
||||
/**
|
||||
* crashguardemail - if the server has been running for more than an hour
|
||||
* and crashes, send an email using these settings, rather than locking down
|
||||
* the server. Uncomment this definition if you want to use this feature;
|
||||
* otherwise, all crashes will lock down the server. If you wish to enable
|
||||
* this setting, you will need to install nodemailer, as it is not installed
|
||||
* by default:
|
||||
* $ npm install nodemailer
|
||||
* @type {AnyObject?}
|
||||
*/
|
||||
exports.crashguardemail = null;
|
||||
/* exports.crashguardemail = {
|
||||
options: {
|
||||
host: 'mail.example.com',
|
||||
port: 465,
|
||||
secure: true,
|
||||
auth: {
|
||||
user: 'example@domain.com',
|
||||
pass: 'password'
|
||||
}
|
||||
},
|
||||
from: 'crashlogger@example.com',
|
||||
to: 'admin@example.com',
|
||||
subject: 'Pokemon Showdown has crashed!'
|
||||
}; */
|
||||
|
||||
/**
|
||||
* basic name filter - removes characters used for impersonation
|
||||
* The basic name filter removes Unicode characters that can be used for impersonation,
|
||||
* like the upside-down exclamation mark (looks like an i), the Greek omicron (looks
|
||||
* like an o), etc. Disable only if you need one of the alphabets it disables, such as
|
||||
* Greek or Cyrillic.
|
||||
*/
|
||||
exports.disablebasicnamefilter = false;
|
||||
|
||||
/**
|
||||
* allowrequestingties - enables the use of `/offerdraw` and `/acceptdraw`
|
||||
*/
|
||||
exports.allowrequestingties = true;
|
||||
|
||||
/**
|
||||
* report joins and leaves - shows messages like "<USERNAME> joined"
|
||||
* Join and leave messages are small and consolidated, so there will never
|
||||
* be more than one line of messages.
|
||||
* If this setting is set to `true`, it will override the client-side
|
||||
* /hidejoins configuration for users.
|
||||
* This feature can lag larger servers - turn this off if your server is
|
||||
* getting more than 80 or so users.
|
||||
*/
|
||||
exports.reportjoins = true;
|
||||
|
||||
/**
|
||||
* report joins and leaves periodically - sends silent join and leave messages in batches
|
||||
* This setting will only be effective if `reportjoins` is set to false, and users will
|
||||
* only be able to see the messages if they have the /showjoins client-side setting enabled.
|
||||
* Set this to a positive amount of milliseconds if you want to enable this feature.
|
||||
*/
|
||||
exports.reportjoinsperiod = 0;
|
||||
|
||||
/**
|
||||
* report battles - shows messages like "OU battle started" in the lobby
|
||||
* This feature can lag larger servers - turn this off if your server is
|
||||
* getting more than 160 or so users.
|
||||
*/
|
||||
exports.reportbattles = true;
|
||||
|
||||
/**
|
||||
* report joins and leaves in battle - shows messages like "<USERNAME> joined" in battle
|
||||
* Set this to false on large tournament servers where battles get a lot of joins and leaves.
|
||||
* Note that the feature of turning this off is deprecated.
|
||||
*/
|
||||
exports.reportbattlejoins = true;
|
||||
|
||||
/**
|
||||
* notify staff when users have a certain amount of room punishments.
|
||||
* Setting this to a number greater than zero will notify staff for everyone with
|
||||
* the required amount of room punishments.
|
||||
* Set this to 0 to turn the monitor off.
|
||||
*/
|
||||
exports.monitorminpunishments = 3;
|
||||
|
||||
/**
|
||||
* Turns off all time-based throttles - rename, challenges, laddering, etc.
|
||||
*/
|
||||
exports.nothrottle = false;
|
||||
|
||||
/**
|
||||
* Removes all ip-based alt checking.
|
||||
*/
|
||||
exports.noipchecks = false;
|
||||
|
||||
/**
|
||||
* controls the behavior of the /battlesearch command
|
||||
*
|
||||
* valid values are:
|
||||
* - true: disables battlesearch entirely
|
||||
* - false: enables the node.js /battlesearch
|
||||
* (uses either node fs or ripgrep for searching)
|
||||
* - 'psbattletools': defaults to the psbattletools /battlesearch (normally available as /alternatebattlesearch)
|
||||
* (uses psbattletools, which must be installed, for searching)
|
||||
*
|
||||
* @type {boolean | 'psbattletools'}
|
||||
*/
|
||||
exports.nobattlesearch = false;
|
||||
|
||||
/**
|
||||
* allow punishmentmonitor to lock users with multiple roombans.
|
||||
* When set to `true`, this feature will automatically lock any users with three or more
|
||||
* active roombans, and notify the staff room.
|
||||
* Note that this requires punishmentmonitor to be enabled, and therefore requires the `monitorminpunishments`
|
||||
* option to be set to a number greater than zero. If `monitorminpunishments` is set to a value greater than 3,
|
||||
* the autolock will only apply to people who pass this threshold.
|
||||
*/
|
||||
exports.punishmentautolock = false;
|
||||
|
||||
/**
|
||||
* restrict sending links to autoconfirmed users only.
|
||||
* If this is set to `true`, only autoconfirmed users can send links to either chatrooms or other users, except for staff members.
|
||||
* This option can be used if your server has trouble with spammers mass PMing links to users, or trolls sending malicious links.
|
||||
*/
|
||||
exports.restrictLinks = false;
|
||||
|
||||
/**
|
||||
* whitelist - prevent users below a certain group from doing things
|
||||
* For the modchat settings, false will allow any user to participate, while a string
|
||||
* with a group symbol will restrict it to that group and above. The string
|
||||
* 'autoconfirmed' is also supported for chatmodchat and battlemodchat, to restrict
|
||||
* chat to autoconfirmed users.
|
||||
* This is usually intended to be used as a whitelist feature - set these to '+' and
|
||||
* voice every user you want whitelisted on the server.
|
||||
|
||||
/**
|
||||
* chat modchat - default minimum group for speaking in chatrooms; changeable with /modchat
|
||||
* @type {false | string}
|
||||
*/
|
||||
exports.chatmodchat = false;
|
||||
/**
|
||||
* battle modchat - default minimum group for speaking in battles; changeable with /modchat
|
||||
* @type {false | AuthLevel}
|
||||
*/
|
||||
exports.battlemodchat = false;
|
||||
/**
|
||||
* PM modchat - minimum group for sending private messages or challenges to other users
|
||||
* @type {false | AuthLevel}
|
||||
*/
|
||||
exports.pmmodchat = false;
|
||||
/**
|
||||
* ladder modchat - minimum group for laddering
|
||||
* @type {false | GroupSymbol}
|
||||
*/
|
||||
exports.laddermodchat = false;
|
||||
|
||||
/**
|
||||
* forced timer - force the timer on for all battles
|
||||
* Players will be unable to turn it off.
|
||||
* This setting can also be turned on with the command /forcetimer.
|
||||
*
|
||||
* @type {boolean}
|
||||
*/
|
||||
exports.forcetimer = false;
|
||||
|
||||
/**
|
||||
* force register ELO - unregistered users cannot search for ladder battles
|
||||
* in formats where their ELO is at or above this value.
|
||||
* @type {false | number}
|
||||
*/
|
||||
exports.forceregisterelo = false;
|
||||
|
||||
/**
|
||||
* backdoor - allows Pokemon Showdown system operators to provide technical
|
||||
* support for your server
|
||||
* This backdoor gives system operators (such as Zarel) console admin
|
||||
* access to your server, which allow them to provide tech support. This
|
||||
* can be useful in a variety of situations: if an attacker attacks your
|
||||
* server and you are not online, if you need help setting up your server,
|
||||
* etc. If you do not trust Pokemon Showdown with admin access, you should
|
||||
* disable this feature.
|
||||
*/
|
||||
exports.backdoor = true;
|
||||
|
||||
/**
|
||||
* List of IPs and user IDs with dev console (>> and >>>) access.
|
||||
* The console is incredibly powerful because it allows the execution of
|
||||
* arbitrary commands on the local computer (as the user running the
|
||||
* server). If an account with the console permission were compromised,
|
||||
* it could possibly be used to take over the server computer. As such,
|
||||
* you should only specify a small range of trusted IPs and users here,
|
||||
* or none at all. By default, only localhost can use the dev console.
|
||||
* In addition to connecting from a valid IP, a user must *also* have
|
||||
* the `console` permission in order to use the dev console.
|
||||
* Setting this to an empty array ([]) will disable the dev console.
|
||||
*/
|
||||
exports.consoleips = ['127.0.0.1'];
|
||||
|
||||
/**
|
||||
* Whether to watch the config file for changes. If this is enabled,
|
||||
* then the config.js file will be reloaded when it is changed.
|
||||
* This can be used to change some settings using a text editor on
|
||||
* the server.
|
||||
*/
|
||||
exports.watchconfig = true;
|
||||
|
||||
/**
|
||||
* logchat - whether to log chat rooms.
|
||||
*/
|
||||
exports.logchat = false;
|
||||
|
||||
/**
|
||||
* logchallenges - whether to log challenge battles. Useful for tournament servers.
|
||||
*/
|
||||
exports.logchallenges = false;
|
||||
|
||||
/**
|
||||
* loguserstats - how often (in milliseconds) to write user stats to the
|
||||
* lobby log. This has no effect if `logchat` is disabled.
|
||||
*/
|
||||
exports.loguserstats = 1000 * 60 * 10; // 10 minutes
|
||||
|
||||
/**
|
||||
* validatorprocesses - the number of processes to use for validating teams
|
||||
* simulatorprocesses - the number of processes to use for handling battles
|
||||
* You should leave both of these at 1 unless your server has a very large
|
||||
* amount of traffic (i.e. hundreds of concurrent battles).
|
||||
*/
|
||||
exports.validatorprocesses = 1;
|
||||
exports.simulatorprocesses = 1;
|
||||
|
||||
/**
|
||||
* inactiveuserthreshold - how long a user must be inactive before being pruned
|
||||
* from the `users` array. The default is 1 hour.
|
||||
*/
|
||||
exports.inactiveuserthreshold = 1000 * 60 * 60;
|
||||
|
||||
/**
|
||||
* autolockdown - whether or not to automatically kill the server when it is
|
||||
* in lockdown mode and the final battle finishes. This is potentially useful
|
||||
* to prevent forgetting to restart after a lockdown where battles are finished.
|
||||
*
|
||||
* @type {boolean}
|
||||
*/
|
||||
exports.autolockdown = true;
|
||||
|
||||
/**
|
||||
* noguestsecurity - purely for development servers: allows logging in without
|
||||
* a signed token: simply send `/trn [USERNAME]`. This allows using PS without
|
||||
* a login server.
|
||||
*
|
||||
* Logging in this way will make you considered an unregistered user and grant
|
||||
* no authority. You cannot log into a trusted (g+/r%) user account this way.
|
||||
*/
|
||||
exports.noguestsecurity = false;
|
||||
|
||||
/**
|
||||
* tourroom - specify a room to receive tournament announcements (defaults to
|
||||
* the room 'tournaments').
|
||||
* tourannouncements - announcements are only allowed in these rooms
|
||||
* tourdefaultplayercap - a set cap of how many players can be in a tournament
|
||||
* ratedtours - toggles tournaments being ladder rated (true) or not (false)
|
||||
*/
|
||||
exports.tourroom = '';
|
||||
/** @type {string[]} */
|
||||
exports.tourannouncements = [/* roomids */];
|
||||
exports.tourdefaultplayercap = 0;
|
||||
exports.ratedtours = false;
|
||||
|
||||
/**
|
||||
* appealurl - specify a URL containing information on how users can appeal
|
||||
* disciplinary actions on your section. You can also leave this blank, in
|
||||
* which case users won't be given any information on how to appeal.
|
||||
*/
|
||||
exports.appealurl = '';
|
||||
|
||||
/**
|
||||
* repl - whether repl sockets are enabled or not
|
||||
* replsocketprefix - the prefix for the repl sockets to be listening on
|
||||
* replsocketmode - the file mode bits to use for the repl sockets
|
||||
*/
|
||||
exports.repl = true;
|
||||
exports.replsocketprefix = './logs/repl/';
|
||||
exports.replsocketmode = 0o600;
|
||||
|
||||
/**
|
||||
* disablehotpatchall - disables `/hotpatch all`. Generally speaking, there's a
|
||||
* pretty big need for /hotpatch all - convenience. The only advantage any hotpatch
|
||||
* forms other than all is lower RAM use (which is only a problem for Main because
|
||||
* Main is huge), and to do pinpoint hotpatching (like /nohotpatch).
|
||||
*/
|
||||
exports.disablehotpatchall = false;
|
||||
|
||||
/**
|
||||
* forcedpublicprefixes - user ID prefixes which will be forced to battle publicly.
|
||||
* Battles involving user IDs which begin with one of the prefixes configured here
|
||||
* will be unaffected by various battle privacy commands such as /modjoin, /hideroom
|
||||
* or /ionext.
|
||||
* @type {string[] | undefined}
|
||||
*/
|
||||
exports.forcedpublicprefixes = [];
|
||||
|
||||
/**
|
||||
* startuphook - function to call when the server is fully initialized and ready
|
||||
* to serve requests.
|
||||
*/
|
||||
exports.startuphook = function () {};
|
||||
|
||||
/**
|
||||
* lastfmkey - the API key to let users use the last.fm commands from The Studio's
|
||||
* chat plugin.
|
||||
*/
|
||||
exports.lastfmkey = '';
|
||||
|
||||
/**
|
||||
* chatlogreader - the search method used for searching chatlogs.
|
||||
* @type {'ripgrep' | 'fs'}
|
||||
*/
|
||||
exports.chatlogreader = 'fs';
|
||||
/**
|
||||
* permissions and groups:
|
||||
* Each entry in `grouplist` is a seperate group. Some of the members are "special"
|
||||
* while the rest is just a normal permission.
|
||||
* The order of the groups determines their ranking.
|
||||
* The special members are as follows:
|
||||
* - symbol: Specifies the symbol of the group (as shown in front of the username)
|
||||
* - id: Specifies an id for the group.
|
||||
* - name: Specifies the human-readable name for the group.
|
||||
* - root: If this is true, the group can do anything.
|
||||
* - inherit: The group uses the group specified's permissions if it cannot
|
||||
* find the permission in the current group. Never make the graph
|
||||
* produced using this member have any cycles, or the server won't run.
|
||||
* - jurisdiction: The default jurisdiction for targeted permissions where one isn't
|
||||
* explictly specified. "Targeted permissions" are permissions
|
||||
* that might affect another user, such as `ban' or `promote'.
|
||||
* 's' is a special group where it means the user itself only
|
||||
* and 'u' is another special group where it means all groups
|
||||
* lower in rank than the current group.
|
||||
* - roomonly: forces the group to be a per-room moderation rank only.
|
||||
* - globalonly: forces the group to be a global rank only.
|
||||
* All the possible permissions are as follows:
|
||||
* - console: Developer console (>>).
|
||||
* - lockdown: /lockdown and /endlockdown commands.
|
||||
* - hotpatch: /hotpatch, /crashfixed and /savelearnsets commands.
|
||||
* - ignorelimits: Ignore limits such as chat message length.
|
||||
* - promote: Promoting and demoting. Will only work if the target user's current
|
||||
* group and target group are both in jurisdiction.
|
||||
* - room<rank>: /roompromote to <rank> (eg. roomvoice)
|
||||
* - makeroom: Create/delete chatrooms, and set modjoin/roomdesc/privacy
|
||||
* - editroom: Editing properties of rooms
|
||||
* - editprivacy: Set modjoin/privacy only for battles
|
||||
* - globalban: Banning and unbanning from the entire server.
|
||||
* - ban: Banning and unbanning in rooms.
|
||||
* - mute: Muting and unmuting.
|
||||
* - lock: locking (ipmute) and unlocking.
|
||||
* - receivemutedpms: Receive PMs from muted users.
|
||||
* - forcerename: /fr command.
|
||||
* - ip: IP checking.
|
||||
* - alts: Alt checking.
|
||||
* - modlog: view the moderator logs.
|
||||
* - show: Show command output to other users.
|
||||
* - showmedia: Show images and videos to other users.
|
||||
* - declare: /declare command.
|
||||
* - announce: /announce command.
|
||||
* - modchat: Set modchat.
|
||||
* - potd: Set PotD.
|
||||
* - forcewin: /forcewin command.
|
||||
* - battlemessage: /a command.
|
||||
* - tournaments: creating tournaments (/tour new, settype etc.)
|
||||
* - gamemoderation: /tour dq, autodq, end etc.
|
||||
* - gamemanagement: enable/disable games, minigames, and tournaments.
|
||||
* - minigame: make minigames (hangman, polls, etc.).
|
||||
* - game: make games.
|
||||
*/
|
||||
exports.grouplist = [
|
||||
{
|
||||
symbol: '&',
|
||||
id: "admin",
|
||||
name: "Administrator",
|
||||
inherit: '@',
|
||||
jurisdiction: 'u',
|
||||
globalonly: true,
|
||||
|
||||
console: true,
|
||||
bypassall: true,
|
||||
lockdown: true,
|
||||
promote: '&u',
|
||||
roomowner: true,
|
||||
roombot: true,
|
||||
roommod: true,
|
||||
roomdriver: true,
|
||||
forcewin: true,
|
||||
declare: true,
|
||||
addhtml: true,
|
||||
rangeban: true,
|
||||
makeroom: true,
|
||||
editroom: true,
|
||||
editprivacy: true,
|
||||
potd: true,
|
||||
disableladder: true,
|
||||
gdeclare: true,
|
||||
gamemanagement: true,
|
||||
exportinputlog: true,
|
||||
tournaments: true,
|
||||
},
|
||||
{
|
||||
symbol: '#',
|
||||
id: "owner",
|
||||
name: "Room Owner",
|
||||
inherit: '@',
|
||||
jurisdiction: 'u',
|
||||
roomonly: true,
|
||||
|
||||
roombot: true,
|
||||
roommod: true,
|
||||
roomdriver: true,
|
||||
roomprizewinner: true,
|
||||
editroom: true,
|
||||
declare: true,
|
||||
addhtml: true,
|
||||
gamemanagement: true,
|
||||
tournaments: true,
|
||||
},
|
||||
{
|
||||
symbol: '\u2605',
|
||||
id: "host",
|
||||
name: "Host",
|
||||
inherit: '@',
|
||||
jurisdiction: 'u',
|
||||
roomonly: true,
|
||||
|
||||
declare: true,
|
||||
modchat: 'a',
|
||||
gamemanagement: true,
|
||||
forcewin: true,
|
||||
tournaments: true,
|
||||
joinbattle: true,
|
||||
},
|
||||
{
|
||||
symbol: '@',
|
||||
id: "mod",
|
||||
name: "Moderator",
|
||||
inherit: '%',
|
||||
jurisdiction: 'u',
|
||||
|
||||
globalban: true,
|
||||
ban: true,
|
||||
modchat: 'a',
|
||||
roomvoice: true,
|
||||
roomwhitelist: true,
|
||||
forcerename: true,
|
||||
ip: true,
|
||||
alts: '@u',
|
||||
game: true,
|
||||
},
|
||||
{
|
||||
symbol: '%',
|
||||
id: "driver",
|
||||
name: "Driver",
|
||||
inherit: '+',
|
||||
jurisdiction: 'u',
|
||||
globalGroupInPersonalRoom: '@',
|
||||
|
||||
announce: true,
|
||||
warn: '\u2605u',
|
||||
kick: true,
|
||||
mute: '\u2605u',
|
||||
lock: true,
|
||||
forcerename: true,
|
||||
timer: true,
|
||||
modlog: true,
|
||||
alts: '%u',
|
||||
bypassblocks: 'u%@&~',
|
||||
receiveauthmessages: true,
|
||||
gamemoderation: true,
|
||||
jeopardy: true,
|
||||
joinbattle: true,
|
||||
minigame: true,
|
||||
modchat: true,
|
||||
hiderank: true,
|
||||
},
|
||||
{
|
||||
symbol: '\u00a7',
|
||||
id: "sectionleader",
|
||||
name: "Section Leader",
|
||||
inherit: '+',
|
||||
jurisdiction: 'u',
|
||||
},
|
||||
{
|
||||
// Bots are ranked below Driver/Mod so that Global Bots can be kept out
|
||||
// of modjoin % rooms (namely, Staff).
|
||||
// (They were previously above Driver/Mod so they can have game management
|
||||
// permissions drivers don't, but these permissions can be manually given.)
|
||||
symbol: '*',
|
||||
id: "bot",
|
||||
name: "Bot",
|
||||
inherit: '%',
|
||||
jurisdiction: 'u',
|
||||
|
||||
addhtml: true,
|
||||
tournaments: true,
|
||||
declare: true,
|
||||
bypassafktimer: true,
|
||||
gamemanagement: true,
|
||||
|
||||
ip: false,
|
||||
globalban: false,
|
||||
lock: false,
|
||||
forcerename: false,
|
||||
alts: false,
|
||||
},
|
||||
{
|
||||
symbol: '\u2606',
|
||||
id: "player",
|
||||
name: "Player",
|
||||
inherit: '+',
|
||||
battleonly: true,
|
||||
|
||||
roomvoice: true,
|
||||
modchat: true,
|
||||
editprivacy: true,
|
||||
gamemanagement: true,
|
||||
joinbattle: true,
|
||||
nooverride: true,
|
||||
},
|
||||
{
|
||||
symbol: '+',
|
||||
id: "voice",
|
||||
name: "Voice",
|
||||
inherit: ' ',
|
||||
|
||||
altsself: true,
|
||||
makegroupchat: true,
|
||||
joinbattle: true,
|
||||
show: true,
|
||||
showmedia: true,
|
||||
exportinputlog: true,
|
||||
importinputlog: true,
|
||||
},
|
||||
{
|
||||
symbol: '^',
|
||||
id: "prizewinner",
|
||||
name: "Prize Winner",
|
||||
roomonly: true,
|
||||
},
|
||||
{
|
||||
symbol: 'whitelist',
|
||||
id: "whitelist",
|
||||
name: "Whitelist",
|
||||
inherit: ' ',
|
||||
roomonly: true,
|
||||
altsself: true,
|
||||
show: true,
|
||||
showmedia: true,
|
||||
exportinputlog: true,
|
||||
importinputlog: true,
|
||||
},
|
||||
{
|
||||
symbol: ' ',
|
||||
ipself: true,
|
||||
},
|
||||
{
|
||||
name: 'Locked',
|
||||
id: 'locked',
|
||||
symbol: '\u203d',
|
||||
punishgroup: 'LOCK',
|
||||
},
|
||||
{
|
||||
name: 'Muted',
|
||||
id: 'muted',
|
||||
symbol: '!',
|
||||
punishgroup: 'MUTE',
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var custom_formats_exports = {};
|
||||
__export(custom_formats_exports, {
|
||||
Formats: () => Formats
|
||||
});
|
||||
module.exports = __toCommonJS(custom_formats_exports);
|
||||
const Formats = [
|
||||
{
|
||||
section: "Cobblemon"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Singles",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "singles"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Doubles",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "doubles"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Triples",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "triples"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Rotation",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "rotation"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Multi",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "multi"
|
||||
},
|
||||
{
|
||||
name: "Cobblemon Free for All",
|
||||
threads: [],
|
||||
mod: "cobblemon",
|
||||
ruleset: [],
|
||||
gameType: "freeforall"
|
||||
}
|
||||
];
|
||||
//# sourceMappingURL=custom-formats.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../config/custom-formats.ts"],
|
||||
"sourcesContent": ["export const Formats: FormatList = [\r\n\r\n\t{\r\n\t\tsection: \"Cobblemon\",\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Singles\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"singles\"\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Doubles\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"doubles\"\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Triples\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"triples\"\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Rotation\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"rotation\"\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Multi\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"multi\"\r\n\t},\r\n\t{\r\n\t\tname: \"Cobblemon Free for All\",\r\n\t\tthreads: [],\r\n\r\n\t\tmod: 'cobblemon',\r\n\t\truleset: [],\r\n\t\tgameType: \"freeforall\"\r\n\t},\r\n];\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAsB;AAAA,EAElC;AAAA,IACC,SAAS;AAAA,EACV;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS,CAAC;AAAA,IAEV,KAAK;AAAA,IACL,SAAS,CAAC;AAAA,IACV,UAAU;AAAA,EACX;AACD;",
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../config/formats.ts"],
|
||||
"sourcesContent": ["// Note: This is the list of formats\r\n// The rules that formats use are stored in data/rulesets.ts\r\n/*\r\nIf you want to add custom formats, create a file in this folder named: \"custom-formats.ts\"\r\n\r\nPaste the following code into the file and add your desired formats and their sections between the brackets:\r\n--------------------------------------------------------------------------------\r\n// Note: This is the list of formats\r\n// The rules that formats use are stored in data/rulesets.ts\r\n\r\nexport const Formats: FormatList = [\r\n];\r\n--------------------------------------------------------------------------------\r\n\r\nIf you specify a section that already exists, your format will be added to the bottom of that section.\r\nNew sections will be added to the bottom of the specified column.\r\nThe column value will be ignored for repeat sections.\r\n*/\r\n\r\nexport const Formats: FormatList = [\r\n\r\n\t// S/V Singles\r\n\t///////////////////////////////////////////////////////////////////\r\n\r\n\t{\r\n\t\tsection: \"S/V Singles\",\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] Random Battle\",\r\n\t\tdesc: `Randomized teams of Pokémon with sets that are generated to be competitively viable.`,\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712619/\">Random Battle Suggestions</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\tteam: 'random',\r\n\t\truleset: ['PotD', 'Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] Unrated Random Battle\",\r\n\r\n\t\tmod: 'gen9',\r\n\t\tteam: 'random',\r\n\t\tchallengeShow: false,\r\n\t\trated: false,\r\n\t\truleset: ['Obtainable', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod', 'Sleep Clause Mod'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] Random Battle (Blitz)\",\r\n\r\n\t\tmod: 'gen9',\r\n\t\tteam: 'random',\r\n\t\truleset: ['[Gen 9] Random Battle', 'Blitz'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] OU\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3710915/\">SV OU Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712513/\">SV OU Sample Teams</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712493/\">SV OU Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['Standard'],\r\n\t\tbanlist: ['Uber', 'AG', 'Arena Trap', 'Moody', 'Sand Veil', 'Shadow Tag', 'Snow Cloak', 'King\\'s Rock', 'Baton Pass'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] Ubers\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3710870/\">Ubers Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712978/\">Ubers Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['Standard'],\r\n\t\tbanlist: ['AG', 'Moody', 'King\\'s Rock', 'Baton Pass'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] UU\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3713709/\">UU Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3716435/\">UU Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['[Gen 9] OU'],\r\n\t\tbanlist: ['OU', 'UUBL'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] RU\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3713711/\">RU Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3717138/\">RU Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['[Gen 9] UU'],\r\n\t\tbanlist: ['UU', 'RUBL', 'Light Clay'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] NU\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3715408/\">NU Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3715712/\">NU Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['[Gen 9] RU'],\r\n\t\tbanlist: ['RU', 'NUBL'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] PU\",\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['[Gen 9] NU'],\r\n\t\tbanlist: ['NU', 'PUBL'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] LC\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3710868/\">Little Cup Metagame Discussion</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712989/\">Little Cup Sample Teams</a>`,\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threads/3712664/\">Little Cup Viability Rankings</a>`,\r\n\t\t],\r\n\r\n\t\tmod: 'gen9',\r\n\t\truleset: ['Little Cup', 'Standard'],\r\n\t\tbanlist: ['Dunsparce', 'Flittle', 'Gastly', 'Girafarig', 'Meditite', 'Misdreavus', 'Murkrow', 'Rufflet', 'Scyther', 'Sneasel', 'Moody', 'Baton Pass'],\r\n\t},\r\n\t{\r\n\t\tname: \"[Gen 9] Monotype\",\r\n\t\tthreads: [\r\n\t\t\t`• <a href=\"https://www.smogon.com/forums/threadsLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBO,MAAM,UAAsB;AAAA;AAAA;AAAA,EAKlC;AAAA,IACC,SAAS;AAAA,EACV;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACR;AAAA,IACD;AAAA,IAEA,KAAK;AAAA,IACL,MAAM;AAAA,IACN,SAAS,CAAC,QAAQ,cAAc,kBAAkB,qBAAqB,cAAc,kBAAkB;AAAA,EACxG;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IAEN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,eAAe;AAAA,IACf,OAAO;AAAA,IACP,SAAS,CAAC,cAAc,kBAAkB,qBAAqB,cAAc,kBAAkB;AAAA,EAChG;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IAEN,KAAK;AAAA,IACL,MAAM;AAAA,IACN,SAAS,CAAC,yBAAyB,OAAO;AAAA,EAC3C;AAAA,EACA;AAAA,IACC,MAAM;AAAA,IACN,SAAS;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IAEA,KAAK;AAAA,IACL,SAAS,CAAC,UAAU;AAAA,IACpB,SAAS,CAAC,QAAQ,MAAM,cAAc,SAAS,aAAa,cAAc,cAAc,eAAgB,YAAY;AAAA,E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ncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/abilities.ts"],
|
||||
"sourcesContent": ["/*\r\n\r\nRatings and how they work:\r\n\r\n-1: Detrimental\r\n\t An ability that severely harms the user.\r\n\tex. Defeatist, Slow Start\r\n\r\n 0: Useless\r\n\t An ability with no overall benefit in a singles battle.\r\n\tex. Color Change, Plus\r\n\r\n 1: Ineffective\r\n\t An ability that has minimal effect or is only useful in niche situations.\r\n\tex. Light Metal, Suction Cups\r\n\r\n 2: Useful\r\n\t An ability that can be generally useful.\r\n\tex. Flame Body, Overcoat\r\n\r\n 3: Effective\r\n\t An ability with a strong effect on the user or foe.\r\n\tex. Chlorophyll, Sturdy\r\n\r\n 4: Very useful\r\n\t One of the more popular abilities. It requires minimal support to be effective.\r\n\tex. Adaptability, Magic Bounce\r\n\r\n 5: Essential\r\n\t The sort of ability that defines metagames.\r\n\tex. Imposter, Shadow Tag\r\n\r\n*/\r\n\r\nexport const Abilities: {[abilityid: string]: AbilityData} = {\r\n\tnoability: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\tname: \"No Ability\",\r\n\t\trating: 0.1,\r\n\t\tnum: 0,\r\n\t},\r\n\tadaptability: {\r\n\t\tonModifyMove(move) {\r\n\t\t\tmove.stab = 2;\r\n\t\t},\r\n\t\tname: \"Adaptability\",\r\n\t\trating: 4,\r\n\t\tnum: 91,\r\n\t},\r\n\taerilate: {\r\n\t\tonModifyTypePriority: -1,\r\n\t\tonModifyType(move, pokemon) {\r\n\t\t\tconst noModifyType = [\r\n\t\t\t\t'judgment', 'multiattack', 'naturalgift', 'revelationdance', 'technoblast', 'terrainpulse', 'weatherball',\r\n\t\t\t];\r\n\t\t\tif (move.type === 'Normal' && !noModifyType.includes(move.id) &&\r\n\t\t\t\t!(move.isZ && move.category !== 'Status') && !(move.name === 'Tera Blast' && pokemon.terastallized)) {\r\n\t\t\t\tmove.type = 'Flying';\r\n\t\t\t\tmove.typeChangerBoosted = this.effect;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBasePowerPriority: 23,\r\n\t\tonBasePower(basePower, pokemon, target, move) {\r\n\t\t\tif (move.typeChangerBoosted === this.effect) return this.chainModify([4915, 4096]);\r\n\t\t},\r\n\t\tname: \"Aerilate\",\r\n\t\trating: 4,\r\n\t\tnum: 184,\r\n\t},\r\n\taftermath: {\r\n\t\tname: \"Aftermath\",\r\n\t\tonDamagingHitOrder: 1,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (!target.hp && this.checkMoveMakesContact(move, source, target, true)) {\r\n\t\t\t\tthis.damage(source.baseMaxhp / 4, source, target);\r\n\t\t\t}\r\n\t\t},\r\n\t\trating: 2,\r\n\t\tnum: 106,\r\n\t},\r\n\tairlock: {\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\tthis.effectState.switchingIn = true;\r\n\t\t},\r\n\t\tonStart(pokemon) {\r\n\t\t\t// Air Lock does not activate when Skill Swapped or when Neutralizing Gas leaves the field\r\n\t\t\tif (this.effectState.switchingIn) {\r\n\t\t\t\tthis.add('-ability', pokemon, 'Air Lock');\r\n\t\t\t\tthis.effectState.switchingIn = false;\r\n\t\t\t}\r\n\t\t\tthis.eachEvent('WeatherChange', this.effect);\r\n\t\t},\r\n\t\tonEnd(pokemon) {\r\n\t\t\tthis.eachEvent('WeatherChange', this.effect);\r\n\t\t},\r\n\t\tsuppressWeather: true,\r\n\t\tname: \"Air Lock\",\r\n\t\trating: 1.5,\r\n\t\tnum: 76,\r\n\t},\r\n\tanalytic: {\r\n\t\tonBasePowerPriority: 21,\r\n\t\tonBasePower(basePower, pokemon) {\r\n\t\t\tlet boosted = true;\r\n\t\t\tfor (const target of this.getAllActive()) {\r\n\t\t\t\tif (target === pokemon) continue;\r\n\t\t\t\tif (this.queue.willMove(target)) {\r\n\t\t\t\t\tboosted = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (boosted) {\r\n\t\t\t\tthis.debug('Analytic boost');\r\n\t\t\t\treturn this.chainModify([5325, 4096]);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Analytic\",\r\n\t\trating: 2.5,\r\n\t\tnum: 148,\r\n\t},\r\n\tangerpoint: {\r\n\t\tonHit(target, source, move) {\r\n\t\t\tif (!target.hp) return;\r\n\t\t\tif (move?.effectType === 'Move' && target.getMoveHitData(move).crit) {\r\n\t\t\t\tthis.boost({atk: 12}, target, target);\r\n\t\t\t}\r\n\t\t},\r\n\t\tname: \"Anger Point\",\r\n\t\trating: 1,\r\n\t\tnum: 83,\r\n\t},\r\n\tangershell: {\r\n\t\tonDamage(damage, target, source, effect) {\r\n\t\t\tif (\r\n\t\t\t\teffect.effectType === \"Move\" &&\r\n\t\t\t\t!effect.multihit &&\r\n\t\t\t\t(!effect.negateSecondary && !(effect.hasSheerForce && source.hasAbility('sheerforce')))\r\n\t\t\t) {\r\n\t\t\t\tthis.effectState.checkedAngerShell = false;\r\n\t\t\t} else {\r\n\t\t\t\tthis.effectState.checkedAngerShell = true;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTryEatItem(item) {\r\n\t\t\tconst healingItems = [\r\n\t\t\t\t'aguavberry', 'enigmaberry', 'figyberry', 'iapapaberry', 'magoberry', 'sitrusberry', 'wikiberry', 'oranberry', 'berryjuice',\r\n\t\t\t];\r\n\t\t\tif (healingItems.includes(item.id)) {\r\n\t\t\t\treturn this.effectState.checkedAngerShell;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tthis.effectState.checkedAngerShell = true;\r\n\t\t\tif (!source || source === target || !target.hp || !move.totalDamage) return;\r\n\t\t\tconst lastAttackedBy = target.getLastAttackedBy();\r\n\t\t\tif (!lastAttackedBy) return;\r\n\t\t\tconst damage = move.multihit ? move.totalDamage : lastAttackedBy.damageLine truncated
|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D,UAAI,CAAC,WAAW,WAAW,UAAU,aAAa,SAAS,SAAS,EAAE,SAAS,OAAO,EAAE,GAAG;AAC1F,YAAI,OAAO,eAAe,QAAQ;AACjC,gBAAM,eAAe,KAAK,YAAY;AACtC,eAAK,IAAI,UAAU,QAAQ,uBAAuB,UAAU,YAAY;AAAA,QACzE;AACA,eAAO;AAAA,MACR;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,KAAK;AAAA,EACN;AAAA,EACA,gBAAgB;AAAA,IACf,WAAW,SAAS;AACnB,WAAK,IAAI,YAAY,SAAS,QAAQ;AACtC,WAAK,IAAI,YAAY,SAAS,SAAS;AACvC,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,IACA,QAAQ;AACP,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,IACA,kBAAkB;AACjB,aAAO,CAAC,KAAK,YAAY;AAAA,IAC1B;AAAA,IACA,mBAAmB,QAAQ,QAAQ,QAAQ,QAAQ;AAClD,UAAI,UAAU,OAAO,eAAe,QAAQ;AAC3C,aAAK,MAAM,EAAC,KAAK,OAAM,GAAG,QAAQ,QAAQ,KAAK,IAAI,UAAU,IAAI,eAAe,CAAC;AAAA,MAClF;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,KAAK;AAAA,EACN;AAAA,EACA,gBAAgB;AAAA,IACf,WAAW,SAAS;AACnB,WALine truncated
|
||||
"names": ["target"]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/aliases.ts"],
|
||||
"sourcesContent": ["export const Aliases: {[alias: string]: string} = {\r\n\t// formats\r\n\trandbats: \"[Gen 9] Random Battle\",\r\n\tuber: \"[Gen 9] Ubers\",\r\n\tanythinggoes: \"[Gen 8] Anything Goes\",\r\n\tubers: \"[Gen 9] Ubers\",\r\n\toverused: \"[Gen 9] OU\",\r\n\tunderused: \"[Gen 9] UU\",\r\n\trarelyused: \"[Gen 9] RU\",\r\n\tneverused: \"[Gen 9] NU\",\r\n\tpu: \"[Gen 9] PU\",\r\n\tzeroused: \"[Gen 8] ZU\",\r\n\tmono: \"[Gen 9] Monotype\",\r\n\tag: \"[Gen 9] Anything Goes\",\r\n\tbss: \"[Gen 9] Battle Stadium Singles Series 2\",\r\n\tvgc: \"[Gen 9] VGC 2023 Series 2\",\r\n\tbsd: \"[Gen 9] VGC 2023 Series 2\",\r\n\tranddubs: \"[Gen 8] Random Doubles Battle\",\r\n\tdoubles: \"[Gen 9] Doubles OU\",\r\n\tdou: \"[Gen 9] Doubles OU\",\r\n\tdubs: \"[Gen 9] Doubles OU\",\r\n\tdubers: \"[Gen 9] Doubles Ubers\",\r\n\tduu: \"[Gen 9] Doubles UU\",\r\n\t\"2v2\": \"[Gen 9] 2v2 Doubles\",\r\n\tnatdex: \"[Gen 9] National Dex\",\r\n\tnd: \"[Gen 9] National Dex\",\r\n\tndou: \"[Gen 9] National Dex\",\r\n\tgen8natdex: \"[Gen 8] National Dex\",\r\n\tgen8nd: \"[Gen 8] National Dex\",\r\n\tgen8ndou: \"[Gen 8] National Dex\",\r\n\tnatdexubers: \"[Gen 9] National Dex Ubers\",\r\n\tndubers: \"[Gen 9] National Dex Ubers\",\r\n\tnatdexuu: \"[Gen 9] National Dex UU\",\r\n\tnduu: \"[Gen 9] National Dex UU\",\r\n\tnatdexru: \"[Gen 9] National Dex RU\",\r\n\tndru: \"[Gen 9] National Dex RU\",\r\n\tnatdexmonotype: \"[Gen 8] National Dex Monotype\",\r\n\tnatdexmono: \"[Gen 8] National Dex Monotype\",\r\n\tndmono: \"[Gen 8] National Dex Monotype\",\r\n\tnatdexag: \"[Gen 9] National Dex AG\",\r\n\tndag: \"[Gen 9] National Dex AG\",\r\n\tnatdexbh: \"[Gen 9] National Dex BH\",\r\n\tndbh: \"[Gen 9] National Dex BH\",\r\n\tbh: \"[Gen 9] Balanced Hackmons\",\r\n\tmnm: \"[Gen 9] Mix and Mega\",\r\n\taaa: \"[Gen 9] Almost Any Ability\",\r\n\tgen8aaa: \"[Gen 8] Almost Any Ability\",\r\n\tstab: \"[Gen 9] STABmons\",\r\n\tgg: \"[Gen 9] Godly Gift\",\r\n\tpic: \"[Gen 9] Partners in Crime\",\r\n\tcamo: \"[Gen 9] Camomons\",\r\n\tffa: \"[Gen 9] Free-For-All\",\r\n\tts: \"[Gen 8] Tier Shift\",\r\n\tph: \"[Gen 9] Pure Hackmons\",\r\n\thackmons: \"[Gen 9] Pure Hackmons\",\r\n\tgen7bh: \"[Gen 7] Balanced Hackmons\",\r\n\tgen7mnm: \"[Gen 7] Mix and Mega\",\r\n\tgen7stab: \"[Gen 7] STABmons\",\r\n\tgen6aaa: \"[Gen 6] Almost Any Ability\",\r\n\tgen6ph: \"[Gen 6] Pure Hackmons\",\r\n\tgen6hackmons: \"[Gen 6] Pure Hackmons\",\r\n\tcc1v1: \"[Gen 9] Challenge Cup 1v1\",\r\n\tcc2v2: \"[Gen 9] Challenge Cup 2v2\",\r\n\thc: \"[Gen 9] Hackmons Cup\",\r\n\tmonorandom: \"[Gen 8] Monotype Random Battle\",\r\n\tbf: \"[Gen 7] Battle Factory\",\r\n\tbssf: \"[Gen 8] BSS Factory\",\r\n\tssb: \"[Gen 8] Super Staff Bros 4\",\r\n\tssb4: \"[Gen 8] Super Staff Bros 4\",\r\n\tlgrandom: \"[Gen 7] Let's Go Random Battle\",\r\n\tgen6bf: \"[Gen 6] Battle Factory\",\r\n\tgen7mono: \"[Gen 7] Monotype\",\r\n\tgen7ag: \"[Gen 7] Anything Goes\",\r\n\tgen7bss: \"[Gen 7] Battle Spot Singles\",\r\n\tgen7bssf: \"[Gen 7] BSS Factory\",\r\n\tlgpeou: \"[Gen 7 Let's Go] OU\",\r\n\tlgou: \"[Gen 7 Let's Go] Let's Go OU\",\r\n\tlgdou: \"[Gen 7 Let's Go] Doubles OU\",\r\n\tlgpedou: \"[Gen 7 Let's Go] OU\",\r\n\tvgc20: \"[Gen 8] VGC 2020\",\r\n\tvgc19: \"[Gen 7] VGC 2019\",\r\n\tvgc18: \"[Gen 7] VGC 2018\",\r\n\tvgc17: \"[Gen 7] VGC 2017\",\r\n\tgen7bsd: \"[Gen 7] Battle Spot Doubles\",\r\n\tgen6mono: \"[Gen 6] Monotype\",\r\n\tgen6ag: \"[Gen 6] Anything Goes\",\r\n\tcrossevo: \"[Gen 9] Cross Evolution\",\r\n\tmayhem: \"[Gen 9] Random Battle Mayhem\",\r\n\tomotm: \"[Gen 9] Fortemons\",\r\n\tlcotm: \"[Gen 9] Tera Donation\",\r\n\r\n\t// mega evos\r\n\tfabio: \"Ampharos-Mega\",\r\n\tmaero: \"Aerodactyl-Mega\",\r\n\tmegabunny: \"Lopunny-Mega\",\r\n\tmegabro: \"Slowbro-Mega\",\r\n\tmegacharizard: \"Charizard-Mega-Y\",\r\n\tmegacharizardx: \"Charizard-Mega-X\",\r\n\tmegacharizardy: \"Charizard-Mega-Y\",\r\n\tmegadoom: \"Houndoom-Mega\",\r\n\tmegadrill: \"Beedrill-Mega\",\r\n\tmegagard: \"Gardevoir-Mega\",\r\n\tmegacross: \"Heracross-Mega\",\r\n\tmegakhan: \"Kangaskhan-Mega\",\r\n\tmegalop: \"Lopunny-Mega\",\r\n\tmegaluc: \"Lucario-Mega\",\r\n\tmegamaw: \"Mawile-Mega\",\r\n\tmegamedi: \"Medicham-Mega\",\r\n\tmegamewtwo: \"Mewtwo-Mega-Y\",\r\n\tmegamewtwox: \"Mewtwo-Mega-X\",\r\n\tmegamewtwoy: \"Mewtwo-Mega-Y\",\r\n\tmegasnow: \"Abomasnow-Mega\",\r\n\tmegashark: \"Sharpedo-Mega\",\r\n\tmegasaur: \"Venusaur-Mega\",\r\n\tmmx: \"Mewtwo-Mega-X\",\r\n\tmmy: \"Mewtwo-Mega-Y\",\r\n\tzardx: \"Charizard-Mega-X\",\r\n\tzardy: \"Charizard-Mega-Y\",\r\n\r\n\t// Pok\u00E9star Studios\r\n\tblackdoor: \"Pokestar Black-Door\",\r\n\tbrycen: \"Brycen-Man\",\r\n\tbrycenman: \"Pokestar Brycen-Man\",\r\n\tf00: \"Pokestar F00\",\r\n\tf002: \"Pokestar F002\",\r\n\tgiant: \"Pokestar Giant\",\r\n\tmt: \"Pokestar MT\",\r\n\tmt2: \"Pokestar MT2\",\r\n\tmajin: \"Spirit\",\r\n\tmechatyranitar: \"MT\",\r\n\tmechatyranitar2: \"MT2\",\r\n\tmonica: \"Giant\",\r\n\tspirit: \"Pokestar Spirit\",\r\n\ttransport: \"Pokestar Transport\"Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAqC;AAAA;AAAA,EAEjD,UAAU;AAAA,EACV,MAAM;AAAA,EACN,cAAc;AAAA,EACd,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,UAAU;AAAA,EACV,SAAS;AAAA,EACT,KAAK;AAAA,EACL,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,aAAa;AAAA,EACb,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,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0,0 +1,100 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var cg_team_data_exports = {};
|
||||
__export(cg_team_data_exports, {
|
||||
ABILITY_MOVE_BONUSES: () => ABILITY_MOVE_BONUSES,
|
||||
ABILITY_MOVE_TYPE_BONUSES: () => ABILITY_MOVE_TYPE_BONUSES,
|
||||
HARDCODED_MOVE_WEIGHTS: () => HARDCODED_MOVE_WEIGHTS,
|
||||
MOVE_PAIRINGS: () => MOVE_PAIRINGS,
|
||||
SPEED_BASED_MOVES: () => SPEED_BASED_MOVES,
|
||||
WEIGHT_BASED_MOVES: () => WEIGHT_BASED_MOVES
|
||||
});
|
||||
module.exports = __toCommonJS(cg_team_data_exports);
|
||||
const MOVE_PAIRINGS = {
|
||||
rest: "sleeptalk",
|
||||
sleeptalk: "rest"
|
||||
};
|
||||
const ABILITY_MOVE_BONUSES = {
|
||||
drought: { sunnyday: 0.2, solarbeam: 2 }
|
||||
};
|
||||
const ABILITY_MOVE_TYPE_BONUSES = {
|
||||
darkaura: { Dark: 1.33 },
|
||||
fairyaura: { Fairy: 1.33 },
|
||||
// -ate moves
|
||||
pixilate: { Normal: 1.5 * 1.2 },
|
||||
refrigerate: { Normal: 1.5 * 1.2 },
|
||||
aerilate: { Normal: 1.5 * 1.2 },
|
||||
normalize: { Normal: 1.2 },
|
||||
// weather
|
||||
drizzle: { Water: 1.4, Fire: 0.6 },
|
||||
drought: { Fire: 1.4, Water: 0.6 }
|
||||
};
|
||||
const HARDCODED_MOVE_WEIGHTS = {
|
||||
// Fails unless user is asleep
|
||||
snore: 0,
|
||||
// Hard to use
|
||||
lastresort: 0.1,
|
||||
dreameater: 0.1,
|
||||
// Useless without Berry + sucks even then
|
||||
belch: 0.2,
|
||||
// Power increases in conditions within our control
|
||||
acrobatics: 1.75,
|
||||
// not 2 because of the opportunity cost of forgoing an item
|
||||
facade: 1.5,
|
||||
// not 2 because we forgo an item AND get badly poisoned
|
||||
// Power increases in conditions out of our control that may occur
|
||||
avalanche: 1.2,
|
||||
hex: 1.2,
|
||||
// screens
|
||||
lightscreen: 3,
|
||||
reflect: 3,
|
||||
auroraveil: 3,
|
||||
// TODO: make sure AVeil always gets Snow?
|
||||
// hazard removal
|
||||
defog: 2,
|
||||
rapidspin: 1.2,
|
||||
// mess with the opponent
|
||||
taunt: 2,
|
||||
disable: 2,
|
||||
encore: 3,
|
||||
// healing moves
|
||||
// TODO: should healing moves be more common on bulkier pokemon?
|
||||
// 25%
|
||||
junglehealing: 3,
|
||||
lifedew: 3,
|
||||
// 50%
|
||||
milkdrink: 5,
|
||||
moonlight: 5,
|
||||
morningsun: 5,
|
||||
recover: 5,
|
||||
roost: 5,
|
||||
shoreup: 5,
|
||||
slackoff: 5,
|
||||
softboiled: 5,
|
||||
synthesis: 5,
|
||||
// delayed/consequence
|
||||
rest: 3,
|
||||
// has sleeptalk potential
|
||||
wish: 2,
|
||||
// requires terrain
|
||||
steelroller: 0.1
|
||||
};
|
||||
const WEIGHT_BASED_MOVES = ["heatcrash", "heavyslam", "lowkick", "grassknot"];
|
||||
const SPEED_BASED_MOVES = ["gyroball", "electroball"];
|
||||
//# sourceMappingURL=cg-team-data.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/cg-team-data.ts"],
|
||||
"sourcesContent": ["// Data for computer-generated teams\r\n\r\nexport const MOVE_PAIRINGS: {[moveID: string]: string} = {\r\n\trest: 'sleeptalk',\r\n\tsleeptalk: 'rest',\r\n};\r\n\r\n// Bonuses to move ratings by ability\r\nexport const ABILITY_MOVE_BONUSES: {[abilityID: string]: {[moveID: string]: number}} = {\r\n\tdrought: {sunnyday: 0.2, solarbeam: 2},\r\n};\r\n// Bonuses to move ratings by move type\r\nexport const ABILITY_MOVE_TYPE_BONUSES: {[abilityID: string]: {[typeID: string]: number}} = {\r\n\tdarkaura: {Dark: 1.33},\r\n\tfairyaura: {Fairy: 1.33},\r\n\r\n\t// -ate moves\r\n\tpixilate: {Normal: 1.5 * 1.2},\r\n\trefrigerate: {Normal: 1.5 * 1.2},\r\n\taerilate: {Normal: 1.5 * 1.2},\r\n\tnormalize: {Normal: 1.2},\r\n\r\n\t// weather\r\n\tdrizzle: {Water: 1.4, Fire: 0.6},\r\n\tdrought: {Fire: 1.4, Water: 0.6},\r\n};\r\n// For moves whose quality isn't obvious from data\r\n// USE SPARINGLY!\r\nexport const HARDCODED_MOVE_WEIGHTS: {[moveID: string]: number} = {\r\n\t// Fails unless user is asleep\r\n\tsnore: 0,\r\n\t// Hard to use\r\n\tlastresort: 0.1, dreameater: 0.1,\r\n\t// Useless without Berry + sucks even then\r\n\tbelch: 0.2,\r\n\r\n\t// Power increases in conditions within our control\r\n\tacrobatics: 1.75, // not 2 because of the opportunity cost of forgoing an item\r\n\tfacade: 1.5, // not 2 because we forgo an item AND get badly poisoned\r\n\r\n\t// Power increases in conditions out of our control that may occur\r\n\tavalanche: 1.2,\r\n\thex: 1.2,\r\n\r\n\t// screens\r\n\tlightscreen: 3, reflect: 3, auroraveil: 3, // TODO: make sure AVeil always gets Snow?\r\n\r\n\t// hazard removal\r\n\tdefog: 2, rapidspin: 1.2,\r\n\r\n\t// mess with the opponent\r\n\ttaunt: 2, disable: 2, encore: 3,\r\n\r\n\t// healing moves\r\n\t// TODO: should healing moves be more common on bulkier pokemon?\r\n\t// 25%\r\n\tjunglehealing: 3, lifedew: 3,\r\n\t// 50%\r\n\tmilkdrink: 5, moonlight: 5, morningsun: 5, recover: 5, roost: 5,\r\n\tshoreup: 5, slackoff: 5, softboiled: 5, synthesis: 5,\r\n\t// delayed/consequence\r\n\trest: 3, // has sleeptalk potential\r\n\twish: 2,\r\n\r\n\t// requires terrain\r\n\tsteelroller: 0.1,\r\n};\r\n\r\nexport const WEIGHT_BASED_MOVES = ['heatcrash', 'heavyslam', 'lowkick', 'grassknot'];\r\nexport const SPEED_BASED_MOVES = ['gyroball', 'electroball'];\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,gBAA4C;AAAA,EACxD,MAAM;AAAA,EACN,WAAW;AACZ;AAGO,MAAM,uBAA0E;AAAA,EACtF,SAAS,EAAC,UAAU,KAAK,WAAW,EAAC;AACtC;AAEO,MAAM,4BAA+E;AAAA,EAC3F,UAAU,EAAC,MAAM,KAAI;AAAA,EACrB,WAAW,EAAC,OAAO,KAAI;AAAA;AAAA,EAGvB,UAAU,EAAC,QAAQ,MAAM,IAAG;AAAA,EAC5B,aAAa,EAAC,QAAQ,MAAM,IAAG;AAAA,EAC/B,UAAU,EAAC,QAAQ,MAAM,IAAG;AAAA,EAC5B,WAAW,EAAC,QAAQ,IAAG;AAAA;AAAA,EAGvB,SAAS,EAAC,OAAO,KAAK,MAAM,IAAG;AAAA,EAC/B,SAAS,EAAC,MAAM,KAAK,OAAO,IAAG;AAChC;AAGO,MAAM,yBAAqD;AAAA;AAAA,EAEjE,OAAO;AAAA;AAAA,EAEP,YAAY;AAAA,EAAK,YAAY;AAAA;AAAA,EAE7B,OAAO;AAAA;AAAA,EAGP,YAAY;AAAA;AAAA,EACZ,QAAQ;AAAA;AAAA;AAAA,EAGR,WAAW;AAAA,EACX,KAAK;AAAA;AAAA,EAGL,aAAa;AAAA,EAAG,SAAS;AAAA,EAAG,YAAY;AAAA;AAAA;AAAA,EAGxC,OAAO;AAAA,EAAG,WAAW;AAAA;AAAA,EAGrB,OAAO;AAAA,EAAG,SAAS;AAAA,EAAG,QAAQ;AAAA;AAAA;AAAA;AAAA,EAK9B,eAAe;AAAA,EAAG,SAAS;AAAA;AAAA,EAE3B,WAAW;AAAA,EAAG,WAAW;AAAA,EAAG,YAAY;AAAA,EAAG,SAAS;AAAA,EAAG,OAAO;AAAA,EAC9D,SAAS;AAAA,EAAG,UAAU;AAAA,EAAG,YAAY;AAAA,EAAG,WAAW;AAAA;AAAA,EAEnD,MAAM;AAAA;AAAA,EACN,MAAM;AAAA;AAAA,EAGN,aAAa;AACd;AAEO,MAAM,qBAAqB,CAAC,aAAa,aAAa,WAAW,WAAW;AAC5E,MAAM,oBAAoB,CAAC,YAAY,aAAa;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,560 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var cg_teams_exports = {};
|
||||
__export(cg_teams_exports, {
|
||||
default: () => TeamGenerator,
|
||||
levelUpdateInterval: () => levelUpdateInterval
|
||||
});
|
||||
module.exports = __toCommonJS(cg_teams_exports);
|
||||
var import_sim = require("../sim");
|
||||
var import_cg_team_data = require("./cg-team-data");
|
||||
const MAX_WEAK_TO_SAME_TYPE = 3;
|
||||
const levelOverride = {};
|
||||
let levelUpdateInterval = null;
|
||||
async function updateLevels(database) {
|
||||
const updateSpecies = await database.prepare(
|
||||
"UPDATE gen9computergeneratedteams SET wins = 0, losses = 0, level = ? WHERE species_id = ?"
|
||||
);
|
||||
const updateHistory = await database.prepare(
|
||||
`INSERT INTO gen9_historical_levels (level, species_id, timestamp) VALUES (?, ?, ${Date.now()})`
|
||||
);
|
||||
const data = await database.all("SELECT species_id, wins, losses, level FROM gen9computergeneratedteams");
|
||||
for (let { species_id, wins, losses, level } of data) {
|
||||
const total = wins + losses;
|
||||
if (total > 10) {
|
||||
if (wins / total >= 0.55)
|
||||
level--;
|
||||
if (wins / total <= 0.45)
|
||||
level++;
|
||||
level = Math.max(1, Math.min(100, level));
|
||||
await updateSpecies?.run([level, species_id]);
|
||||
await updateHistory?.run([level, species_id]);
|
||||
}
|
||||
levelOverride[species_id] = level;
|
||||
}
|
||||
}
|
||||
if (global.Config && Config.usesqlite && Config.usesqliteleveling) {
|
||||
const database = (0, import_sim.SQL)(module, { file: "./databases/battlestats.db" });
|
||||
void updateLevels(database);
|
||||
levelUpdateInterval = setInterval(() => void updateLevels(database), 1e3 * 60 * 60 * 2);
|
||||
}
|
||||
class TeamGenerator {
|
||||
constructor(format, seed) {
|
||||
this.dex = import_sim.Dex.forFormat(format);
|
||||
this.format = import_sim.Dex.formats.get(format);
|
||||
this.teamSize = this.format.ruleTable?.maxTeamSize || 6;
|
||||
this.prng = seed instanceof import_sim.PRNG ? seed : new import_sim.PRNG(seed);
|
||||
this.itemPool = this.dex.items.all().filter((i) => i.exists && i.isNonstandard !== "Past" && !i.isPokeball);
|
||||
const rules = import_sim.Dex.formats.getRuleTable(this.format);
|
||||
if (rules.adjustLevel)
|
||||
this.forceLevel = rules.adjustLevel;
|
||||
}
|
||||
getTeam() {
|
||||
let speciesPool = this.dex.species.all().filter((s) => {
|
||||
if (!s.exists)
|
||||
return false;
|
||||
if (s.isNonstandard || s.isNonstandard === "Unobtainable")
|
||||
return false;
|
||||
if (s.nfe)
|
||||
return false;
|
||||
if (s.battleOnly && !s.requiredItems?.length)
|
||||
return false;
|
||||
return true;
|
||||
});
|
||||
const teamStats = {
|
||||
hazardSetters: {},
|
||||
typeWeaknesses: {}
|
||||
};
|
||||
const team = [];
|
||||
while (team.length < this.teamSize && speciesPool.length) {
|
||||
const species = this.prng.sample(speciesPool);
|
||||
const haveRoomToReject = speciesPool.length >= this.teamSize - team.length;
|
||||
const isGoodFit = this.speciesIsGoodFit(species, teamStats);
|
||||
if (haveRoomToReject && !isGoodFit)
|
||||
continue;
|
||||
speciesPool = speciesPool.filter((s) => s.baseSpecies !== species.baseSpecies);
|
||||
team.push(this.makeSet(species, teamStats));
|
||||
}
|
||||
return team;
|
||||
}
|
||||
makeSet(species, teamStats) {
|
||||
const abilityPool = Object.values(species.abilities);
|
||||
const abilityWeights = abilityPool.map((a) => this.getAbilityWeight(this.dex.abilities.get(a)));
|
||||
const ability = this.weightedRandomPick(abilityPool, abilityWeights);
|
||||
const moves = [];
|
||||
let learnset = this.dex.species.getLearnset(species.id);
|
||||
let movePool = [];
|
||||
let learnsetSpecies = species;
|
||||
if (!learnset || species.id === "gastrodoneast") {
|
||||
learnsetSpecies = this.dex.species.get(species.baseSpecies);
|
||||
learnset = this.dex.species.getLearnset(learnsetSpecies.id);
|
||||
}
|
||||
if (learnset) {
|
||||
movePool = Object.keys(learnset).filter(
|
||||
(moveid) => learnset[moveid].find((learned) => learned.startsWith("9"))
|
||||
);
|
||||
}
|
||||
if (learnset && learnsetSpecies === species && species.changesFrom) {
|
||||
const changesFrom = this.dex.species.get(species.changesFrom);
|
||||
learnset = this.dex.species.getLearnset(changesFrom.id);
|
||||
for (const moveid in learnset) {
|
||||
if (!movePool.includes(moveid) && learnset[moveid].some((source) => source.startsWith("9"))) {
|
||||
movePool.push(moveid);
|
||||
}
|
||||
}
|
||||
}
|
||||
const evoRegion = learnsetSpecies.evoRegion;
|
||||
while (learnsetSpecies.prevo) {
|
||||
learnsetSpecies = this.dex.species.get(learnsetSpecies.prevo);
|
||||
for (const moveid in learnset) {
|
||||
if (!movePool.includes(moveid) && learnset[moveid].some((source) => source.startsWith("9") && !evoRegion)) {
|
||||
movePool.push(moveid);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!movePool.length)
|
||||
throw new Error(`No moves for ${species.id}`);
|
||||
const numberOfMovesToConsider = Math.min(movePool.length, Math.max(15, Math.trunc(movePool.length * 0.3)));
|
||||
let movePoolIsTrimmed = false;
|
||||
while (moves.length < 4 && movePool.length) {
|
||||
let weights;
|
||||
if (!movePoolIsTrimmed) {
|
||||
const interimMovePool = [];
|
||||
for (const move of movePool) {
|
||||
const weight = this.getMoveWeight(this.dex.moves.get(move), teamStats, species, moves, ability);
|
||||
interimMovePool.push({ move, weight });
|
||||
}
|
||||
interimMovePool.sort((a, b) => b.weight - a.weight);
|
||||
movePool = [];
|
||||
weights = [];
|
||||
for (let i = 0; i < numberOfMovesToConsider; i++) {
|
||||
movePool.push(interimMovePool[i].move);
|
||||
weights.push(interimMovePool[i].weight);
|
||||
}
|
||||
movePoolIsTrimmed = true;
|
||||
} else {
|
||||
weights = movePool.map((m) => this.getMoveWeight(this.dex.moves.get(m), teamStats, species, moves, ability));
|
||||
}
|
||||
const moveID = this.weightedRandomPick(movePool, weights, { remove: true });
|
||||
const pairedMove = import_cg_team_data.MOVE_PAIRINGS[moveID];
|
||||
const alreadyHavePairedMove = moves.some((m) => m.id === pairedMove);
|
||||
if (moves.length < 3 && pairedMove && !alreadyHavePairedMove && // We don't check movePool because sometimes paired moves are bad.
|
||||
this.dex.species.getLearnset(species.id)?.[pairedMove]) {
|
||||
moves.push(this.dex.moves.get(pairedMove));
|
||||
movePool.splice(movePool.indexOf(pairedMove), 1);
|
||||
}
|
||||
moves.push(this.dex.moves.get(moveID));
|
||||
}
|
||||
let item = "";
|
||||
if (species.requiredItem) {
|
||||
item = species.requiredItem;
|
||||
} else if (species.requiredItems) {
|
||||
item = this.prng.sample(species.requiredItems.filter((i) => !this.dex.items.get(i).isNonstandard));
|
||||
} else if (moves.every((m) => m.id !== "acrobatics")) {
|
||||
const weights = [];
|
||||
const items = [];
|
||||
for (const i of this.itemPool) {
|
||||
if (i.itemUser?.includes(species.name)) {
|
||||
item = i.name;
|
||||
break;
|
||||
}
|
||||
const weight = this.getItemWeight(i, teamStats, species, moves, ability);
|
||||
if (weight !== 0) {
|
||||
weights.push(weight);
|
||||
items.push(i.name);
|
||||
}
|
||||
}
|
||||
if (!item)
|
||||
item = this.weightedRandomPick(items, weights);
|
||||
} else if (["Quark Drive", "Protosynthesis"].includes(ability)) {
|
||||
item = "Booster Energy";
|
||||
}
|
||||
const ivs = {
|
||||
hp: 31,
|
||||
atk: moves.some((move) => this.dex.moves.get(move).category === "Physical") ? 31 : 0,
|
||||
def: 31,
|
||||
spa: 31,
|
||||
spd: 31,
|
||||
spe: 31
|
||||
};
|
||||
const level = this.forceLevel || TeamGenerator.getLevel(species);
|
||||
let teraType;
|
||||
const nonStatusMoves = moves.filter((move) => this.dex.moves.get(move).category !== "Status");
|
||||
if (!moves.some((m) => m.id === "terablast") && nonStatusMoves.length) {
|
||||
teraType = this.prng.sample(nonStatusMoves.map((move) => this.dex.moves.get(move).type));
|
||||
} else {
|
||||
teraType = this.prng.sample([...this.dex.types.all()]).name;
|
||||
}
|
||||
return {
|
||||
name: species.name,
|
||||
species: species.name,
|
||||
item,
|
||||
ability,
|
||||
moves: moves.map((m) => m.name),
|
||||
nature: "Quirky",
|
||||
gender: species.gender,
|
||||
evs: { hp: 84, atk: 84, def: 84, spa: 84, spd: 84, spe: 84 },
|
||||
ivs,
|
||||
level,
|
||||
teraType,
|
||||
shiny: this.prng.randomChance(1, 1024),
|
||||
happiness: 255
|
||||
};
|
||||
}
|
||||
/**
|
||||
* @returns true if the Pokémon is a good fit for the team so far, and no otherwise
|
||||
*/
|
||||
speciesIsGoodFit(species, stats) {
|
||||
for (const type of this.dex.types.all()) {
|
||||
const effectiveness = this.dex.getEffectiveness(type.name, species.types);
|
||||
if (effectiveness === 1) {
|
||||
if (stats.typeWeaknesses[type.name] === void 0) {
|
||||
stats.typeWeaknesses[type.name] = 0;
|
||||
}
|
||||
if (stats.typeWeaknesses[type.name] >= MAX_WEAK_TO_SAME_TYPE) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const type of this.dex.types.all()) {
|
||||
const effectiveness = this.dex.getEffectiveness(type.name, species.types);
|
||||
if (effectiveness === 1) {
|
||||
stats.typeWeaknesses[type.name]++;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* @returns A weighting for the Pokémon's ability.
|
||||
*/
|
||||
getAbilityWeight(ability) {
|
||||
return ability.rating + 1;
|
||||
}
|
||||
/**
|
||||
* @returns A weight for a given move on a given Pokémon.
|
||||
*/
|
||||
getMoveWeight(move, teamStats, species, movesSoFar, ability) {
|
||||
if (!move.exists)
|
||||
return 0;
|
||||
if (move.target === "adjacentAlly")
|
||||
return 0;
|
||||
if (move.category === "Status") {
|
||||
let weight2 = 2500;
|
||||
if (move.status)
|
||||
weight2 *= TeamGenerator.statusWeight(move.status) * 2;
|
||||
const isHazard = (m) => m.sideCondition && m.target === "foeSide";
|
||||
if (isHazard(move) && (teamStats.hazardSetters[move.id] || 0) < 1) {
|
||||
weight2 *= move.id === "spikes" ? 12 : 16;
|
||||
if (movesSoFar.some((m) => isHazard(m)))
|
||||
weight2 *= 2;
|
||||
teamStats.hazardSetters[move.id]++;
|
||||
}
|
||||
weight2 *= this.boostWeight(move, movesSoFar, species) * 2;
|
||||
weight2 *= this.opponentDebuffWeight(move) * 2;
|
||||
if (species.baseStats.def >= 100 || species.baseStats.spd >= 100 || species.baseStats.hp >= 100) {
|
||||
switch (move.volatileStatus) {
|
||||
case "endure":
|
||||
weight2 *= 3;
|
||||
break;
|
||||
case "protect":
|
||||
case "kingsshield":
|
||||
case "silktrap":
|
||||
weight2 *= 4;
|
||||
break;
|
||||
case "banefulbunker":
|
||||
case "spikyshield":
|
||||
weight2 *= 5;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (move.id in import_cg_team_data.HARDCODED_MOVE_WEIGHTS)
|
||||
weight2 *= import_cg_team_data.HARDCODED_MOVE_WEIGHTS[move.id];
|
||||
const goodAttacker = species.baseStats.atk > 80 || species.baseStats.spa > 80;
|
||||
if (goodAttacker && movesSoFar.filter((m) => m.category !== "Status").length < 2) {
|
||||
weight2 *= 0.3;
|
||||
}
|
||||
return weight2;
|
||||
}
|
||||
const isWeirdPowerMove = import_cg_team_data.WEIGHT_BASED_MOVES.includes(move.id);
|
||||
let basePower = isWeirdPowerMove ? 60 : move.basePower;
|
||||
if (import_cg_team_data.SPEED_BASED_MOVES.includes(move.id))
|
||||
basePower = species.baseStats.spe / 2;
|
||||
const baseStat = move.category === "Physical" ? species.baseStats.atk : species.baseStats.spa;
|
||||
const accuracy = move.accuracy === true ? 1.1 : move.accuracy / 100;
|
||||
let powerEstimate = basePower * baseStat * accuracy;
|
||||
if (species.types.includes(move.type))
|
||||
powerEstimate *= ability === "Adaptability" ? 2 : 1.5;
|
||||
if (ability === "Technician" && move.basePower <= 60)
|
||||
powerEstimate *= 1.5;
|
||||
if (ability === "Steely Spirit" && move.type === "Steel")
|
||||
powerEstimate *= 1.5;
|
||||
if (move.multihit) {
|
||||
const numberOfHits = Array.isArray(move.multihit) ? ability === "Skill Link" ? move.multihit[1] : (move.multihit[0] + move.multihit[1]) / 2 : move.multihit;
|
||||
powerEstimate *= numberOfHits;
|
||||
}
|
||||
const hasSpecialSetup = movesSoFar.some((m) => m.boosts?.spa || m.self?.boosts?.spa || m.selfBoost?.boosts?.spa);
|
||||
const hasPhysicalSetup = movesSoFar.some((m) => m.boosts?.atk || m.self?.boosts?.atk || m.selfBoost?.boosts?.atk);
|
||||
if (move.category === "Physical" && hasSpecialSetup)
|
||||
powerEstimate *= 0.7;
|
||||
if (move.category === "Special" && hasPhysicalSetup)
|
||||
powerEstimate *= 0.7;
|
||||
const abilityBonus = ((import_cg_team_data.ABILITY_MOVE_BONUSES[ability] || {})[move.id] || 1) * ((import_cg_team_data.ABILITY_MOVE_TYPE_BONUSES[ability] || {})[move.type] || 1);
|
||||
let weight = powerEstimate * abilityBonus;
|
||||
if (move.id in import_cg_team_data.HARDCODED_MOVE_WEIGHTS)
|
||||
weight *= import_cg_team_data.HARDCODED_MOVE_WEIGHTS[move.id];
|
||||
if (move.priority > 0)
|
||||
weight *= Math.max(130 - species.baseStats.spe, 0) / 130 * 0.5 + 1;
|
||||
if (move.priority < 0)
|
||||
weight *= Math.min(1 / species.baseStats.spe * 30, 1);
|
||||
if (move.flags.charge || move.flags.recharge && ability !== "Truant")
|
||||
weight *= 0.5;
|
||||
if (move.flags.contact) {
|
||||
if (ability === "Tough Claws")
|
||||
weight *= 1.3;
|
||||
if (ability === "Unseen Fist")
|
||||
weight *= 1.1;
|
||||
}
|
||||
if (move.flags.bite && ability === "Strong Jaw")
|
||||
weight *= 1.5;
|
||||
if (move.flags.bypasssub)
|
||||
weight *= 1.1;
|
||||
if (move.flags.pulse && ability === "Mega Launcher")
|
||||
weight *= 1.5;
|
||||
if (move.flags.punch && ability === "Iron Fist")
|
||||
weight *= 1.2;
|
||||
if (!move.flags.protect)
|
||||
weight *= 1.1;
|
||||
if (move.flags.slicing && ability === "Sharpness")
|
||||
weight *= 1.5;
|
||||
weight *= this.boostWeight(move, movesSoFar, species);
|
||||
if (move.secondary?.status) {
|
||||
weight *= TeamGenerator.statusWeight(move.secondary.status, (move.secondary.chance || 100) / 100);
|
||||
}
|
||||
if (move.self?.volatileStatus)
|
||||
weight *= 0.8;
|
||||
if (movesSoFar.some((m) => m.category !== "Status" && m.type === move.type && m.basePower >= 60))
|
||||
weight *= 0.3;
|
||||
if (move.selfdestruct)
|
||||
weight *= 0.3;
|
||||
if (move.recoil)
|
||||
weight *= 1 - move.recoil[0] / move.recoil[1];
|
||||
if (move.mindBlownRecoil)
|
||||
weight *= 0.25;
|
||||
if (move.flags["futuremove"])
|
||||
weight *= 0.3;
|
||||
if (move.willCrit)
|
||||
weight *= 1.45;
|
||||
if (move.drain) {
|
||||
const drainedFraction = move.drain[0] / move.drain[1];
|
||||
weight *= 1 + drainedFraction * 0.5;
|
||||
}
|
||||
if (move.heal && movesSoFar.some((m) => m.heal))
|
||||
weight *= 0.5;
|
||||
return weight;
|
||||
}
|
||||
/**
|
||||
* @returns A multiplier to a move weighting based on the status it inflicts.
|
||||
*/
|
||||
static statusWeight(status, chance = 1) {
|
||||
if (chance !== 1)
|
||||
return 1 + (TeamGenerator.statusWeight(status) - 1) * chance;
|
||||
switch (status) {
|
||||
case "brn":
|
||||
return 1.5;
|
||||
case "frz":
|
||||
return 5;
|
||||
case "par":
|
||||
return 1.5;
|
||||
case "psn":
|
||||
return 1.5;
|
||||
case "tox":
|
||||
return 4;
|
||||
case "slp":
|
||||
return 4;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
/**
|
||||
* @returns A multiplier to a move weighting based on the boosts it produces for the user.
|
||||
*/
|
||||
boostWeight(move, movesSoFar, species) {
|
||||
const physicalIsRelevant = move.category === "Physical" || movesSoFar.some((m) => m.category === "Physical");
|
||||
const specialIsRelevant = move.category === "Special" || movesSoFar.some((m) => m.category === "Special");
|
||||
let weight = 1;
|
||||
for (const { chance, boosts } of [
|
||||
{ chance: 1, boosts: move.boosts },
|
||||
{ chance: 1, boosts: move.self?.boosts },
|
||||
{ chance: 1, boosts: move.selfBoost?.boosts },
|
||||
{
|
||||
chance: move.secondary ? (move.secondary.chance || 100) / 100 : 0,
|
||||
boosts: move.target === "self" ? move.secondary?.boosts : move.secondary?.self?.boosts
|
||||
}
|
||||
]) {
|
||||
if (!boosts || chance === 0)
|
||||
continue;
|
||||
if (boosts.atk && physicalIsRelevant)
|
||||
weight += (chance || 1) * 0.5 * boosts.atk;
|
||||
if (boosts.spa && specialIsRelevant)
|
||||
weight += (chance || 1) * 0.5 * boosts.spa;
|
||||
if (boosts.def)
|
||||
weight += (chance || 1) * 0.5 * boosts.def * (species.baseStats.def > 75 ? 1 : 0.5);
|
||||
if (boosts.spd)
|
||||
weight += (chance || 1) * 0.5 * boosts.spd * (species.baseStats.spd > 75 ? 1 : 0.5);
|
||||
if (boosts.spe)
|
||||
weight += (chance || 1) * 0.5 * boosts.spe * (species.baseStats.spe > 120 ? 0.5 : 1);
|
||||
}
|
||||
return weight;
|
||||
}
|
||||
/**
|
||||
* @returns A weight for a move based on how much it will reduce the opponent's stats.
|
||||
*/
|
||||
opponentDebuffWeight(move) {
|
||||
if (!["allAdjacentFoes", "allAdjacent", "foeSide", "normal"].includes(move.target))
|
||||
return 1;
|
||||
let averageNumberOfDebuffs = 0;
|
||||
for (const { chance, boosts } of [
|
||||
{ chance: 1, boosts: move.boosts },
|
||||
{
|
||||
chance: move.secondary ? (move.secondary.chance || 100) / 100 : 0,
|
||||
boosts: move.secondary?.boosts
|
||||
}
|
||||
]) {
|
||||
if (!boosts || chance === 0)
|
||||
continue;
|
||||
const numBoosts = Object.values(boosts).filter((x) => x < 0).length;
|
||||
averageNumberOfDebuffs += chance * numBoosts;
|
||||
}
|
||||
return 1 + 0.25 * averageNumberOfDebuffs;
|
||||
}
|
||||
/**
|
||||
* @returns A weight for an item.
|
||||
*/
|
||||
getItemWeight(item, teamStats, species, moves, ability) {
|
||||
let weight;
|
||||
switch (item.id) {
|
||||
case "choiceband":
|
||||
return moves.every((x) => x.category === "Physical") ? 50 : 0;
|
||||
case "choicespecs":
|
||||
return moves.every((x) => x.category === "Special") ? 50 : 0;
|
||||
case "choicescarf":
|
||||
if (moves.some((x) => x.category === "Status"))
|
||||
return 0;
|
||||
if (species.baseStats.spe > 65 && species.baseStats.spe < 120)
|
||||
return 50;
|
||||
return 10;
|
||||
case "lifeorb":
|
||||
return moves.filter((x) => x.category !== "Status").length * 8;
|
||||
case "focussash":
|
||||
if (ability === "Sturdy")
|
||||
return 0;
|
||||
if (species.baseStats.hp < 80 && species.baseStats.def < 80 && species.baseStats.spd < 80)
|
||||
return 35;
|
||||
return 10;
|
||||
case "heavydutyboots":
|
||||
switch (this.dex.getEffectiveness("Rock", species)) {
|
||||
case 1:
|
||||
return 30;
|
||||
case 0:
|
||||
return 10;
|
||||
}
|
||||
return 5;
|
||||
case "assaultvest":
|
||||
if (moves.some((x) => x.category === "Status"))
|
||||
return 0;
|
||||
return 30;
|
||||
case "flameorb":
|
||||
weight = ability === "Guts" && !species.types.includes("Fire") ? 30 : 0;
|
||||
if (moves.some((m) => m.id === "facade"))
|
||||
weight *= 2;
|
||||
return weight;
|
||||
case "toxicorb":
|
||||
if (species.types.includes("Poison"))
|
||||
return 0;
|
||||
weight = 0;
|
||||
if (ability === "Poison Heal")
|
||||
weight += 25;
|
||||
if (moves.some((m) => m.id === "facade"))
|
||||
weight += 25;
|
||||
return weight;
|
||||
case "leftovers":
|
||||
return 20;
|
||||
case "blacksludge":
|
||||
return species.types.includes("Poison") ? 40 : 0;
|
||||
case "sitrusberry":
|
||||
case "magoberry":
|
||||
return 20;
|
||||
case "throatspray":
|
||||
if (moves.some((m) => m.flags.sound) && moves.some((m) => m.category === "Special"))
|
||||
return 30;
|
||||
return 0;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @returns The level a Pokémon should be.
|
||||
*/
|
||||
static getLevel(species) {
|
||||
if (levelOverride[species.id])
|
||||
return levelOverride[species.id];
|
||||
switch (species.tier) {
|
||||
case "Uber":
|
||||
return 70;
|
||||
case "OU":
|
||||
case "Unreleased":
|
||||
return 80;
|
||||
case "UU":
|
||||
return 90;
|
||||
case "LC":
|
||||
case "NFE":
|
||||
return 100;
|
||||
}
|
||||
return 100;
|
||||
}
|
||||
/**
|
||||
* Picks a choice from `choices` based on the weights in `weights`.
|
||||
* `weights` must be the same length as `choices`.
|
||||
*/
|
||||
weightedRandomPick(choices, weights, options) {
|
||||
if (!choices.length)
|
||||
throw new Error(`Can't pick from an empty list`);
|
||||
if (choices.length !== weights.length)
|
||||
throw new Error(`Choices and weights must be the same length`);
|
||||
const totalWeight = weights.reduce((a, b) => a + b, 0);
|
||||
let randomWeight = this.prng.next(0, totalWeight);
|
||||
for (let i = 0; i < choices.length; i++) {
|
||||
randomWeight -= weights[i];
|
||||
if (randomWeight < 0) {
|
||||
const choice = choices[i];
|
||||
if (options?.remove)
|
||||
choices.splice(i, 1);
|
||||
return choice;
|
||||
}
|
||||
}
|
||||
if (options?.remove && choices.length)
|
||||
return choices.pop();
|
||||
return choices[choices.length - 1];
|
||||
}
|
||||
setSeed(seed) {
|
||||
this.prng.seed = seed;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=cg-teams.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/cg-teams.ts"],
|
||||
"sourcesContent": ["/**\r\n * Computer-Generated Teams\r\n *\r\n * Generates teams based on heuristics, most of which carry over across generations.\r\n * Teams generated will not always be competitively great, but they will have variety\r\n * and be fun to play (i.e., tries to avoid awful sets).\r\n *\r\n * The [Gen 9] Computer-Generated Teams format is personally maintained by Annika,\r\n * and is not part of any official Smogon or PS format selection. If you enjoy playing\r\n * with teams you didn't make yourself, you may want to check out Random Battles, Battle Factory,\r\n * and/or the sample teams for usage-based formats like OU.\r\n *\r\n * The core of the generator is the weightedRandomPick function, which chooses from an array\r\n * of options based on a weight associated with each option. This way, better/stronger/more useful options\r\n * are more likely to be chosen, but there's still an opportunity for weaker, more situational,\r\n * or higher-risk/higher-reward options to be chosen. However, for moves, the 'worst' moves are excluded\r\n * altogether, both to reduce the likelihood of a bad moveset and improve generator performance.\r\n *\r\n * Certain less-relevant aspects of the set are not randomized at all, such as:\r\n * - IVs (all 31s, with 0 Attack IV if the Pok\u00E9mon has no Physical moves in case of Confusion)\r\n * - EVs (84 per stat, for +21 to each)\r\n * - Nature (always Quirky, which has no effect)\r\n * - Happiness (there are no Happiness-based moves in Gen IX)\r\n *\r\n * Currently, leveling is based on a Pok\u00E9mon's position within Smogon's usage-based tiers,\r\n * but an automatic leveling system is planned for the future. This would involve storing win and loss\r\n * data by Pok\u00E9mon species in a database, and increasing and decreasing the levels of Pok\u00E9mon species\r\n * each day based on their win/loss ratio. For example, if 60% of matches with a Pok\u00E9mon species are wins,\r\n * the species is probably overleveled!\r\n *\r\n * Other aspects of the team generator that may be worth implementing in the future include:\r\n * - Explicit support for weather-oriented teams (boosting moves and typings that synergize with that weather)\r\n * - Tracking type coverage to make it more likely that a moveset can hit every type\r\n */\r\n\r\nimport {Dex, PRNG, SQL} from '../sim';\r\nimport {\r\n\tABILITY_MOVE_BONUSES,\r\n\tABILITY_MOVE_TYPE_BONUSES,\r\n\tHARDCODED_MOVE_WEIGHTS,\r\n\tMOVE_PAIRINGS,\r\n\tSPEED_BASED_MOVES,\r\n\tWEIGHT_BASED_MOVES,\r\n} from './cg-team-data';\r\n\r\ninterface TeamStats {\r\n\thazardSetters: {[moveid: string]: number};\r\n\ttypeWeaknesses: {[type: string]: number};\r\n}\r\n\r\n// We put a limit on the number of Pok\u00E9mon on a team that can be weak to a given type.\r\nconst MAX_WEAK_TO_SAME_TYPE = 3;\r\n\r\nconst levelOverride: {[speciesID: string]: number} = {};\r\nexport let levelUpdateInterval: NodeJS.Timeout | null = null;\r\n\r\nasync function updateLevels(database: SQL.DatabaseManager) {\r\n\tconst updateSpecies = await database.prepare(\r\n\t\t'UPDATE gen9computergeneratedteams SET wins = 0, losses = 0, level = ? WHERE species_id = ?'\r\n\t);\r\n\tconst updateHistory = await database.prepare(\r\n\t\t`INSERT INTO gen9_historical_levels (level, species_id, timestamp) VALUES (?, ?, ${Date.now()})`\r\n\t);\r\n\tconst data = await database.all('SELECT species_id, wins, losses, level FROM gen9computergeneratedteams');\r\n\tfor (let {species_id, wins, losses, level} of data) {\r\n\t\tconst total = wins + losses;\r\n\r\n\t\tif (total > 10) {\r\n\t\t\tif (wins / total >= 0.55) level--;\r\n\t\t\tif (wins / total <= 0.45) level++;\r\n\t\t\tlevel = Math.max(1, Math.min(100, level));\r\n\t\t\tawait updateSpecies?.run([level, species_id]);\r\n\t\t\tawait updateHistory?.run([level, species_id]);\r\n\t\t}\r\n\r\n\t\tlevelOverride[species_id] = level;\r\n\t}\r\n}\r\n\r\nif (global.Config && Config.usesqlite && Config.usesqliteleveling) {\r\n\tconst database = SQL(module, {file: './databases/battlestats.db'});\r\n\r\n\t// update every 2 hours\r\n\tvoid updateLevels(database);\r\n\tlevelUpdateInterval = setInterval(() => void updateLevels(database), 1000 * 60 * 60 * 2);\r\n}\r\n\r\nexport default class TeamGenerator {\r\n\tdex: ModdedDex;\r\n\tformat: Format;\r\n\tteamSize: number;\r\n\tforceLevel?: number;\r\n\tprng: PRNG;\r\n\titemPool: Item[];\r\n\r\n\tconstructor(format: Format | string, seed: PRNG | PRNGSeed | null) {\r\n\t\tthis.dex = Dex.forFormat(format);\r\n\t\tthis.format = Dex.formats.get(format);\r\n\t\tthis.teamSize = this.format.ruleTable?.maxTeamSize || 6;\r\n\t\tthis.prng = seed instanceof PRNG ? seed : new PRNG(seed);\r\n\t\tthis.itemPool = this.dex.items.all().filter(i => i.exists && i.isNonstandard !== 'Past' && !i.isPokeball);\r\n\r\n\t\tconst rules = Dex.formats.getRuleTable(this.format);\r\n\t\tif (rules.adjustLevel) this.forceLevel = rules.adjustLevel;\r\n\t}\r\n\r\n\tgetTeam(): PokemonSet[] {\r\n\t\tlet speciesPoolLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCA,iBAA6B;AAC7B,0BAOO;AAQP,MAAM,wBAAwB;AAE9B,MAAM,gBAA+C,CAAC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EAAE,OAAO,YAAY,GAAG;AACnD,YAAM,UAAU,CAAC;AACjB,YAAM,QAAQ,CAAC;AACf,iBAAW,KAAK,KAAK,UAAU;AAE9B,YAAI,EAAE,UAAU,SAAS,QAAQ,IAAI,GAAG;AACvC,iBAAO,EAAE;AACT;AAAA,QACD;AAEA,cAAM,SAAS,KAAK,cAAc,GAAG,WAAW,SAAS,OAAO,OAAO;AACvE,YAAI,WAAW,GAAG;AACjB,kBAAQ,KAAK,MAAM;AACnB,gBAAM,KAAK,EAAE,IAAI;AAAA,QAClB;AAAA,MACD;AACA,UAAI,CAAC;AAAM,eAAO,KAAK,mBAAmB,OAAO,OAAO;AAAA,IACzD,WAAW,CAAC,eAAe,gBAAgB,EAAE,SAAS,OAAO,GAAG;AAE/D,aAAO;AAAA,IACR;AAEA,UAAM,MAAyB;AAAA,MAC9B,IAAI;AAAA,MACJ,KAAK,MAAM,KAAK,UAAQ,KAAK,IAAI,MAAM,IAAI,IAAI,EAAE,aAAa,UAAU,IAAI,KAAK;AAAA,MACjF,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,IACN;AAEA,UAAM,QAAQ,KAAK,cAAc,cAAc,SAAS,OAAO;AAI/D,QAAI;AACJ,UAAM,iBAAiB,MAAM,OAAO,UAAQ,KAAK,IAAI,MAAM,IAAI,IAAI,EAAE,aAAa,QAAQ;AAC1F,QLine truncated
|
||||
"names": ["weight"]
|
||||
}
|
||||
@@ -0,0 +1,904 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.id === "flameorb") {
|
||||
this.add("-status", target, "brn", "[from] item: Flame Orb");
|
||||
} else if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "brn", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-status", target, "brn");
|
||||
}
|
||||
},
|
||||
// Damage reduction is handled directly in the sim/battle.js damage function
|
||||
onResidualOrder: 10,
|
||||
onResidual(pokemon) {
|
||||
this.damage(pokemon.baseMaxhp / 16);
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "par", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-status", target, "par");
|
||||
}
|
||||
},
|
||||
onModifySpe(spe, pokemon) {
|
||||
spe = this.finalModify(spe);
|
||||
if (!pokemon.hasAbility("quickfeet")) {
|
||||
spe = Math.floor(spe * 50 / 100);
|
||||
}
|
||||
return spe;
|
||||
},
|
||||
onBeforeMovePriority: 1,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(1, 4)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "slp", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.startTime = this.random(2, 5);
|
||||
this.effectState.time = this.effectState.startTime;
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (pokemon.hasAbility("earlybird")) {
|
||||
pokemon.statusState.time--;
|
||||
}
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
name: "frz",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "frz", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-status", target, "frz");
|
||||
}
|
||||
if (target.species.name === "Shaymin-Sky" && target.baseSpecies.baseSpecies === "Shaymin") {
|
||||
target.formeChange("Shaymin", this.effect, true);
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (move.flags["defrost"])
|
||||
return;
|
||||
if (this.randomChance(1, 5)) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "frz");
|
||||
return false;
|
||||
},
|
||||
onModifyMove(move, pokemon) {
|
||||
if (move.flags["defrost"]) {
|
||||
this.add("-curestatus", pokemon, "frz", "[from] move: " + move);
|
||||
pokemon.clearStatus();
|
||||
}
|
||||
},
|
||||
onAfterMoveSecondary(target, source, move) {
|
||||
if (move.thawsTarget) {
|
||||
target.cureStatus();
|
||||
}
|
||||
},
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (move.type === "Fire" && move.category !== "Status") {
|
||||
target.cureStatus();
|
||||
}
|
||||
}
|
||||
},
|
||||
psn: {
|
||||
name: "psn",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "psn", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-status", target, "psn");
|
||||
}
|
||||
},
|
||||
onResidualOrder: 9,
|
||||
onResidual(pokemon) {
|
||||
this.damage(pokemon.baseMaxhp / 8);
|
||||
}
|
||||
},
|
||||
tox: {
|
||||
name: "tox",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
this.effectState.stage = 0;
|
||||
if (sourceEffect && sourceEffect.id === "toxicorb") {
|
||||
this.add("-status", target, "tox", "[from] item: Toxic Orb");
|
||||
} else if (sourceEffect && sourceEffect.effectType === "Ability") {
|
||||
this.add("-status", target, "tox", "[from] ability: " + sourceEffect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-status", target, "tox");
|
||||
}
|
||||
},
|
||||
onSwitchIn() {
|
||||
this.effectState.stage = 0;
|
||||
},
|
||||
onResidualOrder: 9,
|
||||
onResidual(pokemon) {
|
||||
if (this.effectState.stage < 15) {
|
||||
this.effectState.stage++;
|
||||
}
|
||||
this.damage(this.clampIntRange(pokemon.baseMaxhp / 16, 1) * this.effectState.stage);
|
||||
}
|
||||
},
|
||||
confusion: {
|
||||
name: "confusion",
|
||||
// this is a volatile status
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect?.id === "lockedmove") {
|
||||
this.add("-start", target, "confusion", "[fatigue]");
|
||||
} else {
|
||||
this.add("-start", target, "confusion");
|
||||
}
|
||||
const min = sourceEffect?.id === "axekick" ? 3 : 2;
|
||||
this.effectState.time = this.random(min, 6);
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "confusion");
|
||||
},
|
||||
onBeforeMovePriority: 3,
|
||||
onBeforeMove(pokemon) {
|
||||
pokemon.volatiles["confusion"].time--;
|
||||
if (!pokemon.volatiles["confusion"].time) {
|
||||
pokemon.removeVolatile("confusion");
|
||||
return;
|
||||
}
|
||||
this.add("-activate", pokemon, "confusion");
|
||||
if (!this.randomChance(33, 100)) {
|
||||
return;
|
||||
}
|
||||
this.activeTarget = pokemon;
|
||||
const damage = this.actions.getConfusionDamage(pokemon, 40);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("Confusion damage not dealt");
|
||||
const activeMove = { id: this.toID("confused"), effectType: "Move", type: "???" };
|
||||
this.damage(damage, pokemon, pokemon, activeMove);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
flinch: {
|
||||
name: "flinch",
|
||||
duration: 1,
|
||||
onBeforeMovePriority: 8,
|
||||
onBeforeMove(pokemon) {
|
||||
this.add("cant", pokemon, "flinch");
|
||||
this.runEvent("Flinch", pokemon);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
trapped: {
|
||||
name: "trapped",
|
||||
noCopy: true,
|
||||
onTrapPokemon(pokemon) {
|
||||
pokemon.tryTrap();
|
||||
},
|
||||
onStart(target) {
|
||||
this.add("-activate", target, "trapped");
|
||||
}
|
||||
},
|
||||
trapper: {
|
||||
name: "trapper",
|
||||
noCopy: true
|
||||
},
|
||||
partiallytrapped: {
|
||||
name: "partiallytrapped",
|
||||
duration: 5,
|
||||
durationCallback(target, source) {
|
||||
if (source?.hasItem("gripclaw"))
|
||||
return 8;
|
||||
return this.random(5, 7);
|
||||
},
|
||||
onStart(pokemon, source) {
|
||||
this.add("-activate", pokemon, "move: " + this.effectState.sourceEffect, "[of] " + source);
|
||||
this.effectState.boundDivisor = source.hasItem("bindingband") ? 6 : 8;
|
||||
},
|
||||
onResidualOrder: 13,
|
||||
onResidual(pokemon) {
|
||||
const source = this.effectState.source;
|
||||
const gmaxEffect = ["gmaxcentiferno", "gmaxsandblast"].includes(this.effectState.sourceEffect.id);
|
||||
if (source && (!source.isActive || source.hp <= 0 || !source.activeTurns) && !gmaxEffect) {
|
||||
delete pokemon.volatiles["partiallytrapped"];
|
||||
this.add("-end", pokemon, this.effectState.sourceEffect, "[partiallytrapped]", "[silent]");
|
||||
return;
|
||||
}
|
||||
this.damage(pokemon.baseMaxhp / this.effectState.boundDivisor);
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, this.effectState.sourceEffect, "[partiallytrapped]");
|
||||
},
|
||||
onTrapPokemon(pokemon) {
|
||||
const gmaxEffect = ["gmaxcentiferno", "gmaxsandblast"].includes(this.effectState.sourceEffect.id);
|
||||
if (this.effectState.source?.isActive || gmaxEffect)
|
||||
pokemon.tryTrap();
|
||||
}
|
||||
},
|
||||
lockedmove: {
|
||||
// Outrage, Thrash, Petal Dance...
|
||||
name: "lockedmove",
|
||||
duration: 2,
|
||||
onResidual(target) {
|
||||
if (target.status === "slp") {
|
||||
delete target.volatiles["lockedmove"];
|
||||
}
|
||||
this.effectState.trueDuration--;
|
||||
},
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.trueDuration = this.random(2, 4);
|
||||
this.effectState.move = effect.id;
|
||||
},
|
||||
onRestart() {
|
||||
if (this.effectState.trueDuration >= 2) {
|
||||
this.effectState.duration = 2;
|
||||
}
|
||||
},
|
||||
onEnd(target) {
|
||||
if (this.effectState.trueDuration > 1)
|
||||
return;
|
||||
target.addVolatile("confusion");
|
||||
},
|
||||
onLockMove(pokemon) {
|
||||
if (pokemon.volatiles["dynamax"])
|
||||
return;
|
||||
return this.effectState.move;
|
||||
}
|
||||
},
|
||||
twoturnmove: {
|
||||
// Skull Bash, SolarBeam, Sky Drop...
|
||||
name: "twoturnmove",
|
||||
duration: 2,
|
||||
onStart(attacker, defender, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
attacker.addVolatile(effect.id);
|
||||
let moveTargetLoc = attacker.lastMoveTargetLoc;
|
||||
if (effect.sourceEffect && this.dex.moves.get(effect.id).target !== "self") {
|
||||
if (defender.fainted) {
|
||||
defender = this.sample(attacker.foes(true));
|
||||
}
|
||||
moveTargetLoc = attacker.getLocOf(defender);
|
||||
}
|
||||
attacker.volatiles[effect.id].targetLoc = moveTargetLoc;
|
||||
this.attrLastMove("[still]");
|
||||
this.runEvent("PrepareHit", attacker, defender, effect);
|
||||
},
|
||||
onEnd(target) {
|
||||
target.removeVolatile(this.effectState.move);
|
||||
},
|
||||
onLockMove() {
|
||||
return this.effectState.move;
|
||||
},
|
||||
onMoveAborted(pokemon) {
|
||||
pokemon.removeVolatile("twoturnmove");
|
||||
}
|
||||
},
|
||||
choicelock: {
|
||||
name: "choicelock",
|
||||
noCopy: true,
|
||||
onStart(pokemon) {
|
||||
if (!this.activeMove)
|
||||
throw new Error("Battle.activeMove is null");
|
||||
if (!this.activeMove.id || this.activeMove.hasBounced || this.activeMove.sourceEffect === "snatch")
|
||||
return false;
|
||||
this.effectState.move = this.activeMove.id;
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (!pokemon.getItem().isChoice) {
|
||||
pokemon.removeVolatile("choicelock");
|
||||
return;
|
||||
}
|
||||
if (!pokemon.ignoringItem() && !pokemon.volatiles["dynamax"] && move.id !== this.effectState.move && move.id !== "struggle") {
|
||||
this.addMove("move", pokemon, move.name);
|
||||
this.attrLastMove("[still]");
|
||||
this.debug("Disabled by Choice item lock");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
if (!pokemon.getItem().isChoice || !pokemon.hasMove(this.effectState.move)) {
|
||||
pokemon.removeVolatile("choicelock");
|
||||
return;
|
||||
}
|
||||
if (pokemon.ignoringItem() || pokemon.volatiles["dynamax"]) {
|
||||
return;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id !== this.effectState.move) {
|
||||
pokemon.disableMove(moveSlot.id, false, this.effectState.sourceEffect);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mustrecharge: {
|
||||
name: "mustrecharge",
|
||||
duration: 2,
|
||||
onBeforeMovePriority: 11,
|
||||
onBeforeMove(pokemon) {
|
||||
this.add("cant", pokemon, "recharge");
|
||||
pokemon.removeVolatile("mustrecharge");
|
||||
pokemon.removeVolatile("truant");
|
||||
return null;
|
||||
},
|
||||
onStart(pokemon) {
|
||||
this.add("-mustrecharge", pokemon);
|
||||
},
|
||||
onLockMove: "recharge"
|
||||
},
|
||||
futuremove: {
|
||||
// this is a slot condition
|
||||
name: "futuremove",
|
||||
duration: 3,
|
||||
onResidualOrder: 3,
|
||||
onEnd(target) {
|
||||
const data = this.effectState;
|
||||
const move = this.dex.moves.get(data.move);
|
||||
if (target.fainted || target === data.source) {
|
||||
this.hint(`${move.name} did not hit because the target is ${target.fainted ? "fainted" : "the user"}.`);
|
||||
return;
|
||||
}
|
||||
this.add("-end", target, "move: " + move.name);
|
||||
target.removeVolatile("Protect");
|
||||
target.removeVolatile("Endure");
|
||||
if (data.source.hasAbility("infiltrator") && this.gen >= 6) {
|
||||
data.moveData.infiltrates = true;
|
||||
}
|
||||
if (data.source.hasAbility("normalize") && this.gen >= 6) {
|
||||
data.moveData.type = "Normal";
|
||||
}
|
||||
if (data.source.hasAbility("adaptability") && this.gen >= 6) {
|
||||
data.moveData.stab = 2;
|
||||
}
|
||||
const hitMove = new this.dex.Move(data.moveData);
|
||||
this.actions.trySpreadMoveHit([target], data.source, hitMove, true);
|
||||
if (data.source.isActive && data.source.hasItem("lifeorb") && this.gen >= 5) {
|
||||
this.singleEvent("AfterMoveSecondarySelf", data.source.getItem(), data.source.itemState, data.source, target, data.source.getItem());
|
||||
}
|
||||
this.activeMove = null;
|
||||
this.checkWin();
|
||||
}
|
||||
},
|
||||
healreplacement: {
|
||||
// this is a slot condition
|
||||
name: "healreplacement",
|
||||
onStart(target, source, sourceEffect) {
|
||||
this.effectState.sourceEffect = sourceEffect;
|
||||
this.add("-activate", source, "healreplacement");
|
||||
},
|
||||
onSwitchInPriority: 1,
|
||||
onSwitchIn(target) {
|
||||
if (!target.fainted) {
|
||||
target.heal(target.maxhp);
|
||||
this.add("-heal", target, target.getHealth, "[from] move: " + this.effectState.sourceEffect, "[zeffect]");
|
||||
target.side.removeSlotCondition(target, "healreplacement");
|
||||
}
|
||||
}
|
||||
},
|
||||
stall: {
|
||||
// Protect, Detect, Endure counter
|
||||
name: "stall",
|
||||
duration: 2,
|
||||
counterMax: 729,
|
||||
onStart() {
|
||||
this.effectState.counter = 3;
|
||||
},
|
||||
onStallMove(pokemon) {
|
||||
const counter = this.effectState.counter || 1;
|
||||
this.debug("Success chance: " + Math.round(100 / counter) + "%");
|
||||
const success = this.randomChance(1, counter);
|
||||
if (!success)
|
||||
delete pokemon.volatiles["stall"];
|
||||
return success;
|
||||
},
|
||||
onRestart() {
|
||||
if (this.effectState.counter < this.effect.counterMax) {
|
||||
this.effectState.counter *= 3;
|
||||
}
|
||||
this.effectState.duration = 2;
|
||||
}
|
||||
},
|
||||
gem: {
|
||||
name: "gem",
|
||||
duration: 1,
|
||||
affectsFainted: true,
|
||||
onBasePowerPriority: 14,
|
||||
onBasePower(basePower, user, target, move) {
|
||||
this.debug("Gem Boost");
|
||||
return this.chainModify([5325, 4096]);
|
||||
}
|
||||
},
|
||||
// weather is implemented here since it's so important to the game
|
||||
raindance: {
|
||||
name: "RainDance",
|
||||
effectType: "Weather",
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source?.hasItem("damprock")) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
onWeatherModifyDamage(damage, attacker, defender, move) {
|
||||
if (defender.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (move.type === "Water") {
|
||||
this.debug("rain water boost");
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
if (move.type === "Fire") {
|
||||
this.debug("rain fire suppress");
|
||||
return this.chainModify(0.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
if (effect?.effectType === "Ability") {
|
||||
if (this.gen <= 5)
|
||||
this.effectState.duration = 0;
|
||||
this.add("-weather", "RainDance", "[from] ability: " + effect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-weather", "RainDance");
|
||||
}
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "RainDance", "[upkeep]");
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
primordialsea: {
|
||||
name: "PrimordialSea",
|
||||
effectType: "Weather",
|
||||
duration: 0,
|
||||
onTryMovePriority: 1,
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (move.type === "Fire" && move.category !== "Status") {
|
||||
this.debug("Primordial Sea fire suppress");
|
||||
this.add("-fail", attacker, move, "[from] Primordial Sea");
|
||||
this.attrLastMove("[still]");
|
||||
return null;
|
||||
}
|
||||
},
|
||||
onWeatherModifyDamage(damage, attacker, defender, move) {
|
||||
if (defender.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (move.type === "Water") {
|
||||
this.debug("Rain water boost");
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
this.add("-weather", "PrimordialSea", "[from] ability: " + effect.name, "[of] " + source);
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "PrimordialSea", "[upkeep]");
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
sunnyday: {
|
||||
name: "SunnyDay",
|
||||
effectType: "Weather",
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source?.hasItem("heatrock")) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
onWeatherModifyDamage(damage, attacker, defender, move) {
|
||||
if (move.id === "hydrosteam" && !attacker.hasItem("utilityumbrella")) {
|
||||
this.debug("Sunny Day Hydro Steam boost");
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
if (defender.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (move.type === "Fire") {
|
||||
this.debug("Sunny Day fire boost");
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
if (move.type === "Water") {
|
||||
this.debug("Sunny Day water suppress");
|
||||
return this.chainModify(0.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(battle, source, effect) {
|
||||
if (effect?.effectType === "Ability") {
|
||||
if (this.gen <= 5)
|
||||
this.effectState.duration = 0;
|
||||
this.add("-weather", "SunnyDay", "[from] ability: " + effect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-weather", "SunnyDay");
|
||||
}
|
||||
},
|
||||
onImmunity(type, pokemon) {
|
||||
if (pokemon.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (type === "frz")
|
||||
return false;
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "SunnyDay", "[upkeep]");
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
desolateland: {
|
||||
name: "DesolateLand",
|
||||
effectType: "Weather",
|
||||
duration: 0,
|
||||
onTryMovePriority: 1,
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (move.type === "Water" && move.category !== "Status") {
|
||||
this.debug("Desolate Land water suppress");
|
||||
this.add("-fail", attacker, move, "[from] Desolate Land");
|
||||
this.attrLastMove("[still]");
|
||||
return null;
|
||||
}
|
||||
},
|
||||
onWeatherModifyDamage(damage, attacker, defender, move) {
|
||||
if (defender.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (move.type === "Fire") {
|
||||
this.debug("Sunny Day fire boost");
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
this.add("-weather", "DesolateLand", "[from] ability: " + effect.name, "[of] " + source);
|
||||
},
|
||||
onImmunity(type, pokemon) {
|
||||
if (pokemon.hasItem("utilityumbrella"))
|
||||
return;
|
||||
if (type === "frz")
|
||||
return false;
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "DesolateLand", "[upkeep]");
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
sandstorm: {
|
||||
name: "Sandstorm",
|
||||
effectType: "Weather",
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source?.hasItem("smoothrock")) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
// This should be applied directly to the stat before any of the other modifiers are chained
|
||||
// So we give it increased priority.
|
||||
onModifySpDPriority: 10,
|
||||
onModifySpD(spd, pokemon) {
|
||||
if (pokemon.hasType("Rock") && this.field.isWeather("sandstorm")) {
|
||||
return this.modify(spd, 1.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
if (effect?.effectType === "Ability") {
|
||||
if (this.gen <= 5)
|
||||
this.effectState.duration = 0;
|
||||
this.add("-weather", "Sandstorm", "[from] ability: " + effect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-weather", "Sandstorm");
|
||||
}
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "Sandstorm", "[upkeep]");
|
||||
if (this.field.isWeather("sandstorm"))
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onWeather(target) {
|
||||
this.damage(target.baseMaxhp / 16);
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
hail: {
|
||||
name: "Hail",
|
||||
effectType: "Weather",
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source?.hasItem("icyrock")) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
if (effect?.effectType === "Ability") {
|
||||
if (this.gen <= 5)
|
||||
this.effectState.duration = 0;
|
||||
this.add("-weather", "Hail", "[from] ability: " + effect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-weather", "Hail");
|
||||
}
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "Hail", "[upkeep]");
|
||||
if (this.field.isWeather("hail"))
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onWeather(target) {
|
||||
this.damage(target.baseMaxhp / 16);
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
snow: {
|
||||
name: "Snow",
|
||||
effectType: "Weather",
|
||||
duration: 5,
|
||||
durationCallback(source, effect) {
|
||||
if (source?.hasItem("icyrock")) {
|
||||
return 8;
|
||||
}
|
||||
return 5;
|
||||
},
|
||||
onModifyDefPriority: 10,
|
||||
onModifyDef(def, pokemon) {
|
||||
if (pokemon.hasType("Ice") && this.field.isWeather("snow")) {
|
||||
return this.modify(def, 1.5);
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
if (effect?.effectType === "Ability") {
|
||||
if (this.gen <= 5)
|
||||
this.effectState.duration = 0;
|
||||
this.add("-weather", "Snow", "[from] ability: " + effect.name, "[of] " + source);
|
||||
} else {
|
||||
this.add("-weather", "Snow");
|
||||
}
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "Snow", "[upkeep]");
|
||||
if (this.field.isWeather("snow"))
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
deltastream: {
|
||||
name: "DeltaStream",
|
||||
effectType: "Weather",
|
||||
duration: 0,
|
||||
onEffectivenessPriority: -1,
|
||||
onEffectiveness(typeMod, target, type, move) {
|
||||
if (move && move.effectType === "Move" && move.category !== "Status" && type === "Flying" && typeMod > 0) {
|
||||
this.add("-fieldactivate", "Delta Stream");
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
onFieldStart(field, source, effect) {
|
||||
this.add("-weather", "DeltaStream", "[from] ability: " + effect.name, "[of] " + source);
|
||||
},
|
||||
onFieldResidualOrder: 1,
|
||||
onFieldResidual() {
|
||||
this.add("-weather", "DeltaStream", "[upkeep]");
|
||||
this.eachEvent("Weather");
|
||||
},
|
||||
onFieldEnd() {
|
||||
this.add("-weather", "none");
|
||||
}
|
||||
},
|
||||
dynamax: {
|
||||
name: "Dynamax",
|
||||
noCopy: true,
|
||||
onStart(pokemon) {
|
||||
this.effectState.turns = 0;
|
||||
pokemon.removeVolatile("minimize");
|
||||
pokemon.removeVolatile("substitute");
|
||||
if (pokemon.volatiles["torment"]) {
|
||||
delete pokemon.volatiles["torment"];
|
||||
this.add("-end", pokemon, "Torment", "[silent]");
|
||||
}
|
||||
if (["cramorantgulping", "cramorantgorging"].includes(pokemon.species.id) && !pokemon.transformed) {
|
||||
pokemon.formeChange("cramorant");
|
||||
}
|
||||
this.add("-start", pokemon, "Dynamax", pokemon.gigantamax ? "Gmax" : "");
|
||||
if (pokemon.baseSpecies.name === "Shedinja")
|
||||
return;
|
||||
const ratio = 1.5 + pokemon.dynamaxLevel * 0.05;
|
||||
pokemon.maxhp = Math.floor(pokemon.maxhp * ratio);
|
||||
pokemon.hp = Math.floor(pokemon.hp * ratio);
|
||||
this.add("-heal", pokemon, pokemon.getHealth, "[silent]");
|
||||
},
|
||||
onTryAddVolatile(status, pokemon) {
|
||||
if (status.id === "flinch")
|
||||
return null;
|
||||
},
|
||||
onBeforeSwitchOutPriority: -1,
|
||||
onBeforeSwitchOut(pokemon) {
|
||||
pokemon.removeVolatile("dynamax");
|
||||
},
|
||||
onSourceModifyDamage(damage, source, target, move) {
|
||||
if (move.id === "behemothbash" || move.id === "behemothblade" || move.id === "dynamaxcannon") {
|
||||
return this.chainModify(2);
|
||||
}
|
||||
},
|
||||
onDragOutPriority: 2,
|
||||
onDragOut(pokemon) {
|
||||
this.add("-block", pokemon, "Dynamax");
|
||||
return null;
|
||||
},
|
||||
onResidualPriority: -100,
|
||||
onResidual() {
|
||||
this.effectState.turns++;
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, "Dynamax");
|
||||
if (pokemon.baseSpecies.name === "Shedinja")
|
||||
return;
|
||||
pokemon.hp = pokemon.getUndynamaxedHP();
|
||||
pokemon.maxhp = pokemon.baseMaxhp;
|
||||
this.add("-heal", pokemon, pokemon.getHealth, "[silent]");
|
||||
}
|
||||
},
|
||||
// Commander needs two conditions so they are implemented here
|
||||
// Dondozo
|
||||
commanded: {
|
||||
name: "Commanded",
|
||||
noCopy: true,
|
||||
onStart(pokemon) {
|
||||
this.boost({ atk: 2, spa: 2, spe: 2, def: 2, spd: 2 }, pokemon);
|
||||
},
|
||||
onDragOutPriority: 2,
|
||||
onDragOut() {
|
||||
return false;
|
||||
},
|
||||
// Prevents Shed Shell allowing a swap
|
||||
onTrapPokemonPriority: -11,
|
||||
onTrapPokemon(pokemon) {
|
||||
pokemon.trapped = true;
|
||||
}
|
||||
},
|
||||
// Tatsugiri
|
||||
commanding: {
|
||||
name: "Commanding",
|
||||
noCopy: true,
|
||||
onDragOutPriority: 2,
|
||||
onDragOut() {
|
||||
return false;
|
||||
},
|
||||
// Prevents Shed Shell allowing a swap
|
||||
onTrapPokemonPriority: -11,
|
||||
onTrapPokemon(pokemon) {
|
||||
pokemon.trapped = true;
|
||||
},
|
||||
// Override No Guard
|
||||
onInvulnerabilityPriority: 2,
|
||||
onInvulnerability(target, source, move) {
|
||||
return false;
|
||||
},
|
||||
onBeforeTurn(pokemon) {
|
||||
this.queue.cancelAction(pokemon);
|
||||
}
|
||||
},
|
||||
// Arceus and Silvally's actual typing is implemented here.
|
||||
// Their true typing for all their formes is Normal, and it's only
|
||||
// Multitype and RKS System, respectively, that changes their type,
|
||||
// but their formes are specified to be their corresponding type
|
||||
// in the Pokedex, so that needs to be overridden.
|
||||
// This is mainly relevant for Hackmons Cup and Balanced Hackmons.
|
||||
arceus: {
|
||||
name: "Arceus",
|
||||
onTypePriority: 1,
|
||||
onType(types, pokemon) {
|
||||
if (pokemon.transformed || pokemon.ability !== "multitype" && this.gen >= 8)
|
||||
return types;
|
||||
let type = "Normal";
|
||||
if (pokemon.ability === "multitype") {
|
||||
type = pokemon.getItem().onPlate;
|
||||
if (!type) {
|
||||
type = "Normal";
|
||||
}
|
||||
}
|
||||
return [type];
|
||||
}
|
||||
},
|
||||
silvally: {
|
||||
name: "Silvally",
|
||||
onTypePriority: 1,
|
||||
onType(types, pokemon) {
|
||||
if (pokemon.transformed || pokemon.ability !== "rkssystem" && this.gen >= 8)
|
||||
return types;
|
||||
let type = "Normal";
|
||||
if (pokemon.ability === "rkssystem") {
|
||||
type = pokemon.getItem().onMemory;
|
||||
if (!type) {
|
||||
type = "Normal";
|
||||
}
|
||||
}
|
||||
return [type];
|
||||
}
|
||||
},
|
||||
rolloutstorage: {
|
||||
name: "rolloutstorage",
|
||||
duration: 2,
|
||||
onBasePower(relayVar, source, target, move) {
|
||||
let bp = Math.max(1, move.basePower);
|
||||
bp *= Math.pow(2, source.volatiles["rolloutstorage"].contactHitCount);
|
||||
if (source.volatiles["defensecurl"]) {
|
||||
bp *= 2;
|
||||
}
|
||||
source.removeVolatile("rolloutstorage");
|
||||
return bp;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'flameorb') {\r\n\t\t\t\tthis.add('-status', target, 'brn', '[from] item: Flame Orb');\r\n\t\t\t} else if (sourceEffect && sourceEffect.effectType === 'Ability') {\r\n\t\t\t\tthis.add('-status', target, 'brn', '[from] ability: ' + sourceEffect.name, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'brn');\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Damage reduction is handled directly in the sim/battle.js damage function\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tthis.damage(pokemon.baseMaxhp / 16);\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Ability') {\r\n\t\t\t\tthis.add('-status', target, 'par', '[from] ability: ' + sourceEffect.name, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'par');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonModifySpe(spe, pokemon) {\r\n\t\t\t// Paralysis occurs after all other Speed modifiers, so evaluate all modifiers up to this point first\r\n\t\t\tspe = this.finalModify(spe);\r\n\t\t\tif (!pokemon.hasAbility('quickfeet')) {\r\n\t\t\t\tspe = Math.floor(spe * 50 / 100);\r\n\t\t\t}\r\n\t\t\treturn spe;\r\n\t\t},\r\n\t\tonBeforeMovePriority: 1,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(1, 4)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Ability') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] ability: ' + sourceEffect.name, '[of] ' + source);\r\n\t\t\t} else if (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-3 turns\r\n\t\t\tthis.effectState.startTime = this.random(2, 5);\r\n\t\t\tthis.effectState.time = this.effectState.startTime;\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (pokemon.hasAbility('earlybird')) {\r\n\t\t\t\tpokemon.statusState.time--;\r\n\t\t\t}\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Ability') {\r\n\t\t\t\tthis.add('-status', target, 'frz', '[from] ability: ' + sourceEffect.name, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'frz');\r\n\t\t\t}\r\n\t\t\tif (target.species.name === 'Shaymin-Sky' && target.baseSpecies.baseSpecies === 'Shaymin') {\r\n\t\t\t\ttarget.formeChange('Shaymin', this.effect, true);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (move.flags['defrost']) return;\r\n\t\t\tif (this.randomChance(1, 5)) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonModifyMove(move, pokemon) {\r\n\t\t\tif (move.flags['defrost']) {\r\n\t\t\t\tthis.add('-curestatus', pokemon, 'frz', '[from] move: ' + move);\r\n\t\t\t\tpokemon.clearStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tif (move.thawsTarget) {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (move.type === 'Fire' && move.category !== 'Status') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpsn: {\r\n\t\tname: 'psn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Ability') {\r\n\t\t\t\tthis.add('-status', target, 'psn', '[from] ability: ' + sourceEffect.name, '[of] ' + source);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'psn');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonResidualOrder: 9,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tthis.damage(pokemon.baseMaxhp / 8);\r\n\t\t},\r\n\t},\r\n\ttox: {\r\n\t\tname: 'tox',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tthis.effectState.stage = 0;\r\n\t\t\tif (sourceEffect && s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E;AAC1D,UAAI,OAAO,WAAW;AAAU,cAAM,IAAI,MAAM,4BAA4B;AAC5E,YAAM,aAAa,EAAC,IAAI,KAAK,KAAK,UAAU,GAAG,YAAY,QAAQ,MAAM,MAAK;AAC9E,WAAK,OAAO,QAAQ,SAAS,SAAS,UAAwB;AAC9D,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,IACN,UAAU;AAAA,IACV,sBAAsB;AAAA,IACtB,aAAa,SAAS;AACrB,WAAK,IAAI,QAAQ,SAAS,QAAQ;AAClC,WAAK,SAAS,UAAU,OAAO;AAC/B,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,cAAc,SAAS;AACtB,cAAQ,QAAQ;AAAA,IACjB;AAAA,IACA,QAAQ,QAAQ;AACf,WAAK,IAAI,aAAa,QAAQ,SAAS;AAAA,IACxC;AAAA,EACD;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,EACT;AAAA,EACA,kBAAkB;AAAA,IACjB,MAAM;AAAA,IACN,UAAU;AAAA,IACV,iBAAiB,QAAQ,QAAQ;AAChC,UAAI,QAAQ,QAAQ,UAAU;AAAG,eAAO;AACxC,aAAO,KAAK,OAAO,GAAG,CAAC;AAAA,IACxB;AAAA,IACA,QAAQ,SAAS,QAAQ;AACxB,WAAK,IAAI,aAAa,SAAS,WAAW,KAAK,YAAY,cAAc,UAAU,MAAM;AACzF,WAAK,YAAY,eAAe,OAAO,QAAQ,aAAa,IAAI,IAAI;ALine truncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/formats-data.ts"],
|
||||
"sourcesContent": ["export const FormatsData: {[k: string]: SpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tvenusaurmega: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"UU\",\r\n\t},\r\n\tvenusaurgmax: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"RU\",\r\n\t\tdoublesTier: \"(DUU)\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tcharizardmegax: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"UUBL\",\r\n\t},\r\n\tcharizardmegay: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"OU\",\r\n\t},\r\n\tcharizardgmax: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tsquirtle: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tblastoisemega: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"Uber\",\r\n\t},\r\n\tblastoisegmax: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tcaterpie: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tbutterfreegmax: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tweedle: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tbeedrillmega: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"UU\",\r\n\t},\r\n\tpidgey: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tpidgeotmega: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\trattata: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\trattataalola: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\traticatealola: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\traticatealolatotem: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tspearow: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tekans: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t\tnatDexTier: \"RU\",\r\n\t},\r\n\tpichu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpichuspikyeared: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpikachucosplay: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachurockstar: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachubelle: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachupopstar: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachuphd: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachulibre: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachuoriginal: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachuhoenn: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachusinnoh: {\r\n\t\tisNonstandard: \"Past\",\r\n\t\ttier: \"Illegal\",\r\n\t},\r\n\tpikachuunova: {\r\n\t\tisNonstandard: \"Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAiD;AAAA,EAC7D,WAAW;AAAA,IACV,eAAe;AAAA,IACf,MAAM;AAAA,IACN,YAAY;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACR,eAAe;AAAA,IACf,MAAM;AAAA,IACN,YAAY;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACT,eAAe;AAAA,IACf,MAAM;AAAA,IACN,YAAY;AAAA,EACb;AAAA,EACA,cAAc;AAAA,IACb,eAAe;AAAA,IACf,MAAM;AAAA,IACN,YAAY;AAAA,EACb;AAAA,EACA,cAAc;AAAA,IACb,eAAe;AAAA,IACf,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,EACb;AAAA,EACA,gBAAgB;AAAA,IACf,eAAe;AAAA,IACf,MAAM;AA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||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/items.ts"],
|
||||
"sourcesContent": ["export const Items: {[itemid: string]: ItemData} = {\r\n\tabilityshield: {\r\n\t\tname: \"Ability Shield\",\r\n\t\tspritenum: 0, // TODO\r\n\t\tignoreKlutz: true,\r\n\t\t// Neutralizing Gas protection implemented in Pokemon.ignoringAbility() within sim/pokemon.ts\r\n\t\t// and in Neutralizing Gas itself within data/abilities.ts\r\n\t\tonSetAbility(ability, target, source, effect) {\r\n\t\t\tif (effect && effect.effectType === 'Ability' && effect.name !== 'Trace') {\r\n\t\t\t\tthis.add('-ability', source, effect);\r\n\t\t\t}\r\n\t\t\tthis.add('-block', target, 'item: Ability Shield');\r\n\t\t\treturn null;\r\n\t\t},\r\n\t\t// Mold Breaker protection implemented in Battle.suppressingAbility() within sim/battle.ts\r\n\t\tnum: 1881,\r\n\t\tgen: 9,\r\n\t},\r\n\tabomasite: {\r\n\t\tname: \"Abomasite\",\r\n\t\tspritenum: 575,\r\n\t\tmegaStone: \"Abomasnow-Mega\",\r\n\t\tmegaEvolves: \"Abomasnow\",\r\n\t\titemUser: [\"Abomasnow\"],\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (item.megaEvolves === source.baseSpecies.baseSpecies) return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tnum: 674,\r\n\t\tgen: 6,\r\n\t\tisNonstandard: \"Past\",\r\n\t},\r\n\tabsolite: {\r\n\t\tname: \"Absolite\",\r\n\t\tspritenum: 576,\r\n\t\tmegaStone: \"Absol-Mega\",\r\n\t\tmegaEvolves: \"Absol\",\r\n\t\titemUser: [\"Absol\"],\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (item.megaEvolves === source.baseSpecies.baseSpecies) return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tnum: 677,\r\n\t\tgen: 6,\r\n\t\tisNonstandard: \"Past\",\r\n\t},\r\n\tabsorbbulb: {\r\n\t\tname: \"Absorb Bulb\",\r\n\t\tspritenum: 2,\r\n\t\tfling: {\r\n\t\t\tbasePower: 30,\r\n\t\t},\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (move.type === 'Water') {\r\n\t\t\t\ttarget.useItem();\r\n\t\t\t}\r\n\t\t},\r\n\t\tboosts: {\r\n\t\t\tspa: 1,\r\n\t\t},\r\n\t\tnum: 545,\r\n\t\tgen: 5,\r\n\t},\r\n\tadamantcrystal: {\r\n\t\tname: \"Adamant Crystal\",\r\n\t\tspritenum: 4, // TODO\r\n\t\tonBasePowerPriority: 15,\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tif (user.baseSpecies.num === 483 && (move.type === 'Steel' || move.type === 'Dragon')) {\r\n\t\t\t\treturn this.chainModify([4915, 4096]);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonTakeItem(item, pokemon, source) {\r\n\t\t\tif (source?.baseSpecies.num === 483 || pokemon.baseSpecies.num === 483) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tforcedForme: \"Dialga-Origin\",\r\n\t\titemUser: [\"Dialga-Origin\"],\r\n\t\tnum: 1777,\r\n\t\tgen: 8,\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tadamantorb: {\r\n\t\tname: \"Adamant Orb\",\r\n\t\tspritenum: 4,\r\n\t\tfling: {\r\n\t\t\tbasePower: 60,\r\n\t\t},\r\n\t\tonBasePowerPriority: 15,\r\n\t\tonBasePower(basePower, user, target, move) {\r\n\t\t\tif (user.baseSpecies.num === 483 && (move.type === 'Steel' || move.type === 'Dragon')) {\r\n\t\t\t\treturn this.chainModify([4915, 4096]);\r\n\t\t\t}\r\n\t\t},\r\n\t\titemUser: [\"Dialga\"],\r\n\t\tnum: 135,\r\n\t\tgen: 4,\r\n\t\tisNonstandard: \"Unobtainable\",\r\n\t},\r\n\tadrenalineorb: {\r\n\t\tname: \"Adrenaline Orb\",\r\n\t\tspritenum: 660,\r\n\t\tfling: {\r\n\t\t\tbasePower: 30,\r\n\t\t},\r\n\t\tonAfterBoost(boost, target, source, effect) {\r\n\t\t\t// Adrenaline Orb activates if Intimidate is blocked by an ability like Hyper Cutter,\r\n\t\t\t// which deletes boost.atk,\r\n\t\t\t// but not if the holder's attack is already at -6 (or +6 if it has Contrary),\r\n\t\t\t// which sets boost.atk to 0\r\n\t\t\tif (target.boosts['spe'] === 6 || boost.atk === 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (effect.name === 'Intimidate') {\r\n\t\t\t\ttarget.useItem();\r\n\t\t\t}\r\n\t\t},\r\n\t\tboosts: {\r\n\t\t\tspe: 1,\r\n\t\t},\r\n\t\tnum: 846,\r\n\t\tgen: 7,\r\n\t},\r\n\taerodactylite: {\r\n\t\tname: \"Aerodactylite\",\r\n\t\tspritenum: 577,\r\n\t\tmegaStone: \"Aerodactyl-Mega\",\r\n\t\tmegaEvolves: \"Aerodactyl\",\r\n\t\titemUser: [\"Aerodactyl\"],\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (item.megaEvolves === source.baseSpecies.baseSpecies) return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tnum: 672,\r\n\t\tgen: 6,\r\n\t\tisNonstandard: \"Past\",\r\n\t},\r\n\taggronite: {\r\n\t\tname: \"Aggronite\",\r\n\t\tspritenum: 578,\r\n\t\tmegaStone: \"Aggron-Mega\",\r\n\t\tmegaEvolves: \"Aggron\",\r\n\t\titemUser: [\"Aggron\"],\r\n\t\tonTakeItem(item, source) {\r\n\t\t\tif (item.megaEvolves === source.baseSpecies.baseSpecies) return false;\r\n\t\t\treturn true;\r\n\t\t},\r\n\t\tnum: 667,\r\n\t\tgen: 6,\r\n\t\tisNonstandard: \"Past\",\r\n\t},\r\n\taguavberry: {\r\n\t\tname: \"Aguav Berry\",\r\n\t\tspritenum: 5,\r\n\t\tisBerry: true,\r\n\t\tnaturalGift: {\r\n\t\t\tbasePower: 80,\r\n\t\t\ttype: \"Dragon\",\r\n\t\t},\r\n\t\tonUpdate(pokemon) {\r\n\t\t\tif (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 &&\r\n\t\t\t\t\tpokemon.hasAbility('gluttony') && pokemon.abilityState.gluttony)) {\r\n\t\t\t\tpokemon.eatItem();\r\n\t\t\t}\r\n\t\t},\r\nLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAsC;AAAA,EAClD,eAAe;AAAA,IACd,MAAM;AAAA,IACN,WAAW;AAAA;AAAA,IACX,aAAa;AAAA;AAAA;AAAA,IAGb,aAAa,SAAS,QAAQ,QAAQ,QAAQ;AAC7C,UAAI,UAAU,OAAO,eAAe,aAAa,OAAO,SAAS,SAAS;AACzE,aAAK,IAAI,YAAY,QAAQ,MAAM;AAAA,MACpC;AACA,WAAK,IAAI,UAAU,QAAQ,sBAAsB;AACjD,aAAO;AAAA,IACR;AAAA;AAAA,IAEA,KAAK;AAAA,IACL,KAAK;AAAA,EACN;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU,CAAC,WAAW;AAAA,IACtB,WAAW,MAAM,QAAQ;AACxB,UAAI,KAAK,gBAAgB,OAAO,YAAY;AAAa,eAAO;AAChE,aAAO;AAAA,IACR;AAAA,IACA,KAAK;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,EAChB;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,IACX,WAAW;AAAA,IACX,aAAa;AAAA,IACb,UAAU,CAAC,OAAO;AAAA,IAClB,WAAW,MAAM,QAAQ;AACxB,UAAI,KAAK,gBAAgB,OAAO,YAAY;AAAa,eAAO;AAChE,aA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because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../data/learnsets.ts"],
|
||||
"sourcesContent": ["/* eslint-disable max-len */\r\n\r\nexport const Learnsets: {[speciesid: string]: LearnsetData} = {\r\n\tmissingno: {\r\n\t\tlearnset: {\r\n\t\t\tblizzard: [\"3L1\"],\r\n\t\t\tbubblebeam: [\"3L1\"],\r\n\t\t\tcut: [\"3L1\"],\r\n\t\t\tdoubleedge: [\"3L1\"],\r\n\t\t\tearthquake: [\"3L1\"],\r\n\t\t\tfissure: [\"3L1\"],\r\n\t\t\tfly: [\"3L1\"],\r\n\t\t\ticebeam: [\"3L1\"],\r\n\t\t\tmegakick: [\"3L1\"],\r\n\t\t\tmegapunch: [\"3L1\"],\r\n\t\t\tpsychic: [\"3L1\"],\r\n\t\t\trage: [\"3L1\"],\r\n\t\t\trazorwind: [\"3L1\"],\r\n\t\t\trest: [\"3L1\"],\r\n\t\t\tseismictoss: [\"3L1\"],\r\n\t\t\tskyattack: [\"3L1\"],\r\n\t\t\tsubmission: [\"3L1\"],\r\n\t\t\tsubstitute: [\"3L1\"],\r\n\t\t\tswordsdance: [\"3L1\"],\r\n\t\t\ttakedown: [\"3L1\"],\r\n\t\t\tteleport: [\"3L1\"],\r\n\t\t\tthunder: [\"3L1\"],\r\n\t\t\tthunderwave: [\"3L1\"],\r\n\t\t\ttoxic: [\"3L1\"],\r\n\t\t\ttriattack: [\"3L1\"],\r\n\t\t\twatergun: [\"3L1\"],\r\n\t\t},\r\n\t},\r\n\tbulbasaur: {\r\n\t\tlearnset: {\r\n\t\t\tamnesia: [\"8M\", \"7E\", \"6E\", \"5E\", \"4E\"],\r\n\t\t\tattract: [\"8M\", \"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tbide: [\"7V\"],\r\n\t\t\tbind: [\"7T\", \"6T\", \"5T\"],\r\n\t\t\tblock: [\"5S3\"],\r\n\t\t\tbodyslam: [\"8M\", \"7V\", \"3T\"],\r\n\t\t\tbulletseed: [\"8M\", \"4M\", \"3M\"],\r\n\t\t\tcaptivate: [\"4M\"],\r\n\t\t\tcelebrate: [\"6S5\"],\r\n\t\t\tcharm: [\"8M\", \"7E\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tconfide: [\"7M\", \"6M\"],\r\n\t\t\tcurse: [\"8E\", \"7E\", \"7V\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tcut: [\"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tdefensecurl: [\"7V\", \"3T\"],\r\n\t\t\tdoubleedge: [\"8L33\", \"8V\", \"7L27\", \"7V\", \"6L27\", \"5L27\", \"4L27\", \"3T\"],\r\n\t\t\tdoubleteam: [\"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\techoedvoice: [\"7M\", \"6M\", \"5M\"],\r\n\t\t\tendure: [\"8M\", \"7E\", \"7V\", \"6E\", \"5E\", \"4M\", \"3T\"],\r\n\t\t\tenergyball: [\"8M\", \"7M\", \"6M\", \"5M\", \"4M\"],\r\n\t\t\tfacade: [\"8M\", \"8V\", \"7M\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tfalseswipe: [\"8M\", \"5S3\"],\r\n\t\t\tflash: [\"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tfrenzyplant: [\"5S3\"],\r\n\t\t\tfrustration: [\"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tfurycutter: [\"7V\", \"4T\", \"3T\"],\r\n\t\t\tgigadrain: [\"8M\", \"7T\", \"7E\", \"7V\", \"6T\", \"6E\", \"5T\", \"5E\", \"4M\", \"3M\"],\r\n\t\t\tgrassknot: [\"8M\", \"7M\", \"6M\", \"5M\", \"4M\"],\r\n\t\t\tgrasspledge: [\"8T\", \"7T\", \"6T\", \"5T\"],\r\n\t\t\tgrasswhistle: [\"7E\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tgrassyglide: [\"8T\"],\r\n\t\t\tgrassyterrain: [\"8M\", \"7E\", \"6E\"],\r\n\t\t\tgrowl: [\"8L1\", \"8V\", \"7L3\", \"7V\", \"6L3\", \"6S4\", \"6S5\", \"5L3\", \"5S2\", \"4L3\", \"3L4\", \"3S1\"],\r\n\t\t\tgrowth: [\"8L6\", \"8V\", \"7L25\", \"7V\", \"6L25\", \"5L25\", \"4L25\", \"3L32\", \"3S0\"],\r\n\t\t\theadbutt: [\"8V\", \"7V\", \"4T\"],\r\n\t\t\thelpinghand: [\"8M\"],\r\n\t\t\thiddenpower: [\"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tingrain: [\"8E\", \"7E\", \"6E\", \"5E\", \"4E\"],\r\n\t\t\tknockoff: [\"7T\", \"6T\", \"5T\", \"4T\"],\r\n\t\t\tleafstorm: [\"8M\", \"7E\", \"6E\", \"5E\", \"4E\"],\r\n\t\t\tleechseed: [\"8L9\", \"8V\", \"7L7\", \"7V\", \"6L7\", \"6S4\", \"5L7\", \"5S2\", \"4L7\", \"3L7\", \"3S1\"],\r\n\t\t\tlightscreen: [\"8M\", \"8V\", \"7M\", \"7V\", \"6M\", \"5M\", \"4E\", \"3E\"],\r\n\t\t\tmagicalleaf: [\"8M\", \"7E\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tmegadrain: [\"8V\", \"7V\"],\r\n\t\t\tmimic: [\"7V\", \"3T\"],\r\n\t\t\tmudslap: [\"7V\", \"4T\", \"3T\"],\r\n\t\t\tnaturalgift: [\"4M\"],\r\n\t\t\tnaturepower: [\"8E\", \"7M\", \"7E\", \"6M\", \"6E\", \"5E\", \"4E\"],\r\n\t\t\toutrage: [\"8V\"],\r\n\t\t\tpetaldance: [\"8E\", \"7E\", \"7V\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tpoisonpowder: [\"8L15\", \"8V\", \"7L13\", \"7V\", \"6L13\", \"6S4\", \"5L13\", \"4L13\", \"3L15\"],\r\n\t\t\tpowerwhip: [\"8M\", \"7E\", \"6E\", \"5E\", \"4E\"],\r\n\t\t\tprotect: [\"8M\", \"8V\", \"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\trage: [\"7V\"],\r\n\t\t\trazorleaf: [\"8L12\", \"8V\", \"7L19\", \"7V\", \"6L19\", \"5L19\", \"4L19\", \"3L20\"],\r\n\t\t\trazorwind: [\"7V\"],\r\n\t\t\treflect: [\"8V\", \"7V\"],\r\n\t\t\trest: [\"8M\", \"8V\", \"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\treturn: [\"7M\", \"7V\", \"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\trocksmash: [\"6M\", \"5M\", \"4M\", \"3M\"],\r\n\t\t\tround: [\"8M\", \"7M\", \"6M\", \"5M\"],\r\n\t\t\tsafeguard: [\"8M\", \"7M\", \"7V\", \"6M\", \"5M\", \"4E\", \"3E\"],\r\n\t\t\tsecretpower: [\"6M\", \"4M\", \"3M\"],\r\n\t\t\tseedbomb: [\"8M\", \"8L18\", \"7T\", \"7L37\", \"6T\", \"6L37\", \"5T\", \"5L37\", \"4T\", \"4L37\"],\r\n\t\t\tskullbash: [\"8E\", \"7E\", \"7V\", \"6E\", \"5E\", \"4E\", \"3E\"],\r\n\t\t\tsleeppowder: [\"8L15\", \"8V\", \"7L13\", \"7V\", \"6L13\", \"5L13\", \"4L13\", \"3L15\"],\r\n\t\t\tsleeptalk: [\"8M\", \Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,YAAiD;AAAA,EAC7D,WAAW;AAAA,IACV,UAAU;AAAA,MACT,UAAU,CAAC,KAAK;AAAA,MAChB,YAAY,CAAC,KAAK;AAAA,MAClB,KAAK,CAAC,KAAK;AAAA,MACX,YAAY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aAAa,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AAAA,MACtD,WAAW,CAAC,QAAQ,MAAM,QAAQ,MAAM,MAAM,QAAQ,MAAM,QAAQ,MAAM,QAAQ,QAAQ,KAAK;AAAA,MAC/F,QAAQ,CAAC,OAAO,MAAM,OAAO,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,OAAO,KAAK;AAAA,MAClF,UAAU,CAAC,QAAQ,MAAM,QAAQ,MAAM,QAAQ,QAAQ,MAAM;AAAA,MAC7D,OAAO,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AAAA,MACtD,WAAW,CAAC,MAAM,MAAM,MAAM,IAAI;AAAA,MAClC,UAAU,CAAC,OAAO,MAAM,OAAO,MAAM,OAAO,OAAO,OAAO,OAAO,OAAO,QAAQ,KAAK;AAAA,MACrF,aAAa,CAAC,MAAM,KAAK;AAAA,MACzB,QAAQ,CAAC,MAAM,IAAI;AAAA,MACnB,WAAW,CAAC,QAAQ,MAAM,QAAQ,MAAM,QAAQ,MAAM,QAAQ,MAAM,MAAM;AAAA,IAC3E;AAAA,IACA,WAAW;AAAA,MACV,EAAC,YAAY,GAAG,OAAO,IAAI,OAAO,CAAC,cAAc,UAAU,aAAa,WAAW,GAAG,UAAU,Line truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var pokedex_exports = {};
|
||||
__export(pokedex_exports, {
|
||||
Pokedex: () => Pokedex
|
||||
});
|
||||
module.exports = __toCommonJS(pokedex_exports);
|
||||
const Pokedex = {};
|
||||
//# sourceMappingURL=pokedex.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/cobblemon/pokedex.ts"],
|
||||
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAA4C,CAAC;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
inherit: "base"
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/cobblemon/scripts.ts"],
|
||||
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'base'\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AACV;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var abilities_exports = {};
|
||||
__export(abilities_exports, {
|
||||
Abilities: () => Abilities
|
||||
});
|
||||
module.exports = __toCommonJS(abilities_exports);
|
||||
const Abilities = {
|
||||
unaware: {
|
||||
inherit: true,
|
||||
onAnyModifyBoost(boosts, pokemon) {
|
||||
const unawareUser = this.effectState.target;
|
||||
if (unawareUser === pokemon)
|
||||
return;
|
||||
if (unawareUser === this.activePokemon && pokemon === this.activeTarget) {
|
||||
boosts["def"] = 0;
|
||||
boosts["spd"] = 0;
|
||||
boosts["evasion"] = 0;
|
||||
}
|
||||
if (pokemon === this.activePokemon && unawareUser === this.activeTarget) {
|
||||
boosts["atk"] = 0;
|
||||
boosts["def"] = 0;
|
||||
boosts["spa"] = 0;
|
||||
boosts["spd"] = 0;
|
||||
boosts["spe"] = 0;
|
||||
boosts["accuracy"] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=abilities.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/fullpotential/abilities.ts"],
|
||||
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tunaware: {\r\n\t\tinherit: true,\r\n\t\tonAnyModifyBoost(boosts, pokemon) {\r\n\t\t\tconst unawareUser = this.effectState.target;\r\n\t\t\tif (unawareUser === pokemon) return;\r\n\t\t\tif (unawareUser === this.activePokemon && pokemon === this.activeTarget) {\r\n\t\t\t\tboosts['def'] = 0;\r\n\t\t\t\tboosts['spd'] = 0;\r\n\t\t\t\tboosts['evasion'] = 0;\r\n\t\t\t}\r\n\t\t\tif (pokemon === this.activePokemon && unawareUser === this.activeTarget) {\r\n\t\t\t\tboosts['atk'] = 0;\r\n\t\t\t\tboosts['def'] = 0;\r\n\t\t\t\tboosts['spa'] = 0;\r\n\t\t\t\tboosts['spd'] = 0;\r\n\t\t\t\tboosts['spe'] = 0;\r\n\t\t\t\tboosts['accuracy'] = 0;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,SAAS;AAAA,IACR,SAAS;AAAA,IACT,iBAAiB,QAAQ,SAAS;AACjC,YAAM,cAAc,KAAK,YAAY;AACrC,UAAI,gBAAgB;AAAS;AAC7B,UAAI,gBAAgB,KAAK,iBAAiB,YAAY,KAAK,cAAc;AACxE,eAAO,KAAK,IAAI;AAChB,eAAO,KAAK,IAAI;AAChB,eAAO,SAAS,IAAI;AAAA,MACrB;AACA,UAAI,YAAY,KAAK,iBAAiB,gBAAgB,KAAK,cAAc;AACxE,eAAO,KAAK,IAAI;AAChB,eAAO,KAAK,IAAI;AAChB,eAAO,KAAK,IAAI;AAChB,eAAO,KAAK,IAAI;AAChB,eAAO,KAAK,IAAI;AAChB,eAAO,UAAU,IAAI;AAAA,MACtB;AAAA,IACD;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
gen: 9,
|
||||
actions: {
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string")
|
||||
move = this.dex.getActiveMove(move);
|
||||
if (typeof move === "number") {
|
||||
const basePower2 = move;
|
||||
move = new Dex.Move({
|
||||
basePower: basePower2,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false
|
||||
});
|
||||
move.hit = 0;
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, !suppressMessages)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko)
|
||||
return target.maxhp;
|
||||
if (move.damageCallback)
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
} else if (move.damage) {
|
||||
return move.damage;
|
||||
}
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower)
|
||||
return basePower === 0 ? void 0 : basePower;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let critMult;
|
||||
let critRatio = this.battle.runEvent("ModifyCritRatio", source, target, move, move.critRatio || 0);
|
||||
if (this.battle.gen <= 5) {
|
||||
critRatio = this.battle.clampIntRange(critRatio, 0, 5);
|
||||
critMult = [0, 16, 8, 4, 3, 2];
|
||||
} else {
|
||||
critRatio = this.battle.clampIntRange(critRatio, 0, 4);
|
||||
if (this.battle.gen === 6) {
|
||||
critMult = [0, 16, 8, 2, 1];
|
||||
} else {
|
||||
critMult = [0, 24, 8, 2, 1];
|
||||
}
|
||||
}
|
||||
const moveHit = target.getMoveHitData(move);
|
||||
moveHit.crit = move.willCrit || false;
|
||||
if (move.willCrit === void 0) {
|
||||
if (critRatio) {
|
||||
moveHit.crit = this.battle.randomChance(1, critMult[critRatio]);
|
||||
}
|
||||
}
|
||||
if (moveHit.crit) {
|
||||
moveHit.crit = this.battle.runEvent("CriticalHit", target, null, move);
|
||||
}
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
if (!source.volatiles["dynamax"] && move.isMax || move.isMax && this.dex.moves.get(move.baseMove).isMax) {
|
||||
basePower = 0;
|
||||
}
|
||||
const level = source.level;
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const defenseStat = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
const statTable = { atk: "Atk", def: "Def", spa: "SpA", spd: "SpD", spe: "Spe" };
|
||||
let maxAttack = 0;
|
||||
let defBoosts = defender.boosts[defenseStat];
|
||||
let ignoreNegativeOffensive = !!move.ignoreNegativeOffensive;
|
||||
let ignorePositiveDefensive = !!move.ignorePositiveDefensive;
|
||||
if (moveHit.crit) {
|
||||
ignoreNegativeOffensive = true;
|
||||
ignorePositiveDefensive = true;
|
||||
}
|
||||
const ignoreDefensive = !!(move.ignoreDefensive || ignorePositiveDefensive && defBoosts > 0);
|
||||
if (ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defBoosts = 0;
|
||||
}
|
||||
let attack = 0;
|
||||
for (const attackStat in statTable) {
|
||||
let atkBoosts = attacker.boosts[attackStat];
|
||||
const ignoreOffensive = !!(move.ignoreOffensive || ignoreNegativeOffensive && atkBoosts < 0);
|
||||
if (ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
atkBoosts = 0;
|
||||
}
|
||||
attack = attacker.calculateStat(attackStat, atkBoosts, 1, source);
|
||||
attack = this.battle.runEvent("Modify" + statTable[attackStat], source, target, move, attack);
|
||||
if (attack > maxAttack)
|
||||
maxAttack = attack;
|
||||
}
|
||||
let defense = defender.calculateStat(defenseStat, defBoosts, 1, target);
|
||||
defense = this.battle.runEvent("Modify" + statTable[defenseStat], target, source, move, defense);
|
||||
if (this.battle.gen <= 4 && ["explosion", "selfdestruct"].includes(move.id) && defenseStat === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
const tr = this.battle.trunc;
|
||||
const baseDamage = tr(tr(tr(tr(2 * level / 5 + 2) * basePower * maxAttack) / defense) / 50);
|
||||
return this.modifyDamage(baseDamage, source, target, move, suppressMessages);
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/fullpotential/scripts.ts"],
|
||||
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tgen: 9,\r\n\tactions: {\r\n\t\tgetDamage(source, target, move, suppressMessages) {\r\n\t\t\tif (typeof move === 'string') move = this.dex.getActiveMove(move);\r\n\r\n\t\t\tif (typeof move === 'number') {\r\n\t\t\t\tconst basePower = move;\r\n\t\t\t\tmove = new Dex.Move({\r\n\t\t\t\t\tbasePower,\r\n\t\t\t\t\ttype: '???',\r\n\t\t\t\t\tcategory: 'Physical',\r\n\t\t\t\t\twillCrit: false,\r\n\t\t\t\t}) as ActiveMove;\r\n\t\t\t\tmove.hit = 0;\r\n\t\t\t}\r\n\r\n\t\t\tif (!move.ignoreImmunity || (move.ignoreImmunity !== true && !move.ignoreImmunity[move.type])) {\r\n\t\t\t\tif (!target.runImmunity(move.type, !suppressMessages)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (move.ohko) return target.maxhp;\r\n\t\t\tif (move.damageCallback) return move.damageCallback.call(this.battle, source, target);\r\n\t\t\tif (move.damage === 'level') {\r\n\t\t\t\treturn source.level;\r\n\t\t\t} else if (move.damage) {\r\n\t\t\t\treturn move.damage;\r\n\t\t\t}\r\n\r\n\t\t\tlet basePower: number | false | null = move.basePower;\r\n\t\t\tif (move.basePowerCallback) {\r\n\t\t\t\tbasePower = move.basePowerCallback.call(this.battle, source, target, move);\r\n\t\t\t}\r\n\t\t\tif (!basePower) return basePower === 0 ? undefined : basePower;\r\n\t\t\tbasePower = this.battle.clampIntRange(basePower, 1);\r\n\r\n\t\t\tlet critMult;\r\n\t\t\tlet critRatio = this.battle.runEvent('ModifyCritRatio', source, target, move, move.critRatio || 0);\r\n\t\t\tif (this.battle.gen <= 5) {\r\n\t\t\t\tcritRatio = this.battle.clampIntRange(critRatio, 0, 5);\r\n\t\t\t\tcritMult = [0, 16, 8, 4, 3, 2];\r\n\t\t\t} else {\r\n\t\t\t\tcritRatio = this.battle.clampIntRange(critRatio, 0, 4);\r\n\t\t\t\tif (this.battle.gen === 6) {\r\n\t\t\t\t\tcritMult = [0, 16, 8, 2, 1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcritMult = [0, 24, 8, 2, 1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tconst moveHit = target.getMoveHitData(move);\r\n\t\t\tmoveHit.crit = move.willCrit || false;\r\n\t\t\tif (move.willCrit === undefined) {\r\n\t\t\t\tif (critRatio) {\r\n\t\t\t\t\tmoveHit.crit = this.battle.randomChance(1, critMult[critRatio]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (moveHit.crit) {\r\n\t\t\t\tmoveHit.crit = this.battle.runEvent('CriticalHit', target, null, move);\r\n\t\t\t}\r\n\r\n\t\t\t// happens after crit calculation\r\n\t\t\tbasePower = this.battle.runEvent('BasePower', source, target, move, basePower, true);\r\n\r\n\t\t\tif (!basePower) return 0;\r\n\t\t\tbasePower = this.battle.clampIntRange(basePower, 1);\r\n\t\t\t// Hacked Max Moves have 0 base power, even if you Dynamax\r\n\t\t\tif ((!source.volatiles['dynamax'] && move.isMax) || (move.isMax && this.dex.moves.get(move.baseMove).isMax)) {\r\n\t\t\t\tbasePower = 0;\r\n\t\t\t}\r\n\r\n\t\t\tconst level = source.level;\r\n\r\n\t\t\tconst attacker = move.overrideOffensivePokemon === 'target' ? target : source;\r\n\t\t\tconst defender = move.overrideDefensivePokemon === 'source' ? source : target;\r\n\r\n\t\t\tconst isPhysical = move.category === 'Physical';\r\n\t\t\tconst defenseStat: StatIDExceptHP = move.overrideDefensiveStat || (isPhysical ? 'def' : 'spd');\r\n\r\n\t\t\tconst statTable: {[k in StatIDExceptHP]: string} = {atk: 'Atk', def: 'Def', spa: 'SpA', spd: 'SpD', spe: 'Spe'};\r\n\r\n\t\t\tlet maxAttack = 0;\r\n\r\n\t\t\tlet defBoosts = defender.boosts[defenseStat];\r\n\r\n\t\t\tlet ignoreNegativeOffensive = !!move.ignoreNegativeOffensive;\r\n\t\t\tlet ignorePositiveDefensive = !!move.ignorePositiveDefensive;\r\n\r\n\t\t\tif (moveHit.crit) {\r\n\t\t\t\tignoreNegativeOffensive = true;\r\n\t\t\t\tignorePositiveDefensive = true;\r\n\t\t\t}\r\n\r\n\t\t\tconst ignoreDefensive = !!(move.ignoreDefensive || (ignorePositiveDefensive && defBoosts > 0));\r\n\t\t\tif (ignoreDefensive) {\r\n\t\t\t\tthis.battle.debug('Negating (sp)def boost/penalty.');\r\n\t\t\t\tdefBoosts = 0;\r\n\t\t\t}\r\n\r\n\t\t\tlet attack = 0;\r\n\r\n\t\t\tfor (const attackStat in statTable) {\r\n\t\t\t\tlet atkBoosts = attacker.boosts[attackStat as keyof BoostsTable];\r\n\t\t\t\tconst ignoreOffensive = !!(move.ignoreOffensive || (ignoreNegativeOffensive && atkBoosts < 0));\r\n\t\t\t\tif (ignoreOffensive) {\r\n\t\t\t\t\tthis.battle.debug('Negating (sp)atk boost/penalty.');\r\n\t\t\t\t\tatkBoosts = 0;\r\n\t\t\t\t}\r\n\t\t\t\tattack = attacker.calculateStat(attackStat as any, atkBoosts, 1, source);\r\n\t\t\t\tattack = this.battle.runEvent('Modify' + (statTable as any)[attackStat], source, target, move, attack);\r\n\t\t\t\tif (attack > maxAttack) maxAttack = attack;\r\n\t\t\t}\r\n\r\n\t\t\tlet defense = defender.calculateStat(defenseStat, defBoosts, 1, target);\r\n\r\n\t\t\t// Apply Stat Modifiers\r\n\t\t\tdefense = this.battle.runEvent('Modify' + statTable[defenseStat], target, source, move, defense);\r\n\r\n\t\t\tif (this.battle.gen <= 4 && ['explosion', 'selfdestruct'].includes(move.id)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Y,QAAQ,QAAQ,MAAM,gBAAgB;AAAA,IAC5E;AAAA,EACD;AACD;",
|
||||
"names": ["basePower"]
|
||||
}
|
||||
@@ -0,0 +1,275 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "brn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 2,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
const toxicCounter = pokemon.volatiles["residualdmg"] ? pokemon.volatiles["residualdmg"].counter : 1;
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);
|
||||
if (pokemon.volatiles["residualdmg"]) {
|
||||
this.hint("In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.", true);
|
||||
}
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "par");
|
||||
},
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(63, 256)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
pokemon.removeVolatile("bide");
|
||||
if (pokemon.removeVolatile("twoturnmove")) {
|
||||
if (pokemon.volatiles["invulnerability"]) {
|
||||
this.hint(`In Gen 1, when a Dig/Fly user is fully paralyzed while semi-invulnerable, it will remain semi-invulnerable until it switches out or fully executes Dig/Fly`, true);
|
||||
}
|
||||
}
|
||||
pokemon.removeVolatile("partialtrappinglock");
|
||||
pokemon.removeVolatile("lockedmove");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.startTime = this.random(1, 8);
|
||||
this.effectState.time = this.effectState.startTime;
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time > 0) {
|
||||
this.add("cant", pokemon, "slp");
|
||||
}
|
||||
pokemon.lastMove = null;
|
||||
return false;
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
if (pokemon.statusState.time <= 0)
|
||||
pokemon.cureStatus();
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
name: "frz",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "frz");
|
||||
},
|
||||
onBeforeMovePriority: 12,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
this.add("cant", pokemon, "frz");
|
||||
pokemon.lastMove = null;
|
||||
return false;
|
||||
},
|
||||
onAfterMoveSecondary(target, source, move) {
|
||||
if (move.secondary && move.secondary.status === "brn") {
|
||||
target.cureStatus();
|
||||
}
|
||||
}
|
||||
},
|
||||
psn: {
|
||||
name: "psn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "psn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 2,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
const toxicCounter = pokemon.volatiles["residualdmg"] ? pokemon.volatiles["residualdmg"].counter : 1;
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);
|
||||
if (pokemon.volatiles["residualdmg"]) {
|
||||
this.hint("In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.", true);
|
||||
}
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
tox: {
|
||||
inherit: true,
|
||||
onAfterMoveSelfPriority: 2
|
||||
},
|
||||
confusion: {
|
||||
name: "confusion",
|
||||
// this is a volatile status
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.id === "lockedmove") {
|
||||
this.add("-start", target, "confusion", "[silent]");
|
||||
} else {
|
||||
this.add("-start", target, "confusion");
|
||||
}
|
||||
this.effectState.time = this.random(2, 6);
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "confusion");
|
||||
},
|
||||
onBeforeMovePriority: 3,
|
||||
onBeforeMove(pokemon, target) {
|
||||
pokemon.volatiles["confusion"].time--;
|
||||
if (!pokemon.volatiles["confusion"].time) {
|
||||
pokemon.removeVolatile("confusion");
|
||||
return;
|
||||
}
|
||||
this.add("-activate", pokemon, "confusion");
|
||||
if (!this.randomChance(128, 256)) {
|
||||
const damage = Math.floor(Math.floor((Math.floor(2 * pokemon.level / 5) + 2) * pokemon.getStat("atk") * 40 / pokemon.getStat("def", false)) / 50) + 2;
|
||||
this.directDamage(damage, pokemon, target);
|
||||
pokemon.removeVolatile("bide");
|
||||
pokemon.removeVolatile("twoturnmove");
|
||||
pokemon.removeVolatile("invulnerability");
|
||||
pokemon.removeVolatile("partialtrappinglock");
|
||||
pokemon.removeVolatile("lockedmove");
|
||||
return false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
},
|
||||
flinch: {
|
||||
name: "flinch",
|
||||
duration: 1,
|
||||
onStart(target) {
|
||||
target.removeVolatile("mustrecharge");
|
||||
},
|
||||
onBeforeMovePriority: 4,
|
||||
onBeforeMove(pokemon) {
|
||||
if (!this.runEvent("Flinch", pokemon)) {
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "flinch");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
trapped: {
|
||||
name: "trapped",
|
||||
noCopy: true,
|
||||
onTrapPokemon(pokemon) {
|
||||
if (!this.effectState.source?.isActive) {
|
||||
delete pokemon.volatiles["trapped"];
|
||||
return;
|
||||
}
|
||||
pokemon.trapped = true;
|
||||
}
|
||||
},
|
||||
partiallytrapped: {
|
||||
name: "partiallytrapped",
|
||||
duration: 2,
|
||||
onBeforeMovePriority: 4,
|
||||
onBeforeMove(pokemon) {
|
||||
this.add("cant", pokemon, "partiallytrapped");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
partialtrappinglock: {
|
||||
name: "partialtrappinglock",
|
||||
durationCallback() {
|
||||
const duration = this.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
return duration;
|
||||
},
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
if (!pokemon.hasMove(this.effectState.move)) {
|
||||
return;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id !== this.effectState.move) {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mustrecharge: {
|
||||
inherit: true,
|
||||
duration: 0,
|
||||
onStart() {
|
||||
}
|
||||
},
|
||||
lockedmove: {
|
||||
// Thrash and Petal Dance.
|
||||
name: "lockedmove",
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
this.effectState.time = this.random(2, 4);
|
||||
this.effectState.accuracy = 255;
|
||||
},
|
||||
onLockMove() {
|
||||
return this.effectState.move;
|
||||
},
|
||||
onBeforeTurn(pokemon) {
|
||||
const move = this.dex.moves.get(this.effectState.move);
|
||||
if (move.id) {
|
||||
this.debug("Forcing into " + move.id);
|
||||
this.queue.changeAction(pokemon, { choice: "move", moveid: move.id });
|
||||
}
|
||||
}
|
||||
},
|
||||
twoturnmove: {
|
||||
// Skull Bash, Solar Beam, ...
|
||||
name: "twoturnmove",
|
||||
onStart(attacker, defender, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
this.effectState.sourceEffect = effect.sourceEffect;
|
||||
this.attrLastMove("[still]");
|
||||
},
|
||||
onLockMove() {
|
||||
return this.effectState.move;
|
||||
}
|
||||
},
|
||||
invulnerability: {
|
||||
// Dig/Fly
|
||||
name: "invulnerability",
|
||||
onInvulnerability(target, source, move) {
|
||||
if (target === source)
|
||||
return true;
|
||||
if (move.id === "swift" || move.id === "transform")
|
||||
return true;
|
||||
this.add("-message", "The foe " + target.name + " can't be hit while invulnerable!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/conditions.ts"],
|
||||
"sourcesContent": ["/**\r\n * Status worked very differently in Gen 1.\r\n * - Sleep lasted longer, had no reset on switch and took a whole turn to wake up.\r\n * - Frozen only thaws when hit by fire or Haze.\r\n *\r\n * Stat boosts (-speed, -atk) also worked differently, so they are\r\n * separated as volatile statuses that are applied on switch in, removed\r\n * under certain conditions and re-applied under other conditions.\r\n */\r\n\r\nexport const Conditions: {[id: string]: ModdedConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'brn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst toxicCounter = pokemon.volatiles['residualdmg'] ? pokemon.volatiles['residualdmg'].counter : 1;\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);\r\n\t\t\tif (pokemon.volatiles['residualdmg']) {\r\n\t\t\t\tthis.hint(\"In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.\", true);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'par');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(63, 256)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\tif (pokemon.removeVolatile('twoturnmove')) {\r\n\t\t\t\t\tif (pokemon.volatiles['invulnerability']) {\r\n\t\t\t\t\t\tthis.hint(`In Gen 1, when a Dig/Fly user is fully paralyzed while semi-invulnerable, ` +\r\n\t\t\t\t\t\t`it will remain semi-invulnerable until it switches out or fully executes Dig/Fly`, true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpokemon.removeVolatile('partialtrappinglock');\r\n\t\t\t\tpokemon.removeVolatile('lockedmove');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-7 turns\r\n\t\t\tthis.effectState.startTime = this.random(1, 8);\r\n\t\t\tthis.effectState.time = this.effectState.startTime;\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time > 0) {\r\n\t\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\t}\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tif (pokemon.statusState.time <= 0) pokemon.cureStatus();\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'frz');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 12,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tif (move.secondary && move.secondary.status === 'brn') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpsn: {\r\n\t\tname: 'psn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'psn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst toxicCounter = pokemon.volatiles['residualdmg'] ? pokemon.volatiles['residualdmg'].counter : 1;\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * toxicCounter, pokemon);\r\n\t\t\tif (pokemon.volatiles['residualdmg']) {\r\n\t\t\t\tthis.hint(\"In Gen 1, Toxic's counter is retained after Rest and applies to PSN/BRN.\", true);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\ttox: {\r\n\t\tinherit: true,\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t},\r\n\tconfusion: {\r\n\t\tname: 'confusion',\r\n\t\t// this is a volatile status\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'lockedmove') {\r\n\t\t\t\tthis.add('-start', target, 'confusion', '[silent]');\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-start', target, 'confusion');\r\n\t\t\t}\r\n\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t},\r\n\t\tonEnd(target) {\r\n\t\t\tthis.add('-end', target, 'confusion');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 3,\r\n\t\tonBeforeMove(pokemon, tarLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,aAAkD;AAAA,EAC9D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ;AACf,WAAK,IAAI,WAAW,QAAQ,KAAK;AAAA,IAClC;AAAA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AA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IAAC;AAAA,EACZ;AAAA,EACA,YAAY;AAAA;AAAA,IAEX,MAAM;AAAA,IACN,QAAQ,QAAQ,QAAQ,QAAQ;AAC/B,WAAK,YAAY,OAAO,OAAO;AAC/B,WAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AACxC,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,IACA,aAAa;AACZ,aAAO,KAAK,YAAY;AAAA,IACzB;AAAA,IACA,aAAa,SAAS;AACrB,YAAM,OAAO,KAAK,IAAI,MAAM,IAAI,KAAK,YAAY,IAAI;AACrD,UAAI,KAAK,IAAI;AACZ,aAAK,MAAM,kBAAkB,KAAK,EAAE;AACpC,aAAK,MAAM,aAAa,SAAS,EAAC,QAAQ,QAAQ,QAAQ,KAAK,GAAE,CAAC;AAAA,MACnE;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AAAA;AAAA,IAEZ,MAAM;AAAA,IACN,QAAQ,UAAU,UAAU,QAAQ;AAEnC,WAAK,YAAY,OAAO,OAAO;AAC/B,WAAK,YAAY,eAAe,OAAO;AACvC,WAAK,aALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,483 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var formats_data_exports = {};
|
||||
__export(formats_data_exports, {
|
||||
FormatsData: () => FormatsData
|
||||
});
|
||||
module.exports = __toCommonJS(formats_data_exports);
|
||||
const FormatsData = {
|
||||
bulbasaur: {
|
||||
tier: "LC"
|
||||
},
|
||||
ivysaur: {
|
||||
tier: "NFE"
|
||||
},
|
||||
venusaur: {
|
||||
tier: "UU"
|
||||
},
|
||||
charmander: {
|
||||
tier: "LC"
|
||||
},
|
||||
charmeleon: {
|
||||
tier: "NFE"
|
||||
},
|
||||
charizard: {
|
||||
tier: "NU"
|
||||
},
|
||||
squirtle: {
|
||||
tier: "LC"
|
||||
},
|
||||
wartortle: {
|
||||
tier: "NFE"
|
||||
},
|
||||
blastoise: {
|
||||
tier: "NU"
|
||||
},
|
||||
caterpie: {
|
||||
tier: "LC"
|
||||
},
|
||||
metapod: {
|
||||
tier: "NFE"
|
||||
},
|
||||
butterfree: {
|
||||
tier: "PU"
|
||||
},
|
||||
weedle: {
|
||||
tier: "LC"
|
||||
},
|
||||
kakuna: {
|
||||
tier: "NFE"
|
||||
},
|
||||
beedrill: {
|
||||
tier: "PU"
|
||||
},
|
||||
pidgey: {
|
||||
tier: "LC"
|
||||
},
|
||||
pidgeotto: {
|
||||
tier: "NFE"
|
||||
},
|
||||
pidgeot: {
|
||||
tier: "PU"
|
||||
},
|
||||
rattata: {
|
||||
tier: "LC"
|
||||
},
|
||||
raticate: {
|
||||
tier: "NU"
|
||||
},
|
||||
spearow: {
|
||||
tier: "LC"
|
||||
},
|
||||
fearow: {
|
||||
tier: "PU"
|
||||
},
|
||||
ekans: {
|
||||
tier: "LC"
|
||||
},
|
||||
arbok: {
|
||||
tier: "PU"
|
||||
},
|
||||
pikachu: {
|
||||
tier: "LC"
|
||||
},
|
||||
raichu: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
sandshrew: {
|
||||
tier: "LC"
|
||||
},
|
||||
sandslash: {
|
||||
tier: "PU"
|
||||
},
|
||||
nidoranf: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorina: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoqueen: {
|
||||
tier: "PU"
|
||||
},
|
||||
nidoranm: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorino: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoking: {
|
||||
tier: "NU"
|
||||
},
|
||||
clefairy: {
|
||||
tier: "LC"
|
||||
},
|
||||
clefable: {
|
||||
tier: "NU"
|
||||
},
|
||||
vulpix: {
|
||||
tier: "LC"
|
||||
},
|
||||
ninetales: {
|
||||
tier: "NU"
|
||||
},
|
||||
jigglypuff: {
|
||||
tier: "LC"
|
||||
},
|
||||
wigglytuff: {
|
||||
tier: "NU"
|
||||
},
|
||||
zubat: {
|
||||
tier: "LC"
|
||||
},
|
||||
golbat: {
|
||||
tier: "PU"
|
||||
},
|
||||
oddish: {
|
||||
tier: "LC"
|
||||
},
|
||||
gloom: {
|
||||
tier: "NFE"
|
||||
},
|
||||
vileplume: {
|
||||
tier: "PU"
|
||||
},
|
||||
paras: {
|
||||
tier: "LC"
|
||||
},
|
||||
parasect: {
|
||||
tier: "PU"
|
||||
},
|
||||
venonat: {
|
||||
tier: "LC"
|
||||
},
|
||||
venomoth: {
|
||||
tier: "NU"
|
||||
},
|
||||
diglett: {
|
||||
tier: "LC"
|
||||
},
|
||||
dugtrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
meowth: {
|
||||
tier: "LC"
|
||||
},
|
||||
persian: {
|
||||
tier: "UU"
|
||||
},
|
||||
psyduck: {
|
||||
tier: "LC"
|
||||
},
|
||||
golduck: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
mankey: {
|
||||
tier: "LC"
|
||||
},
|
||||
primeape: {
|
||||
tier: "PU"
|
||||
},
|
||||
growlithe: {
|
||||
tier: "LC"
|
||||
},
|
||||
arcanine: {
|
||||
tier: "PU"
|
||||
},
|
||||
poliwag: {
|
||||
tier: "LC"
|
||||
},
|
||||
poliwhirl: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
poliwrath: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
abra: {
|
||||
tier: "LC"
|
||||
},
|
||||
kadabra: {
|
||||
tier: "UU"
|
||||
},
|
||||
alakazam: {
|
||||
tier: "OU"
|
||||
},
|
||||
machop: {
|
||||
tier: "LC"
|
||||
},
|
||||
machoke: {
|
||||
tier: "NFE"
|
||||
},
|
||||
machamp: {
|
||||
tier: "PU"
|
||||
},
|
||||
bellsprout: {
|
||||
tier: "LC"
|
||||
},
|
||||
weepinbell: {
|
||||
tier: "NFE"
|
||||
},
|
||||
victreebel: {
|
||||
tier: "UU"
|
||||
},
|
||||
tentacool: {
|
||||
tier: "LC"
|
||||
},
|
||||
tentacruel: {
|
||||
tier: "UU"
|
||||
},
|
||||
geodude: {
|
||||
tier: "LC"
|
||||
},
|
||||
graveler: {
|
||||
tier: "NFE"
|
||||
},
|
||||
golem: {
|
||||
tier: "NU"
|
||||
},
|
||||
ponyta: {
|
||||
tier: "LC"
|
||||
},
|
||||
rapidash: {
|
||||
tier: "PU"
|
||||
},
|
||||
slowpoke: {
|
||||
tier: "LC"
|
||||
},
|
||||
slowbro: {
|
||||
tier: "OU"
|
||||
},
|
||||
magnemite: {
|
||||
tier: "LC"
|
||||
},
|
||||
magneton: {
|
||||
tier: "PU"
|
||||
},
|
||||
farfetchd: {
|
||||
tier: "PU"
|
||||
},
|
||||
doduo: {
|
||||
tier: "LC"
|
||||
},
|
||||
dodrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
seel: {
|
||||
tier: "LC"
|
||||
},
|
||||
dewgong: {
|
||||
tier: "UU"
|
||||
},
|
||||
grimer: {
|
||||
tier: "LC"
|
||||
},
|
||||
muk: {
|
||||
tier: "PU"
|
||||
},
|
||||
shellder: {
|
||||
tier: "LC"
|
||||
},
|
||||
cloyster: {
|
||||
tier: "OU"
|
||||
},
|
||||
gastly: {
|
||||
tier: "LC"
|
||||
},
|
||||
haunter: {
|
||||
tier: "UU"
|
||||
},
|
||||
gengar: {
|
||||
tier: "OU"
|
||||
},
|
||||
onix: {
|
||||
tier: "PU"
|
||||
},
|
||||
drowzee: {
|
||||
tier: "LC"
|
||||
},
|
||||
hypno: {
|
||||
tier: "UU"
|
||||
},
|
||||
krabby: {
|
||||
tier: "LC"
|
||||
},
|
||||
kingler: {
|
||||
tier: "NU"
|
||||
},
|
||||
voltorb: {
|
||||
tier: "LC"
|
||||
},
|
||||
electrode: {
|
||||
tier: "PU"
|
||||
},
|
||||
exeggcute: {
|
||||
tier: "NU"
|
||||
},
|
||||
exeggutor: {
|
||||
tier: "OU"
|
||||
},
|
||||
cubone: {
|
||||
tier: "LC"
|
||||
},
|
||||
marowak: {
|
||||
tier: "PU"
|
||||
},
|
||||
hitmonlee: {
|
||||
tier: "PU"
|
||||
},
|
||||
hitmonchan: {
|
||||
tier: "PU"
|
||||
},
|
||||
lickitung: {
|
||||
tier: "PU"
|
||||
},
|
||||
koffing: {
|
||||
tier: "LC"
|
||||
},
|
||||
weezing: {
|
||||
tier: "PU"
|
||||
},
|
||||
rhyhorn: {
|
||||
tier: "LC"
|
||||
},
|
||||
rhydon: {
|
||||
tier: "OU"
|
||||
},
|
||||
chansey: {
|
||||
tier: "OU"
|
||||
},
|
||||
tangela: {
|
||||
tier: "UU"
|
||||
},
|
||||
kangaskhan: {
|
||||
tier: "UU"
|
||||
},
|
||||
horsea: {
|
||||
tier: "LC"
|
||||
},
|
||||
seadra: {
|
||||
tier: "NU"
|
||||
},
|
||||
goldeen: {
|
||||
tier: "LC"
|
||||
},
|
||||
seaking: {
|
||||
tier: "PU"
|
||||
},
|
||||
staryu: {
|
||||
tier: "LC"
|
||||
},
|
||||
starmie: {
|
||||
tier: "OU"
|
||||
},
|
||||
mrmime: {
|
||||
tier: "NU"
|
||||
},
|
||||
scyther: {
|
||||
tier: "PU"
|
||||
},
|
||||
jynx: {
|
||||
tier: "OU"
|
||||
},
|
||||
electabuzz: {
|
||||
tier: "UU"
|
||||
},
|
||||
magmar: {
|
||||
tier: "PU"
|
||||
},
|
||||
pinsir: {
|
||||
tier: "PU"
|
||||
},
|
||||
tauros: {
|
||||
tier: "OU"
|
||||
},
|
||||
magikarp: {
|
||||
tier: "LC"
|
||||
},
|
||||
gyarados: {
|
||||
tier: "UU"
|
||||
},
|
||||
lapras: {
|
||||
tier: "UU"
|
||||
},
|
||||
ditto: {
|
||||
tier: "PU"
|
||||
},
|
||||
eevee: {
|
||||
tier: "LC"
|
||||
},
|
||||
vaporeon: {
|
||||
tier: "UU"
|
||||
},
|
||||
jolteon: {
|
||||
tier: "OU"
|
||||
},
|
||||
flareon: {
|
||||
tier: "PU"
|
||||
},
|
||||
porygon: {
|
||||
tier: "NU"
|
||||
},
|
||||
omanyte: {
|
||||
tier: "LC"
|
||||
},
|
||||
omastar: {
|
||||
tier: "UU"
|
||||
},
|
||||
kabuto: {
|
||||
tier: "LC"
|
||||
},
|
||||
kabutops: {
|
||||
tier: "NU"
|
||||
},
|
||||
aerodactyl: {
|
||||
tier: "UU"
|
||||
},
|
||||
snorlax: {
|
||||
tier: "OU"
|
||||
},
|
||||
articuno: {
|
||||
tier: "UU"
|
||||
},
|
||||
zapdos: {
|
||||
tier: "OU"
|
||||
},
|
||||
moltres: {
|
||||
tier: "NU"
|
||||
},
|
||||
dratini: {
|
||||
tier: "LC"
|
||||
},
|
||||
dragonair: {
|
||||
tier: "NFE"
|
||||
},
|
||||
dragonite: {
|
||||
tier: "UU"
|
||||
},
|
||||
mewtwo: {
|
||||
tier: "Uber"
|
||||
},
|
||||
mew: {
|
||||
tier: "Uber"
|
||||
},
|
||||
missingno: {
|
||||
isNonstandard: "Unobtainable",
|
||||
tier: "Illegal"
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=formats-data.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/formats-data.ts"],
|
||||
"sourcesContent": ["export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tnidoranf: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorina: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoqueen: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tnidoranm: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorino: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoking: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tjigglypuff: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twigglytuff: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tmankey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tprimeape: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tbellsprout: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tweepinbell: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvictreebel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tdoduo: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdodrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tseel: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdewgong: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tshellder: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcloyster: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tgastly: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thaunter: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgengar: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tonix: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tdrowzee: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thypno: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tkrabby: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkingler: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvoltorb: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\telectrode: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\texeggcute: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\texeggutor: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tcubone: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmarowak: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\thitmonlee: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\thitmonchan: {\r\n\t\ttier: \"PU\",\r\n\t},\r\n\tlickitung: {\r\n\t\ttLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW;AAAA,IACV,MAAM;A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;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,922 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var moves_exports = {};
|
||||
__export(moves_exports, {
|
||||
Moves: () => Moves
|
||||
});
|
||||
module.exports = __toCommonJS(moves_exports);
|
||||
const Moves = {
|
||||
acid: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
def: -1
|
||||
}
|
||||
},
|
||||
target: "normal"
|
||||
},
|
||||
amnesia: {
|
||||
inherit: true,
|
||||
boosts: {
|
||||
spa: 2,
|
||||
spd: 2
|
||||
}
|
||||
},
|
||||
aurorabeam: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
atk: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
bide: {
|
||||
inherit: true,
|
||||
priority: 0,
|
||||
accuracy: true,
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
this.effectState.damage = 0;
|
||||
this.effectState.time = this.random(2, 4);
|
||||
this.add("-start", pokemon, "Bide");
|
||||
},
|
||||
onBeforeMove(pokemon, t, move) {
|
||||
const currentMove = this.dex.getActiveMove("bide");
|
||||
if (pokemon.volatiles["disable"]?.move === "bide") {
|
||||
this.add("cant", pokemon, "Disable", currentMove);
|
||||
return false;
|
||||
}
|
||||
this.effectState.damage += this.lastDamage;
|
||||
this.effectState.time--;
|
||||
if (!this.effectState.time) {
|
||||
this.add("-end", pokemon, currentMove);
|
||||
if (!this.effectState.damage) {
|
||||
this.debug("Bide failed because no damage was stored");
|
||||
this.add("-fail", pokemon);
|
||||
pokemon.removeVolatile("bide");
|
||||
return false;
|
||||
}
|
||||
const target = this.getRandomTarget(pokemon, "Pound");
|
||||
this.actions.moveHit(target, pokemon, currentMove, { damage: this.effectState.damage * 2 });
|
||||
pokemon.removeVolatile("bide");
|
||||
return false;
|
||||
}
|
||||
this.add("-activate", pokemon, "Bide");
|
||||
return false;
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
if (!pokemon.hasMove("bide")) {
|
||||
return;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id !== "bide") {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
type: "???"
|
||||
// Will look as Normal but it's STAB-less
|
||||
},
|
||||
bind: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
volatileStatus: "partiallytrapped",
|
||||
self: {
|
||||
volatileStatus: "partialtrappinglock"
|
||||
},
|
||||
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
|
||||
onHit(target, source) {
|
||||
if (target.volatiles["partiallytrapped"]) {
|
||||
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles["partiallytrapped"].duration = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
bite: {
|
||||
inherit: true,
|
||||
category: "Physical",
|
||||
secondary: {
|
||||
chance: 10,
|
||||
volatileStatus: "flinch"
|
||||
},
|
||||
type: "Normal"
|
||||
},
|
||||
blizzard: {
|
||||
inherit: true,
|
||||
accuracy: 90,
|
||||
target: "normal"
|
||||
},
|
||||
bubble: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
spe: -1
|
||||
}
|
||||
},
|
||||
target: "normal"
|
||||
},
|
||||
bubblebeam: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
spe: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
clamp: {
|
||||
inherit: true,
|
||||
accuracy: 75,
|
||||
pp: 10,
|
||||
volatileStatus: "partiallytrapped",
|
||||
self: {
|
||||
volatileStatus: "partialtrappinglock"
|
||||
},
|
||||
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
|
||||
onHit(target, source) {
|
||||
if (target.volatiles["partiallytrapped"]) {
|
||||
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles["partiallytrapped"].duration = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
constrict: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
spe: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
conversion: {
|
||||
inherit: true,
|
||||
target: "normal",
|
||||
onHit(target, source) {
|
||||
source.setType(target.getTypes(true));
|
||||
this.add("-start", source, "typechange", source.types.join("/"), "[from] move: Conversion", "[of] " + target);
|
||||
}
|
||||
},
|
||||
counter: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
willCrit: false,
|
||||
basePower: 1,
|
||||
damageCallback(pokemon, target) {
|
||||
const lastMove = target.side.lastMove && this.dex.moves.get(target.side.lastMove.id);
|
||||
const lastMoveIsCounterable = lastMove && lastMove.basePower > 0 && ["Normal", "Fighting"].includes(lastMove.type) && lastMove.id !== "counter";
|
||||
const lastSelectedMove = target.side.lastSelectedMove && this.dex.moves.get(target.side.lastSelectedMove);
|
||||
const lastSelectedMoveIsCounterable = lastSelectedMove && lastSelectedMove.basePower > 0 && ["Normal", "Fighting"].includes(lastSelectedMove.type) && lastSelectedMove.id !== "counter";
|
||||
if (!lastMoveIsCounterable && !lastSelectedMoveIsCounterable) {
|
||||
this.debug("Gen 1 Counter: last move was not Counterable");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (this.lastDamage <= 0) {
|
||||
this.debug("Gen 1 Counter: no previous damage exists");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (!lastMoveIsCounterable || !lastSelectedMoveIsCounterable) {
|
||||
this.hint("Desync Clause Mod activated!");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
return 2 * this.lastDamage;
|
||||
}
|
||||
},
|
||||
crabhammer: {
|
||||
inherit: true,
|
||||
critRatio: 2
|
||||
},
|
||||
dig: {
|
||||
inherit: true,
|
||||
basePower: 100,
|
||||
condition: {},
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
attacker.addVolatile("invulnerability", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
disable: {
|
||||
num: 50,
|
||||
accuracy: 55,
|
||||
basePower: 0,
|
||||
category: "Status",
|
||||
name: "Disable",
|
||||
pp: 20,
|
||||
priority: 0,
|
||||
flags: { protect: 1, mirror: 1, bypasssub: 1 },
|
||||
volatileStatus: "disable",
|
||||
onTryHit(target) {
|
||||
return target.moveSlots.some((ms) => ms.pp > 0) && !("disable" in target.volatiles) && void 0;
|
||||
},
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
const moveSlot = this.sample(pokemon.moveSlots.filter((ms) => ms.pp > 0));
|
||||
this.add("-start", pokemon, "Disable", moveSlot.move);
|
||||
this.effectState.move = moveSlot.id;
|
||||
this.effectState.time = this.random(1, 9);
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, "Disable");
|
||||
},
|
||||
onBeforeMovePriority: 7,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.volatiles["disable"].time--;
|
||||
if (!pokemon.volatiles["disable"].time) {
|
||||
pokemon.removeVolatile("disable");
|
||||
return;
|
||||
}
|
||||
if (move.id === this.effectState.move) {
|
||||
this.add("cant", pokemon, "Disable", move);
|
||||
pokemon.removeVolatile("twoturnmove");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id === this.effectState.move) {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
secondary: null,
|
||||
target: "normal",
|
||||
type: "Normal"
|
||||
},
|
||||
dizzypunch: {
|
||||
inherit: true,
|
||||
secondary: null
|
||||
},
|
||||
doubleedge: {
|
||||
inherit: true,
|
||||
basePower: 100
|
||||
},
|
||||
dragonrage: {
|
||||
inherit: true,
|
||||
basePower: 1
|
||||
},
|
||||
explosion: {
|
||||
inherit: true,
|
||||
basePower: 170,
|
||||
target: "normal"
|
||||
},
|
||||
fireblast: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 30,
|
||||
status: "brn"
|
||||
}
|
||||
},
|
||||
firespin: {
|
||||
inherit: true,
|
||||
accuracy: 70,
|
||||
basePower: 15,
|
||||
volatileStatus: "partiallytrapped",
|
||||
self: {
|
||||
volatileStatus: "partialtrappinglock"
|
||||
},
|
||||
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
|
||||
onHit(target, source) {
|
||||
if (target.volatiles["partiallytrapped"]) {
|
||||
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles["partiallytrapped"].duration = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
fly: {
|
||||
inherit: true,
|
||||
condition: {},
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
attacker.addVolatile("invulnerability", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
focusenergy: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
this.add("-start", pokemon, "move: Focus Energy");
|
||||
},
|
||||
// This does nothing as it's dealt with on critical hit calculation.
|
||||
onModifyMove() {
|
||||
}
|
||||
}
|
||||
},
|
||||
glare: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true
|
||||
},
|
||||
growth: {
|
||||
inherit: true,
|
||||
boosts: {
|
||||
spa: 1,
|
||||
spd: 1
|
||||
}
|
||||
},
|
||||
gust: {
|
||||
inherit: true,
|
||||
type: "Normal"
|
||||
},
|
||||
haze: {
|
||||
inherit: true,
|
||||
onHit(target, source) {
|
||||
this.add("-activate", target, "move: Haze");
|
||||
this.add("-clearallboost", "[silent]");
|
||||
for (const pokemon of this.getAllActive()) {
|
||||
pokemon.clearBoosts();
|
||||
if (pokemon !== source) {
|
||||
pokemon.cureStatus(true);
|
||||
}
|
||||
if (pokemon.status === "tox") {
|
||||
pokemon.setStatus("psn");
|
||||
}
|
||||
pokemon.updateSpeed();
|
||||
const silentHack = "|[silent]";
|
||||
const silentHackVolatiles = ["disable", "confusion"];
|
||||
const hazeVolatiles = {
|
||||
"disable": "",
|
||||
"confusion": "",
|
||||
"mist": "Mist",
|
||||
"focusenergy": "move: Focus Energy",
|
||||
"leechseed": "move: Leech Seed",
|
||||
"lightscreen": "Light Screen",
|
||||
"reflect": "Reflect",
|
||||
"residualdmg": "Toxic counter"
|
||||
};
|
||||
for (const v in hazeVolatiles) {
|
||||
if (!pokemon.removeVolatile(v)) {
|
||||
continue;
|
||||
}
|
||||
if (silentHackVolatiles.includes(v)) {
|
||||
this.log[this.log.length - 1] += silentHack;
|
||||
} else {
|
||||
this.add("-end", pokemon, hazeVolatiles[v], "[silent]");
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
target: "self"
|
||||
},
|
||||
highjumpkick: {
|
||||
inherit: true,
|
||||
onMoveFail(target, source, move) {
|
||||
this.directDamage(1, source, target);
|
||||
}
|
||||
},
|
||||
jumpkick: {
|
||||
inherit: true,
|
||||
onMoveFail(target, source, move) {
|
||||
this.directDamage(1, source, target);
|
||||
}
|
||||
},
|
||||
karatechop: {
|
||||
inherit: true,
|
||||
critRatio: 2,
|
||||
type: "Normal"
|
||||
},
|
||||
leechseed: {
|
||||
inherit: true,
|
||||
onHit() {
|
||||
},
|
||||
condition: {
|
||||
onStart(target) {
|
||||
this.add("-start", target, "move: Leech Seed");
|
||||
},
|
||||
onAfterMoveSelfPriority: 1,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
const leecher = this.getAtSlot(pokemon.volatiles["leechseed"].sourceSlot);
|
||||
if (!leecher || leecher.fainted || leecher.hp <= 0) {
|
||||
this.debug("Nothing to leech into");
|
||||
return;
|
||||
}
|
||||
let toxicCounter = 1;
|
||||
const residualdmg = pokemon.volatiles["residualdmg"];
|
||||
if (residualdmg) {
|
||||
residualdmg.counter++;
|
||||
toxicCounter = residualdmg.counter;
|
||||
}
|
||||
const toLeech = this.clampIntRange(Math.floor(pokemon.baseMaxhp / 16), 1) * toxicCounter;
|
||||
const damage = this.damage(toLeech, pokemon, leecher);
|
||||
if (residualdmg)
|
||||
this.hint("In Gen 1, Leech Seed's damage is affected by Toxic's counter.", true);
|
||||
if (!damage || toLeech > damage) {
|
||||
this.hint("In Gen 1, Leech Seed recovery is not limited by the remaining HP of the seeded Pokemon.", true);
|
||||
}
|
||||
this.heal(toLeech, leecher, pokemon);
|
||||
}
|
||||
}
|
||||
},
|
||||
lightscreen: {
|
||||
num: 113,
|
||||
accuracy: true,
|
||||
basePower: 0,
|
||||
category: "Status",
|
||||
name: "Light Screen",
|
||||
pp: 30,
|
||||
priority: 0,
|
||||
flags: {},
|
||||
volatileStatus: "lightscreen",
|
||||
onTryHit(pokemon) {
|
||||
if (pokemon.volatiles["lightscreen"]) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
this.add("-start", pokemon, "Light Screen");
|
||||
}
|
||||
},
|
||||
target: "self",
|
||||
type: "Psychic"
|
||||
},
|
||||
metronome: {
|
||||
inherit: true,
|
||||
noMetronome: ["Metronome", "Struggle"]
|
||||
},
|
||||
mimic: {
|
||||
inherit: true,
|
||||
onHit(target, source) {
|
||||
const moveslot = source.moves.indexOf("mimic");
|
||||
if (moveslot < 0)
|
||||
return false;
|
||||
const moves = target.moves;
|
||||
const moveid = this.sample(moves);
|
||||
if (!moveid)
|
||||
return false;
|
||||
const move = this.dex.moves.get(moveid);
|
||||
source.moveSlots[moveslot] = {
|
||||
move: move.name,
|
||||
id: move.id,
|
||||
pp: source.moveSlots[moveslot].pp,
|
||||
maxpp: move.pp * 8 / 5,
|
||||
target: move.target,
|
||||
disabled: false,
|
||||
used: false,
|
||||
virtual: true
|
||||
};
|
||||
this.add("-start", source, "Mimic", move.name);
|
||||
}
|
||||
},
|
||||
mirrormove: {
|
||||
inherit: true,
|
||||
onHit(pokemon) {
|
||||
const foe = pokemon.side.foe.active[0];
|
||||
if (!foe?.lastMove || foe.lastMove.id === "mirrormove") {
|
||||
return false;
|
||||
}
|
||||
pokemon.side.lastSelectedMove = foe.lastMove.id;
|
||||
this.actions.useMove(foe.lastMove.id, pokemon);
|
||||
}
|
||||
},
|
||||
mist: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
this.add("-start", pokemon, "Mist");
|
||||
},
|
||||
onTryBoost(boost, target, source, effect) {
|
||||
if (effect.effectType === "Move" && effect.category !== "Status")
|
||||
return;
|
||||
if (source && target !== source) {
|
||||
let showMsg = false;
|
||||
let i;
|
||||
for (i in boost) {
|
||||
if (boost[i] < 0) {
|
||||
delete boost[i];
|
||||
showMsg = true;
|
||||
}
|
||||
}
|
||||
if (showMsg && !effect.secondaries) {
|
||||
this.add("-activate", target, "move: Mist");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nightshade: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
basePower: 1
|
||||
},
|
||||
petaldance: {
|
||||
inherit: true,
|
||||
onMoveFail() {
|
||||
}
|
||||
},
|
||||
poisonsting: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 20,
|
||||
status: "psn"
|
||||
}
|
||||
},
|
||||
psychic: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 33,
|
||||
boosts: {
|
||||
spa: -1,
|
||||
spd: -1
|
||||
}
|
||||
}
|
||||
},
|
||||
psywave: {
|
||||
inherit: true,
|
||||
basePower: 1,
|
||||
damageCallback(pokemon) {
|
||||
const psywaveDamage = this.random(0, this.trunc(1.5 * pokemon.level));
|
||||
if (psywaveDamage <= 0) {
|
||||
this.hint("Desync Clause Mod activated!");
|
||||
return false;
|
||||
}
|
||||
return psywaveDamage;
|
||||
}
|
||||
},
|
||||
rage: {
|
||||
inherit: true,
|
||||
self: {
|
||||
volatileStatus: "rage"
|
||||
},
|
||||
condition: {
|
||||
// Rage lock
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = "rage";
|
||||
this.effectState.accuracy = 255;
|
||||
},
|
||||
onLockMove: "rage",
|
||||
onHit(target, source, move) {
|
||||
if (target.boosts.atk < 6 && (move.category !== "Status" && !move.selfdestruct)) {
|
||||
this.boost({ atk: 1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
razorleaf: {
|
||||
inherit: true,
|
||||
critRatio: 2,
|
||||
target: "normal"
|
||||
},
|
||||
razorwind: {
|
||||
inherit: true,
|
||||
critRatio: 1,
|
||||
target: "normal",
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
recover: {
|
||||
inherit: true,
|
||||
heal: null,
|
||||
onHit(target) {
|
||||
if (target.hp === target.maxhp)
|
||||
return false;
|
||||
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511 || target.hp === target.maxhp) {
|
||||
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
|
||||
return false;
|
||||
}
|
||||
this.heal(Math.floor(target.maxhp / 2), target, target);
|
||||
}
|
||||
},
|
||||
reflect: {
|
||||
num: 115,
|
||||
accuracy: true,
|
||||
basePower: 0,
|
||||
category: "Status",
|
||||
name: "Reflect",
|
||||
pp: 20,
|
||||
priority: 0,
|
||||
flags: {},
|
||||
volatileStatus: "reflect",
|
||||
onTryHit(pokemon) {
|
||||
if (pokemon.volatiles["reflect"]) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
condition: {
|
||||
onStart(pokemon) {
|
||||
this.add("-start", pokemon, "Reflect");
|
||||
}
|
||||
},
|
||||
secondary: null,
|
||||
target: "self",
|
||||
type: "Psychic"
|
||||
},
|
||||
rest: {
|
||||
inherit: true,
|
||||
onTry() {
|
||||
},
|
||||
onHit(target, source, move) {
|
||||
if (target.hp === target.maxhp)
|
||||
return false;
|
||||
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511) {
|
||||
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
|
||||
return false;
|
||||
}
|
||||
if (!target.setStatus("slp", source, move))
|
||||
return false;
|
||||
target.statusState.time = 2;
|
||||
target.statusState.startTime = 2;
|
||||
this.heal(target.maxhp);
|
||||
}
|
||||
},
|
||||
roar: {
|
||||
inherit: true,
|
||||
forceSwitch: false,
|
||||
onTryHit() {
|
||||
},
|
||||
priority: 0
|
||||
},
|
||||
rockslide: {
|
||||
inherit: true,
|
||||
secondary: null,
|
||||
target: "normal"
|
||||
},
|
||||
rockthrow: {
|
||||
inherit: true,
|
||||
accuracy: 65
|
||||
},
|
||||
sandattack: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
type: "Normal"
|
||||
},
|
||||
seismictoss: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
basePower: 1
|
||||
},
|
||||
selfdestruct: {
|
||||
inherit: true,
|
||||
basePower: 130,
|
||||
target: "normal"
|
||||
},
|
||||
skullbash: {
|
||||
inherit: true,
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
skyattack: {
|
||||
inherit: true,
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
slash: {
|
||||
inherit: true,
|
||||
critRatio: 2
|
||||
},
|
||||
sludge: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 40,
|
||||
status: "psn"
|
||||
}
|
||||
},
|
||||
solarbeam: {
|
||||
inherit: true,
|
||||
onTryMove(attacker, defender, move) {
|
||||
if (attacker.removeVolatile("twoturnmove")) {
|
||||
attacker.removeVolatile("invulnerability");
|
||||
return;
|
||||
}
|
||||
this.add("-prepare", attacker, move.name);
|
||||
attacker.addVolatile("twoturnmove", defender);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
sonicboom: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
basePower: 1
|
||||
},
|
||||
softboiled: {
|
||||
inherit: true,
|
||||
heal: null,
|
||||
onHit(target) {
|
||||
if (target.hp === target.maxhp)
|
||||
return false;
|
||||
if (target.hp === target.maxhp - 255 || target.hp === target.maxhp - 511 || target.hp === target.maxhp) {
|
||||
this.hint("In Gen 1, recovery moves fail if (user's maximum HP - user's current HP + 1) is divisible by 256.");
|
||||
return false;
|
||||
}
|
||||
this.heal(Math.floor(target.maxhp / 2), target, target);
|
||||
}
|
||||
},
|
||||
struggle: {
|
||||
inherit: true,
|
||||
pp: 10,
|
||||
recoil: [1, 2],
|
||||
onModifyMove() {
|
||||
}
|
||||
},
|
||||
substitute: {
|
||||
num: 164,
|
||||
accuracy: true,
|
||||
basePower: 0,
|
||||
category: "Status",
|
||||
name: "Substitute",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
volatileStatus: "substitute",
|
||||
onTryHit(target) {
|
||||
if (target.volatiles["substitute"]) {
|
||||
this.add("-fail", target, "move: Substitute");
|
||||
return null;
|
||||
}
|
||||
if (target.hp < target.maxhp / 4) {
|
||||
this.add("-fail", target, "move: Substitute", "[weak]");
|
||||
return null;
|
||||
}
|
||||
},
|
||||
onHit(target) {
|
||||
if (target.maxhp > 3) {
|
||||
this.directDamage(target.maxhp / 4, target, target);
|
||||
}
|
||||
},
|
||||
condition: {
|
||||
onStart(target) {
|
||||
this.add("-start", target, "Substitute");
|
||||
this.effectState.hp = Math.floor(target.maxhp / 4) + 1;
|
||||
delete target.volatiles["partiallytrapped"];
|
||||
},
|
||||
onTryHitPriority: -1,
|
||||
onTryHit(target, source, move) {
|
||||
if (move.category === "Status") {
|
||||
const SubBlocked = ["lockon", "meanlook", "mindreader", "nightmare"];
|
||||
if (move.status === "psn" || move.status === "tox" || move.boosts && target !== source || move.volatileStatus === "confusion" || SubBlocked.includes(move.id)) {
|
||||
return false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (move.volatileStatus && target === source)
|
||||
return;
|
||||
let uncappedDamage = move.hit > 1 ? this.lastDamage : this.actions.getDamage(source, target, move);
|
||||
if (move.id === "bide")
|
||||
uncappedDamage = source.volatiles["bide"].damage * 2;
|
||||
if (!uncappedDamage && uncappedDamage !== 0)
|
||||
return null;
|
||||
uncappedDamage = this.runEvent("SubDamage", target, source, move, uncappedDamage);
|
||||
if (!uncappedDamage && uncappedDamage !== 0)
|
||||
return uncappedDamage;
|
||||
this.lastDamage = uncappedDamage;
|
||||
target.volatiles["substitute"].hp -= uncappedDamage > target.volatiles["substitute"].hp ? target.volatiles["substitute"].hp : uncappedDamage;
|
||||
if (target.volatiles["substitute"].hp <= 0) {
|
||||
target.removeVolatile("substitute");
|
||||
target.subFainted = true;
|
||||
} else {
|
||||
this.add("-activate", target, "Substitute", "[damage]");
|
||||
}
|
||||
if (target.volatiles["substitute"]) {
|
||||
if (move.recoil) {
|
||||
this.damage(
|
||||
this.clampIntRange(Math.floor(uncappedDamage * move.recoil[0] / move.recoil[1]), 1),
|
||||
source,
|
||||
target,
|
||||
"recoil"
|
||||
);
|
||||
}
|
||||
if (move.drain) {
|
||||
const amount = this.clampIntRange(Math.floor(uncappedDamage * move.drain[0] / move.drain[1]), 1);
|
||||
this.lastDamage = amount;
|
||||
this.heal(amount, source, target, "drain");
|
||||
}
|
||||
if (move.secondary?.volatileStatus === "confusion") {
|
||||
const secondary = move.secondary;
|
||||
if (secondary.chance === void 0 || this.randomChance(Math.ceil(secondary.chance * 256 / 100) - 1, 256)) {
|
||||
target.addVolatile(move.secondary.volatileStatus, source, move);
|
||||
this.hint(
|
||||
"In Gen 1, moves that inflict confusion as a secondary effect can confuse targets with a Substitute, as long as the move does not break the Substitute."
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.runEvent("AfterSubDamage", target, source, move, uncappedDamage);
|
||||
const lastAttackedBy = target.getLastAttackedBy();
|
||||
if (!lastAttackedBy) {
|
||||
target.attackedBy.push({ source, move: move.id, damage: uncappedDamage, slot: source.getSlot(), thisTurn: true });
|
||||
} else {
|
||||
lastAttackedBy.move = move.id;
|
||||
lastAttackedBy.damage = uncappedDamage;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "Substitute");
|
||||
}
|
||||
},
|
||||
secondary: null,
|
||||
target: "self",
|
||||
type: "Normal",
|
||||
flags: {}
|
||||
},
|
||||
superfang: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
basePower: 1
|
||||
},
|
||||
thrash: {
|
||||
inherit: true,
|
||||
onMoveFail() {
|
||||
}
|
||||
},
|
||||
thunder: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 10,
|
||||
status: "par"
|
||||
}
|
||||
},
|
||||
triattack: {
|
||||
inherit: true,
|
||||
onHit() {
|
||||
},
|
||||
secondary: null
|
||||
},
|
||||
whirlwind: {
|
||||
inherit: true,
|
||||
accuracy: 85,
|
||||
forceSwitch: false,
|
||||
onTryHit() {
|
||||
},
|
||||
priority: 0
|
||||
},
|
||||
wingattack: {
|
||||
inherit: true,
|
||||
basePower: 35
|
||||
},
|
||||
wrap: {
|
||||
inherit: true,
|
||||
accuracy: 85,
|
||||
ignoreImmunity: true,
|
||||
volatileStatus: "partiallytrapped",
|
||||
self: {
|
||||
volatileStatus: "partialtrappinglock"
|
||||
},
|
||||
// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}
|
||||
onHit(target, source) {
|
||||
if (target.volatiles["partiallytrapped"]) {
|
||||
if (source.volatiles["partialtrappinglock"] && source.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles["partiallytrapped"].duration = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=moves.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/moves.ts"],
|
||||
"sourcesContent": ["/**\r\n * A lot of Gen 1 moves have to be updated due to different mechanics.\r\n * Some moves have had major changes, such as Bite's typing.\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\tacid: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tdef: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tamnesia: {\r\n\t\tinherit: true,\r\n\t\tboosts: {\r\n\t\t\tspa: 2,\r\n\t\t\tspd: 2,\r\n\t\t},\r\n\t},\r\n\taurorabeam: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tatk: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\tpriority: 0,\r\n\t\taccuracy: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.damage = 0;\r\n\t\t\t\tthis.effectState.time = this.random(2, 4);\r\n\t\t\t\tthis.add('-start', pokemon, 'Bide');\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, t, move) {\r\n\t\t\t\tconst currentMove = this.dex.getActiveMove('bide');\r\n\t\t\t\tif (pokemon.volatiles['disable']?.move === 'bide') {\r\n\t\t\t\t\tthis.add('cant', pokemon, 'Disable', currentMove);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.effectState.damage += this.lastDamage;\r\n\t\t\t\tthis.effectState.time--;\r\n\t\t\t\tif (!this.effectState.time) {\r\n\t\t\t\t\tthis.add('-end', pokemon, currentMove);\r\n\t\t\t\t\tif (!this.effectState.damage) {\r\n\t\t\t\t\t\tthis.debug(\"Bide failed because no damage was stored\");\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst target = this.getRandomTarget(pokemon, 'Pound');\r\n\t\t\t\t\tthis.actions.moveHit(target, pokemon, currentMove, {damage: this.effectState.damage * 2} as ActiveMove);\r\n\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.add('-activate', pokemon, 'Bide');\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t\tonDisableMove(pokemon) {\r\n\t\t\t\tif (!pokemon.hasMove('bide')) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfor (const moveSlot of pokemon.moveSlots) {\r\n\t\t\t\t\tif (moveSlot.id !== 'bide') {\r\n\t\t\t\t\t\tpokemon.disableMove(moveSlot.id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\ttype: \"???\", // Will look as Normal but it's STAB-less\r\n\t},\r\n\tbind: {\r\n\t\tinherit: true,\r\n\t\tignoreImmunity: true,\r\n\t\tvolatileStatus: 'partiallytrapped',\r\n\t\tself: {\r\n\t\t\tvolatileStatus: 'partialtrappinglock',\r\n\t\t},\r\n\t\t// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}\r\n\t\tonHit(target, source) {\r\n\t\t\t/**\r\n\t\t\t * The duration of the partially trapped must be always renewed to 2\r\n\t\t\t * so target doesn't move on trapper switch out as happens in gen 1.\r\n\t\t\t * However, this won't happen if there's no switch and the trapper is\r\n\t\t\t * about to end its partial trapping.\r\n\t\t\t **/\r\n\t\t\tif (target.volatiles['partiallytrapped']) {\r\n\t\t\t\tif (source.volatiles['partialtrappinglock'] && source.volatiles['partialtrappinglock'].duration > 1) {\r\n\t\t\t\t\ttarget.volatiles['partiallytrapped'].duration = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tbite: {\r\n\t\tinherit: true,\r\n\t\tcategory: \"Physical\",\r\n\t\tsecondary: {\r\n\t\t\tchance: 10,\r\n\t\t\tvolatileStatus: 'flinch',\r\n\t\t},\r\n\t\ttype: \"Normal\",\r\n\t},\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 90,\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tbubble: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t\ttarget: \"normal\",\r\n\t},\r\n\tbubblebeam: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tclamp: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 75,\r\n\t\tpp: 10,\r\n\t\tvolatileStatus: 'partiallytrapped',\r\n\t\tself: {\r\n\t\t\tvolatileStatus: 'partialtrappinglock',\r\n\t\t},\r\n\t\t// FIXME: onBeforeMove(pokemon, target) {target.removeVolatile('mustrecharge')}\r\n\t\tonHit(target, source) {\r\n\t\t\t/**\r\n\t\t\t * The duration of the partially trapped must be always renewed to 2\r\n\t\t\t * so target doesn't move on trapper switch out as happens in gen 1.\r\n\t\t\t * However, this won't happen if there's no switch and the trapper is\r\n\t\t\t * about to end its partial trapping.\r\n\t\t\t **/\r\n\t\t\tif (target.volatiles['partiallytrapped']) {\r\n\t\t\t\tif (source.volatiles['partialtrappinglock'] && source.volatiles['partialtrappinglock'].duration > 1) {\r\n\t\t\t\t\ttarget.volatiles['partiallytrapped'].duration = 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tconstrict: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 33,\r\n\t\t\tboosts: {\r\n\t\t\t\tspe: -1,\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tconversion: {\r\n\t\tinherit: true,\r\n\t\ttarget: \"normal\",\r\n\t\tonHit(targLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,QAAuC;AAAA,EACnD,MAAM;AAAA,IACL,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,QACP,KAAK;AAAA,MACN;AAAA,IACD;AAAA,IACA,QAAQ;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,MACP,KAAK;AAAA,MACL,KAAK;AAAA,IACN;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,QACP,KAAK;AAAA,MACN;AAAA,IACD;AAAA,EACD;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,MACV,QAAQ,SAAS;AAChB,aAAK,YAAY,SAAS;AAC1B,aAAK,YAAY,OAAO,KAAK,OAAO,GAAG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C,iBAAO;AAAA,QACR;AAAA,MACD;AAAA,MACA,cAAc,SAAS;AACtB,mBAAW,YAAY,QAAQ,WAAW;AACzC,cAAI,SAAS,OAAO,KAAK,YAAY,MAAM;AAC1C,oBAAQ,YAAY,SAAS,EAAE;AAAA,UAChC;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,IACA,WAAW;AAAA,IACX,Line truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,636 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var pokedex_exports = {};
|
||||
__export(pokedex_exports, {
|
||||
Pokedex: () => Pokedex
|
||||
});
|
||||
module.exports = __toCommonJS(pokedex_exports);
|
||||
const Pokedex = {
|
||||
missingno: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 33, atk: 136, def: 0, spa: 6, spd: 6, spe: 29 }
|
||||
},
|
||||
bulbasaur: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 49, def: 49, spa: 65, spd: 65, spe: 45 }
|
||||
},
|
||||
ivysaur: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 62, def: 63, spa: 80, spd: 80, spe: 60 }
|
||||
},
|
||||
venusaur: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 82, def: 83, spa: 100, spd: 100, spe: 80 }
|
||||
},
|
||||
charmander: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 39, atk: 52, def: 43, spa: 50, spd: 50, spe: 65 }
|
||||
},
|
||||
charmeleon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 58, atk: 64, def: 58, spa: 65, spd: 65, spe: 80 }
|
||||
},
|
||||
charizard: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 78, atk: 84, def: 78, spa: 85, spd: 85, spe: 100 }
|
||||
},
|
||||
squirtle: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 44, atk: 48, def: 65, spa: 50, spd: 50, spe: 43 }
|
||||
},
|
||||
wartortle: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 59, atk: 63, def: 80, spa: 65, spd: 65, spe: 58 }
|
||||
},
|
||||
blastoise: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 79, atk: 83, def: 100, spa: 85, spd: 85, spe: 78 }
|
||||
},
|
||||
caterpie: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 30, def: 35, spa: 20, spd: 20, spe: 45 }
|
||||
},
|
||||
metapod: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 20, def: 55, spa: 25, spd: 25, spe: 30 }
|
||||
},
|
||||
butterfree: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70 }
|
||||
},
|
||||
weedle: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 35, def: 30, spa: 20, spd: 20, spe: 50 }
|
||||
},
|
||||
kakuna: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 25, def: 50, spa: 25, spd: 25, spe: 35 }
|
||||
},
|
||||
beedrill: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 80, def: 40, spa: 45, spd: 45, spe: 75 }
|
||||
},
|
||||
pidgey: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 45, def: 40, spa: 35, spd: 35, spe: 56 }
|
||||
},
|
||||
pidgeotto: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 63, atk: 60, def: 55, spa: 50, spd: 50, spe: 71 }
|
||||
},
|
||||
pidgeot: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91 }
|
||||
},
|
||||
rattata: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 56, def: 35, spa: 25, spd: 25, spe: 72 }
|
||||
},
|
||||
raticate: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 81, def: 60, spa: 50, spd: 50, spe: 97 }
|
||||
},
|
||||
spearow: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 60, def: 30, spa: 31, spd: 31, spe: 70 }
|
||||
},
|
||||
fearow: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 90, def: 65, spa: 61, spd: 61, spe: 100 }
|
||||
},
|
||||
ekans: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 60, def: 44, spa: 40, spd: 40, spe: 55 }
|
||||
},
|
||||
arbok: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 85, def: 69, spa: 65, spd: 65, spe: 80 }
|
||||
},
|
||||
pikachu: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 55, def: 30, spa: 50, spd: 50, spe: 90 }
|
||||
},
|
||||
raichu: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 90, def: 55, spa: 90, spd: 90, spe: 100 }
|
||||
},
|
||||
sandshrew: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 75, def: 85, spa: 30, spd: 30, spe: 40 }
|
||||
},
|
||||
sandslash: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 75, atk: 100, def: 110, spa: 55, spd: 55, spe: 65 }
|
||||
},
|
||||
nidoranf: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 47, def: 52, spa: 40, spd: 40, spe: 41 }
|
||||
},
|
||||
nidorina: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 62, def: 67, spa: 55, spd: 55, spe: 56 }
|
||||
},
|
||||
nidoqueen: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 82, def: 87, spa: 75, spd: 75, spe: 76 }
|
||||
},
|
||||
nidoranm: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 46, atk: 57, def: 40, spa: 40, spd: 40, spe: 50 }
|
||||
},
|
||||
nidorino: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 61, atk: 72, def: 57, spa: 55, spd: 55, spe: 65 }
|
||||
},
|
||||
nidoking: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 81, atk: 92, def: 77, spa: 75, spd: 75, spe: 85 }
|
||||
},
|
||||
clefairy: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 45, def: 48, spa: 60, spd: 60, spe: 35 }
|
||||
},
|
||||
clefable: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 95, atk: 70, def: 73, spa: 85, spd: 85, spe: 60 }
|
||||
},
|
||||
vulpix: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 38, atk: 41, def: 40, spa: 65, spd: 65, spe: 65 }
|
||||
},
|
||||
ninetales: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 73, atk: 76, def: 75, spa: 100, spd: 100, spe: 100 }
|
||||
},
|
||||
jigglypuff: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 115, atk: 45, def: 20, spa: 25, spd: 25, spe: 20 }
|
||||
},
|
||||
wigglytuff: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 140, atk: 70, def: 45, spa: 50, spd: 50, spe: 45 }
|
||||
},
|
||||
zubat: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 45, def: 35, spa: 40, spd: 40, spe: 55 }
|
||||
},
|
||||
golbat: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 75, atk: 80, def: 70, spa: 75, spd: 75, spe: 90 }
|
||||
},
|
||||
oddish: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 50, def: 55, spa: 75, spd: 75, spe: 30 }
|
||||
},
|
||||
gloom: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 65, def: 70, spa: 85, spd: 85, spe: 40 }
|
||||
},
|
||||
vileplume: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 75, atk: 80, def: 85, spa: 100, spd: 100, spe: 50 }
|
||||
},
|
||||
paras: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 70, def: 55, spa: 55, spd: 55, spe: 25 }
|
||||
},
|
||||
parasect: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 95, def: 80, spa: 80, spd: 80, spe: 30 }
|
||||
},
|
||||
venonat: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 55, def: 50, spa: 40, spd: 40, spe: 45 }
|
||||
},
|
||||
venomoth: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 65, def: 60, spa: 90, spd: 90, spe: 90 }
|
||||
},
|
||||
diglett: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 10, atk: 55, def: 25, spa: 45, spd: 45, spe: 95 }
|
||||
},
|
||||
dugtrio: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 80, def: 50, spa: 70, spd: 70, spe: 120 }
|
||||
},
|
||||
meowth: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 45, def: 35, spa: 40, spd: 40, spe: 90 }
|
||||
},
|
||||
persian: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 70, def: 60, spa: 65, spd: 65, spe: 115 }
|
||||
},
|
||||
psyduck: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 52, def: 48, spa: 50, spd: 50, spe: 55 }
|
||||
},
|
||||
golduck: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 82, def: 78, spa: 80, spd: 80, spe: 85 }
|
||||
},
|
||||
mankey: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 80, def: 35, spa: 35, spd: 35, spe: 70 }
|
||||
},
|
||||
primeape: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 105, def: 60, spa: 60, spd: 60, spe: 95 }
|
||||
},
|
||||
growlithe: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 70, def: 45, spa: 50, spd: 50, spe: 60 }
|
||||
},
|
||||
arcanine: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 110, def: 80, spa: 80, spd: 80, spe: 95 }
|
||||
},
|
||||
poliwag: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 50, def: 40, spa: 40, spd: 40, spe: 90 }
|
||||
},
|
||||
poliwhirl: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 65, def: 65, spa: 50, spd: 50, spe: 90 }
|
||||
},
|
||||
poliwrath: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 85, def: 95, spa: 70, spd: 70, spe: 70 }
|
||||
},
|
||||
abra: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 25, atk: 20, def: 15, spa: 105, spd: 105, spe: 90 }
|
||||
},
|
||||
kadabra: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 35, def: 30, spa: 120, spd: 120, spe: 105 }
|
||||
},
|
||||
alakazam: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 50, def: 45, spa: 135, spd: 135, spe: 120 }
|
||||
},
|
||||
machop: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 80, def: 50, spa: 35, spd: 35, spe: 35 }
|
||||
},
|
||||
machoke: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 100, def: 70, spa: 50, spd: 50, spe: 45 }
|
||||
},
|
||||
machamp: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 130, def: 80, spa: 65, spd: 65, spe: 55 }
|
||||
},
|
||||
bellsprout: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 75, def: 35, spa: 70, spd: 70, spe: 40 }
|
||||
},
|
||||
weepinbell: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 90, def: 50, spa: 85, spd: 85, spe: 55 }
|
||||
},
|
||||
victreebel: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 105, def: 65, spa: 100, spd: 100, spe: 70 }
|
||||
},
|
||||
tentacool: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 40, def: 35, spa: 100, spd: 100, spe: 70 }
|
||||
},
|
||||
tentacruel: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 70, def: 65, spa: 120, spd: 120, spe: 100 }
|
||||
},
|
||||
geodude: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 80, def: 100, spa: 30, spd: 30, spe: 20 }
|
||||
},
|
||||
graveler: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 95, def: 115, spa: 45, spd: 45, spe: 35 }
|
||||
},
|
||||
golem: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 110, def: 130, spa: 55, spd: 55, spe: 45 }
|
||||
},
|
||||
ponyta: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 85, def: 55, spa: 65, spd: 65, spe: 90 }
|
||||
},
|
||||
rapidash: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 100, def: 70, spa: 80, spd: 80, spe: 105 }
|
||||
},
|
||||
slowpoke: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 65, def: 65, spa: 40, spd: 40, spe: 15 }
|
||||
},
|
||||
slowbro: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 95, atk: 75, def: 110, spa: 80, spd: 80, spe: 30 }
|
||||
},
|
||||
magnemite: {
|
||||
inherit: true,
|
||||
types: ["Electric"],
|
||||
baseStats: { hp: 25, atk: 35, def: 70, spa: 95, spd: 95, spe: 45 }
|
||||
},
|
||||
magneton: {
|
||||
inherit: true,
|
||||
types: ["Electric"],
|
||||
baseStats: { hp: 50, atk: 60, def: 95, spa: 120, spd: 120, spe: 70 }
|
||||
},
|
||||
farfetchd: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 52, atk: 65, def: 55, spa: 58, spd: 58, spe: 60 }
|
||||
},
|
||||
doduo: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 85, def: 45, spa: 35, spd: 35, spe: 75 }
|
||||
},
|
||||
dodrio: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 110, def: 70, spa: 60, spd: 60, spe: 100 }
|
||||
},
|
||||
seel: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 45, def: 55, spa: 70, spd: 70, spe: 45 }
|
||||
},
|
||||
dewgong: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 70, def: 80, spa: 95, spd: 95, spe: 70 }
|
||||
},
|
||||
grimer: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 80, def: 50, spa: 40, spd: 40, spe: 25 }
|
||||
},
|
||||
muk: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 105, atk: 105, def: 75, spa: 65, spd: 65, spe: 50 }
|
||||
},
|
||||
shellder: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 65, def: 100, spa: 45, spd: 45, spe: 40 }
|
||||
},
|
||||
cloyster: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 95, def: 180, spa: 85, spd: 85, spe: 70 }
|
||||
},
|
||||
gastly: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 35, def: 30, spa: 100, spd: 100, spe: 80 }
|
||||
},
|
||||
haunter: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 50, def: 45, spa: 115, spd: 115, spe: 95 }
|
||||
},
|
||||
gengar: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 65, def: 60, spa: 130, spd: 130, spe: 110 }
|
||||
},
|
||||
onix: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 45, def: 160, spa: 30, spd: 30, spe: 70 }
|
||||
},
|
||||
drowzee: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 48, def: 45, spa: 90, spd: 90, spe: 42 }
|
||||
},
|
||||
hypno: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 85, atk: 73, def: 70, spa: 115, spd: 115, spe: 67 }
|
||||
},
|
||||
krabby: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 105, def: 90, spa: 25, spd: 25, spe: 50 }
|
||||
},
|
||||
kingler: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 130, def: 115, spa: 50, spd: 50, spe: 75 }
|
||||
},
|
||||
voltorb: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 30, def: 50, spa: 55, spd: 55, spe: 100 }
|
||||
},
|
||||
electrode: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 50, def: 70, spa: 80, spd: 80, spe: 140 }
|
||||
},
|
||||
exeggcute: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 40, def: 80, spa: 60, spd: 60, spe: 40 }
|
||||
},
|
||||
exeggutor: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 95, atk: 95, def: 85, spa: 125, spd: 125, spe: 55 }
|
||||
},
|
||||
cubone: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 50, def: 95, spa: 40, spd: 40, spe: 35 }
|
||||
},
|
||||
marowak: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 80, def: 110, spa: 50, spd: 50, spe: 45 }
|
||||
},
|
||||
hitmonlee: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 120, def: 53, spa: 35, spd: 35, spe: 87 }
|
||||
},
|
||||
hitmonchan: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 50, atk: 105, def: 79, spa: 35, spd: 35, spe: 76 }
|
||||
},
|
||||
lickitung: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 55, def: 75, spa: 60, spd: 60, spe: 30 }
|
||||
},
|
||||
koffing: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 65, def: 95, spa: 60, spd: 60, spe: 35 }
|
||||
},
|
||||
weezing: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 90, def: 120, spa: 85, spd: 85, spe: 60 }
|
||||
},
|
||||
rhyhorn: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 85, def: 95, spa: 30, spd: 30, spe: 25 }
|
||||
},
|
||||
rhydon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 105, atk: 130, def: 120, spa: 45, spd: 45, spe: 40 }
|
||||
},
|
||||
chansey: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 250, atk: 5, def: 5, spa: 105, spd: 105, spe: 50 }
|
||||
},
|
||||
tangela: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 55, def: 115, spa: 100, spd: 100, spe: 60 }
|
||||
},
|
||||
kangaskhan: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 105, atk: 95, def: 80, spa: 40, spd: 40, spe: 90 }
|
||||
},
|
||||
horsea: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 40, def: 70, spa: 70, spd: 70, spe: 60 }
|
||||
},
|
||||
seadra: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 65, def: 95, spa: 95, spd: 95, spe: 85 }
|
||||
},
|
||||
goldeen: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 45, atk: 67, def: 60, spa: 50, spd: 50, spe: 63 }
|
||||
},
|
||||
seaking: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 92, def: 65, spa: 80, spd: 80, spe: 68 }
|
||||
},
|
||||
staryu: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 45, def: 55, spa: 70, spd: 70, spe: 85 }
|
||||
},
|
||||
starmie: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 75, def: 85, spa: 100, spd: 100, spe: 115 }
|
||||
},
|
||||
mrmime: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 40, atk: 45, def: 65, spa: 100, spd: 100, spe: 90 }
|
||||
},
|
||||
scyther: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 110, def: 80, spa: 55, spd: 55, spe: 105 }
|
||||
},
|
||||
jynx: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 50, def: 35, spa: 95, spd: 95, spe: 95 }
|
||||
},
|
||||
electabuzz: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 83, def: 57, spa: 85, spd: 85, spe: 105 }
|
||||
},
|
||||
magmar: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 95, def: 57, spa: 85, spd: 85, spe: 93 }
|
||||
},
|
||||
pinsir: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 125, def: 100, spa: 55, spd: 55, spe: 85 }
|
||||
},
|
||||
tauros: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 75, atk: 100, def: 95, spa: 70, spd: 70, spe: 110 }
|
||||
},
|
||||
magikarp: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 20, atk: 10, def: 55, spa: 20, spd: 20, spe: 80 }
|
||||
},
|
||||
gyarados: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 95, atk: 125, def: 79, spa: 100, spd: 100, spe: 81 }
|
||||
},
|
||||
lapras: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 130, atk: 85, def: 80, spa: 95, spd: 95, spe: 60 }
|
||||
},
|
||||
ditto: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 48, atk: 48, def: 48, spa: 48, spd: 48, spe: 48 }
|
||||
},
|
||||
eevee: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 55, atk: 55, def: 50, spa: 65, spd: 65, spe: 55 }
|
||||
},
|
||||
vaporeon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 130, atk: 65, def: 60, spa: 110, spd: 110, spe: 65 }
|
||||
},
|
||||
jolteon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 65, def: 60, spa: 110, spd: 110, spe: 130 }
|
||||
},
|
||||
flareon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 130, def: 60, spa: 110, spd: 110, spe: 65 }
|
||||
},
|
||||
porygon: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 65, atk: 60, def: 70, spa: 75, spd: 75, spe: 40 }
|
||||
},
|
||||
omanyte: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 35, atk: 40, def: 100, spa: 90, spd: 90, spe: 35 }
|
||||
},
|
||||
omastar: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 70, atk: 60, def: 125, spa: 115, spd: 115, spe: 55 }
|
||||
},
|
||||
kabuto: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 30, atk: 80, def: 90, spa: 45, spd: 45, spe: 55 }
|
||||
},
|
||||
kabutops: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 60, atk: 115, def: 105, spa: 70, spd: 70, spe: 80 }
|
||||
},
|
||||
aerodactyl: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 80, atk: 105, def: 65, spa: 60, spd: 60, spe: 130 }
|
||||
},
|
||||
snorlax: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 160, atk: 110, def: 65, spa: 65, spd: 65, spe: 30 }
|
||||
},
|
||||
articuno: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 85, def: 100, spa: 125, spd: 125, spe: 85 }
|
||||
},
|
||||
zapdos: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 90, def: 85, spa: 125, spd: 125, spe: 100 }
|
||||
},
|
||||
moltres: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 90, atk: 100, def: 90, spa: 125, spd: 125, spe: 90 }
|
||||
},
|
||||
dratini: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 41, atk: 64, def: 45, spa: 50, spd: 50, spe: 50 }
|
||||
},
|
||||
dragonair: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 61, atk: 84, def: 65, spa: 70, spd: 70, spe: 70 }
|
||||
},
|
||||
dragonite: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 91, atk: 134, def: 95, spa: 100, spd: 100, spe: 80 }
|
||||
},
|
||||
mewtwo: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 106, atk: 110, def: 90, spa: 154, spd: 154, spe: 130 }
|
||||
},
|
||||
mew: {
|
||||
inherit: true,
|
||||
baseStats: { hp: 100, atk: 100, def: 100, spa: 100, spd: 100, spe: 100 }
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=pokedex.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/pokedex.ts"],
|
||||
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\tmissingno: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 33, atk: 136, def: 0, spa: 6, spd: 6, spe: 29},\r\n\t},\r\n\tbulbasaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 49, def: 49, spa: 65, spd: 65, spe: 45},\r\n\t},\r\n\tivysaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 62, def: 63, spa: 80, spd: 80, spe: 60},\r\n\t},\r\n\tvenusaur: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 80, atk: 82, def: 83, spa: 100, spd: 100, spe: 80},\r\n\t},\r\n\tcharmander: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 39, atk: 52, def: 43, spa: 50, spd: 50, spe: 65},\r\n\t},\r\n\tcharmeleon: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 58, atk: 64, def: 58, spa: 65, spd: 65, spe: 80},\r\n\t},\r\n\tcharizard: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 78, atk: 84, def: 78, spa: 85, spd: 85, spe: 100},\r\n\t},\r\n\tsquirtle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 44, atk: 48, def: 65, spa: 50, spd: 50, spe: 43},\r\n\t},\r\n\twartortle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 59, atk: 63, def: 80, spa: 65, spd: 65, spe: 58},\r\n\t},\r\n\tblastoise: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 79, atk: 83, def: 100, spa: 85, spd: 85, spe: 78},\r\n\t},\r\n\tcaterpie: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 30, def: 35, spa: 20, spd: 20, spe: 45},\r\n\t},\r\n\tmetapod: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 50, atk: 20, def: 55, spa: 25, spd: 25, spe: 30},\r\n\t},\r\n\tbutterfree: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 45, def: 50, spa: 80, spd: 80, spe: 70},\r\n\t},\r\n\tweedle: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 35, def: 30, spa: 20, spd: 20, spe: 50},\r\n\t},\r\n\tkakuna: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 45, atk: 25, def: 50, spa: 25, spd: 25, spe: 35},\r\n\t},\r\n\tbeedrill: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 65, atk: 80, def: 40, spa: 45, spd: 45, spe: 75},\r\n\t},\r\n\tpidgey: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 45, def: 40, spa: 35, spd: 35, spe: 56},\r\n\t},\r\n\tpidgeotto: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 63, atk: 60, def: 55, spa: 50, spd: 50, spe: 71},\r\n\t},\r\n\tpidgeot: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 83, atk: 80, def: 75, spa: 70, spd: 70, spe: 91},\r\n\t},\r\n\trattata: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 30, atk: 56, def: 35, spa: 25, spd: 25, spe: 72},\r\n\t},\r\n\traticate: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 55, atk: 81, def: 60, spa: 50, spd: 50, spe: 97},\r\n\t},\r\n\tspearow: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 40, atk: 60, def: 30, spa: 31, spd: 31, spe: 70},\r\n\t},\r\n\tfearow: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 65, atk: 90, def: 65, spa: 61, spd: 61, spe: 100},\r\n\t},\r\n\tekans: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 35, atk: 60, def: 44, spa: 40, spd: 40, spe: 55},\r\n\t},\r\n\tarbok: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 85, def: 69, spa: 65, spd: 65, spe: 80},\r\n\t},\r\n\tpikachu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 35, atk: 55, def: 30, spa: 50, spd: 50, spe: 90},\r\n\t},\r\n\traichu: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 60, atk: 90, def: 55, spa: 90, spd: 90, spe: 100},\r\n\t},\r\n\tsandshrew: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 50, atk: 75, def: 85, spa: 30, spd: 30, spe: 40},\r\n\t},\r\n\tsandslash: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 75, atk: 100, def: 110, spa: 55, spd: 55, spe: 65},\r\n\t},\r\n\tnidoranf: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 55, atk: 47, def: 52, spa: 40, spd: 40, spe: 41},\r\n\t},\r\n\tnidorina: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 70, atk: 62, def: 67, spa: 55, spd: 55, spe: 56},\r\n\t},\r\n\tnidoqueen: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 90, atk: 82, def: 87, spa: 75, spd: 75, spe: 76},\r\n\t},\r\n\tnidoranm: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 46, atk: 57, def: 40, spa: 40, spd: 40, spe: 50},\r\n\t},\r\n\tnidorino: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 61, atk: 72, def: 57, spa: 55, spd: 55, spe: 65},\r\n\t},\r\n\tnidoking: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 81, atk: 92, def: 77, spa: 75, spd: 75, spe: 85},\r\n\t},\r\n\tclefairy: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 70, atk: 45, def: 48, spa: 60, spd: 60, spe: 35},\r\n\t},\r\n\tclefable: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 95, atk: 70, def: 73, spa: 85, spd: 85, spe: 60},\r\n\t},\r\n\tvulpix: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 38, atk: 41, def: 40, spa: 65, spd: 65, spe: 65},\r\n\t},\r\n\tninetales: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 73, atk: 76, def: 75, spa: 100, spd: 100, spe: 100},\r\n\t},\r\n\tjigglypuff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 115, atk: 45, def: 20, spa: 25, spd: 25, spe: 20},\r\n\t},\r\n\twigglytuff: {\r\n\t\tinherit: true,\r\n\t\tbaseStats: {hp: 140, atk: 70, def: 45, spa: 50, spd: 50, spe: 45},Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AAK,GAAE;AAAA,EAChE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EAChE;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,IAAG;AAAA,EACnE;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,GAAE;AAAA,EACjE;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW,EAAC,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAKLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,612 @@
|
||||
{
|
||||
"bulbasaur": {
|
||||
"moves": ["bodyslam", "sleeppowder"],
|
||||
"essentialMove": "razorleaf",
|
||||
"exclusiveMoves": ["megadrain", "swordsdance", "swordsdance"]
|
||||
},
|
||||
"ivysaur": {
|
||||
"moves": ["bodyslam", "sleeppowder", "swordsdance"],
|
||||
"essentialMove": "razorleaf"
|
||||
},
|
||||
"venusaur": {
|
||||
"moves": ["bodyslam", "hyperbeam", "sleeppowder", "swordsdance"],
|
||||
"essentialMove": "razorleaf"
|
||||
},
|
||||
"charmander": {
|
||||
"moves": ["bodyslam", "slash"],
|
||||
"essentialMove": "fireblast",
|
||||
"exclusiveMoves": ["counter", "seismictoss"],
|
||||
"comboMoves": ["bodyslam", "fireblast", "submission", "swordsdance"]
|
||||
},
|
||||
"charmeleon": {
|
||||
"moves": ["bodyslam", "slash"],
|
||||
"essentialMove": "fireblast",
|
||||
"exclusiveMoves": ["counter", "swordsdance"],
|
||||
"comboMoves": ["bodyslam", "fireblast", "submission", "swordsdance"]
|
||||
},
|
||||
"charizard": {
|
||||
"moves": ["bodyslam", "earthquake", "slash"],
|
||||
"essentialMove": "fireblast",
|
||||
"comboMoves": ["hyperbeam", "swordsdance"]
|
||||
},
|
||||
"squirtle": {
|
||||
"moves": ["blizzard", "hydropump", "seismictoss", "surf"],
|
||||
"exclusiveMoves": ["bodyslam", "counter"]
|
||||
},
|
||||
"wartortle": {
|
||||
"moves": ["blizzard", "bodyslam", "hydropump", "surf"],
|
||||
"exclusiveMoves": ["counter", "rest", "seismictoss"]
|
||||
},
|
||||
"blastoise": {
|
||||
"moves": ["blizzard", "bodyslam", "hydropump", "surf"],
|
||||
"exclusiveMoves": ["earthquake", "rest"]
|
||||
},
|
||||
"butterfree": {
|
||||
"moves": ["psychic", "sleeppowder", "stunspore"],
|
||||
"exclusiveMoves": ["megadrain", "psywave"]
|
||||
},
|
||||
"beedrill": {
|
||||
"moves": ["megadrain", "swordsdance", "twineedle"],
|
||||
"exclusiveMoves": ["doubleedge", "doubleedge", "hyperbeam"],
|
||||
"comboMoves": ["agility", "hyperbeam", "swordsdance", "twineedle"]
|
||||
},
|
||||
"pidgey": {
|
||||
"moves": ["agility", "doubleedge", "skyattack"],
|
||||
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "substitute", "quickattack", "toxic"]
|
||||
},
|
||||
"pidgeotto": {
|
||||
"moves": ["agility", "doubleedge", "skyattack"],
|
||||
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "substitute", "quickattack", "toxic"]
|
||||
},
|
||||
"pidgeot": {
|
||||
"moves": ["agility", "doubleedge", "hyperbeam"],
|
||||
"exclusiveMoves": ["mimic", "mirrormove", "reflect", "sandattack", "skyattack", "skyattack", "substitute", "quickattack", "toxic"]
|
||||
},
|
||||
"rattata": {
|
||||
"moves": ["blizzard", "bodyslam"],
|
||||
"essentialMove": "superfang",
|
||||
"exclusiveMoves": ["thunderbolt", "thunderbolt", "quickattack"]
|
||||
},
|
||||
"raticate": {
|
||||
"moves": ["blizzard", "bodyslam", "hyperbeam"],
|
||||
"essentialMove": "superfang"
|
||||
},
|
||||
"spearow": {
|
||||
"moves": ["agility", "doubleedge", "drillpeck"],
|
||||
"exclusiveMoves": ["leer", "mimic", "mirrormove", "substitute", "toxic"]
|
||||
},
|
||||
"fearow": {
|
||||
"moves": ["agility", "doubleedge", "drillpeck", "hyperbeam"]
|
||||
},
|
||||
"ekans": {
|
||||
"moves": ["bodyslam", "earthquake", "glare", "rockslide"]
|
||||
},
|
||||
"arbok": {
|
||||
"moves": ["earthquake", "glare", "hyperbeam"],
|
||||
"exclusiveMoves": ["bodyslam", "rockslide"]
|
||||
},
|
||||
"pikachu": {
|
||||
"moves": ["surf", "thunderwave"],
|
||||
"essentialMove": "thunderbolt",
|
||||
"exclusiveMoves": ["agility", "bodyslam", "seismictoss", "thunder"]
|
||||
},
|
||||
"raichu": {
|
||||
"moves": ["surf", "thunderwave"],
|
||||
"essentialMove": "thunderbolt",
|
||||
"exclusiveMoves": ["agility", "bodyslam", "hyperbeam", "seismictoss", "thunder"]
|
||||
},
|
||||
"sandshrew": {
|
||||
"moves": ["bodyslam", "rockslide", "swordsdance"],
|
||||
"essentialMove": "earthquake"
|
||||
},
|
||||
"sandslash": {
|
||||
"moves": ["bodyslam", "rockslide", "swordsdance"],
|
||||
"essentialMove": "earthquake"
|
||||
},
|
||||
"nidoranf": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderbolt"],
|
||||
"exclusiveMoves": ["doubleedge", "doublekick"]
|
||||
},
|
||||
"nidorina": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderbolt"],
|
||||
"exclusiveMoves": ["bubblebeam", "doubleedge", "doublekick"]
|
||||
},
|
||||
"nidoqueen": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderbolt"],
|
||||
"essentialMove": "earthquake"
|
||||
},
|
||||
"nidoranm": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderbolt"],
|
||||
"exclusiveMoves": ["doubleedge", "doublekick"]
|
||||
},
|
||||
"nidorino": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderbolt"],
|
||||
"exclusiveMoves": ["bubblebeam", "doubleedge", "doublekick"]
|
||||
},
|
||||
"nidoking": {
|
||||
"moves": ["blizzard", "bodyslam"],
|
||||
"essentialMove": "earthquake",
|
||||
"exclusiveMoves": ["rockslide", "thunder", "thunderbolt"]
|
||||
},
|
||||
"clefairy": {
|
||||
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "blizzard",
|
||||
"exclusiveMoves": ["counter", "psychic", "seismictoss", "sing", "sing"]
|
||||
},
|
||||
"clefable": {
|
||||
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "blizzard",
|
||||
"exclusiveMoves": ["counter", "hyperbeam", "psychic", "sing", "sing"]
|
||||
},
|
||||
"vulpix": {
|
||||
"moves": ["bodyslam", "confuseray", "fireblast"],
|
||||
"exclusiveMoves": ["flamethrower", "reflect", "substitute"]
|
||||
},
|
||||
"ninetales": {
|
||||
"moves": ["bodyslam", "confuseray", "fireblast"],
|
||||
"exclusiveMoves": ["flamethrower", "hyperbeam", "reflect", "substitute"]
|
||||
},
|
||||
"jigglypuff": {
|
||||
"moves": ["blizzard", "bodyslam", "seismictoss", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "sing"]
|
||||
},
|
||||
"wigglytuff": {
|
||||
"moves": ["blizzard", "bodyslam", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "hyperbeam", "sing"]
|
||||
},
|
||||
"zubat": {
|
||||
"moves": ["confuseray", "doubleedge", "megadrain", "toxic"]
|
||||
},
|
||||
"golbat": {
|
||||
"moves": ["confuseray", "doubleedge", "hyperbeam", "megadrain"]
|
||||
},
|
||||
"oddish": {
|
||||
"moves": ["doubleedge", "sleeppowder"],
|
||||
"essentialMove": "megadrain",
|
||||
"exclusiveMoves": ["stunspore", "stunspore", "swordsdance"]
|
||||
},
|
||||
"gloom": {
|
||||
"moves": ["doubleedge", "sleeppowder"],
|
||||
"essentialMove": "megadrain",
|
||||
"exclusiveMoves": ["stunspore", "stunspore", "swordsdance"]
|
||||
},
|
||||
"vileplume": {
|
||||
"moves": ["bodyslam", "sleeppowder", "stunspore", "swordsdance"],
|
||||
"essentialMove": "megadrain"
|
||||
},
|
||||
"paras": {
|
||||
"moves": ["bodyslam", "megadrain"],
|
||||
"essentialMove": "spore",
|
||||
"exclusiveMoves": ["growth", "slash", "stunspore", "stunspore", "swordsdance"]
|
||||
},
|
||||
"parasect": {
|
||||
"moves": ["bodyslam", "megadrain"],
|
||||
"essentialMove": "spore",
|
||||
"exclusiveMoves": ["growth", "hyperbeam", "slash", "stunspore", "stunspore", "swordsdance"]
|
||||
},
|
||||
"venonat": {
|
||||
"moves": ["psychic", "sleeppowder", "stunspore"],
|
||||
"exclusiveMoves": ["doubleedge", "megadrain", "psywave"]
|
||||
},
|
||||
"venomoth": {
|
||||
"moves": ["psychic", "sleeppowder", "stunspore"],
|
||||
"exclusiveMoves": ["doubleedge", "megadrain", "megadrain"]
|
||||
},
|
||||
"diglett": {
|
||||
"moves": ["bodyslam", "rockslide", "slash"],
|
||||
"essentialMove": "earthquake"
|
||||
},
|
||||
"dugtrio": {
|
||||
"moves": ["bodyslam", "rockslide", "slash"],
|
||||
"essentialMove": "earthquake"
|
||||
},
|
||||
"meowth": {
|
||||
"moves": ["bodyslam", "bubblebeam"],
|
||||
"essentialMove": "slash",
|
||||
"exclusiveMoves": ["thunder", "thunderbolt"]
|
||||
},
|
||||
"persian": {
|
||||
"moves": ["bodyslam", "bubblebeam"],
|
||||
"essentialMove": "slash",
|
||||
"exclusiveMoves": ["hyperbeam", "hyperbeam", "thunder", "thunderbolt"]
|
||||
},
|
||||
"psyduck": {
|
||||
"moves": ["amnesia", "blizzard"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["bodyslam", "hydropump", "rest", "seismictoss"]
|
||||
},
|
||||
"golduck": {
|
||||
"moves": ["amnesia", "blizzard"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["bodyslam", "hydropump", "rest", "seismictoss"]
|
||||
},
|
||||
"mankey": {
|
||||
"moves": ["bodyslam", "rockslide", "submission"],
|
||||
"exclusiveMoves": ["counter", "megakick"]
|
||||
},
|
||||
"primeape": {
|
||||
"moves": ["bodyslam", "rockslide", "submission"],
|
||||
"exclusiveMoves": ["counter", "hyperbeam", "hyperbeam"]
|
||||
},
|
||||
"growlithe": {
|
||||
"moves": ["bodyslam", "fireblast", "flamethrower", "reflect"]
|
||||
},
|
||||
"arcanine": {
|
||||
"moves": ["bodyslam", "fireblast", "hyperbeam"],
|
||||
"exclusiveMoves": ["flamethrower", "reflect"]
|
||||
},
|
||||
"poliwag": {
|
||||
"moves": ["blizzard", "surf"],
|
||||
"essentialMove": "amnesia",
|
||||
"exclusiveMoves": ["hypnosis", "hypnosis", "psychic"]
|
||||
},
|
||||
"poliwhirl": {
|
||||
"moves": ["blizzard", "surf"],
|
||||
"essentialMove": "amnesia",
|
||||
"exclusiveMoves": ["counter", "hypnosis", "hypnosis", "psychic"]
|
||||
},
|
||||
"poliwrath": {
|
||||
"moves": ["blizzard", "bodyslam", "earthquake", "submission"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["hypnosis", "hypnosis", "psychic"],
|
||||
"comboMoves": ["amnesia", "blizzard"]
|
||||
},
|
||||
"abra": {
|
||||
"moves": ["psychic", "seismictoss", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "reflect"]
|
||||
},
|
||||
"kadabra": {
|
||||
"moves": ["psychic", "recover", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "reflect", "reflect", "seismictoss", "seismictoss"]
|
||||
},
|
||||
"alakazam": {
|
||||
"moves": ["psychic", "recover", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "reflect", "reflect", "seismictoss", "seismictoss"]
|
||||
},
|
||||
"machop": {
|
||||
"moves": ["bodyslam", "earthquake", "submission"],
|
||||
"exclusiveMoves": ["counter", "rockslide", "rockslide"]
|
||||
},
|
||||
"machoke": {
|
||||
"moves": ["bodyslam", "earthquake", "submission"],
|
||||
"exclusiveMoves": ["counter", "rockslide", "rockslide"]
|
||||
},
|
||||
"machamp": {
|
||||
"moves": ["bodyslam", "earthquake", "submission"],
|
||||
"exclusiveMoves": ["counter", "hyperbeam", "rockslide", "rockslide"]
|
||||
},
|
||||
"bellsprout": {
|
||||
"moves": ["doubleedge", "sleeppowder", "stunspore", "swordsdance"],
|
||||
"essentialMove": "razorleaf"
|
||||
},
|
||||
"weepinbell": {
|
||||
"moves": ["doubleedge", "sleeppowder", "stunspore", "swordsdance"],
|
||||
"essentialMove": "razorleaf"
|
||||
},
|
||||
"victreebel": {
|
||||
"moves": ["bodyslam", "sleeppowder", "stunspore"],
|
||||
"essentialMove": "razorleaf",
|
||||
"comboMoves": ["hyperbeam", "swordsdance"]
|
||||
},
|
||||
"tentacool": {
|
||||
"moves": ["barrier", "hydropump", "surf"],
|
||||
"essentialMove": "blizzard",
|
||||
"exclusiveMoves": ["megadrain", "megadrain"],
|
||||
"comboMoves": ["hydropump", "surf"]
|
||||
},
|
||||
"tentacruel": {
|
||||
"moves": ["blizzard", "hydropump", "hyperbeam", "surf"],
|
||||
"essentialMove": "swordsdance"
|
||||
},
|
||||
"geodude": {
|
||||
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
|
||||
},
|
||||
"graveler": {
|
||||
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
|
||||
},
|
||||
"golem": {
|
||||
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
|
||||
},
|
||||
"ponyta": {
|
||||
"moves": ["agility", "bodyslam", "fireblast", "reflect"]
|
||||
},
|
||||
"rapidash": {
|
||||
"moves": ["agility", "bodyslam", "fireblast", "hyperbeam"]
|
||||
},
|
||||
"slowpoke": {
|
||||
"moves": ["earthquake", "surf"],
|
||||
"essentialMove": "thunderwave",
|
||||
"exclusiveMoves": ["blizzard", "psychic", "rest"],
|
||||
"comboMoves": ["amnesia", "surf"]
|
||||
},
|
||||
"slowbro": {
|
||||
"moves": ["amnesia", "surf", "thunderwave"],
|
||||
"exclusiveMoves": ["blizzard", "psychic", "rest", "rest"]
|
||||
},
|
||||
"magnemite": {
|
||||
"moves": ["thunder", "thunderbolt", "thunderwave"],
|
||||
"exclusiveMoves": ["doubleedge", "mimic", "substitute", "toxic"]
|
||||
},
|
||||
"magneton": {
|
||||
"moves": ["thunder", "thunderbolt", "thunderwave"],
|
||||
"exclusiveMoves": ["doubleedge", "hyperbeam", "hyperbeam", "mimic", "substitute", "toxic"]
|
||||
},
|
||||
"farfetchd": {
|
||||
"moves": ["agility", "bodyslam", "swordsdance"],
|
||||
"essentialMove": "slash"
|
||||
},
|
||||
"doduo": {
|
||||
"moves": ["agility", "bodyslam", "doubleedge", "drillpeck"]
|
||||
},
|
||||
"dodrio": {
|
||||
"moves": ["agility", "bodyslam", "drillpeck", "hyperbeam"]
|
||||
},
|
||||
"seel": {
|
||||
"moves": ["blizzard", "bodyslam", "surf"],
|
||||
"exclusiveMoves": ["mimic", "rest"]
|
||||
},
|
||||
"dewgong": {
|
||||
"moves": ["blizzard", "bodyslam", "surf"],
|
||||
"exclusiveMoves": ["hyperbeam", "mimic", "rest", "rest"]
|
||||
},
|
||||
"grimer": {
|
||||
"moves": ["bodyslam", "sludge"],
|
||||
"essentialMove": "explosion",
|
||||
"exclusiveMoves": ["fireblast", "megadrain", "megadrain", "screech"]
|
||||
},
|
||||
"muk": {
|
||||
"moves": ["bodyslam", "sludge"],
|
||||
"essentialMove": "explosion",
|
||||
"exclusiveMoves": ["fireblast", "hyperbeam", "megadrain", "megadrain"]
|
||||
},
|
||||
"shellder": {
|
||||
"moves": ["blizzard", "doubleedge", "explosion", "surf"]
|
||||
},
|
||||
"cloyster": {
|
||||
"moves": ["blizzard", "explosion", "surf"],
|
||||
"exclusiveMoves": ["doubleedge", "hyperbeam", "hyperbeam"]
|
||||
},
|
||||
"gastly": {
|
||||
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
|
||||
"essentialMove": "thunderbolt",
|
||||
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
|
||||
},
|
||||
"haunter": {
|
||||
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
|
||||
"essentialMove": "thunderbolt",
|
||||
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
|
||||
},
|
||||
"gengar": {
|
||||
"moves": ["explosion", "megadrain", "nightshade", "psychic"],
|
||||
"essentialMove": "thunderbolt",
|
||||
"exclusiveMoves": ["confuseray", "hypnosis", "hypnosis"]
|
||||
},
|
||||
"onix": {
|
||||
"moves": ["bodyslam", "earthquake", "explosion", "rockslide"]
|
||||
},
|
||||
"drowzee": {
|
||||
"moves": ["hypnosis", "psychic", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "reflect", "rest", "seismictoss", "seismictoss"]
|
||||
},
|
||||
"hypno": {
|
||||
"moves": ["hypnosis", "psychic", "thunderwave"],
|
||||
"exclusiveMoves": ["counter", "reflect", "rest", "rest", "seismictoss", "seismictoss"]
|
||||
},
|
||||
"krabby": {
|
||||
"moves": ["blizzard", "bodyslam", "crabhammer", "swordsdance"]
|
||||
},
|
||||
"kingler": {
|
||||
"moves": ["bodyslam", "crabhammer", "hyperbeam", "swordsdance"]
|
||||
},
|
||||
"voltorb": {
|
||||
"moves": ["explosion", "thunderbolt", "thunderwave"],
|
||||
"exclusiveMoves": ["screech", "thunder", "toxic"]
|
||||
},
|
||||
"electrode": {
|
||||
"moves": ["explosion", "thunderbolt", "thunderwave"],
|
||||
"exclusiveMoves": ["hyperbeam", "screech", "thunder", "toxic"]
|
||||
},
|
||||
"exeggcute": {
|
||||
"moves": ["sleeppowder", "stunspore"],
|
||||
"essentialMove": "psychic",
|
||||
"exclusiveMoves": ["doubleedge", "explosion", "explosion"]
|
||||
},
|
||||
"exeggutor": {
|
||||
"moves": ["explosion", "psychic", "sleeppowder"],
|
||||
"exclusiveMoves": ["doubleedge", "eggbomb", "hyperbeam", "megadrain", "megadrain", "stunspore", "stunspore", "stunspore"]
|
||||
},
|
||||
"cubone": {
|
||||
"moves": ["blizzard", "bodyslam", "earthquake", "seismictoss"]
|
||||
},
|
||||
"marowak": {
|
||||
"moves": ["blizzard", "bodyslam", "earthquake", "seismictoss"]
|
||||
},
|
||||
"hitmonlee": {
|
||||
"moves": ["bodyslam", "highjumpkick", "seismictoss"],
|
||||
"exclusiveMoves": ["counter", "counter", "meditate"]
|
||||
},
|
||||
"hitmonchan": {
|
||||
"moves": ["bodyslam", "seismictoss", "submission"],
|
||||
"exclusiveMoves": ["agility", "counter", "counter"]
|
||||
},
|
||||
"lickitung": {
|
||||
"moves": ["hyperbeam", "swordsdance"],
|
||||
"essentialMove": "bodyslam",
|
||||
"exclusiveMoves": ["blizzard", "earthquake", "earthquake", "earthquake"]
|
||||
},
|
||||
"koffing": {
|
||||
"moves": ["explosion", "fireblast", "sludge", "thunderbolt"]
|
||||
},
|
||||
"weezing": {
|
||||
"moves": ["explosion", "fireblast", "sludge", "thunderbolt"]
|
||||
},
|
||||
"rhyhorn": {
|
||||
"moves": ["bodyslam", "earthquake", "rockslide", "substitute"]
|
||||
},
|
||||
"rhydon": {
|
||||
"moves": ["bodyslam", "earthquake", "rockslide"],
|
||||
"exclusiveMoves": ["hyperbeam", "substitute", "substitute"]
|
||||
},
|
||||
"chansey": {
|
||||
"moves": ["icebeam", "thunderwave"],
|
||||
"essentialMove": "softboiled",
|
||||
"exclusiveMoves": ["counter", "reflect", "seismictoss", "sing", "thunderbolt", "thunderbolt", "thunderbolt"]
|
||||
},
|
||||
"tangela": {
|
||||
"moves": ["bodyslam", "sleeppowder"],
|
||||
"essentialMove": "megadrain",
|
||||
"exclusiveMoves": ["growth", "stunspore", "stunspore", "stunspore", "swordsdance", "swordsdance"]
|
||||
},
|
||||
"kangaskhan": {
|
||||
"moves": ["bodyslam", "earthquake", "hyperbeam"],
|
||||
"exclusiveMoves": ["counter", "rockslide", "rockslide", "surf"]
|
||||
},
|
||||
"horsea": {
|
||||
"moves": ["agility", "blizzard"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["doubleedge", "hydropump", "smokescreen"]
|
||||
},
|
||||
"seadra": {
|
||||
"moves": ["agility", "blizzard"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["doubleedge", "hydropump", "hyperbeam", "smokescreen"]
|
||||
},
|
||||
"goldeen": {
|
||||
"moves": ["agility", "blizzard", "doubleedge", "surf"]
|
||||
},
|
||||
"seaking": {
|
||||
"moves": ["blizzard", "doubleedge", "surf"],
|
||||
"exclusiveMoves": ["agility", "agility", "hyperbeam"]
|
||||
},
|
||||
"staryu": {
|
||||
"moves": ["blizzard", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "recover",
|
||||
"exclusiveMoves": ["hydropump", "surf", "surf"]
|
||||
},
|
||||
"starmie": {
|
||||
"moves": ["blizzard", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "recover",
|
||||
"exclusiveMoves": ["hydropump", "psychic", "surf", "surf"]
|
||||
},
|
||||
"mrmime": {
|
||||
"moves": ["psychic", "seismictoss", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"scyther": {
|
||||
"moves": ["agility", "hyperbeam", "slash", "swordsdance"]
|
||||
},
|
||||
"jynx": {
|
||||
"moves": ["blizzard", "lovelykiss", "psychic"],
|
||||
"exclusiveMoves": ["bodyslam", "counter", "counter", "mimic", "seismictoss"]
|
||||
},
|
||||
"electabuzz": {
|
||||
"moves": ["psychic", "seismictoss", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"magmar": {
|
||||
"moves": ["bodyslam", "confuseray", "fireblast"],
|
||||
"exclusiveMoves": ["hyperbeam", "psychic"]
|
||||
},
|
||||
"pinsir": {
|
||||
"moves": ["bodyslam", "hyperbeam", "swordsdance"],
|
||||
"exclusiveMoves": ["seismictoss", "submission", "submission"]
|
||||
},
|
||||
"tauros": {
|
||||
"moves": ["bodyslam", "earthquake", "hyperbeam"],
|
||||
"exclusiveMoves": ["blizzard", "blizzard", "blizzard", "thunderbolt"]
|
||||
},
|
||||
"gyarados": {
|
||||
"moves": ["blizzard", "bodyslam", "hyperbeam", "thunderbolt"],
|
||||
"exclusiveMoves": ["hydropump", "surf"]
|
||||
},
|
||||
"lapras": {
|
||||
"moves": ["bodyslam", "confuseray", "rest", "sing", "surf"],
|
||||
"essentialMove": "blizzard",
|
||||
"exclusiveMoves": ["thunderbolt", "thunderbolt"]
|
||||
},
|
||||
"ditto": {
|
||||
"level": 100,
|
||||
"moves": ["transform"]
|
||||
},
|
||||
"eevee": {
|
||||
"moves": ["doubleedge", "quickattack", "reflect"],
|
||||
"essentialMove": "bodyslam",
|
||||
"exclusiveMoves": ["bide", "mimic", "sandattack", "tailwhip"]
|
||||
},
|
||||
"vaporeon": {
|
||||
"moves": ["blizzard", "rest"],
|
||||
"essentialMove": "surf",
|
||||
"exclusiveMoves": ["bodyslam", "hydropump", "mimic"]
|
||||
},
|
||||
"jolteon": {
|
||||
"moves": ["bodyslam", "thunderbolt", "thunderwave"],
|
||||
"exclusiveMoves": ["agility", "agility", "doublekick", "pinmissile", "pinmissile"]
|
||||
},
|
||||
"flareon": {
|
||||
"moves": ["bodyslam", "fireblast", "hyperbeam", "quickattack"]
|
||||
},
|
||||
"porygon": {
|
||||
"moves": ["blizzard", "thunderwave"],
|
||||
"essentialMove": "recover",
|
||||
"exclusiveMoves": ["doubleedge", "psychic", "thunderbolt", "triattack"]
|
||||
},
|
||||
"omanyte": {
|
||||
"moves": ["bodyslam", "hydropump", "rest", "surf"],
|
||||
"essentialMove": "blizzard"
|
||||
},
|
||||
"omastar": {
|
||||
"moves": ["blizzard", "hydropump", "seismictoss", "surf"],
|
||||
"exclusiveMoves": ["bodyslam", "rest"]
|
||||
},
|
||||
"kabuto": {
|
||||
"moves": ["blizzard", "bodyslam", "slash", "surf"]
|
||||
},
|
||||
"kabutops": {
|
||||
"moves": ["hyperbeam", "surf", "swordsdance"],
|
||||
"exclusiveMoves": ["bodyslam", "slash"]
|
||||
},
|
||||
"aerodactyl": {
|
||||
"moves": ["doubleedge", "fireblast", "hyperbeam", "skyattack"]
|
||||
},
|
||||
"snorlax": {
|
||||
"moves": ["bodyslam", "rest", "selfdestruct", "thunderbolt"],
|
||||
"essentialMove": "amnesia",
|
||||
"exclusiveMoves": ["blizzard", "blizzard"],
|
||||
"comboMoves": ["bodyslam", "earthquake", "hyperbeam", "selfdestruct"]
|
||||
},
|
||||
"articuno": {
|
||||
"moves": ["agility", "hyperbeam", "icebeam", "mimic", "reflect"],
|
||||
"essentialMove": "blizzard",
|
||||
"comboMoves": ["icebeam", "reflect", "rest"]
|
||||
},
|
||||
"zapdos": {
|
||||
"moves": ["agility", "drillpeck", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"moltres": {
|
||||
"moves": ["agility", "fireblast", "hyperbeam"],
|
||||
"exclusiveMoves": ["doubleedge", "reflect", "skyattack"]
|
||||
},
|
||||
"dratini": {
|
||||
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "blizzard"
|
||||
},
|
||||
"dragonair": {
|
||||
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "blizzard"
|
||||
},
|
||||
"dragonite": {
|
||||
"moves": ["bodyslam", "hyperbeam", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "blizzard"
|
||||
},
|
||||
"mewtwo": {
|
||||
"level": 62,
|
||||
"moves": ["blizzard", "recover", "thunderbolt"],
|
||||
"essentialMove": "amnesia",
|
||||
"exclusiveMoves": ["psychic", "psychic"],
|
||||
"comboMoves": ["barrier", "rest"]
|
||||
},
|
||||
"mew": {
|
||||
"moves": ["blizzard", "earthquake", "thunderbolt", "thunderwave"],
|
||||
"essentialMove": "psychic",
|
||||
"exclusiveMoves": ["explosion", "softboiled", "softboiled"],
|
||||
"comboMoves": ["earthquake", "hyperbeam", "swordsdance"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,436 @@
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var random_teams_exports = {};
|
||||
__export(random_teams_exports, {
|
||||
RandomGen1Teams: () => RandomGen1Teams,
|
||||
default: () => random_teams_default
|
||||
});
|
||||
module.exports = __toCommonJS(random_teams_exports);
|
||||
var import_random_teams = __toESM(require("../gen2/random-teams"));
|
||||
var import_lib = require("../../../lib");
|
||||
var import_random_teams2 = require("../gen8/random-teams");
|
||||
class RandomGen1Teams extends import_random_teams.default {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.randomData = require("./random-data.json");
|
||||
}
|
||||
// Challenge Cup or CC teams are basically fully random teams.
|
||||
randomCCTeam() {
|
||||
this.enforceNoDirectCustomBanlistChanges();
|
||||
const team = [];
|
||||
const randomN = this.randomNPokemon(this.maxTeamSize, this.forceMonotype);
|
||||
for (const pokemon of randomN) {
|
||||
const species = this.dex.species.get(pokemon);
|
||||
const learnset = this.dex.species.getLearnset(species.id);
|
||||
const mbstmin = 1307;
|
||||
const stats = species.baseStats;
|
||||
let mbst = stats["hp"] * 2 + 30 + 63 + 100 + 10;
|
||||
mbst += stats["atk"] * 2 + 30 + 63 + 100 + 5;
|
||||
mbst += stats["def"] * 2 + 30 + 63 + 100 + 5;
|
||||
mbst += stats["spa"] * 2 + 30 + 63 + 100 + 5;
|
||||
mbst += stats["spd"] * 2 + 30 + 63 + 100 + 5;
|
||||
mbst += stats["spe"] * 2 + 30 + 63 + 100 + 5;
|
||||
let level;
|
||||
if (this.adjustLevel) {
|
||||
level = this.adjustLevel;
|
||||
} else {
|
||||
level = Math.floor(100 * mbstmin / mbst);
|
||||
while (level < 100) {
|
||||
mbst = Math.floor((stats["hp"] * 2 + 30 + 63 + 100) * level / 100 + 10);
|
||||
mbst += Math.floor(((stats["atk"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);
|
||||
mbst += Math.floor((stats["def"] * 2 + 30 + 63 + 100) * level / 100 + 5);
|
||||
mbst += Math.floor(((stats["spa"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);
|
||||
mbst += Math.floor((stats["spd"] * 2 + 30 + 63 + 100) * level / 100 + 5);
|
||||
mbst += Math.floor((stats["spe"] * 2 + 30 + 63 + 100) * level / 100 + 5);
|
||||
if (mbst >= mbstmin)
|
||||
break;
|
||||
level++;
|
||||
}
|
||||
}
|
||||
const ivs = {
|
||||
hp: 0,
|
||||
atk: this.random(16),
|
||||
def: this.random(16),
|
||||
spa: this.random(16),
|
||||
spd: 0,
|
||||
spe: this.random(16)
|
||||
};
|
||||
ivs["hp"] = ivs["atk"] % 2 * 16 + ivs["def"] % 2 * 8 + ivs["spe"] % 2 * 4 + ivs["spa"] % 2 * 2;
|
||||
ivs["atk"] *= 2;
|
||||
ivs["def"] *= 2;
|
||||
ivs["spa"] *= 2;
|
||||
ivs["spd"] = ivs["spa"];
|
||||
ivs["spe"] *= 2;
|
||||
const evs = { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 };
|
||||
const pool = [];
|
||||
if (learnset) {
|
||||
for (const move in learnset) {
|
||||
if (this.dex.moves.get(move).gen !== 1)
|
||||
continue;
|
||||
if (learnset[move].some((learned) => learned.startsWith("1"))) {
|
||||
pool.push(move);
|
||||
}
|
||||
}
|
||||
}
|
||||
team.push({
|
||||
name: species.baseSpecies,
|
||||
species: species.name,
|
||||
moves: this.multipleSamplesNoReplace(pool, 4),
|
||||
gender: false,
|
||||
ability: "No Ability",
|
||||
evs,
|
||||
ivs,
|
||||
item: "",
|
||||
level,
|
||||
happiness: 0,
|
||||
shiny: false,
|
||||
nature: "Serious"
|
||||
});
|
||||
}
|
||||
return team;
|
||||
}
|
||||
// Random team generation for Gen 1 Random Battles.
|
||||
randomTeam() {
|
||||
this.enforceNoDirectCustomBanlistChanges();
|
||||
const seed = this.prng.seed;
|
||||
const ruleTable = this.dex.formats.getRuleTable(this.format);
|
||||
const pokemon = [];
|
||||
const isMonotype = !!this.forceMonotype || ruleTable.has("sametypeclause");
|
||||
const typePool = this.dex.types.names();
|
||||
const type = this.forceMonotype || this.sample(typePool);
|
||||
const rejectedButNotInvalidPool = [];
|
||||
const nuTiers = ["UU", "UUBL", "NFE", "LC", "NU"];
|
||||
const uuTiers = ["NFE", "UU", "UUBL", "NU"];
|
||||
const typeCount = {};
|
||||
const weaknessCount = { Electric: 0, Psychic: 0, Water: 0, Ice: 0, Ground: 0 };
|
||||
let uberCount = 0;
|
||||
let nuCount = 0;
|
||||
const pokemonPool = this.getPokemonPool(type, pokemon, isMonotype);
|
||||
while (pokemonPool.length && pokemon.length < this.maxTeamSize) {
|
||||
const species = this.dex.species.get(this.sampleNoReplace(pokemonPool));
|
||||
if (!species.exists || !this.randomData[species.id]?.moves)
|
||||
continue;
|
||||
if (species.id === "ditto" && this.battleHasDitto)
|
||||
continue;
|
||||
const limitFactor = Math.round(this.maxTeamSize / 6) || 1;
|
||||
const tier = species.tier;
|
||||
switch (tier) {
|
||||
case "LC":
|
||||
case "NFE":
|
||||
if (nuCount >= 4 * limitFactor || this.randomChance(1, 3))
|
||||
continue;
|
||||
break;
|
||||
case "Uber":
|
||||
if (uberCount >= 1 * limitFactor)
|
||||
continue;
|
||||
break;
|
||||
default:
|
||||
if (uuTiers.includes(tier) && pokemonPool.length > 1 && (nuCount >= 4 * limitFactor && this.randomChance(1, 2))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
let skip = false;
|
||||
if (!isMonotype && !this.forceMonotype) {
|
||||
for (const typeName of species.types) {
|
||||
if (typeCount[typeName] >= 2 * limitFactor || typeCount[typeName] >= 1 * limitFactor && this.randomChance(1, 2) && pokemonPool.length > 1) {
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (skip) {
|
||||
rejectedButNotInvalidPool.push(species.id);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const pokemonWeaknesses = [];
|
||||
for (const typeName in weaknessCount) {
|
||||
const increaseCount = this.dex.getImmunity(typeName, species) && this.dex.getEffectiveness(typeName, species) > 0;
|
||||
if (!increaseCount)
|
||||
continue;
|
||||
if (weaknessCount[typeName] >= 2 * limitFactor) {
|
||||
skip = true;
|
||||
break;
|
||||
}
|
||||
pokemonWeaknesses.push(typeName);
|
||||
}
|
||||
if (skip) {
|
||||
rejectedButNotInvalidPool.push(species.id);
|
||||
continue;
|
||||
}
|
||||
pokemon.push(this.randomSet(species));
|
||||
for (const typeName of species.types) {
|
||||
if (typeCount[typeName]) {
|
||||
typeCount[typeName]++;
|
||||
} else {
|
||||
typeCount[typeName] = 1;
|
||||
}
|
||||
}
|
||||
for (const weakness of pokemonWeaknesses) {
|
||||
weaknessCount[weakness]++;
|
||||
}
|
||||
if (tier === "Uber") {
|
||||
uberCount++;
|
||||
} else if (nuTiers.includes(tier)) {
|
||||
nuCount++;
|
||||
}
|
||||
if (species.id === "ditto")
|
||||
this.battleHasDitto = true;
|
||||
}
|
||||
while (pokemon.length < this.maxTeamSize && rejectedButNotInvalidPool.length) {
|
||||
const species = this.sampleNoReplace(rejectedButNotInvalidPool);
|
||||
pokemon.push(this.randomSet(species));
|
||||
}
|
||||
if (pokemon.length < this.maxTeamSize && pokemon.length < 12 && !isMonotype) {
|
||||
throw new Error(`Could not build a random team for ${this.format} (seed=${seed})`);
|
||||
}
|
||||
return pokemon;
|
||||
}
|
||||
shouldCullMove(move, types, moves, counter) {
|
||||
switch (move.id) {
|
||||
case "hydropump":
|
||||
return { cull: moves.has("surf") };
|
||||
case "surf":
|
||||
return { cull: moves.has("hydropump") };
|
||||
case "selfdestruct":
|
||||
return { cull: moves.has("rest") };
|
||||
case "rest":
|
||||
return { cull: moves.has("selfdestruct") };
|
||||
case "sharpen":
|
||||
case "swordsdance":
|
||||
return { cull: counter.get("Special") > counter.get("Physical") || !counter.get("Physical") || moves.has("growth") };
|
||||
case "growth":
|
||||
return { cull: counter.get("Special") < counter.get("Physical") || !counter.get("Special") || moves.has("swordsdance") };
|
||||
case "poisonpowder":
|
||||
case "stunspore":
|
||||
case "sleeppowder":
|
||||
case "toxic":
|
||||
return { cull: counter.get("Status") > 1 };
|
||||
}
|
||||
return { cull: false };
|
||||
}
|
||||
/**
|
||||
* Random set generation for Gen 1 Random Battles.
|
||||
*/
|
||||
randomSet(species) {
|
||||
species = this.dex.species.get(species);
|
||||
if (!species.exists)
|
||||
species = this.dex.species.get("pikachu");
|
||||
const data = this.randomData[species.id];
|
||||
const movePool = data.moves?.slice() || [];
|
||||
const moves = /* @__PURE__ */ new Set();
|
||||
const types = new Set(species.types);
|
||||
const counter = new import_random_teams2.MoveCounter();
|
||||
const PhysicalSetup = ["swordsdance", "sharpen"];
|
||||
const SpecialSetup = ["amnesia", "growth"];
|
||||
if (data.comboMoves && data.comboMoves.length <= this.maxMoveCount && this.randomChance(1, 2)) {
|
||||
for (const m of data.comboMoves)
|
||||
moves.add(m);
|
||||
}
|
||||
if (moves.size < this.maxMoveCount && data.exclusiveMoves) {
|
||||
moves.add(this.sample(data.exclusiveMoves));
|
||||
}
|
||||
if (moves.size < this.maxMoveCount && data.essentialMove) {
|
||||
moves.add(data.essentialMove);
|
||||
}
|
||||
while (moves.size < this.maxMoveCount && movePool.length) {
|
||||
while (moves.size < this.maxMoveCount && movePool.length) {
|
||||
const moveid = this.sampleNoReplace(movePool);
|
||||
moves.add(moveid);
|
||||
}
|
||||
if (movePool.length) {
|
||||
for (const setMoveid of moves) {
|
||||
const move = this.dex.moves.get(setMoveid);
|
||||
const moveid = move.id;
|
||||
if (!move.damage && !move.damageCallback)
|
||||
counter.add(move.category);
|
||||
if (PhysicalSetup.includes(moveid))
|
||||
counter.add("physicalsetup");
|
||||
if (SpecialSetup.includes(moveid))
|
||||
counter.add("specialsetup");
|
||||
}
|
||||
for (const moveid of moves) {
|
||||
if (moveid === data.essentialMove)
|
||||
continue;
|
||||
const move = this.dex.moves.get(moveid);
|
||||
if ((!data.essentialMove || moveid !== data.essentialMove) && this.shouldCullMove(move, types, moves, counter).cull) {
|
||||
moves.delete(moveid);
|
||||
break;
|
||||
}
|
||||
counter.add(move.category);
|
||||
}
|
||||
}
|
||||
}
|
||||
const levelScale = {
|
||||
LC: 88,
|
||||
NFE: 80,
|
||||
PU: 77,
|
||||
NU: 77,
|
||||
NUBL: 76,
|
||||
UU: 74,
|
||||
UUBL: 71,
|
||||
OU: 68,
|
||||
Uber: 65
|
||||
};
|
||||
const level = this.adjustLevel || data.level || levelScale[species.tier] || 80;
|
||||
const evs = { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 };
|
||||
const ivs = { hp: 30, atk: 30, def: 30, spa: 30, spd: 30, spe: 30 };
|
||||
if (moves.has("substitute")) {
|
||||
while (evs.hp > 3) {
|
||||
const hp = Math.floor(Math.floor(2 * species.baseStats.hp + ivs.hp + Math.floor(evs.hp / 4) + 100) * level / 100 + 10);
|
||||
if (hp % 4 !== 0)
|
||||
break;
|
||||
evs.hp -= 4;
|
||||
}
|
||||
}
|
||||
return {
|
||||
name: species.name,
|
||||
species: species.name,
|
||||
moves: Array.from(moves),
|
||||
ability: "No Ability",
|
||||
evs,
|
||||
ivs,
|
||||
item: "",
|
||||
level,
|
||||
shiny: false,
|
||||
gender: false
|
||||
};
|
||||
}
|
||||
randomHCTeam() {
|
||||
this.enforceNoDirectCustomBanlistChanges();
|
||||
const team = [];
|
||||
const movePool = [...this.dex.moves.all()];
|
||||
const typesPool = ["Bird", ...this.dex.types.names()];
|
||||
const randomN = this.randomNPokemon(this.maxTeamSize);
|
||||
const hackmonsCup = {};
|
||||
for (const forme of randomN) {
|
||||
const species = this.dex.species.get(forme);
|
||||
if (!hackmonsCup[species.id]) {
|
||||
hackmonsCup[species.id] = {
|
||||
types: [this.sample(typesPool), this.sample(typesPool)],
|
||||
baseStats: {
|
||||
hp: import_lib.Utils.clampIntRange(this.random(256), 1),
|
||||
atk: import_lib.Utils.clampIntRange(this.random(256), 1),
|
||||
def: import_lib.Utils.clampIntRange(this.random(256), 1),
|
||||
spa: import_lib.Utils.clampIntRange(this.random(256), 1),
|
||||
spd: 0,
|
||||
spe: import_lib.Utils.clampIntRange(this.random(256), 1)
|
||||
}
|
||||
};
|
||||
if (this.forceMonotype && !hackmonsCup[species.id].types.includes(this.forceMonotype)) {
|
||||
hackmonsCup[species.id].types[1] = this.forceMonotype;
|
||||
}
|
||||
hackmonsCup[species.id].baseStats.spd = hackmonsCup[species.id].baseStats.spa;
|
||||
}
|
||||
if (hackmonsCup[species.id].types[0] === hackmonsCup[species.id].types[1]) {
|
||||
hackmonsCup[species.id].types.splice(1, 1);
|
||||
}
|
||||
const moves = [];
|
||||
do {
|
||||
const move = this.sampleNoReplace(movePool);
|
||||
if (move.gen <= this.gen && !move.isNonstandard && !move.name.startsWith("Hidden Power ")) {
|
||||
moves.push(move.id);
|
||||
}
|
||||
} while (moves.length < this.maxMoveCount);
|
||||
const evs = {
|
||||
hp: this.random(256),
|
||||
atk: this.random(256),
|
||||
def: this.random(256),
|
||||
spa: this.random(256),
|
||||
spd: 0,
|
||||
spe: this.random(256)
|
||||
};
|
||||
evs["spd"] = evs["spa"];
|
||||
const ivs = {
|
||||
hp: 0,
|
||||
atk: this.random(16),
|
||||
def: this.random(16),
|
||||
spa: this.random(16),
|
||||
spd: 0,
|
||||
spe: this.random(16)
|
||||
};
|
||||
ivs["hp"] = ivs["atk"] % 2 * 16 + ivs["def"] % 2 * 8 + ivs["spe"] % 2 * 4 + ivs["spa"] % 2 * 2;
|
||||
for (const iv in ivs) {
|
||||
if (iv === "hp" || iv === "spd")
|
||||
continue;
|
||||
ivs[iv] *= 2;
|
||||
}
|
||||
ivs["spd"] = ivs["spa"];
|
||||
const mbstmin = 425;
|
||||
const baseStats = hackmonsCup[species.id].baseStats;
|
||||
const calcStat = (statName, lvl) => {
|
||||
if (lvl) {
|
||||
return Math.floor(Math.floor(2 * baseStats[statName] + ivs[statName] + Math.floor(evs[statName] / 4)) * lvl / 100 + 5);
|
||||
}
|
||||
return Math.floor(2 * baseStats[statName] + ivs[statName] + Math.floor(evs[statName] / 4)) + 5;
|
||||
};
|
||||
let mbst = 0;
|
||||
for (const statName of Object.keys(baseStats)) {
|
||||
mbst += calcStat(statName);
|
||||
if (statName === "hp")
|
||||
mbst += 5;
|
||||
}
|
||||
let level;
|
||||
if (this.adjustLevel) {
|
||||
level = this.adjustLevel;
|
||||
} else {
|
||||
level = Math.floor(100 * mbstmin / mbst);
|
||||
while (level < 100) {
|
||||
for (const statName of Object.keys(baseStats)) {
|
||||
mbst += calcStat(statName, level);
|
||||
if (statName === "hp")
|
||||
mbst += 5;
|
||||
}
|
||||
if (mbst >= mbstmin)
|
||||
break;
|
||||
level++;
|
||||
}
|
||||
if (level > 100)
|
||||
level = 100;
|
||||
}
|
||||
team.push({
|
||||
name: species.baseSpecies,
|
||||
species: species.name,
|
||||
gender: species.gender,
|
||||
item: "",
|
||||
ability: "No Ability",
|
||||
moves,
|
||||
evs,
|
||||
ivs,
|
||||
nature: "",
|
||||
level,
|
||||
shiny: false,
|
||||
// Hacky but the only way to communicate stats/level generation properly
|
||||
hc: hackmonsCup[species.id]
|
||||
});
|
||||
}
|
||||
return team;
|
||||
}
|
||||
}
|
||||
var random_teams_default = RandomGen1Teams;
|
||||
//# sourceMappingURL=random-teams.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/random-teams.ts"],
|
||||
"sourcesContent": ["import RandomGen2Teams from '../gen2/random-teams';\r\nimport {Utils} from '../../../lib';\r\nimport {MoveCounter} from '../gen8/random-teams';\r\n\r\ninterface HackmonsCupEntry {\r\n\ttypes: string[];\r\n\tbaseStats: StatsTable;\r\n}\r\n\r\ninterface Gen1RandomBattleSpecies {\r\n\tlevel?: number;\r\n\tmoves?: ID[];\r\n\tessentialMove?: ID;\r\n\texclusiveMoves?: ID[];\r\n\tcomboMoves?: ID[];\r\n}\r\n\r\nexport class RandomGen1Teams extends RandomGen2Teams {\r\n\trandomData: {[species: string]: Gen1RandomBattleSpecies} = require('./random-data.json');\r\n\r\n\t// Challenge Cup or CC teams are basically fully random teams.\r\n\trandomCCTeam() {\r\n\t\tthis.enforceNoDirectCustomBanlistChanges();\r\n\r\n\t\tconst team = [];\r\n\r\n\t\tconst randomN = this.randomNPokemon(this.maxTeamSize, this.forceMonotype);\r\n\r\n\t\tfor (const pokemon of randomN) {\r\n\t\t\tconst species = this.dex.species.get(pokemon);\r\n\t\t\tconst learnset = this.dex.species.getLearnset(species.id);\r\n\r\n\t\t\t// Level balance: calculate directly from stats rather than using some silly lookup table.\r\n\t\t\tconst mbstmin = 1307;\r\n\t\t\tconst stats = species.baseStats;\r\n\r\n\t\t\t// Modified base stat total assumes 15 DVs, 255 EVs in every stat\r\n\t\t\tlet mbst = (stats[\"hp\"] * 2 + 30 + 63 + 100) + 10;\r\n\t\t\tmbst += (stats[\"atk\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"def\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spa\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spd\"] * 2 + 30 + 63 + 100) + 5;\r\n\t\t\tmbst += (stats[\"spe\"] * 2 + 30 + 63 + 100) + 5;\r\n\r\n\t\t\tlet level;\r\n\t\t\tif (this.adjustLevel) {\r\n\t\t\t\tlevel = this.adjustLevel;\r\n\t\t\t} else {\r\n\t\t\t\tlevel = Math.floor(100 * mbstmin / mbst); // Initial level guess will underestimate\r\n\r\n\t\t\t\twhile (level < 100) {\r\n\t\t\t\t\tmbst = Math.floor((stats[\"hp\"] * 2 + 30 + 63 + 100) * level / 100 + 10);\r\n\t\t\t\t\t// Since damage is roughly proportional to lvl\r\n\t\t\t\t\tmbst += Math.floor(((stats[\"atk\"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"def\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\t\t\t\t\tmbst += Math.floor(((stats[\"spa\"] * 2 + 30 + 63 + 100) * level / 100 + 5) * level / 100);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"spd\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\t\t\t\t\tmbst += Math.floor((stats[\"spe\"] * 2 + 30 + 63 + 100) * level / 100 + 5);\r\n\r\n\t\t\t\t\tif (mbst >= mbstmin) break;\r\n\t\t\t\t\tlevel++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Random DVs.\r\n\t\t\tconst ivs = {\r\n\t\t\t\thp: 0,\r\n\t\t\t\tatk: this.random(16),\r\n\t\t\t\tdef: this.random(16),\r\n\t\t\t\tspa: this.random(16),\r\n\t\t\t\tspd: 0,\r\n\t\t\t\tspe: this.random(16),\r\n\t\t\t};\r\n\t\t\tivs[\"hp\"] = (ivs[\"atk\"] % 2) * 16 + (ivs[\"def\"] % 2) * 8 + (ivs[\"spe\"] % 2) * 4 + (ivs[\"spa\"] % 2) * 2;\r\n\t\t\tivs[\"atk\"] *= 2;\r\n\t\t\tivs[\"def\"] *= 2;\r\n\t\t\tivs[\"spa\"] *= 2;\r\n\t\t\tivs[\"spd\"] = ivs[\"spa\"];\r\n\t\t\tivs[\"spe\"] *= 2;\r\n\r\n\t\t\t// Maxed EVs.\r\n\t\t\tconst evs = {hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255};\r\n\r\n\t\t\t// Four random unique moves from movepool. don't worry about \"attacking\" or \"viable\".\r\n\t\t\t// Since Gens 1 and 2 learnsets are shared, we need to weed out Gen 2 moves.\r\n\t\t\tconst pool: string[] = [];\r\n\t\t\tif (learnset) {\r\n\t\t\t\tfor (const move in learnset) {\r\n\t\t\t\t\tif (this.dex.moves.get(move).gen !== 1) continue;\r\n\t\t\t\t\tif (learnset[move].some(learned => learned.startsWith('1'))) {\r\n\t\t\t\t\t\tpool.push(move);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tteam.push({\r\n\t\t\t\tname: species.baseSpecies,\r\n\t\t\t\tspecies: species.name,\r\n\t\t\t\tmoves: this.multipleSamplesNoReplace(pool, 4),\r\n\t\t\t\tgender: false,\r\n\t\t\t\tability: 'No Ability',\r\n\t\t\t\tevs: evs,\r\n\t\t\t\tivs: ivs,\r\n\t\t\t\titem: '',\r\n\t\t\t\tlevel,\r\n\t\t\t\thappiness: 0,\r\n\t\t\t\tshiny: false,\r\n\t\t\t\tnature: 'Serious',\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn team;\r\n\t}\r\n\r\n\t// Random team generation for Gen 1 Random Battles.\r\n\trandomTeam() {\r\n\t\tthis.enforceNoDirectCustomBanlistChanges();\r\n\r\n\t\t// Get what we need ready.\r\n\t\tconst seed = this.prng.seed;\r\n\t\tconst ruleTable = this.dex.formats.getRuleTable(this.format);\r\n\t\tconst pokemon: RandomTeamsTypes.RandomSet[] = [];\r\n\r\n\t\t// For Monotype\r\n\t\tconst isMonotype = !!this.forceMonotype || ruleTable.has('sametypeclause');\r\n\t\tconst typePool = this.dex.types.names();\r\n\t\tconst type = this.forceMonotype || this.sample(typePool);\r\n\r\n\t\t/** Pok\u00E9mon that are not wholly incompatible with the team, but still pretty bad */\r\n\t\tconst rejectedButNotInvalidPool: string[] = [];\r\n\t\tconst nuTiers = ['UU', 'UUBL', 'NFE', 'LC', 'NU'];\r\n\t\tconst uuTiers = ['NFE', 'UU', 'UUBL', 'NU'];\r\n\r\n\t\t// Now let's store what we are getting.\r\n\Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAC5B,iBAAoB;AACpB,IAAAA,uBAA0B;AAenB,MAAM,wBAAwB,oBAAAC,QAAgB;AAAA,EAA9C;AAAA;AACN,sBAA2D,QAAQ,oBAAoB;AAAA;AAAA;AAAA,EAGvF,eAAe;AACd,SAAK,oCAAoC;AAEzC,UAAM,OAAO,CAAC;AAEd,UAAM,UAAU,KAAK,eAAe,KAAK,aAAa,KAAK,aAAa;AAExE,eAAW,WAAW,SAAS;AAC9B,YAAM,UAAU,K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e,QAAQ,SAAS,MAAM,CAAC,YAAY;AAC5E,YAAM,IAAI,MAAM,qCAAqC,KAAK,gBAAgB,OAAO;AAAA,IAClF;AAEA,WAAO;AAAA,EACR;AAAA,EAEA,eAAe,MAAY,OAAoB,OAAoB,SAAuC;AACzG,YAAQ,KAAK,IAAI;AAAA,MAEjB,KAAK;AACJ,eAAO,EAAC,MAAM,MAAM,IAAI,MAAM,EAAC;AAAA,MAChC,KAAK;AACJ,eAAO,EAAC,MAAM,MAAM,IAAI,WAAW,EAAC;AAAA,MAGrC,KAAK;AACJ,eAAO,EAAC,MAAM,MAAM,IAAI,MAAM,EAAC;AAAA,MAChC,KAAK;AACJ,eAAO,EAAC,MAAM,MAAM,IAAI,cAAc,EAAC;AAAA,MACxC,KAAK;AAAA,MAAW,KAAK;AACpB,eAAO,EAAC,MAAM,QAAQ,IAAI,SAAS,IAAI,QAAQ,IAAI,UAAU,KAAK,CAAC,QAAQ,IAAI,UAAU,KAAK,MAAM,IAAI,QAAQ,EAAC;AAAA,MAClH,KAAK;ALine truncated
|
||||
"names": ["import_random_teams", "RandomGen2Teams"]
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Desync Clause Mod", "Sleep Clause Mod", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Moves Clause", "Endless Battle Clause", "HP Percentage Mod", "Cancel Mod"],
|
||||
banlist: ["Dig", "Fly"]
|
||||
},
|
||||
"350cupmod": {
|
||||
effectType: "Rule",
|
||||
name: "350 Cup Mod",
|
||||
desc: "If a Pokémon's BST is 350 or lower, all of its stats get doubled.",
|
||||
onBegin() {
|
||||
this.add("rule", "350 Cup Mod: If a Pokemon's BST is 350 or lower, all of its stats get doubled.");
|
||||
},
|
||||
onModifySpecies(species) {
|
||||
const newSpecies = this.dex.deepClone(species);
|
||||
const bst = newSpecies.bst;
|
||||
if (bst <= 350) {
|
||||
newSpecies.bst = 0;
|
||||
for (const stat in newSpecies.baseStats) {
|
||||
if (stat === "spd")
|
||||
continue;
|
||||
newSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * 2, 1, 255);
|
||||
newSpecies.bst += newSpecies.baseStats[stat];
|
||||
}
|
||||
newSpecies.baseStats["spd"] = newSpecies.baseStats["spa"];
|
||||
}
|
||||
return newSpecies;
|
||||
}
|
||||
},
|
||||
flippedmod: {
|
||||
effectType: "Rule",
|
||||
name: "Flipped Mod",
|
||||
desc: "Every Pokémon's stats are reversed. HP becomes Spe, Atk becomes Spc, Def stays the same.",
|
||||
onBegin() {
|
||||
this.add("rule", "Pokemon have their stats flipped (HP becomes Spe, vice versa).");
|
||||
},
|
||||
onModifySpecies(species) {
|
||||
const newSpecies = this.dex.deepClone(species);
|
||||
const stats = {
|
||||
hp: newSpecies.baseStats.spe,
|
||||
atk: newSpecies.baseStats.spa,
|
||||
def: newSpecies.baseStats.def,
|
||||
spa: newSpecies.baseStats.atk,
|
||||
spd: newSpecies.baseStats.atk,
|
||||
spe: newSpecies.baseStats.hp
|
||||
};
|
||||
for (const i in newSpecies.baseStats) {
|
||||
newSpecies.baseStats[i] = stats[i];
|
||||
}
|
||||
return newSpecies;
|
||||
}
|
||||
},
|
||||
scalemonsmod: {
|
||||
effectType: "Rule",
|
||||
name: "Scalemons Mod",
|
||||
desc: "Every Pokémon's stats, barring HP, are scaled to give them a BST as close to 500 as possible",
|
||||
onBegin() {
|
||||
this.add("rule", "Scalemons Mod: Every Pokemon's stats, barring HP, are scaled to come as close to a BST of 500 as possible");
|
||||
},
|
||||
onModifySpecies(species, target, source) {
|
||||
const newSpecies = this.dex.deepClone(species);
|
||||
const pst = newSpecies.bst - newSpecies.baseStats["hp"];
|
||||
const scale = 500 - newSpecies.baseStats["hp"];
|
||||
newSpecies.bst = newSpecies.baseStats["hp"];
|
||||
for (const stat in newSpecies.baseStats) {
|
||||
if (stat === "hp" || stat === "spd")
|
||||
continue;
|
||||
newSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * scale / pst, 1, 255);
|
||||
newSpecies.bst += newSpecies.baseStats[stat];
|
||||
}
|
||||
newSpecies.baseStats["spd"] = newSpecies.baseStats["spa"];
|
||||
return newSpecies;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Desync Clause Mod', 'Sleep Clause Mod', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t\tbanlist: ['Dig', 'Fly'],\r\n\t},\r\n\t'350cupmod': {\r\n\t\teffectType: 'Rule',\r\n\t\tname: '350 Cup Mod',\r\n\t\tdesc: \"If a Pokémon's BST is 350 or lower, all of its stats get doubled.\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', '350 Cup Mod: If a Pokemon\\'s BST is 350 or lower, all of its stats get doubled.');\r\n\t\t},\r\n\t\tonModifySpecies(species) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst bst = newSpecies.bst;\r\n\t\t\tif (bst <= 350) {\r\n\t\t\t\tnewSpecies.bst = 0;\r\n\t\t\t\tfor (const stat in newSpecies.baseStats) {\r\n\t\t\t\t\tif (stat === 'spd') continue;\r\n\t\t\t\t\tnewSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * 2, 1, 255);\r\n\t\t\t\t\tnewSpecies.bst += newSpecies.baseStats[stat];\r\n\t\t\t\t}\r\n\t\t\t\tnewSpecies.baseStats['spd'] = newSpecies.baseStats['spa'];\r\n\t\t\t}\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n\tflippedmod: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Flipped Mod',\r\n\t\tdesc: \"Every Pokémon's stats are reversed. HP becomes Spe, Atk becomes Spc, Def stays the same.\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', 'Pokemon have their stats flipped (HP becomes Spe, vice versa).');\r\n\t\t},\r\n\t\tonModifySpecies(species) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst stats: {[k: string]: number} = {\r\n\t\t\t\thp: newSpecies.baseStats.spe,\r\n\t\t\t\tatk: newSpecies.baseStats.spa,\r\n\t\t\t\tdef: newSpecies.baseStats.def,\r\n\t\t\t\tspa: newSpecies.baseStats.atk,\r\n\t\t\t\tspd: newSpecies.baseStats.atk,\r\n\t\t\t\tspe: newSpecies.baseStats.hp,\r\n\t\t\t};\r\n\t\t\tfor (const i in newSpecies.baseStats) {\r\n\t\t\t\tnewSpecies.baseStats[i] = stats[i];\r\n\t\t\t}\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n\tscalemonsmod: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Scalemons Mod',\r\n\t\tdesc: \"Every Pokémon's stats, barring HP, are scaled to give them a BST as close to 500 as possible\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', 'Scalemons Mod: Every Pokemon\\'s stats, barring HP, are scaled to come as close to a BST of 500 as possible');\r\n\t\t},\r\n\t\tonModifySpecies(species, target, source) {\r\n\t\t\tconst newSpecies = this.dex.deepClone(species);\r\n\t\t\tconst pst: number = newSpecies.bst - newSpecies.baseStats['hp'];\r\n\t\t\tconst scale = 500 - newSpecies.baseStats['hp'];\r\n\t\t\tnewSpecies.bst = newSpecies.baseStats['hp'];\r\n\t\t\tfor (const stat in newSpecies.baseStats) {\r\n\t\t\t\tif (stat === 'hp' || stat === 'spd') continue;\r\n\t\t\t\tnewSpecies.baseStats[stat] = this.clampIntRange(newSpecies.baseStats[stat] * scale / pst, 1, 255);\r\n\t\t\t\tnewSpecies.bst += newSpecies.baseStats[stat];\r\n\t\t\t}\r\n\t\t\tnewSpecies.baseStats['spd'] = newSpecies.baseStats['spa'];\r\n\t\t\treturn newSpecies;\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,qBAAqB,oBAAoB,qBAAqB,kBAAkB,eAAe,wBAAwB,yBAAyB,qBAAqB,YAAY;AAAA,IACzM,SAAS,CAAC,OAAO,KAAK;AAAA,EACvB;AAAA,EACA,aAAa;AAAA,IACZ,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,U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Ac,WAAW,MAAM,WAAW,UAAU,IAAI;AAC9D,YAAM,QAAQ,MAAM,WAAW,UAAU,IAAI;AAC7C,iBAAW,MAAM,WAAW,UAAU,IAAI;AAC1C,iBAAW,QAAQ,WAAW,WAAW;AACxC,YAAI,SAAS,QAAQ,SAAS;AAAO;AACrC,mBAAW,UAAU,IAAI,IAAI,KAAK,cAAc,WAAW,UAAU,IAAI,IAAI,QAAQ,KAAK,GAAG,GAAG;AAChG,mBAAW,OAAO,WAAW,UAAU,IAAI;AAAA,MAC5C;AACA,iBAAW,UAAU,KAAK,IAAI,WAAW,UAAU,KAAK;AACxD,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,866 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const SKIP_LASTDAMAGE = /* @__PURE__ */ new Set([
|
||||
"confuseray",
|
||||
"conversion",
|
||||
"counter",
|
||||
"focusenergy",
|
||||
"glare",
|
||||
"haze",
|
||||
"leechseed",
|
||||
"lightscreen",
|
||||
"mimic",
|
||||
"mist",
|
||||
"poisongas",
|
||||
"poisonpowder",
|
||||
"recover",
|
||||
"reflect",
|
||||
"rest",
|
||||
"softboiled",
|
||||
"splash",
|
||||
"stunspore",
|
||||
"substitute",
|
||||
"supersonic",
|
||||
"teleport",
|
||||
"thunderwave",
|
||||
"toxic",
|
||||
"transform"
|
||||
]);
|
||||
const TWO_TURN_MOVES = ["dig", "fly", "razorwind", "skullbash", "skyattack", "solarbeam"];
|
||||
const Scripts = {
|
||||
inherit: "gen2",
|
||||
gen: 1,
|
||||
init() {
|
||||
for (const i in this.data.Pokedex) {
|
||||
this.data.Pokedex[i].gender = "N";
|
||||
this.data.Pokedex[i].eggGroups = null;
|
||||
}
|
||||
},
|
||||
// BattlePokemon scripts.
|
||||
pokemon: {
|
||||
getStat(statName, unmodified) {
|
||||
if (statName === "hp")
|
||||
throw new Error("Please read `maxhp` directly");
|
||||
if (unmodified)
|
||||
return this.baseStoredStats[statName];
|
||||
return this.modifiedStats[statName];
|
||||
},
|
||||
// Gen 1 function to apply a stat modification that is only active until the stat is recalculated or mon switched.
|
||||
modifyStat(statName, modifier) {
|
||||
if (!(statName in this.storedStats))
|
||||
throw new Error("Invalid `statName` passed to `modifyStat`");
|
||||
const modifiedStats = this.battle.clampIntRange(Math.floor(this.modifiedStats[statName] * modifier), 1);
|
||||
this.modifiedStats[statName] = modifiedStats;
|
||||
},
|
||||
// In generation 1, boosting function increases the stored modified stat and checks for opponent's status.
|
||||
boostBy(boost) {
|
||||
let changed = false;
|
||||
let i;
|
||||
for (i in boost) {
|
||||
const delta = boost[i];
|
||||
if (delta === void 0)
|
||||
continue;
|
||||
if (delta > 0 && this.boosts[i] >= 6)
|
||||
continue;
|
||||
if (delta < 0 && this.boosts[i] <= -6)
|
||||
continue;
|
||||
if (i === "evasion" || i === "accuracy") {
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
if (this.boosts[i] < -6) {
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
changed = true;
|
||||
continue;
|
||||
}
|
||||
if (delta > 0) {
|
||||
if (this.modifiedStats[i] === 999) {
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
this.boosts[i]--;
|
||||
changed = 0;
|
||||
} else {
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
if (delta < 0) {
|
||||
if (this.modifiedStats[i] === 1) {
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] < -6) {
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
this.boosts[i]++;
|
||||
changed = 0;
|
||||
} else {
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] < -6) {
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
this.modifiedStats[i] = this.storedStats[i];
|
||||
if (this.boosts[i] >= 0) {
|
||||
this.modifyStat(i, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[i]]);
|
||||
} else {
|
||||
this.modifyStat(i, [100, 66, 50, 40, 33, 28, 25][-this.boosts[i]] / 100);
|
||||
}
|
||||
if (delta > 0 && this.modifiedStats[i] > 999) {
|
||||
this.modifiedStats[i] = 999;
|
||||
}
|
||||
}
|
||||
}
|
||||
return changed;
|
||||
},
|
||||
clearBoosts() {
|
||||
let i;
|
||||
for (i in this.boosts) {
|
||||
this.boosts[i] = 0;
|
||||
if (i === "evasion" || i === "accuracy")
|
||||
continue;
|
||||
this.modifiedStats[i] = this.storedStats[i];
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
// This function is the main one when running a move.
|
||||
// It deals with the beforeMove event.
|
||||
// It also deals with how PP reduction works on gen 1.
|
||||
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
|
||||
const target = this.battle.getTarget(pokemon, moveOrMoveName, targetLoc);
|
||||
const move = this.battle.dex.getActiveMove(moveOrMoveName);
|
||||
if (target?.subFainted)
|
||||
target.subFainted = null;
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
if (pokemon.moveThisTurn || !this.battle.runEvent("BeforeMove", pokemon, target, move)) {
|
||||
this.battle.clearActiveMove(true);
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
return;
|
||||
}
|
||||
if (move.beforeMoveCallback) {
|
||||
if (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
let lockedMove = this.battle.runEvent("LockMove", pokemon);
|
||||
if (lockedMove === true)
|
||||
lockedMove = false;
|
||||
if (!lockedMove && (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].locked !== target)) {
|
||||
pokemon.deductPP(move, null, target);
|
||||
} else {
|
||||
sourceEffect = move;
|
||||
if (pokemon.volatiles["twoturnmove"]) {
|
||||
pokemon.deductPP(pokemon.volatiles["twoturnmove"].originalMove, null, target);
|
||||
}
|
||||
}
|
||||
if (pokemon.volatiles["partialtrappinglock"] && target !== pokemon.volatiles["partialtrappinglock"].locked) {
|
||||
const moveSlot = pokemon.moveSlots.find((ms) => ms.id === move.id);
|
||||
if (moveSlot && moveSlot.pp < 0) {
|
||||
moveSlot.pp = 63;
|
||||
this.battle.hint("In Gen 1, if a player is forced to use a move with 0 PP, the move will underflow to have 63 PP.");
|
||||
}
|
||||
}
|
||||
this.useMove(move, pokemon, target, sourceEffect);
|
||||
if (pokemon.volatiles["twoturnmove"]) {
|
||||
pokemon.deductPP(move, -1, target);
|
||||
pokemon.volatiles["twoturnmove"].originalMove = move.id;
|
||||
}
|
||||
},
|
||||
// This function deals with AfterMoveSelf events.
|
||||
// This leads with partial trapping moves shenanigans after the move has been used.
|
||||
useMove(moveOrMoveName, pokemon, target, sourceEffect) {
|
||||
if (!sourceEffect && this.battle.effect.id)
|
||||
sourceEffect = this.battle.effect;
|
||||
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
|
||||
let move = this.battle.dex.getActiveMove(baseMove);
|
||||
if (target === void 0)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
if (move.target === "self") {
|
||||
target = pokemon;
|
||||
}
|
||||
if (sourceEffect)
|
||||
move.sourceEffect = sourceEffect.id;
|
||||
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
if (!TWO_TURN_MOVES.includes(move.id) || pokemon.volatiles["twoturnmove"])
|
||||
pokemon.lastMove = move;
|
||||
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);
|
||||
if (move.id !== "metronome") {
|
||||
if (move.id !== "mirrormove" || (!pokemon.side.foe.active[0]?.lastMove || pokemon.side.foe.active[0].lastMove?.id === "mirrormove")) {
|
||||
pokemon.side.lastMove = move;
|
||||
if (pokemon.volatiles["lockedmove"]?.time <= 0)
|
||||
pokemon.removeVolatile("lockedmove");
|
||||
if (target && target.hp <= 0) {
|
||||
if (pokemon.volatiles["mustrecharge"])
|
||||
pokemon.removeVolatile("mustrecharge");
|
||||
delete pokemon.volatiles["partialtrappinglock"];
|
||||
} else {
|
||||
if (pokemon.volatiles["mustrecharge"])
|
||||
this.battle.add("-mustrecharge", pokemon);
|
||||
if (pokemon.hp)
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
}
|
||||
if (move.volatileStatus === "partiallytrapped" && target && target.hp > 0) {
|
||||
if (pokemon.volatiles["partialtrappinglock"] && target.volatiles["partiallytrapped"]) {
|
||||
const sourceVolatile = pokemon.volatiles["partialtrappinglock"];
|
||||
const targetVolatile = target.volatiles["partiallytrapped"];
|
||||
if (!sourceVolatile.locked) {
|
||||
sourceVolatile.locked = target;
|
||||
} else if (target !== pokemon && target !== sourceVolatile.locked) {
|
||||
const duration = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
sourceVolatile.duration = duration;
|
||||
sourceVolatile.locked = target;
|
||||
targetVolatile.duration = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return moveResult;
|
||||
},
|
||||
// This is the function that actually uses the move, running ModifyMove events.
|
||||
// It uses the move and then deals with the effects after the move.
|
||||
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect) {
|
||||
if (!sourceEffect && this.battle.effect.id)
|
||||
sourceEffect = this.battle.effect;
|
||||
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
|
||||
let move = this.battle.dex.getActiveMove(baseMove);
|
||||
if (target === void 0)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
if (move.target === "self") {
|
||||
target = pokemon;
|
||||
}
|
||||
if (sourceEffect)
|
||||
move.sourceEffect = sourceEffect.id;
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
this.battle.debug("not a gen 1 mechanic");
|
||||
}
|
||||
if (!move)
|
||||
return false;
|
||||
let attrs = "";
|
||||
if (pokemon.fainted) {
|
||||
return false;
|
||||
}
|
||||
if (sourceEffect)
|
||||
attrs += "|[from]" + this.battle.dex.conditions.get(sourceEffect);
|
||||
this.battle.addMove("move", pokemon, move.name, target + attrs);
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return true;
|
||||
}
|
||||
if (!this.battle.singleEvent("TryMove", move, null, pokemon, target, move) || !this.battle.runEvent("TryMove", pokemon, target, move)) {
|
||||
return true;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
let damage = false;
|
||||
if (!target || target.fainted) {
|
||||
this.battle.attrLastMove("[notarget]");
|
||||
this.battle.add("-notarget");
|
||||
return true;
|
||||
}
|
||||
if (!SKIP_LASTDAMAGE.has(move.id))
|
||||
this.battle.lastDamage = 0;
|
||||
damage = this.tryMoveHit(target, pokemon, move);
|
||||
if (target.boosts.atk < 6 && (move.selfdestruct || move.id === "disable") && target.volatiles["rage"]) {
|
||||
this.battle.boost({ atk: 1 }, target, pokemon, this.dex.conditions.get("rage"));
|
||||
this.battle.hint(`In Gen 1, using ${move.name} causes the target to build Rage, even if it misses or fails`, true);
|
||||
}
|
||||
if (damage === false) {
|
||||
this.battle.singleEvent("MoveFail", move, null, target, pokemon, move);
|
||||
return true;
|
||||
}
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondarySelf", move, null, pokemon, target, move);
|
||||
this.battle.runEvent("AfterMoveSecondarySelf", pokemon, target, move);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
// This function attempts a move hit and returns the attempt result before the actual hit happens.
|
||||
// It deals with partial trapping weirdness and accuracy bugs as well.
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
let damage = 0;
|
||||
if (move?.self?.volatileStatus === "lockedmove") {
|
||||
if (pokemon.volatiles["lockedmove"]) {
|
||||
pokemon.volatiles["lockedmove"].time--;
|
||||
if (!pokemon.volatiles["lockedmove"].time) {
|
||||
delete pokemon.volatiles["confusion"];
|
||||
pokemon.addVolatile("confusion", pokemon, this.dex.conditions.get("lockedmove"));
|
||||
}
|
||||
} else {
|
||||
pokemon.addVolatile("lockedmove", pokemon, move);
|
||||
}
|
||||
}
|
||||
let hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
if (move.selfdestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
|
||||
if (move.selfdestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, null, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
let accuracy = move.accuracy;
|
||||
if (move.volatileStatus === "partiallytrapped" && target === pokemon.volatiles["partialtrappinglock"]?.locked) {
|
||||
accuracy = true;
|
||||
}
|
||||
if (move.status === "slp" && target && target.volatiles["mustrecharge"]) {
|
||||
accuracy = true;
|
||||
}
|
||||
if (move.ohko) {
|
||||
if (target.getStat("spe") > pokemon.getStat("spe")) {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
const boostTable = [25, 28, 33, 40, 50, 66, 100, 150, 200, 250, 300, 350, 400];
|
||||
if (accuracy !== true) {
|
||||
accuracy = Math.floor(accuracy * 255 / 100);
|
||||
if (pokemon.volatiles["lockedmove"])
|
||||
accuracy = pokemon.volatiles["lockedmove"].accuracy;
|
||||
if (pokemon.volatiles["rage"])
|
||||
accuracy = pokemon.volatiles["rage"].accuracy;
|
||||
if (accuracy !== true) {
|
||||
if (!move.ignoreAccuracy) {
|
||||
accuracy = Math.floor(accuracy * (boostTable[pokemon.boosts.accuracy + 6] / 100));
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
accuracy = Math.floor(accuracy * (boostTable[-target.boosts.evasion + 6] / 100));
|
||||
}
|
||||
accuracy = this.battle.clampIntRange(accuracy, 1, 255);
|
||||
}
|
||||
if (pokemon.volatiles["lockedmove"])
|
||||
pokemon.volatiles["lockedmove"].accuracy = accuracy;
|
||||
if (pokemon.volatiles["rage"])
|
||||
pokemon.volatiles["rage"].accuracy = accuracy;
|
||||
}
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
if (move.target === "self" && accuracy !== true)
|
||||
accuracy++;
|
||||
if (accuracy !== true && !this.battle.randomChance(accuracy, 256)) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
if (accuracy === 255)
|
||||
this.battle.hint("In Gen 1, moves with 100% accuracy can still miss 1/256 of the time.");
|
||||
damage = false;
|
||||
this.battle.lastDamage = 0;
|
||||
}
|
||||
if (damage !== false) {
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let moveDamage = 0;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
move.hit = i + 1;
|
||||
if (move.hit === hits)
|
||||
move.lastHit = true;
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
damage = moveDamage || 0;
|
||||
if (i === 0)
|
||||
move.damage = damage;
|
||||
if (target.subFainted) {
|
||||
i++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
move.damage = null;
|
||||
if (i === 0)
|
||||
return 1;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
}
|
||||
}
|
||||
if (move.category !== "Status") {
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
}
|
||||
if (move.selfdestruct) {
|
||||
if (!target.subFainted) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
} else {
|
||||
this.battle.hint(`In Gen 1, the user of ${move.name} will not take damage if it breaks a Substitute.`);
|
||||
}
|
||||
}
|
||||
if (damage === false) {
|
||||
delete pokemon.volatiles["partialtrappinglock"];
|
||||
return false;
|
||||
}
|
||||
if (move.ohko)
|
||||
this.battle.add("-ohko");
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
// It deals with the actual move hit, as the name indicates, dealing damage and/or effects.
|
||||
// This function also deals with the Gen 1 Substitute behaviour on the hitting process.
|
||||
moveHit(target, pokemon, move, moveData, isSecondary, isSelf) {
|
||||
let damage = 0;
|
||||
if (!isSecondary && !isSelf)
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
let hitResult = true;
|
||||
if (!moveData)
|
||||
moveData = move;
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
const targetSub = target ? target.volatiles["substitute"] : false;
|
||||
const targetHadSub = targetSub !== null && targetSub !== false && typeof targetSub !== "undefined";
|
||||
let targetHasSub = void 0;
|
||||
if (target) {
|
||||
hitResult = this.battle.singleEvent("TryHit", moveData, {}, target, pokemon, move);
|
||||
if (targetSub && moveData.volatileStatus && moveData.volatileStatus === "partiallytrapped") {
|
||||
target.addVolatile(moveData.volatileStatus, pokemon, move);
|
||||
if (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles[moveData.volatileStatus].duration = 2;
|
||||
}
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
if (!isSelf && !isSecondary) {
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
if (hitResult !== 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!this.battle.runEvent("TryFieldHit", target, pokemon, move)) {
|
||||
return false;
|
||||
}
|
||||
} else if (isSecondary && !moveData.self) {
|
||||
hitResult = this.battle.runEvent("TrySecondaryHit", target, pokemon, moveData);
|
||||
}
|
||||
if (hitResult === 0) {
|
||||
targetHasSub = !!target?.volatiles["substitute"];
|
||||
target = null;
|
||||
} else if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (target) {
|
||||
let didSomething = false;
|
||||
damage = this.getDamage(pokemon, target, moveData);
|
||||
if (damage && damage > target.hp) {
|
||||
damage = target.hp;
|
||||
}
|
||||
if ((damage || damage === 0) && !target.fainted) {
|
||||
damage = this.battle.damage(damage, target, pokemon, move);
|
||||
if (!(damage || damage === 0))
|
||||
return false;
|
||||
didSomething = true;
|
||||
} else if (damage === false && typeof hitResult === "undefined") {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
if (damage === false || damage === null) {
|
||||
return false;
|
||||
}
|
||||
if (moveData.boosts && target.hp) {
|
||||
const willBoost = this.battle.boost(moveData.boosts, target, pokemon, move);
|
||||
if (!willBoost) {
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
didSomething = true;
|
||||
if (pokemon.side.foe.active[0].status) {
|
||||
if (pokemon.side.foe.active[0].status === "par") {
|
||||
pokemon.side.foe.active[0].modifyStat("spe", 0.25);
|
||||
}
|
||||
if (pokemon.side.foe.active[0].status === "brn") {
|
||||
pokemon.side.foe.active[0].modifyStat("atk", 0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (moveData.heal && !target.fainted) {
|
||||
const d = target.heal(Math.floor(target.maxhp * moveData.heal[0] / moveData.heal[1]));
|
||||
if (!d) {
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
this.battle.add("-heal", target, target.getHealth);
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.status) {
|
||||
if (moveData.status === "slp" && target.volatiles["mustrecharge"]) {
|
||||
if (target.setStatus(moveData.status, pokemon, move)) {
|
||||
target.removeVolatile("mustrecharge");
|
||||
this.battle.hint(
|
||||
"In Gen 1, if a Pok\xE9mon that has just used Hyper Beam and has yet to recharge is targeted with a sleep inducing move, any other status it may already have will be ignored and sleep will be induced regardless."
|
||||
);
|
||||
}
|
||||
} else if (!target.status) {
|
||||
if (target.setStatus(moveData.status, pokemon, move)) {
|
||||
if (moveData.status === "brn")
|
||||
target.modifyStat("atk", 0.5);
|
||||
if (moveData.status === "par")
|
||||
target.modifyStat("spe", 0.25);
|
||||
}
|
||||
} else if (!isSecondary) {
|
||||
if (target.status === moveData.status) {
|
||||
this.battle.add("-fail", target, target.status);
|
||||
} else {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
}
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.forceStatus) {
|
||||
if (target.setStatus(moveData.forceStatus, pokemon, move)) {
|
||||
if (moveData.forceStatus === "brn")
|
||||
target.modifyStat("atk", 0.5);
|
||||
if (moveData.forceStatus === "par")
|
||||
target.modifyStat("spe", 0.25);
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.volatileStatus) {
|
||||
if (target.addVolatile(moveData.volatileStatus, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.sideCondition) {
|
||||
if (target.side.addSideCondition(moveData.sideCondition, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.pseudoWeather) {
|
||||
if (this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
|
||||
if (!isSelf && !isSecondary) {
|
||||
this.battle.runEvent("Hit", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult && !didSomething) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (targetHasSub === void 0)
|
||||
targetHasSub = !!target?.volatiles["substitute"];
|
||||
const doSelf = targetHadSub && targetHasSub || !targetHadSub;
|
||||
if (moveData.self && moveData.self.volatileStatus !== "lockedmove" && (doSelf || moveData.self.volatileStatus === "partialtrappinglock")) {
|
||||
this.moveHit(pokemon, pokemon, move, moveData.self, isSecondary, true);
|
||||
}
|
||||
if (pokemon.volatiles["partialtrappinglock"]) {
|
||||
pokemon.volatiles["partialtrappinglock"].damage = this.battle.lastDamage;
|
||||
}
|
||||
if (moveData.secondaries && target && target.hp > 0) {
|
||||
for (const secondary of moveData.secondaries) {
|
||||
if (!move.multihit || move.lastHit) {
|
||||
if (!(secondary.status && ["par", "brn", "frz"].includes(secondary.status) && target.hasType(move.type))) {
|
||||
if (secondary.chance === void 0) {
|
||||
this.moveHit(target, pokemon, move, secondary, true, isSelf);
|
||||
} else {
|
||||
let secondaryChance = Math.ceil(secondary.chance * 256 / 100);
|
||||
if (secondary?.volatileStatus === "confusion")
|
||||
secondaryChance--;
|
||||
if (this.battle.randomChance(secondaryChance, 256)) {
|
||||
this.moveHit(target, pokemon, move, secondary, true, isSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (move.selfSwitch && pokemon.hp) {
|
||||
pokemon.switchFlag = move.selfSwitch === true ? true : this.dex.toID(move.selfSwitch);
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
// This calculates the damage pokemon does to target with move.
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string") {
|
||||
move = this.battle.dex.getActiveMove(move);
|
||||
} else if (typeof move === "number") {
|
||||
move = {
|
||||
basePower: move,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
flags: {}
|
||||
};
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
return 65535;
|
||||
}
|
||||
if (move.damageCallback) {
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
}
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
}
|
||||
if (move.damage || move.damage === 0) {
|
||||
return move.damage;
|
||||
}
|
||||
if (move.volatileStatus === "partiallytrapped" && move.type === "Normal" && target.hasType("Ghost")) {
|
||||
return 0;
|
||||
}
|
||||
if (source.volatiles["partialtrappinglock"] && target === source.volatiles["partialtrappinglock"].locked) {
|
||||
return source.volatiles["partialtrappinglock"].damage;
|
||||
}
|
||||
if (!move.category)
|
||||
move.category = "Physical";
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower) {
|
||||
return basePower === 0 ? void 0 : basePower;
|
||||
}
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let isCrit = move.willCrit || false;
|
||||
if (!isCrit) {
|
||||
let critChance = Math.floor(this.dex.species.get(source.set.species).baseStats["spe"] / 2);
|
||||
if (source.volatiles["focusenergy"]) {
|
||||
critChance = Math.floor(critChance / 2);
|
||||
} else {
|
||||
critChance = this.battle.clampIntRange(critChance * 2, 1, 255);
|
||||
}
|
||||
if (move.critRatio === 1) {
|
||||
critChance = Math.floor(critChance / 2);
|
||||
} else if (move.critRatio === 2) {
|
||||
critChance = this.battle.clampIntRange(critChance * 4, 1, 255);
|
||||
}
|
||||
if (critChance > 0) {
|
||||
isCrit = this.battle.randomChance(critChance, 256);
|
||||
}
|
||||
}
|
||||
if (isCrit)
|
||||
target.getMoveHitData(move).crit = true;
|
||||
if (basePower) {
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower);
|
||||
if (basePower && move.basePowerModifier) {
|
||||
basePower *= move.basePowerModifier;
|
||||
}
|
||||
}
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let level = source.level;
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const atkType = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
|
||||
const defType = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
let attack = attacker.getStat(atkType);
|
||||
let defense = defender.getStat(defType);
|
||||
if (defType === "def" && defender.volatiles["reflect"] || defType === "spd" && defender.volatiles["lightscreen"]) {
|
||||
this.battle.debug("Screen doubling (Sp)Def");
|
||||
defense *= 2;
|
||||
}
|
||||
if (isCrit) {
|
||||
move.ignoreOffensive = true;
|
||||
move.ignoreDefensive = true;
|
||||
level *= 2;
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
}
|
||||
if (move.ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
attack = attacker.getStat(atkType, true);
|
||||
}
|
||||
if (move.ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defense = target.getStat(defType, true);
|
||||
}
|
||||
if (attack >= 256 || defense >= 256) {
|
||||
if (attack >= 1024 || defense >= 1024) {
|
||||
this.battle.hint("In Gen 1, a stat will roll over to a small number if it is larger than 1024.");
|
||||
}
|
||||
attack = this.battle.clampIntRange(Math.floor(attack / 4) % 256, 1);
|
||||
defense = Math.floor(defense / 4) % 256;
|
||||
if (defense === 0) {
|
||||
this.battle.hint("Pokemon Showdown avoids division by zero by rounding defense up to 1. In game, the battle would have crashed.");
|
||||
defense = 1;
|
||||
}
|
||||
}
|
||||
if (move.selfdestruct && defType === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
let damage = level * 2;
|
||||
damage = Math.floor(damage / 5);
|
||||
damage += 2;
|
||||
damage *= basePower;
|
||||
damage *= attack;
|
||||
damage = Math.floor(damage / defense);
|
||||
damage = this.battle.clampIntRange(Math.floor(damage / 50), 0, 997);
|
||||
damage += 2;
|
||||
if (type !== "???" && source.hasType(type)) {
|
||||
damage += Math.floor(damage / 2);
|
||||
}
|
||||
for (const targetType of target.types) {
|
||||
const typeMod = this.battle.dex.getEffectiveness(type, targetType);
|
||||
if (typeMod > 0) {
|
||||
damage *= 20;
|
||||
damage = Math.floor(damage / 10);
|
||||
}
|
||||
if (typeMod < 0) {
|
||||
damage *= 5;
|
||||
damage = Math.floor(damage / 10);
|
||||
}
|
||||
}
|
||||
const totalTypeMod = target.runEffectiveness(move);
|
||||
if (totalTypeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
}
|
||||
if (totalTypeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
}
|
||||
if (damage === 0)
|
||||
return damage;
|
||||
if (damage > 1) {
|
||||
damage *= this.battle.random(217, 256);
|
||||
damage = Math.floor(damage / 255);
|
||||
}
|
||||
return Math.floor(damage);
|
||||
}
|
||||
},
|
||||
// deals with Pokémon stat boosting.
|
||||
boost(boost, target, source = null, effect = null) {
|
||||
if (this.event) {
|
||||
if (!target)
|
||||
target = this.event.target;
|
||||
if (!source)
|
||||
source = this.event.source;
|
||||
if (!effect)
|
||||
effect = this.effect;
|
||||
}
|
||||
if (typeof effect === "string")
|
||||
effect = this.dex.conditions.get(effect);
|
||||
if (!target?.hp)
|
||||
return 0;
|
||||
let success = null;
|
||||
boost = this.runEvent("TryBoost", target, source, effect, { ...boost });
|
||||
let i;
|
||||
for (i in boost) {
|
||||
const currentBoost = {};
|
||||
currentBoost[i] = boost[i];
|
||||
if (boost[i] !== 0) {
|
||||
const boostResult = target.boostBy(currentBoost);
|
||||
if (boostResult) {
|
||||
success = true;
|
||||
let msg = "-boost";
|
||||
if (boost[i] < 0) {
|
||||
msg = "-unboost";
|
||||
boost[i] = -boost[i];
|
||||
}
|
||||
if (!effect || effect.effectType === "Move") {
|
||||
this.add(msg, target, i, boost[i]);
|
||||
} else {
|
||||
this.add(msg, target, i, boost[i], "[from] " + effect.fullname);
|
||||
}
|
||||
this.runEvent("AfterEachBoost", target, source, effect, currentBoost);
|
||||
}
|
||||
if (boostResult === 0) {
|
||||
let msg = "-boost";
|
||||
let secondmsg = "-unboost";
|
||||
if (boost[i] < 0) {
|
||||
msg = "-unboost";
|
||||
secondmsg = "-boost";
|
||||
boost[i] = -boost[i];
|
||||
}
|
||||
if (!effect || effect.effectType === "Move") {
|
||||
this.add(msg, target, i, boost[i]);
|
||||
} else {
|
||||
this.add(msg, target, i, boost[i], "[from] " + effect.fullname);
|
||||
}
|
||||
this.add(secondmsg, target, i, 1);
|
||||
if (msg === "-boost") {
|
||||
this.hint(`In Gen 1, boosting a stat at 999 will apply a -1 drop afterwards, and the stat remains at 999.`, true);
|
||||
} else {
|
||||
this.hint(`In Gen 1, dropping a stat at 1 will apply a +1 boost afterwards, and the stat remains at 1.`, true);
|
||||
}
|
||||
this.runEvent("AfterEachBoost", target, source, effect, currentBoost);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.runEvent("AfterBoost", target, source, effect, boost);
|
||||
return success;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/scripts.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 1 mechanics are fairly different to those we know on current gen.\r\n * Therefor we need to make a lot of changes to the battle engine for this game simulation.\r\n * This generation inherits all the changes from older generations, that must be taken into account when editing code.\r\n */\r\n\r\nconst SKIP_LASTDAMAGE = new Set([\r\n\t'confuseray', 'conversion', 'counter', 'focusenergy', 'glare', 'haze', 'leechseed', 'lightscreen',\r\n\t'mimic', 'mist', 'poisongas', 'poisonpowder', 'recover', 'reflect', 'rest', 'softboiled',\r\n\t'splash', 'stunspore', 'substitute', 'supersonic', 'teleport', 'thunderwave', 'toxic', 'transform',\r\n]);\r\n\r\nconst TWO_TURN_MOVES = ['dig', 'fly', 'razorwind', 'skullbash', 'skyattack', 'solarbeam'];\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen2',\r\n\tgen: 1,\r\n\tinit() {\r\n\t\tfor (const i in this.data.Pokedex) {\r\n\t\t\t(this.data.Pokedex[i] as any).gender = 'N';\r\n\t\t\t(this.data.Pokedex[i] as any).eggGroups = null;\r\n\t\t}\r\n\t},\r\n\t// BattlePokemon scripts.\r\n\tpokemon: {\r\n\t\tgetStat(statName, unmodified) {\r\n\t\t\t// @ts-ignore - type checking prevents 'hp' from being passed, but we're paranoid\r\n\t\t\tif (statName === 'hp') throw new Error(\"Please read `maxhp` directly\");\r\n\t\t\tif (unmodified) return this.baseStoredStats[statName];\r\n\t\t\treturn this.modifiedStats![statName];\r\n\t\t},\r\n\t\t// Gen 1 function to apply a stat modification that is only active until the stat is recalculated or mon switched.\r\n\t\tmodifyStat(statName, modifier) {\r\n\t\t\tif (!(statName in this.storedStats)) throw new Error(\"Invalid `statName` passed to `modifyStat`\");\r\n\t\t\tconst modifiedStats = this.battle.clampIntRange(Math.floor(this.modifiedStats![statName] * modifier), 1);\r\n\t\t\tthis.modifiedStats![statName] = modifiedStats;\r\n\t\t},\r\n\t\t// In generation 1, boosting function increases the stored modified stat and checks for opponent's status.\r\n\t\tboostBy(boost) {\r\n\t\t\tlet changed: boolean | number = false;\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in boost) {\r\n\t\t\t\tconst delta = boost[i];\r\n\t\t\t\tif (delta === undefined) continue;\r\n\t\t\t\tif (delta > 0 && this.boosts[i] >= 6) continue;\r\n\t\t\t\tif (delta < 0 && this.boosts[i] <= -6) continue;\r\n\t\t\t\tif (i === 'evasion' || i === 'accuracy') {\r\n\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tchanged = true;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t// Stat being modified is not evasion or accuracy, so change modifiedStats.\r\n\t\t\t\tif (delta > 0) {\r\n\t\t\t\t\tif (this.modifiedStats![i] === 999) {\r\n\t\t\t\t\t\t// Intended max stat value\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.boosts[i]--;\r\n\t\t\t\t\t\t// changed = 0 corresponds to increasing stats at 999 (or decreasing at 1).\r\n\t\t\t\t\t\tchanged = 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchanged = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (delta < 0) {\r\n\t\t\t\t\tif (this.modifiedStats![i] === 1) {\r\n\t\t\t\t\t\t// Minimum stat value\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.boosts[i]++;\r\n\t\t\t\t\t\t// changed = 0 corresponds to increasing stats at 999 (or decreasing at 1).\r\n\t\t\t\t\t\tchanged = 0;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchanged = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (changed) {\r\n\t\t\t\t\t// Recalculate the modified stat\r\n\t\t\t\t\tthis.modifiedStats![i] = this.storedStats[i];\r\n\t\t\t\t\tif (this.boosts[i] >= 0) {\r\n\t\t\t\t\t\tthis.modifyStat!(i, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[i]]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.modifyStat!(i, [100, 66, 50, 40, 33, 28, 25][-this.boosts[i]] / 100);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (delta > 0 && this.modifiedStats![i] > 999) {\r\n\t\t\t\t\t\t// Cap the stat at 999\r\n\t\t\t\t\t\tthis.modifiedStats![i] = 999;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn changed;\r\n\t\t},\r\n\t\tclearBoosts() {\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in this.boosts) {\r\n\t\t\t\tthis.boosts[i] = 0;\r\n\t\t\t\t// Recalculate the modified stat\r\n\t\t\t\tif (i === 'evasion' || i === 'accuracy') continue;\r\n\t\t\t\tthis.modifiedStats![i] = this.storedStats[i];\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\t// This function is the main one when running a move.\r\n\t\t// It deals with Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,MAAM,kBAAkB,oBAAI,IAAI;AAAA,EAC/B;AAAA,EAAc;AAAA,E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AAQ;AAEpC,iBAAS,KAAK,OAAO,gBAAgB,SAAS,IAAI;AAAA,MACnD;AACA,aAAO,KAAK,OAAO,SAAS,cAAc,SAAS,QAAQ,MAAM,IAAI;AACrE,UAAI,SAAS,WAAW,KAAK,QAAQ;AAEpC,iBAAS,KAAK,OAAO,gBAAgB,SAAS,IAAI;AAAA,MACnD;AAEA,UAAI,CAAC,eAAe,SAAS,KAAK,EAAE,KAAK,QAAQ,UAAU,aAAa;AAAG,gBAAQ,WAAW;AAE9F,YAAM,aAAa,KAAK,aAAa,gBAAgB,SAAS,QAAQ,YAAY;AAElF,UAAI,KAAK,OAAO,aAAa;AAC5B,YAAI,KAAK,OAAO,iBACd,CAAC,QAAQ,KAAK,IAAI,OAAO,CAAC,GAAG,YAAY,QAAQ,KAAK,IAAI,OAAO,CAAC,EAAE,UAAU,OAAO,eAAe;AAErG,kBAAQ,KAAK,WAAW;AAExB,cAAI,QAAQ,UAAU,YAAY,GAAG,QAAQ;AAAG,oBAAQ,eAAe,YAAY;AAGnF,cAAI,UAAU,OAAO,MAAM,GAAG;AAE7B,gBAAI,QAAQ,UAAU,cAAc;AAAG,sBAAQ,eAAe,cAAc;AAC5E,mBAAO,QAAQ,UAAU,qBAAqB;AAAA,UAC/C,OAAO;AACN,gBAAI,QAAQ,UAAU,cAAc;AAAG,mBAAK,OAAO,IAAI,iBAAiB,OAAO;AAC/E,gBAAI,QAAQ;ALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var typechart_exports = {};
|
||||
__export(typechart_exports, {
|
||||
TypeChart: () => TypeChart
|
||||
});
|
||||
module.exports = __toCommonJS(typechart_exports);
|
||||
const TypeChart = {
|
||||
bug: {
|
||||
damageTaken: {
|
||||
Bug: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 2,
|
||||
Fire: 1,
|
||||
Flying: 1,
|
||||
Ghost: 0,
|
||||
Grass: 2,
|
||||
Ground: 2,
|
||||
Ice: 0,
|
||||
Normal: 0,
|
||||
Poison: 1,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
fire: {
|
||||
damageTaken: {
|
||||
Bug: 2,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 0,
|
||||
Fire: 2,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 2,
|
||||
Ground: 1,
|
||||
Ice: 0,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Water: 1
|
||||
}
|
||||
},
|
||||
ghost: {
|
||||
damageTaken: {
|
||||
Bug: 2,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 3,
|
||||
Fire: 0,
|
||||
Flying: 0,
|
||||
Ghost: 1,
|
||||
Grass: 0,
|
||||
Ground: 0,
|
||||
Ice: 0,
|
||||
Normal: 3,
|
||||
Poison: 2,
|
||||
Psychic: 0,
|
||||
Rock: 0,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
ice: {
|
||||
damageTaken: {
|
||||
Bug: 0,
|
||||
Dark: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fairy: 0,
|
||||
Fighting: 1,
|
||||
Fire: 1,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 0,
|
||||
Ground: 0,
|
||||
Ice: 2,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Steel: 1,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
poison: {
|
||||
damageTaken: {
|
||||
psn: 3,
|
||||
tox: 3,
|
||||
Bug: 1,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 2,
|
||||
Fire: 0,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 2,
|
||||
Ground: 1,
|
||||
Ice: 0,
|
||||
Normal: 0,
|
||||
Poison: 2,
|
||||
Psychic: 1,
|
||||
Rock: 0,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
psychic: {
|
||||
damageTaken: {
|
||||
Bug: 1,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 2,
|
||||
Fire: 0,
|
||||
Flying: 0,
|
||||
Ghost: 3,
|
||||
Grass: 0,
|
||||
Ground: 0,
|
||||
Ice: 0,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 2,
|
||||
Rock: 0,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
dark: {
|
||||
inherit: true,
|
||||
isNonstandard: "Future"
|
||||
},
|
||||
steel: {
|
||||
inherit: true,
|
||||
isNonstandard: "Future"
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=typechart.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1/typechart.ts"],
|
||||
"sourcesContent": ["/**\r\n * Types were different on Gen 1.\r\n * We had no steel nor dark types and there were a couple of important differences:\r\n * Bug and Poison were weak to eachother\r\n * Ice was neutral to fire\r\n * Psychic was immune to ghost\r\n */\r\n\r\nexport const TypeChart: {[k: string]: ModdedTypeData | null} = {\r\n\tbug: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 1,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 2,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 1,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tfire: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 0,\r\n\t\t\tFire: 2,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tWater: 1,\r\n\t\t},\r\n\t},\r\n\tghost: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 3,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 1,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 3,\r\n\t\t\tPoison: 2,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tice: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 0,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFairy: 0,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tSteel: 1,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tpoison: {\r\n\t\tdamageTaken: {\r\n\t\t\tpsn: 3,\r\n\t\t\ttox: 3,\r\n\t\t\tBug: 1,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 2,\r\n\t\t\tPsychic: 1,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tpsychic: {\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 1,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 2,\r\n\t\t\tFire: 0,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 3,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 0,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 2,\r\n\t\t\tRock: 0,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tdark: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: 'Future',\r\n\t},\r\n\tsteel: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: 'Future',\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;A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QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,SAAS;AAAA,IACR,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
invulnerability: {
|
||||
// Dig/Fly
|
||||
name: "invulnerability",
|
||||
onInvulnerability(target, source, move) {
|
||||
if (target === source)
|
||||
return true;
|
||||
if (move.id === "swift" && target.volatiles["substitute"] || move.id === "transform")
|
||||
return true;
|
||||
this.add("-message", "The foe " + target.name + " can't be hit while invulnerable!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1jpn/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tinvulnerability: {\r\n\t\t// Dig/Fly\r\n\t\tname: 'invulnerability',\r\n\t\tonInvulnerability(target, source, move) {\r\n\t\t\tif (target === source) return true;\r\n\t\t\tif ((move.id === 'swift' && target.volatiles['substitute']) || move.id === 'transform') return true;\r\n\t\t\tthis.add('-message', 'The foe ' + target.name + ' can\\'t be hit while invulnerable!');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,iBAAiB;AAAA;AAAA,IAEhB,MAAM;AAAA,IACN,kBAAkB,QAAQ,QAAQ,MAAM;AACvC,UAAI,WAAW;AAAQ,eAAO;AAC9B,UAAK,KAAK,OAAO,WAAW,OAAO,UAAU,YAAY,KAAM,KAAK,OAAO;AAAa,eAAO;AAC/F,WAAK,IAAI,YAAY,aAAa,OAAO,OAAO,mCAAoC;AACpF,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var moves_exports = {};
|
||||
__export(moves_exports, {
|
||||
Moves: () => Moves
|
||||
});
|
||||
module.exports = __toCommonJS(moves_exports);
|
||||
const Moves = {
|
||||
blizzard: {
|
||||
inherit: true,
|
||||
secondary: {
|
||||
chance: 30,
|
||||
status: "frz"
|
||||
}
|
||||
},
|
||||
substitute: {
|
||||
inherit: true,
|
||||
condition: {
|
||||
onStart(target) {
|
||||
this.add("-start", target, "Substitute");
|
||||
this.effectState.hp = Math.floor(target.maxhp / 4) + 1;
|
||||
delete target.volatiles["partiallytrapped"];
|
||||
},
|
||||
onTryHitPriority: -1,
|
||||
onTryHit(target, source, move) {
|
||||
if (move.drain) {
|
||||
this.add("-miss", source);
|
||||
this.hint("In the Japanese versions of Gen 1, draining moves always miss against substitutes.");
|
||||
return null;
|
||||
}
|
||||
if (move.category === "Status") {
|
||||
const subBlocked = ["lockon", "meanlook", "mindreader", "nightmare"];
|
||||
if (move.status && ["psn", "tox"].includes(move.status) || move.boosts && target !== source || move.volatileStatus === "confusion" || subBlocked.includes(move.id)) {
|
||||
return false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (move.volatileStatus && target === source)
|
||||
return;
|
||||
let uncappedDamage = move.hit > 1 ? this.lastDamage : this.actions.getDamage(source, target, move);
|
||||
if (!uncappedDamage && uncappedDamage !== 0)
|
||||
return null;
|
||||
uncappedDamage = this.runEvent("SubDamage", target, source, move, uncappedDamage);
|
||||
if (!uncappedDamage && uncappedDamage !== 0)
|
||||
return uncappedDamage;
|
||||
this.lastDamage = uncappedDamage;
|
||||
target.volatiles["substitute"].hp -= uncappedDamage > target.volatiles["substitute"].hp ? target.volatiles["substitute"].hp : uncappedDamage;
|
||||
if (target.volatiles["substitute"].hp <= 0) {
|
||||
target.removeVolatile("substitute");
|
||||
target.subFainted = true;
|
||||
} else {
|
||||
this.add("-activate", target, "Substitute", "[damage]");
|
||||
}
|
||||
if (target.volatiles["substitute"]) {
|
||||
if (move.recoil) {
|
||||
this.damage(Math.round(uncappedDamage * move.recoil[0] / move.recoil[1]), source, target, "recoil");
|
||||
}
|
||||
if (move.drain) {
|
||||
this.heal(Math.ceil(uncappedDamage * move.drain[0] / move.drain[1]), source, target, "drain");
|
||||
}
|
||||
}
|
||||
this.runEvent("AfterSubDamage", target, source, move, uncappedDamage);
|
||||
const lastAttackedBy = target.getLastAttackedBy();
|
||||
if (!lastAttackedBy) {
|
||||
target.attackedBy.push({ source, move: move.id, damage: uncappedDamage, thisTurn: true, slot: source.getSlot() });
|
||||
} else {
|
||||
lastAttackedBy.move = move.id;
|
||||
lastAttackedBy.damage = uncappedDamage;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
onAccuracy(accuracy, target, source, move) {
|
||||
if (move.id === "swift") {
|
||||
return true;
|
||||
}
|
||||
return accuracy;
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "Substitute");
|
||||
}
|
||||
}
|
||||
},
|
||||
swift: {
|
||||
inherit: true,
|
||||
accuracy: 100
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=moves.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1jpn/moves.ts"],
|
||||
"sourcesContent": ["/**\r\n * The japanese version of Blizzard in Gen 1 had a 30% chance to freeze\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\tblizzard: {\r\n\t\tinherit: true,\r\n\t\tsecondary: {\r\n\t\t\tchance: 30,\r\n\t\t\tstatus: 'frz',\r\n\t\t},\r\n\t},\r\n\tsubstitute: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(target) {\r\n\t\t\t\tthis.add('-start', target, 'Substitute');\r\n\t\t\t\tthis.effectState.hp = Math.floor(target.maxhp / 4) + 1;\r\n\t\t\t\tdelete target.volatiles['partiallytrapped'];\r\n\t\t\t},\r\n\t\t\tonTryHitPriority: -1,\r\n\t\t\tonTryHit(target, source, move) {\r\n\t\t\t\tif (move.drain) {\r\n\t\t\t\t\tthis.add('-miss', source);\r\n\t\t\t\t\tthis.hint(\"In the Japanese versions of Gen 1, draining moves always miss against substitutes.\");\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tif (move.category === 'Status') {\r\n\t\t\t\t\t// In gen 1 it only blocks:\r\n\t\t\t\t\t// poison, confusion, secondary effect confusion, stat reducing moves and Leech Seed.\r\n\t\t\t\t\tconst subBlocked = ['lockon', 'meanlook', 'mindreader', 'nightmare'];\r\n\t\t\t\t\tif ((move.status && ['psn', 'tox'].includes(move.status)) || (move.boosts && target !== source) ||\r\n\t\t\t\t\t\tmove.volatileStatus === 'confusion' || subBlocked.includes(move.id)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (move.volatileStatus && target === source) return;\r\n\t\t\t\t// NOTE: In future generations the damage is capped to the remaining HP of the\r\n\t\t\t\t// Substitute, here we deliberately use the uncapped damage when tracking lastDamage etc.\r\n\t\t\t\t// Also, multi-hit moves must always deal the same damage as the first hit for any subsequent hits\r\n\t\t\t\tlet uncappedDamage = move.hit > 1 ? this.lastDamage : this.actions.getDamage(source, target, move);\r\n\t\t\t\tif (!uncappedDamage && uncappedDamage !== 0) return null;\r\n\t\t\t\tuncappedDamage = this.runEvent('SubDamage', target, source, move, uncappedDamage);\r\n\t\t\t\tif (!uncappedDamage && uncappedDamage !== 0) return uncappedDamage;\r\n\t\t\t\tthis.lastDamage = uncappedDamage;\r\n\t\t\t\ttarget.volatiles['substitute'].hp -= uncappedDamage > target.volatiles['substitute'].hp ?\r\n\t\t\t\t\ttarget.volatiles['substitute'].hp : uncappedDamage;\r\n\t\t\t\tif (target.volatiles['substitute'].hp <= 0) {\r\n\t\t\t\t\ttarget.removeVolatile('substitute');\r\n\t\t\t\t\ttarget.subFainted = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.add('-activate', target, 'Substitute', '[damage]');\r\n\t\t\t\t}\r\n\t\t\t\t// Drain/recoil does not happen if the substitute breaks\r\n\t\t\t\tif (target.volatiles['substitute']) {\r\n\t\t\t\t\tif (move.recoil) {\r\n\t\t\t\t\t\tthis.damage(Math.round(uncappedDamage * move.recoil[0] / move.recoil[1]), source, target, 'recoil');\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (move.drain) {\r\n\t\t\t\t\t\tthis.heal(Math.ceil(uncappedDamage * move.drain[0] / move.drain[1]), source, target, 'drain');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.runEvent('AfterSubDamage', target, source, move, uncappedDamage);\r\n\t\t\t\t// Add here counter damage\r\n\t\t\t\tconst lastAttackedBy = target.getLastAttackedBy();\r\n\t\t\t\tif (!lastAttackedBy) {\r\n\t\t\t\t\ttarget.attackedBy.push({source: source, move: move.id, damage: uncappedDamage, thisTurn: true, slot: source.getSlot()});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlastAttackedBy.move = move.id;\r\n\t\t\t\t\tlastAttackedBy.damage = uncappedDamage;\r\n\t\t\t\t}\r\n\t\t\t\treturn 0;\r\n\t\t\t},\r\n\t\t\tonAccuracy(accuracy, target, source, move) {\r\n\t\t\t\tif (move.id === 'swift') {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn accuracy;\r\n\t\t\t},\r\n\t\t\tonEnd(target) {\r\n\t\t\t\tthis.add('-end', target, 'Substitute');\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tswift: {\r\n\t\tinherit: true,\r\n\t\taccuracy: 100,\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,QAAuC;AAAA,EACnD,UAAU;AAAA,IACT,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ;AAAA,MACR,QAAQ;AAAA,IACT;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,MACV,QAAQ,QAAQ;AACf,aAAK,IAAI,UAAU,QAAQ,YAAY;AACvC,aAAK,YAAY,KAAK,KAAK,MAAM,OAAO,QAAQ,CAAC,IAAI;AACrD,eAAO,OAAO,UAAU,kBAAkB;AAAA,MAC3C;AAAA,MACA,kBAAkB;AAAA,MAClB,SAAS,QAAQ,QAAQ,MAAM;AAC9B,YAAI,KAAK,OAAO;AACf,eAAK,IAAI,SAAS,MAAM;AACxB,eAAK,KAAK,oFAAoF;AAC9F,iBAAO;AAAA,QACR;AACA,YAAI,KAAK,aAAa,UAAU;AAG/B,gBAAM,aAAa,CAAC,UAAU,YAAY,cAAc,WAAW;AACnE,cAAK,KAAK,UAAU,CAAC,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MAAM,KAAK,IAAI,QAAQ,gBAAgB,UAAU,MAAM,MAAM,OAAO,QAAQ,EAAC,CAAC;AAAA,QACvH,OAAO;AACN,yBAAe,OAAO,KAAK;AAC3B,yBAAe,SAAS;AAAA,QACzB;AACA,eAAO;AAAA,MACR;AAAA,MACA,WAAW,UAAU,QAAQ,QAAQ,MAAM;AAC1C,YAAI,KAAK,OAAO,SAAS;AACxB,iBAAO;AAAA,QACR;AACA,eAAO;AAAA,MACR;AAAA,MACA,MAAM,QAAQ;AACb,aAAK,IAAI,QAAQ,QAAQ,YAAY;AAAA,MACtC;AAAA,IACD;AAAA,EACD;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,UAAU;AAAA,EACX;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Desync Clause Mod", "Sleep Clause Mod", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Moves Clause", "Endless Battle Clause", "HP Percentage Mod", "Cancel Mod"],
|
||||
banlist: ["Dig", "Fly"]
|
||||
},
|
||||
nintendocup1997movelegality: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Nintendo Cup 1997 Move Legality",
|
||||
desc: "Bans move combinations on Pok\xE9mon that would only be obtainable in Pok\xE9mon Yellow.",
|
||||
banlist: [
|
||||
// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/
|
||||
// https://www.smogon.com/forums/threads/rby-tradebacks-bug-report-thread.3524844/post-9235903
|
||||
// Due to Yellow learnset modifications not applying, there are a few more incompatibilities than usual.
|
||||
"Nidoking + Fury Attack + Thrash",
|
||||
"Nidoking + Double Kick + Thrash",
|
||||
"Butterfree + Tackle + Harden",
|
||||
"Butterfree + String Shot + Harden",
|
||||
"Exeggutor + Poison Powder + Stomp",
|
||||
"Exeggutor + Sleep Powder + Stomp",
|
||||
"Exeggutor + Stun Spore + Stomp",
|
||||
"Eevee + Tackle + Growl",
|
||||
"Vaporeon + Tackle + Growl",
|
||||
"Jolteon + Tackle + Growl",
|
||||
"Jolteon + Focus Energy + Thunder Shock",
|
||||
"Flareon + Tackle + Growl",
|
||||
"Flareon + Focus Energy + Ember"
|
||||
],
|
||||
onValidateSet(set) {
|
||||
const rgb97Legality = {
|
||||
charizard: { fly: "illegal" },
|
||||
butterfree: {
|
||||
confusion: 12,
|
||||
poisonpowder: 15,
|
||||
stunspore: 16,
|
||||
sleeppowder: 17,
|
||||
supersonic: 21,
|
||||
psybeam: 34,
|
||||
flash: "illegal",
|
||||
gust: "illegal"
|
||||
},
|
||||
fearow: { payday: "illegal" },
|
||||
pikachu: { quickattack: 16, tailwhip: "illegal", slam: "illegal", lightscreen: "illegal" },
|
||||
raichu: { quickattack: 16, tailwhip: "illegal", slam: "illegal", lightscreen: "illegal" },
|
||||
nidoranf: { doublekick: 43 },
|
||||
nidorina: { doublekick: 43 },
|
||||
nidoqueen: { doublekick: 43 },
|
||||
nidoranm: { doublekick: 43 },
|
||||
nidorino: { doublekick: 43 },
|
||||
nidoking: { doublekick: 43 },
|
||||
venonat: { poisonpowder: 24, supersonic: "illegal", confusion: "illegal" },
|
||||
venomoth: { poisonpowder: 24, supersonic: "illegal" },
|
||||
diglett: { cut: "illegal" },
|
||||
dugtrio: { cut: "illegal" },
|
||||
psyduck: { amnesia: "illegal" },
|
||||
golduck: { amnesia: "illegal" },
|
||||
mankey: { lowkick: "illegal", screech: "illegal" },
|
||||
primeape: { lowkick: "illegal", screech: "illegal" },
|
||||
kadabra: { kinesis: "illegal" },
|
||||
alakazam: { kinesis: "illegal" },
|
||||
rapidash: { payday: "illegal" },
|
||||
cubone: { tailwhip: "illegal", headbutt: "illegal" },
|
||||
marowak: { tailwhip: "illegal", headbutt: "illegal" },
|
||||
chansey: { tailwhip: "illegal" },
|
||||
tangela: { absorb: 29, growth: 49, vinewhip: "illegal" },
|
||||
scyther: { wingattack: "illegal" },
|
||||
pinsir: { bind: "illegal" },
|
||||
magikarp: { dragonrage: "illegal" },
|
||||
eevee: { quickattack: 27, tailwhip: 31, bite: 37, growl: "illegal", focusenergy: "illegal" },
|
||||
vaporeon: {
|
||||
quickattack: 27,
|
||||
tailwhip: 31,
|
||||
watergun: 31,
|
||||
bite: 37,
|
||||
acidarmor: 42,
|
||||
haze: 44,
|
||||
mist: 48,
|
||||
hydropump: 54,
|
||||
growl: "illegal",
|
||||
focusenergy: "illegal",
|
||||
aurorabeam: "illegal"
|
||||
},
|
||||
jolteon: {
|
||||
quickattack: 27,
|
||||
tailwhip: 31,
|
||||
thundershock: 31,
|
||||
bite: 37,
|
||||
doublekick: 42,
|
||||
agility: 44,
|
||||
pinmissile: 48,
|
||||
growl: "illegal",
|
||||
focusenergy: "illegal"
|
||||
},
|
||||
flareon: {
|
||||
quickattack: 27,
|
||||
tailwhip: 31,
|
||||
ember: 31,
|
||||
bite: 37,
|
||||
leer: 42,
|
||||
firespin: 44,
|
||||
flamethrower: 54,
|
||||
growl: "illegal",
|
||||
focusenergy: "illegal",
|
||||
smog: "illegal"
|
||||
}
|
||||
};
|
||||
const species = this.dex.species.get(set.species || set.name);
|
||||
const legalityList = rgb97Legality[species.id];
|
||||
if (!legalityList)
|
||||
return;
|
||||
const problems = [];
|
||||
if (set.moves) {
|
||||
for (const moveid of set.moves.map(this.toID)) {
|
||||
if (legalityList[moveid]) {
|
||||
if (legalityList[moveid] === "illegal") {
|
||||
problems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} in 1997.`);
|
||||
} else if (set.level < legalityList[moveid]) {
|
||||
problems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} before level ${legalityList[moveid]} in 1997.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return problems;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1jpn/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Desync Clause Mod', 'Sleep Clause Mod', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Endless Battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t\tbanlist: ['Dig', 'Fly'],\r\n\t},\r\n\tnintendocup1997movelegality: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Nintendo Cup 1997 Move Legality',\r\n\t\tdesc: \"Bans move combinations on Pok\\u00e9mon that would only be obtainable in Pok\\u00e9mon Yellow.\",\r\n\t\tbanlist: [\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-tradebacks-bug-report-thread.3524844/post-9235903\r\n\t\t\t// Due to Yellow learnset modifications not applying, there are a few more incompatibilities than usual.\r\n\t\t\t'Nidoking + Fury Attack + Thrash', 'Nidoking + Double Kick + Thrash',\r\n\t\t\t'Butterfree + Tackle + Harden', 'Butterfree + String Shot + Harden',\r\n\t\t\t'Exeggutor + Poison Powder + Stomp', 'Exeggutor + Sleep Powder + Stomp', 'Exeggutor + Stun Spore + Stomp',\r\n\t\t\t'Eevee + Tackle + Growl',\r\n\t\t\t'Vaporeon + Tackle + Growl',\r\n\t\t\t'Jolteon + Tackle + Growl', 'Jolteon + Focus Energy + Thunder Shock',\r\n\t\t\t'Flareon + Tackle + Growl', 'Flareon + Focus Energy + Ember',\r\n\t\t],\r\n\t\tonValidateSet(set) {\r\n\t\t\tconst rgb97Legality: {[speciesid: string]: {[moveid: string]: 'illegal' | number}} = {\r\n\t\t\t\tcharizard: {fly: 'illegal'},\r\n\t\t\t\tbutterfree: {\r\n\t\t\t\t\tconfusion: 12, poisonpowder: 15, stunspore: 16, sleeppowder: 17, supersonic: 21,\r\n\t\t\t\t\tpsybeam: 34, flash: 'illegal', gust: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tfearow: {payday: 'illegal'},\r\n\t\t\t\tpikachu: {quickattack: 16, tailwhip: 'illegal', slam: 'illegal', lightscreen: 'illegal'},\r\n\t\t\t\traichu: {quickattack: 16, tailwhip: 'illegal', slam: 'illegal', lightscreen: 'illegal'},\r\n\t\t\t\tnidoranf: {doublekick: 43},\r\n\t\t\t\tnidorina: {doublekick: 43},\r\n\t\t\t\tnidoqueen: {doublekick: 43},\r\n\t\t\t\tnidoranm: {doublekick: 43},\r\n\t\t\t\tnidorino: {doublekick: 43},\r\n\t\t\t\tnidoking: {doublekick: 43},\r\n\t\t\t\tvenonat: {poisonpowder: 24, supersonic: 'illegal', confusion: 'illegal'},\r\n\t\t\t\tvenomoth: {poisonpowder: 24, supersonic: 'illegal'},\r\n\t\t\t\tdiglett: {cut: 'illegal'},\r\n\t\t\t\tdugtrio: {cut: 'illegal'},\r\n\t\t\t\tpsyduck: {amnesia: 'illegal'},\r\n\t\t\t\tgolduck: {amnesia: 'illegal'},\r\n\t\t\t\tmankey: {lowkick: 'illegal', screech: 'illegal'},\r\n\t\t\t\tprimeape: {lowkick: 'illegal', screech: 'illegal'},\r\n\t\t\t\tkadabra: {kinesis: 'illegal'},\r\n\t\t\t\talakazam: {kinesis: 'illegal'},\r\n\t\t\t\trapidash: {payday: 'illegal'},\r\n\t\t\t\tcubone: {tailwhip: 'illegal', headbutt: 'illegal'},\r\n\t\t\t\tmarowak: {tailwhip: 'illegal', headbutt: 'illegal'},\r\n\t\t\t\tchansey: {tailwhip: 'illegal'},\r\n\t\t\t\ttangela: {absorb: 29, growth: 49, vinewhip: 'illegal'},\r\n\t\t\t\tscyther: {wingattack: 'illegal'},\r\n\t\t\t\tpinsir: {bind: 'illegal'},\r\n\t\t\t\tmagikarp: {dragonrage: 'illegal'},\r\n\t\t\t\teevee: {quickattack: 27, tailwhip: 31, bite: 37, growl: 'illegal', focusenergy: 'illegal'},\r\n\t\t\t\tvaporeon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, watergun: 31, bite: 37, acidarmor: 42, haze: 44, mist: 48, hydropump: 54,\r\n\t\t\t\t\tgrowl: 'illegal', focusenergy: 'illegal', aurorabeam: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tjolteon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, thundershock: 31, bite: 37, doublekick: 42, agility: 44,\r\n\t\t\t\t\tpinmissile: 48, growl: 'illegal', focusenergy: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t\tflareon: {\r\n\t\t\t\t\tquickattack: 27, tailwhip: 31, ember: 31, bite: 37, leer: 42, firespin: 44, flamethrower: 54,\r\n\t\t\t\t\tgrowl: 'illegal', focusenergy: 'illegal', smog: 'illegal',\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\t\tconst species = this.dex.species.get(set.species || set.name);\r\n\t\t\tconst legalityList = rgb97Legality[species.id];\r\n\t\t\tif (!legalityList) return;\r\n\t\t\tconst problems = [];\r\n\t\t\tif (set.moves) {\r\n\t\t\t\tfor (const moveid of set.moves.map(this.toID)) {\r\n\t\t\t\t\tif (legalityList[moveid]) {\r\n\t\t\t\t\t\tif (legalityList[moveid] === 'illegal') {\r\n\t\t\t\t\t\t\tproblems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} in 1997.`);\r\n\t\t\t\t\t\t} else if (set.level < legalityList[moveid]) {\r\n\t\t\t\t\t\t\tproblems.push(`${set.species} can't learn ${this.dex.moves.get(moveid).name} before level ${legalityList[moveid]} in 1997.`);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn problems;\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,qBAAqB,oBAAoB,qBAAqB,kBAAkB,eAAe,wBAAwB,yBAAyB,qBAAqB,YAAY;AAAA,IACzM,SAAS,CAAC,OAAO,KAAK;AAAA,EACvB;AAAA,EACA,6BAA6B;AAAA,IAC5B,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA;AAAA;AAAA;AAAA,MAIR;AAAA,MAAmC;AAAA,MACnC;AAAA,MAAgC;AAAA,MAChC;AAAA,MAAqC;AAAA,MAAoC;AAAA,MACzE;AAAA,MACA;AAAA,MACA;AAAA,MAA4B;AAAA,MAC5B;AAAA,MAA4B;AAAA,IAC7B;AAAA,IACA,cAAc,KAAK;AAClB,YAAM,gBAA+E;AAAA,QACpF,WAAW,EAAC,KAAK,UAAS;AAAA,QAC1B,YAAY;AAAA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aAAa,MAAM,GAAG;AAC5C,uBAAS,KAAK,GAAG,IAAI,uBAAuB,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE,qBAAqB,aAAa,MAAM,YAAY;AAAA,YAC5H;AAAA,UACD;AAAA,QACD;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
inherit: "gen1",
|
||||
gen: 1
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1jpn/scripts.ts"],
|
||||
"sourcesContent": ["export const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen1',\r\n\tgen: 1,\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AACN;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "brn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 2,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "par");
|
||||
},
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(63, 256)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
pokemon.removeVolatile("bide");
|
||||
pokemon.removeVolatile("lockedmove");
|
||||
pokemon.removeVolatile("twoturnmove");
|
||||
pokemon.removeVolatile("invulnerability");
|
||||
pokemon.removeVolatile("partialtrappinglock");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.startTime = this.random(1, 4);
|
||||
this.effectState.time = this.effectState.startTime;
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.statusState.time--;
|
||||
this.add("cant", pokemon, "slp");
|
||||
pokemon.lastMove = null;
|
||||
return false;
|
||||
},
|
||||
onAfterMoveSelf(pokemon) {
|
||||
if (pokemon.statusState.time <= 0)
|
||||
pokemon.cureStatus();
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
name: "frz",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "frz");
|
||||
},
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
this.add("cant", pokemon, "frz");
|
||||
pokemon.lastMove = null;
|
||||
return false;
|
||||
},
|
||||
onHit(target, source, move) {
|
||||
if (move.type === "Fire" && move.category !== "Status") {
|
||||
target.cureStatus();
|
||||
}
|
||||
}
|
||||
},
|
||||
psn: {
|
||||
name: "psn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "psn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 2,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
confusion: {
|
||||
inherit: true,
|
||||
onStart(target) {
|
||||
this.add("-start", target, "confusion");
|
||||
this.effectState.time = this.random(2, 6);
|
||||
}
|
||||
},
|
||||
flinch: {
|
||||
inherit: true,
|
||||
onStart() {
|
||||
}
|
||||
},
|
||||
partiallytrapped: {
|
||||
name: "partiallytrapped",
|
||||
duration: 2,
|
||||
onBeforeMovePriority: 1,
|
||||
onStart(target, source, effect) {
|
||||
this.add("-activate", target, "move: " + effect, "[of] " + source);
|
||||
},
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.effectState.source && (!this.effectState.source.isActive || this.effectState.source.hp <= 0)) {
|
||||
pokemon.removeVolatile("partiallytrapped");
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "partiallytrapped");
|
||||
return false;
|
||||
},
|
||||
onEnd(pokemon) {
|
||||
this.add("-end", pokemon, this.effectState.sourceEffect, "[partiallytrapped]");
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1stadium/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'brn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'par');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(63, 256)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\tpokemon.removeVolatile('lockedmove');\r\n\t\t\t\tpokemon.removeVolatile('twoturnmove');\r\n\t\t\t\tpokemon.removeVolatile('invulnerability');\r\n\t\t\t\tpokemon.removeVolatile('partialtrappinglock');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-3 turns\r\n\t\t\tthis.effectState.startTime = this.random(1, 4);\r\n\t\t\tthis.effectState.time = this.effectState.startTime;\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tif (pokemon.statusState.time <= 0) pokemon.cureStatus();\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'frz');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\tpokemon.lastMove = null;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonHit(target, source, move) {\r\n\t\t\tif (move.type === 'Fire' && move.category !== 'Status') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpsn: {\r\n\t\tname: 'psn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'psn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 2,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\tconfusion: {\r\n\t\tinherit: true,\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-start', target, 'confusion');\r\n\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t},\r\n\t},\r\n\tflinch: {\r\n\t\tinherit: true,\r\n\t\tonStart() {},\r\n\t},\r\n\tpartiallytrapped: {\r\n\t\tname: 'partiallytrapped',\r\n\t\tduration: 2,\r\n\t\tonBeforeMovePriority: 1,\r\n\t\tonStart(target, source, effect) {\r\n\t\t\tthis.add('-activate', target, 'move: ' + effect, '[of] ' + source);\r\n\t\t},\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.effectState.source && (!this.effectState.source.isActive || this.effectState.source.hp <= 0)) {\r\n\t\t\t\tpokemon.removeVolatile('partiallytrapped');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'partiallytrapped');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonEnd(p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,EAAE,GAAG,CAAC,CAAC;AAAA,IAClE;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,QAAQ,QAAQ;AACf,WAAK,IAAI,UAAU,QAAQ,WAAW;AACtC,WAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AAAA,IACzC;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,IAAC;AAAA,EACZ;AAAA,EACA,kBAAkB;AAAA,IACjB,MAAM;AAAA,IACN,UAAU;AAAA,IACV,sBAAsB;AAAA,IACtB,QAAQ,QAAQ,QAAQ,QAAQ;AAC/B,WAAK,IAAI,aAAa,QAAQ,WAAW,QAAQ,UAAU,MAAM;AAAA,IAClE;AAAA,IACA,aAAa,SAAS;AACrB,UAAI,KAAK,YAAY,WAAW,CAAC,KAAK,YAAY,OAAO,YAAY,KAAK,YAAY,OAAO,MAAM,IAAI;AACtG,gBAAQ,eAAe,kBAAkB;AACzC;AAAA,MACD;AACA,WAAK,IAAI,QAAQ,SAAS,kBAAkB;AAC5C,aAAO;AAAA,IACR;AAAA,IACA,MAAM,SAAS;AACd,WAAK,IAAI,QAAQ,SAAS,KAAK,YAAY,cAAc,oBAAoB;AAAA,IAC9E;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,483 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var formats_data_exports = {};
|
||||
__export(formats_data_exports, {
|
||||
FormatsData: () => FormatsData
|
||||
});
|
||||
module.exports = __toCommonJS(formats_data_exports);
|
||||
const FormatsData = {
|
||||
bulbasaur: {
|
||||
tier: "LC"
|
||||
},
|
||||
ivysaur: {
|
||||
tier: "NFE"
|
||||
},
|
||||
venusaur: {
|
||||
tier: "UU"
|
||||
},
|
||||
charmander: {
|
||||
tier: "LC"
|
||||
},
|
||||
charmeleon: {
|
||||
tier: "NFE"
|
||||
},
|
||||
charizard: {
|
||||
tier: "UU"
|
||||
},
|
||||
squirtle: {
|
||||
tier: "LC"
|
||||
},
|
||||
wartortle: {
|
||||
tier: "NFE"
|
||||
},
|
||||
blastoise: {
|
||||
tier: "UU"
|
||||
},
|
||||
caterpie: {
|
||||
tier: "LC"
|
||||
},
|
||||
metapod: {
|
||||
tier: "NFE"
|
||||
},
|
||||
butterfree: {
|
||||
tier: "UU"
|
||||
},
|
||||
weedle: {
|
||||
tier: "LC"
|
||||
},
|
||||
kakuna: {
|
||||
tier: "NFE"
|
||||
},
|
||||
beedrill: {
|
||||
tier: "UU"
|
||||
},
|
||||
pidgey: {
|
||||
tier: "LC"
|
||||
},
|
||||
pidgeotto: {
|
||||
tier: "NFE"
|
||||
},
|
||||
pidgeot: {
|
||||
tier: "UU"
|
||||
},
|
||||
rattata: {
|
||||
tier: "LC"
|
||||
},
|
||||
raticate: {
|
||||
tier: "UU"
|
||||
},
|
||||
spearow: {
|
||||
tier: "LC"
|
||||
},
|
||||
fearow: {
|
||||
tier: "UU"
|
||||
},
|
||||
ekans: {
|
||||
tier: "LC"
|
||||
},
|
||||
arbok: {
|
||||
tier: "UU"
|
||||
},
|
||||
pikachu: {
|
||||
tier: "LC"
|
||||
},
|
||||
raichu: {
|
||||
tier: "UU"
|
||||
},
|
||||
sandshrew: {
|
||||
tier: "LC"
|
||||
},
|
||||
sandslash: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranf: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorina: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoqueen: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranm: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorino: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoking: {
|
||||
tier: "UU"
|
||||
},
|
||||
clefairy: {
|
||||
tier: "NFE"
|
||||
},
|
||||
clefable: {
|
||||
tier: "UU"
|
||||
},
|
||||
vulpix: {
|
||||
tier: "LC"
|
||||
},
|
||||
ninetales: {
|
||||
tier: "UU"
|
||||
},
|
||||
jigglypuff: {
|
||||
tier: "LC"
|
||||
},
|
||||
wigglytuff: {
|
||||
tier: "UU"
|
||||
},
|
||||
zubat: {
|
||||
tier: "LC"
|
||||
},
|
||||
golbat: {
|
||||
tier: "UU"
|
||||
},
|
||||
oddish: {
|
||||
tier: "LC"
|
||||
},
|
||||
gloom: {
|
||||
tier: "NFE"
|
||||
},
|
||||
vileplume: {
|
||||
tier: "UU"
|
||||
},
|
||||
paras: {
|
||||
tier: "LC"
|
||||
},
|
||||
parasect: {
|
||||
tier: "UU"
|
||||
},
|
||||
venonat: {
|
||||
tier: "LC"
|
||||
},
|
||||
venomoth: {
|
||||
tier: "UU"
|
||||
},
|
||||
diglett: {
|
||||
tier: "LC"
|
||||
},
|
||||
dugtrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
meowth: {
|
||||
tier: "LC"
|
||||
},
|
||||
persian: {
|
||||
tier: "OU"
|
||||
},
|
||||
psyduck: {
|
||||
tier: "LC"
|
||||
},
|
||||
golduck: {
|
||||
tier: "UU"
|
||||
},
|
||||
mankey: {
|
||||
tier: "LC"
|
||||
},
|
||||
primeape: {
|
||||
tier: "UU"
|
||||
},
|
||||
growlithe: {
|
||||
tier: "LC"
|
||||
},
|
||||
arcanine: {
|
||||
tier: "UU"
|
||||
},
|
||||
poliwag: {
|
||||
tier: "LC"
|
||||
},
|
||||
poliwhirl: {
|
||||
tier: "NFE"
|
||||
},
|
||||
poliwrath: {
|
||||
tier: "UU"
|
||||
},
|
||||
abra: {
|
||||
tier: "LC"
|
||||
},
|
||||
kadabra: {
|
||||
tier: "UU"
|
||||
},
|
||||
alakazam: {
|
||||
tier: "OU"
|
||||
},
|
||||
machop: {
|
||||
tier: "LC"
|
||||
},
|
||||
machoke: {
|
||||
tier: "NFE"
|
||||
},
|
||||
machamp: {
|
||||
tier: "UU"
|
||||
},
|
||||
bellsprout: {
|
||||
tier: "LC"
|
||||
},
|
||||
weepinbell: {
|
||||
tier: "NFE"
|
||||
},
|
||||
victreebel: {
|
||||
tier: "UU"
|
||||
},
|
||||
tentacool: {
|
||||
tier: "LC"
|
||||
},
|
||||
tentacruel: {
|
||||
tier: "UU"
|
||||
},
|
||||
geodude: {
|
||||
tier: "LC"
|
||||
},
|
||||
graveler: {
|
||||
tier: "NFE"
|
||||
},
|
||||
golem: {
|
||||
tier: "OU"
|
||||
},
|
||||
ponyta: {
|
||||
tier: "LC"
|
||||
},
|
||||
rapidash: {
|
||||
tier: "UU"
|
||||
},
|
||||
slowpoke: {
|
||||
tier: "LC"
|
||||
},
|
||||
slowbro: {
|
||||
tier: "OU"
|
||||
},
|
||||
magnemite: {
|
||||
tier: "LC"
|
||||
},
|
||||
magneton: {
|
||||
tier: "UU"
|
||||
},
|
||||
farfetchd: {
|
||||
tier: "UU"
|
||||
},
|
||||
doduo: {
|
||||
tier: "LC"
|
||||
},
|
||||
dodrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
seel: {
|
||||
tier: "LC"
|
||||
},
|
||||
dewgong: {
|
||||
tier: "UU"
|
||||
},
|
||||
grimer: {
|
||||
tier: "LC"
|
||||
},
|
||||
muk: {
|
||||
tier: "UU"
|
||||
},
|
||||
shellder: {
|
||||
tier: "LC"
|
||||
},
|
||||
cloyster: {
|
||||
tier: "OU"
|
||||
},
|
||||
gastly: {
|
||||
tier: "LC"
|
||||
},
|
||||
haunter: {
|
||||
tier: "UU"
|
||||
},
|
||||
gengar: {
|
||||
tier: "OU"
|
||||
},
|
||||
onix: {
|
||||
tier: "UU"
|
||||
},
|
||||
drowzee: {
|
||||
tier: "LC"
|
||||
},
|
||||
hypno: {
|
||||
tier: "UU"
|
||||
},
|
||||
krabby: {
|
||||
tier: "LC"
|
||||
},
|
||||
kingler: {
|
||||
tier: "UU"
|
||||
},
|
||||
voltorb: {
|
||||
tier: "LC"
|
||||
},
|
||||
electrode: {
|
||||
tier: "UU"
|
||||
},
|
||||
exeggcute: {
|
||||
tier: "LC"
|
||||
},
|
||||
exeggutor: {
|
||||
tier: "OU"
|
||||
},
|
||||
cubone: {
|
||||
tier: "LC"
|
||||
},
|
||||
marowak: {
|
||||
tier: "UU"
|
||||
},
|
||||
hitmonlee: {
|
||||
tier: "UU"
|
||||
},
|
||||
hitmonchan: {
|
||||
tier: "UU"
|
||||
},
|
||||
lickitung: {
|
||||
tier: "UU"
|
||||
},
|
||||
koffing: {
|
||||
tier: "LC"
|
||||
},
|
||||
weezing: {
|
||||
tier: "UU"
|
||||
},
|
||||
rhyhorn: {
|
||||
tier: "LC"
|
||||
},
|
||||
rhydon: {
|
||||
tier: "OU"
|
||||
},
|
||||
chansey: {
|
||||
tier: "OU"
|
||||
},
|
||||
tangela: {
|
||||
tier: "UU"
|
||||
},
|
||||
kangaskhan: {
|
||||
tier: "OU"
|
||||
},
|
||||
horsea: {
|
||||
tier: "LC"
|
||||
},
|
||||
seadra: {
|
||||
tier: "UU"
|
||||
},
|
||||
goldeen: {
|
||||
tier: "LC"
|
||||
},
|
||||
seaking: {
|
||||
tier: "UU"
|
||||
},
|
||||
staryu: {
|
||||
tier: "LC"
|
||||
},
|
||||
starmie: {
|
||||
tier: "OU"
|
||||
},
|
||||
mrmime: {
|
||||
tier: "UU"
|
||||
},
|
||||
scyther: {
|
||||
tier: "UU"
|
||||
},
|
||||
jynx: {
|
||||
tier: "OU"
|
||||
},
|
||||
electabuzz: {
|
||||
tier: "UU"
|
||||
},
|
||||
magmar: {
|
||||
tier: "UU"
|
||||
},
|
||||
pinsir: {
|
||||
tier: "UU"
|
||||
},
|
||||
tauros: {
|
||||
tier: "OU"
|
||||
},
|
||||
magikarp: {
|
||||
tier: "LC"
|
||||
},
|
||||
gyarados: {
|
||||
tier: "UU"
|
||||
},
|
||||
lapras: {
|
||||
tier: "OU"
|
||||
},
|
||||
ditto: {
|
||||
tier: "UU"
|
||||
},
|
||||
eevee: {
|
||||
tier: "LC"
|
||||
},
|
||||
vaporeon: {
|
||||
tier: "UU"
|
||||
},
|
||||
jolteon: {
|
||||
tier: "OU"
|
||||
},
|
||||
flareon: {
|
||||
tier: "UU"
|
||||
},
|
||||
porygon: {
|
||||
tier: "UU"
|
||||
},
|
||||
omanyte: {
|
||||
tier: "LC"
|
||||
},
|
||||
omastar: {
|
||||
tier: "UU"
|
||||
},
|
||||
kabuto: {
|
||||
tier: "LC"
|
||||
},
|
||||
kabutops: {
|
||||
tier: "UU"
|
||||
},
|
||||
aerodactyl: {
|
||||
tier: "UU"
|
||||
},
|
||||
snorlax: {
|
||||
tier: "OU"
|
||||
},
|
||||
articuno: {
|
||||
tier: "UU"
|
||||
},
|
||||
zapdos: {
|
||||
tier: "OU"
|
||||
},
|
||||
moltres: {
|
||||
tier: "UU"
|
||||
},
|
||||
dratini: {
|
||||
tier: "LC"
|
||||
},
|
||||
dragonair: {
|
||||
tier: "NFE"
|
||||
},
|
||||
dragonite: {
|
||||
tier: "UU"
|
||||
},
|
||||
mewtwo: {
|
||||
tier: "Uber"
|
||||
},
|
||||
mew: {
|
||||
tier: "Uber"
|
||||
},
|
||||
missingno: {
|
||||
isNonstandard: "Unobtainable",
|
||||
tier: "Illegal"
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=formats-data.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1stadium/formats-data.ts"],
|
||||
"sourcesContent": ["export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranf: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorina: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoqueen: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranm: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorino: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoking: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tjigglypuff: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twigglytuff: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmankey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tprimeape: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tbellsprout: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tweepinbell: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvictreebel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tdoduo: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdodrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tseel: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdewgong: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tshellder: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcloyster: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tgastly: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thaunter: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgengar: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tonix: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tdrowzee: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thypno: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tkrabby: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkingler: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tvoltorb: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\telectrode: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\texeggcute: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\texeggutor: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tcubone: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmarowak: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\thitmonlee: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\thitmonchan: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tlickitung: {\r\n\t\ttier: \Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW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ACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var moves_exports = {};
|
||||
__export(moves_exports, {
|
||||
Moves: () => Moves
|
||||
});
|
||||
module.exports = __toCommonJS(moves_exports);
|
||||
const Moves = {
|
||||
bide: {
|
||||
inherit: true,
|
||||
priority: 0,
|
||||
accuracy: true,
|
||||
condition: {
|
||||
durationCallback(target, source, effect) {
|
||||
return this.random(3, 5);
|
||||
},
|
||||
onStart(pokemon) {
|
||||
this.effectState.totalDamage = 0;
|
||||
this.effectState.lastDamage = 0;
|
||||
this.add("-start", pokemon, "Bide");
|
||||
},
|
||||
onHit(target, source, move) {
|
||||
if (source && source !== target && move.category !== "Physical" && move.category !== "Special") {
|
||||
const damage = this.effectState.totalDamage;
|
||||
this.effectState.totalDamage += damage;
|
||||
this.effectState.lastDamage = damage;
|
||||
this.effectState.sourceSlot = source.getSlot();
|
||||
}
|
||||
},
|
||||
onDamage(damage, target, source, move) {
|
||||
if (!source || source.isAlly(target))
|
||||
return;
|
||||
if (!move || move.effectType !== "Move")
|
||||
return;
|
||||
if (!damage && this.effectState.lastDamage > 0) {
|
||||
damage = this.effectState.totalDamage;
|
||||
}
|
||||
this.effectState.totalDamage += damage;
|
||||
this.effectState.lastDamage = damage;
|
||||
this.effectState.sourceSlot = source.getSlot();
|
||||
},
|
||||
onAfterSetStatus(status, pokemon) {
|
||||
if (pokemon.volatiles["flinch"]) {
|
||||
this.effectState.duration++;
|
||||
} else if (pokemon.volatiles["partiallytrapped"]) {
|
||||
this.effectState.duration++;
|
||||
} else {
|
||||
switch (status.id) {
|
||||
case "slp":
|
||||
case "frz":
|
||||
this.effectState.duration++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
onBeforeMove(pokemon, t, move) {
|
||||
if (this.effectState.duration === 1) {
|
||||
this.add("-end", pokemon, "Bide");
|
||||
if (!this.effectState.totalDamage) {
|
||||
this.debug("Bide failed because no damage was taken");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
const target = this.getAtSlot(this.effectState.sourceSlot);
|
||||
if (target.isSemiInvulnerable()) {
|
||||
this.add("-message", "The foe " + target.name + " can't be hit while flying!");
|
||||
pokemon.removeVolatile("bide");
|
||||
return false;
|
||||
}
|
||||
this.actions.moveHit(target, pokemon, move, { damage: this.effectState.totalDamage * 2 });
|
||||
pokemon.removeVolatile("bide");
|
||||
return false;
|
||||
}
|
||||
this.add("-activate", pokemon, "Bide");
|
||||
return false;
|
||||
},
|
||||
onDisableMove(pokemon) {
|
||||
if (!pokemon.hasMove("bide")) {
|
||||
return;
|
||||
}
|
||||
for (const moveSlot of pokemon.moveSlots) {
|
||||
if (moveSlot.id !== "bide") {
|
||||
pokemon.disableMove(moveSlot.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
type: "???"
|
||||
// Will look as Normal but it's STAB-less
|
||||
},
|
||||
bind: {
|
||||
inherit: true
|
||||
// FIXME: onBeforeMove() {},
|
||||
},
|
||||
clamp: {
|
||||
inherit: true
|
||||
// FIXME: onBeforeMove() {},
|
||||
},
|
||||
counter: {
|
||||
inherit: true,
|
||||
ignoreImmunity: true,
|
||||
willCrit: false,
|
||||
basePower: 1,
|
||||
damageCallback(pokemon, target) {
|
||||
const lastMoveThisTurn = target.side.lastMove && target.side.lastMove.id === target.side.lastSelectedMove && !this.queue.willMove(target) && this.dex.moves.get(target.side.lastMove.id);
|
||||
if (!lastMoveThisTurn) {
|
||||
this.debug("Stadium 1 Counter: last move was not this turn");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
const lastMoveThisTurnIsCounterable = lastMoveThisTurn && lastMoveThisTurn.basePower > 0 && ["Normal", "Fighting"].includes(lastMoveThisTurn.type) && lastMoveThisTurn.id !== "counter";
|
||||
if (!lastMoveThisTurnIsCounterable) {
|
||||
this.debug(`Stadium 1 Counter: last move ${lastMoveThisTurn.name} was not Counterable`);
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (this.lastDamage <= 0) {
|
||||
this.debug("Stadium 1 Counter: no previous damage exists");
|
||||
this.add("-fail", pokemon);
|
||||
return false;
|
||||
}
|
||||
return 2 * this.lastDamage;
|
||||
}
|
||||
},
|
||||
firespin: {
|
||||
inherit: true
|
||||
// FIXME: onBeforeMove() {},
|
||||
},
|
||||
haze: {
|
||||
inherit: true,
|
||||
onHit(target, source) {
|
||||
this.add("-activate", target, "move: Haze");
|
||||
this.add("-clearallboost", "[silent]");
|
||||
for (const pokemon of this.getAllActive()) {
|
||||
pokemon.clearBoosts();
|
||||
pokemon.cureStatus(true);
|
||||
for (const id of Object.keys(pokemon.volatiles)) {
|
||||
pokemon.removeVolatile(id);
|
||||
this.add("-end", pokemon, id, "[silent]");
|
||||
}
|
||||
pokemon.recalculateStats();
|
||||
}
|
||||
}
|
||||
},
|
||||
hyperbeam: {
|
||||
inherit: true,
|
||||
onMoveFail(target, source, move) {
|
||||
source.addVolatile("mustrecharge");
|
||||
}
|
||||
},
|
||||
psywave: {
|
||||
inherit: true,
|
||||
basePower: 1,
|
||||
damageCallback(pokemon) {
|
||||
return this.random(1, this.trunc(1.5 * pokemon.level));
|
||||
}
|
||||
},
|
||||
rage: {
|
||||
inherit: true,
|
||||
self: {
|
||||
volatileStatus: "rage"
|
||||
},
|
||||
condition: {
|
||||
// Rage lock
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = "rage";
|
||||
},
|
||||
onLockMove: "rage",
|
||||
onHit(target, source, move) {
|
||||
if (target.boosts.atk < 6 && (move.category !== "Status" || move.id === "disable")) {
|
||||
this.boost({ atk: 1 });
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
recover: {
|
||||
inherit: true,
|
||||
heal: null,
|
||||
onHit(target) {
|
||||
if (target.hp === target.maxhp) {
|
||||
return false;
|
||||
}
|
||||
this.heal(Math.floor(target.maxhp / 2), target, target);
|
||||
}
|
||||
},
|
||||
rest: {
|
||||
inherit: true,
|
||||
onHit(target, source, move) {
|
||||
if (target.hp >= target.maxhp)
|
||||
return false;
|
||||
if (!target.setStatus("slp", source, move))
|
||||
return false;
|
||||
target.statusState.time = 2;
|
||||
target.statusState.startTime = 2;
|
||||
target.recalculateStats();
|
||||
this.heal(target.maxhp);
|
||||
}
|
||||
},
|
||||
softboiled: {
|
||||
inherit: true,
|
||||
heal: null,
|
||||
onHit(target) {
|
||||
if (target.hp === target.maxhp) {
|
||||
return false;
|
||||
}
|
||||
this.heal(Math.floor(target.maxhp / 2), target, target);
|
||||
}
|
||||
},
|
||||
substitute: {
|
||||
inherit: true,
|
||||
onTryHit(target) {
|
||||
if (target.volatiles["substitute"]) {
|
||||
this.add("-fail", target, "move: Substitute");
|
||||
return null;
|
||||
}
|
||||
if (target.hp <= target.maxhp / 4) {
|
||||
this.add("-fail", target, "move: Substitute", "[weak]");
|
||||
return null;
|
||||
}
|
||||
},
|
||||
condition: {
|
||||
onStart(target) {
|
||||
this.add("-start", target, "Substitute");
|
||||
this.effectState.hp = Math.floor(target.maxhp / 4);
|
||||
delete target.volatiles["partiallytrapped"];
|
||||
},
|
||||
onTryHitPriority: -1,
|
||||
onTryHit(target, source, move) {
|
||||
if (target === source) {
|
||||
this.debug("sub bypass: self hit");
|
||||
return;
|
||||
}
|
||||
if (move.drain) {
|
||||
this.add("-miss", source);
|
||||
return null;
|
||||
}
|
||||
if (move.category === "Status") {
|
||||
const SubBlocked = ["leechseed", "lockon", "mindreader", "nightmare"];
|
||||
if (move.status || move.boosts || move.volatileStatus === "confusion" || SubBlocked.includes(move.id)) {
|
||||
this.add("-activate", target, "Substitute", "[block] " + move.name);
|
||||
return null;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (move.volatileStatus && target === source)
|
||||
return;
|
||||
let damage = this.actions.getDamage(source, target, move);
|
||||
if (damage && damage > target.volatiles["substitute"].hp) {
|
||||
damage = target.volatiles["substitute"].hp;
|
||||
}
|
||||
if (!damage && damage !== 0)
|
||||
return null;
|
||||
damage = this.runEvent("SubDamage", target, source, move, damage);
|
||||
if (!damage && damage !== 0)
|
||||
return damage;
|
||||
target.volatiles["substitute"].hp -= damage;
|
||||
this.lastDamage = damage;
|
||||
if (target.volatiles["substitute"].hp <= 0) {
|
||||
this.debug("Substitute broke");
|
||||
target.removeVolatile("substitute");
|
||||
target.subFainted = true;
|
||||
} else {
|
||||
this.add("-activate", target, "Substitute", "[damage]");
|
||||
}
|
||||
if (target.volatiles["substitute"]) {
|
||||
if (move.recoil) {
|
||||
this.damage(this.clampIntRange(Math.floor(damage * move.recoil[0] / move.recoil[1]), 1), source, target, "recoil");
|
||||
}
|
||||
}
|
||||
this.runEvent("AfterSubDamage", target, source, move, damage);
|
||||
const lastAttackedBy = target.getLastAttackedBy();
|
||||
if (!lastAttackedBy) {
|
||||
target.attackedBy.push({ source, move: move.id, damage, slot: source.getSlot(), thisTurn: true });
|
||||
} else {
|
||||
lastAttackedBy.move = move.id;
|
||||
lastAttackedBy.damage = damage;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
onEnd(target) {
|
||||
this.add("-end", target, "Substitute");
|
||||
}
|
||||
},
|
||||
secondary: null,
|
||||
target: "self",
|
||||
type: "Normal"
|
||||
},
|
||||
struggle: {
|
||||
inherit: true,
|
||||
ignoreImmunity: { "Normal": true }
|
||||
},
|
||||
wrap: {
|
||||
inherit: true
|
||||
// FIXME: onBeforeMove() {},
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=moves.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1stadium/moves.ts"],
|
||||
"sourcesContent": ["export const Moves: {[k: string]: ModdedMoveData} = {\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\tpriority: 0,\r\n\t\taccuracy: true,\r\n\t\tcondition: {\r\n\t\t\tdurationCallback(target, source, effect) {\r\n\t\t\t\treturn this.random(3, 5);\r\n\t\t\t},\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.totalDamage = 0;\r\n\t\t\t\tthis.effectState.lastDamage = 0;\r\n\t\t\t\tthis.add('-start', pokemon, 'Bide');\r\n\t\t\t},\r\n\t\t\tonHit(target, source, move) {\r\n\t\t\t\tif (source && source !== target && move.category !== 'Physical' && move.category !== 'Special') {\r\n\t\t\t\t\tconst damage = this.effectState.totalDamage;\r\n\t\t\t\t\tthis.effectState.totalDamage += damage;\r\n\t\t\t\t\tthis.effectState.lastDamage = damage;\r\n\t\t\t\t\tthis.effectState.sourceSlot = source.getSlot();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonDamage(damage, target, source, move) {\r\n\t\t\t\tif (!source || source.isAlly(target)) return;\r\n\t\t\t\tif (!move || move.effectType !== 'Move') return;\r\n\t\t\t\tif (!damage && this.effectState.lastDamage > 0) {\r\n\t\t\t\t\tdamage = this.effectState.totalDamage;\r\n\t\t\t\t}\r\n\t\t\t\tthis.effectState.totalDamage += damage;\r\n\t\t\t\tthis.effectState.lastDamage = damage;\r\n\t\t\t\tthis.effectState.sourceSlot = source.getSlot();\r\n\t\t\t},\r\n\t\t\tonAfterSetStatus(status, pokemon) {\r\n\t\t\t\t// Sleep, freeze, and partial trap will just pause duration.\r\n\t\t\t\tif (pokemon.volatiles['flinch']) {\r\n\t\t\t\t\tthis.effectState.duration++;\r\n\t\t\t\t} else if (pokemon.volatiles['partiallytrapped']) {\r\n\t\t\t\t\tthis.effectState.duration++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tswitch (status.id) {\r\n\t\t\t\t\tcase 'slp':\r\n\t\t\t\t\tcase 'frz':\r\n\t\t\t\t\t\tthis.effectState.duration++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, t, move) {\r\n\t\t\t\tif (this.effectState.duration === 1) {\r\n\t\t\t\t\tthis.add('-end', pokemon, 'Bide');\r\n\t\t\t\t\tif (!this.effectState.totalDamage) {\r\n\t\t\t\t\t\tthis.debug(\"Bide failed because no damage was taken\");\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst target = this.getAtSlot(this.effectState.sourceSlot);\r\n\t\t\t\t\tif (target.isSemiInvulnerable()) {\r\n\t\t\t\t\t\tthis.add('-message', 'The foe ' + target.name + ' can\\'t be hit while flying!');\r\n\t\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.actions.moveHit(target, pokemon, move, {damage: this.effectState.totalDamage * 2} as ActiveMove);\r\n\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.add('-activate', pokemon, 'Bide');\r\n\t\t\t\treturn false;\r\n\t\t\t},\r\n\t\t\tonDisableMove(pokemon) {\r\n\t\t\t\tif (!pokemon.hasMove('bide')) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfor (const moveSlot of pokemon.moveSlots) {\r\n\t\t\t\t\tif (moveSlot.id !== 'bide') {\r\n\t\t\t\t\t\tpokemon.disableMove(moveSlot.id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\ttype: \"???\", // Will look as Normal but it's STAB-less\r\n\t},\r\n\tbind: {\r\n\t\tinherit: true,\r\n\t\t// FIXME: onBeforeMove() {},\r\n\t},\r\n\tclamp: {\r\n\t\tinherit: true,\r\n\t\t// FIXME: onBeforeMove() {},\r\n\t},\r\n\tcounter: {\r\n\t\tinherit: true,\r\n\t\tignoreImmunity: true,\r\n\t\twillCrit: false,\r\n\t\tbasePower: 1,\r\n\t\tdamageCallback(pokemon, target) {\r\n\t\t\t// Counter mechanics in Stadium 1:\r\n\t\t\t// - a move is Counterable if it is Normal or Fighting type, has nonzero Base Power, and is not Counter\r\n\t\t\t// - Counter succeeds if the target used a Counterable move earlier this turn\r\n\r\n\t\t\tconst lastMoveThisTurn = target.side.lastMove && target.side.lastMove.id === target.side.lastSelectedMove &&\r\n\t\t\t\t!this.queue.willMove(target) && this.dex.moves.get(target.side.lastMove.id);\r\n\t\t\tif (!lastMoveThisTurn) {\r\n\t\t\t\tthis.debug(\"Stadium 1 Counter: last move was not this turn\");\r\n\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tconst lastMoveThisTurnIsCounterable = lastMoveThisTurn && lastMoveThisTurn.basePower > 0 &&\r\n\t\t\t\t['Normal', 'Fighting'].includes(lastMoveThisTurn.type) && lastMoveThisTurn.id !== 'counter';\r\n\t\t\tif (!lastMoveThisTurnIsCounterable) {\r\n\t\t\t\tthis.debug(`Stadium 1 Counter: last move ${lastMoveThisTurn.name} was not Counterable`);\r\n\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (this.lastDamage <= 0) {\r\n\t\t\t\tthis.debug(\"Stadium 1 Counter: no previous damage exists\");\r\n\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn 2 * this.lastDamage;\r\n\t\t},\r\n\t},\r\n\tfirespin: {\r\n\t\tinherit: true,\r\n\t\t// FIXME: onBeforeMove() {},\r\n\t},\r\n\thaze: {\r\n\t\tinherit: true,\r\n\t\tonHit(target, source) {\r\n\t\t\tthis.add('-activate', target, 'move: Haze');\r\n\t\t\tthiLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,MAAM;AAAA,IACL,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,MACV,iBAAiB,QAAQ,QAAQ,QAAQ;AACxC,eAAO,KAAK,OAAO,GAAG,CAAC;AAAA,MACxB;AAAA,MACA,QAAQ,SAAS;AAChB,aAAK,YAAY,cAAc;AAC/B,aAAK,YAAY,aAAa;AAC9B,aAAK,IAAI,UAAU,SAAS,MAAM;AAAA,MACnC;AAA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,eAAO,OAAO,UAAU,kBAAkB;AAAA,MAC3C;AAAA,MACA,kBAAkB;AAAA,MAClB,SAAS,QAAQ,QAAQ,MAAM;AAC9B,YAAI,WAAW,QAAQ;AACtB,eAAK,MAAM,sBAAsB;AACjC;AAAA,QACD;AACA,YAAI,KAAK,OAAO;AACf,eAAK,IAAI,SAAS,MAAM;AACxB,iBAAO;AAAA,QACR;AACA,YAAI,KAAK,aAAa,UAAU;AAC/B,gBAAM,aAAa,CAAC,aAAa,UAAU,cAAc,WAAW;AACpE,cAAI,KAAK,UAAU,KAAK,UAAU,KAAK,mBAAmB,eAAe,WAAW,SAAS,KAAK,EAAE,GAAG;AACtG,iBAAK,IAAI,aAAa,QAAQ,cAAc,aAAa,KAAK,IAAI;AAClE,mBAAO;AAAA,UACR;AACA;AAAA,QACD;AACA,YAAI,KAAK,kBAAkB,WAAW;AAAQ;AAC9C,YAAI,SLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Stadium Sleep Clause", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Moves Clause", "Exact HP Mod", "Cancel Mod"]
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1stadium/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Stadium Sleep Clause', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Exact HP Mod', 'Cancel Mod'],\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,wBAAwB,qBAAqB,kBAAkB,eAAe,wBAAwB,gBAAgB,YAAY;AAAA,EAC3J;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,658 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const SKIP_LASTDAMAGE = /* @__PURE__ */ new Set([
|
||||
"confuseray",
|
||||
"conversion",
|
||||
"counter",
|
||||
"focusenergy",
|
||||
"glare",
|
||||
"haze",
|
||||
"leechseed",
|
||||
"lightscreen",
|
||||
"mimic",
|
||||
"mist",
|
||||
"poisongas",
|
||||
"poisonpowder",
|
||||
"recover",
|
||||
"reflect",
|
||||
"rest",
|
||||
"softboiled",
|
||||
"splash",
|
||||
"stunspore",
|
||||
"substitute",
|
||||
"supersonic",
|
||||
"teleport",
|
||||
"thunderwave",
|
||||
"toxic",
|
||||
"transform"
|
||||
]);
|
||||
const Scripts = {
|
||||
inherit: "gen1",
|
||||
gen: 1,
|
||||
// BattlePokemon scripts. Stadium shares gen 1 code but it fixes some problems with it.
|
||||
pokemon: {
|
||||
inherit: true,
|
||||
// This is run on Stadium after boosts and status changes.
|
||||
recalculateStats() {
|
||||
let statName;
|
||||
for (statName in this.storedStats) {
|
||||
let stat = this.species.baseStats[statName];
|
||||
stat = Math.floor(
|
||||
Math.floor(
|
||||
2 * stat + this.set.ivs[statName] + Math.floor(this.set.evs[statName] / 4)
|
||||
) * this.level / 100 + 5
|
||||
);
|
||||
this.baseStoredStats[statName] = this.storedStats[statName] = Math.floor(stat);
|
||||
this.modifiedStats[statName] = Math.floor(stat);
|
||||
if (this.status === "par" && statName === "spe")
|
||||
this.modifyStat("spe", 0.25);
|
||||
if (this.status === "brn" && statName === "atk")
|
||||
this.modifyStat("atk", 0.5);
|
||||
if (this.boosts[statName] !== 0) {
|
||||
if (this.boosts[statName] >= 0) {
|
||||
this.modifyStat(statName, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[statName]]);
|
||||
} else {
|
||||
this.modifyStat(statName, [100, 66, 50, 40, 33, 28, 25][-this.boosts[statName]] / 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// Stadium's fixed boosting function.
|
||||
boostBy(boost) {
|
||||
let changed = false;
|
||||
let i;
|
||||
for (i in boost) {
|
||||
let delta = boost[i];
|
||||
if (delta === void 0)
|
||||
continue;
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
delta -= this.boosts[i] - 6;
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
if (this.boosts[i] < -6) {
|
||||
delta -= this.boosts[i] - -6;
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
if (delta)
|
||||
changed = true;
|
||||
}
|
||||
this.recalculateStats();
|
||||
return changed;
|
||||
},
|
||||
// Remove stat recalculation logic from gen 1
|
||||
clearBoosts() {
|
||||
let i;
|
||||
for (i in this.boosts) {
|
||||
this.boosts[i] = 0;
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
inherit: true,
|
||||
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
|
||||
const move = this.dex.getActiveMove(moveOrMoveName);
|
||||
const target = this.battle.getTarget(pokemon, move, targetLoc);
|
||||
if (target?.subFainted)
|
||||
target.subFainted = null;
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
if (pokemon.moveThisTurn || !this.battle.runEvent("BeforeMove", pokemon, target, move)) {
|
||||
this.battle.debug("" + pokemon.fullname + " move interrupted; movedThisTurn: " + pokemon.moveThisTurn);
|
||||
this.battle.clearActiveMove(true);
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
return;
|
||||
}
|
||||
if (move.beforeMoveCallback) {
|
||||
if (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
let lockedMove = this.battle.runEvent("LockMove", pokemon);
|
||||
if (lockedMove === true)
|
||||
lockedMove = false;
|
||||
if (!lockedMove && (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].locked !== target)) {
|
||||
pokemon.deductPP(move, null, target);
|
||||
} else {
|
||||
sourceEffect = move;
|
||||
}
|
||||
this.battle.actions.useMove(move, pokemon, target, sourceEffect);
|
||||
},
|
||||
// This function deals with AfterMoveSelf events.
|
||||
// This leads with partial trapping moves shenanigans after the move has been used.
|
||||
useMove(moveOrMoveName, pokemon, target, sourceEffect) {
|
||||
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);
|
||||
if (!sourceEffect && this.battle.effect.id)
|
||||
sourceEffect = this.battle.effect;
|
||||
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
|
||||
let move = this.battle.dex.getActiveMove(baseMove);
|
||||
if (target === void 0)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
if (move.target === "self") {
|
||||
target = pokemon;
|
||||
}
|
||||
if (sourceEffect)
|
||||
move.sourceEffect = sourceEffect.id;
|
||||
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
if (move.id !== "metronome") {
|
||||
if (move.id !== "mirrormove" || (!pokemon.side.foe.active[0]?.lastMove || pokemon.side.foe.active[0].lastMove?.id === "mirrormove")) {
|
||||
pokemon.side.lastMove = move;
|
||||
pokemon.lastMove = move;
|
||||
this.battle.singleEvent("AfterMove", move, null, pokemon, target, move);
|
||||
if (target && target.hp <= 0) {
|
||||
delete pokemon.volatiles["partialtrappinglock"];
|
||||
} else {
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
}
|
||||
if (pokemon.volatiles["mustrecharge"])
|
||||
this.battle.add("-mustrecharge", pokemon);
|
||||
if (move.volatileStatus === "partiallytrapped" && target && target.hp > 0) {
|
||||
target.removeVolatile("mustrecharge");
|
||||
if (pokemon.volatiles["partialtrappinglock"] && target.volatiles["partiallytrapped"]) {
|
||||
if (!pokemon.volatiles["partialtrappinglock"].locked) {
|
||||
pokemon.volatiles["partialtrappinglock"].locked = target;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return moveResult;
|
||||
},
|
||||
// This is the function that actually uses the move, running ModifyMove events.
|
||||
// It uses the move and then deals with the effects after the move.
|
||||
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect) {
|
||||
if (!sourceEffect && this.battle.effect.id)
|
||||
sourceEffect = this.battle.effect;
|
||||
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
|
||||
let move = this.battle.dex.getActiveMove(baseMove);
|
||||
if (target === void 0)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
if (move.target === "self") {
|
||||
target = pokemon;
|
||||
}
|
||||
if (sourceEffect)
|
||||
move.sourceEffect = sourceEffect.id;
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
this.battle.singleEvent("ModifyMove", move, null, pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
move = this.battle.runEvent("ModifyMove", pokemon, target, move, move);
|
||||
if (baseMove.target !== move.target) {
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
this.battle.debug("not a gen 1 mechanic");
|
||||
}
|
||||
if (!move)
|
||||
return false;
|
||||
let attrs = "";
|
||||
if (pokemon.fainted) {
|
||||
return false;
|
||||
}
|
||||
if (sourceEffect)
|
||||
attrs += "|[from]" + this.battle.dex.conditions.get(sourceEffect);
|
||||
this.battle.addMove("move", pokemon, move.name, target + attrs);
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return true;
|
||||
}
|
||||
if (!this.battle.singleEvent("TryMove", move, null, pokemon, target, move) || !this.battle.runEvent("TryMove", pokemon, target, move)) {
|
||||
return true;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
let damage = false;
|
||||
if (!target || target.fainted) {
|
||||
this.battle.attrLastMove("[notarget]");
|
||||
this.battle.add("-notarget");
|
||||
return true;
|
||||
}
|
||||
if (!SKIP_LASTDAMAGE.has(move.id))
|
||||
this.battle.lastDamage = 0;
|
||||
damage = this.tryMoveHit(target, pokemon, move);
|
||||
if (damage === false) {
|
||||
this.battle.singleEvent("MoveFail", move, null, target, pokemon, move);
|
||||
return true;
|
||||
}
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondarySelf", move, null, pokemon, target, move);
|
||||
this.battle.runEvent("AfterMoveSecondarySelf", pokemon, target, move);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
let damage = 0;
|
||||
let hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
if (move.selfdestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
|
||||
if (move.selfdestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, null, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
let accuracy = move.accuracy;
|
||||
if (pokemon.volatiles["partialtrappinglock"]) {
|
||||
if (move.volatileStatus === "partiallytrapped" && target === pokemon.volatiles["partialtrappinglock"].locked) {
|
||||
accuracy = true;
|
||||
} else if (pokemon.volatiles["partialtrappinglock"].locked !== target) {
|
||||
delete pokemon.volatiles["partialtrappinglock"];
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
if (target.speed > pokemon.speed) {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
const boostTable = [1 / 3, 0.36, 0.43, 0.5, 0.66, 0.75, 1, 1.33, 1.66, 2, 2.33, 2.66, 3];
|
||||
if (accuracy !== true) {
|
||||
accuracy = Math.floor(accuracy * 255 / 100);
|
||||
if (!move.ignoreAccuracy) {
|
||||
accuracy = Math.floor(accuracy * boostTable[pokemon.boosts.accuracy + 6]);
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
accuracy = Math.floor(accuracy * boostTable[-target.boosts.evasion + 6]);
|
||||
}
|
||||
accuracy = Math.min(accuracy, 255);
|
||||
}
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
if (accuracy !== true && !this.battle.randomChance(accuracy + 1, 256)) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
damage = false;
|
||||
this.battle.lastDamage = 0;
|
||||
}
|
||||
if (damage !== false) {
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let moveDamage = 0;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
move.hit = i + 1;
|
||||
if (move.hit === hits)
|
||||
move.lastHit = true;
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
damage = moveDamage || 0;
|
||||
if (i === 0)
|
||||
move.damage = damage;
|
||||
if (target.subFainted) {
|
||||
i++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
move.damage = null;
|
||||
if (i === 0)
|
||||
return 1;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
}
|
||||
}
|
||||
if (move.category !== "Status")
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
if (move.selfdestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
if (damage === false) {
|
||||
delete pokemon.volatiles["partialtrappinglock"];
|
||||
return false;
|
||||
}
|
||||
if (move.ohko)
|
||||
this.battle.add("-ohko");
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
moveHit(target, pokemon, moveOrMoveName, moveData, isSecondary, isSelf) {
|
||||
let damage = 0;
|
||||
const move = this.dex.getActiveMove(moveOrMoveName);
|
||||
if (!isSecondary && !isSelf)
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
let hitResult = true;
|
||||
if (!moveData)
|
||||
moveData = move;
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if (target) {
|
||||
hitResult = this.battle.singleEvent("TryHit", moveData, {}, target, pokemon, move);
|
||||
const targetHadSub = !!target.volatiles["substitute"];
|
||||
if (targetHadSub && moveData.volatileStatus && moveData.volatileStatus === "partiallytrapped") {
|
||||
target.addVolatile(moveData.volatileStatus, pokemon, move);
|
||||
if (!pokemon.volatiles["partialtrappinglock"] || pokemon.volatiles["partialtrappinglock"].duration > 1) {
|
||||
target.volatiles[moveData.volatileStatus].duration = 2;
|
||||
}
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
if (!isSelf && !isSecondary) {
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
if (hitResult !== 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!this.battle.runEvent("TryFieldHit", target, pokemon, move)) {
|
||||
return false;
|
||||
}
|
||||
} else if (isSecondary && !moveData.self) {
|
||||
hitResult = this.battle.runEvent("TrySecondaryHit", target, pokemon, moveData);
|
||||
}
|
||||
if (hitResult === 0) {
|
||||
target = null;
|
||||
} else if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (target) {
|
||||
let didSomething = false;
|
||||
damage = this.getDamage(pokemon, target, moveData);
|
||||
if (damage && damage > target.hp) {
|
||||
damage = target.hp;
|
||||
}
|
||||
if ((damage || damage === 0) && !target.fainted) {
|
||||
damage = this.battle.damage(damage, target, pokemon, move);
|
||||
if (!(damage || damage === 0))
|
||||
return false;
|
||||
didSomething = true;
|
||||
} else if (damage === false && typeof hitResult === "undefined") {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
if (damage === false || damage === null) {
|
||||
return false;
|
||||
}
|
||||
if (moveData.boosts && !target.fainted) {
|
||||
this.battle.boost(moveData.boosts, target, pokemon, move);
|
||||
}
|
||||
if (moveData.heal && !target.fainted) {
|
||||
const d = target.heal(Math.floor(target.maxhp * moveData.heal[0] / moveData.heal[1]));
|
||||
if (!d) {
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
this.battle.add("-heal", target, target.getHealth);
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.status) {
|
||||
if (!target.status) {
|
||||
target.setStatus(moveData.status, pokemon, move);
|
||||
target.recalculateStats();
|
||||
} else if (!isSecondary) {
|
||||
if (target.status === moveData.status) {
|
||||
this.battle.add("-fail", target, target.status);
|
||||
} else {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
}
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.forceStatus) {
|
||||
if (target.setStatus(moveData.forceStatus, pokemon, move)) {
|
||||
target.recalculateStats();
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.volatileStatus) {
|
||||
if (target.addVolatile(moveData.volatileStatus, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.sideCondition) {
|
||||
if (target.side.addSideCondition(moveData.sideCondition, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
if (moveData.pseudoWeather) {
|
||||
if (this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move)) {
|
||||
didSomething = true;
|
||||
}
|
||||
}
|
||||
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
|
||||
if (!isSelf && !isSecondary) {
|
||||
this.battle.runEvent("Hit", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult && !didSomething) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (moveData.self) {
|
||||
this.moveHit(pokemon, pokemon, move, moveData.self, isSecondary, true);
|
||||
}
|
||||
if (pokemon.volatiles["partialtrappinglock"]) {
|
||||
pokemon.volatiles["partialtrappinglock"].damage = this.battle.lastDamage;
|
||||
}
|
||||
if (moveData.secondaries && target && target.hp > 0) {
|
||||
for (const secondary of moveData.secondaries) {
|
||||
if (!move.multihit || move.lastHit) {
|
||||
if (!(secondary.status && ["par", "brn", "frz"].includes(secondary.status) && target.hasType(move.type))) {
|
||||
const effectChance = Math.floor((secondary.chance || 100) * 255 / 100);
|
||||
if (typeof secondary.chance === "undefined" || this.battle.randomChance(effectChance + 1, 256)) {
|
||||
this.moveHit(target, pokemon, move, secondary, true, isSelf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (move.selfSwitch && pokemon.hp) {
|
||||
pokemon.switchFlag = move.selfSwitch === true ? true : this.dex.toID(move.selfSwitch);
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string") {
|
||||
move = this.dex.getActiveMove(move);
|
||||
} else if (typeof move === "number") {
|
||||
move = {
|
||||
basePower: move,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
flags: {}
|
||||
};
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
return 65535;
|
||||
}
|
||||
if (move.damageCallback) {
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
}
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
}
|
||||
if (move.damage) {
|
||||
return move.damage;
|
||||
}
|
||||
if (move.volatileStatus === "partiallytrapped" && move.type === "Normal" && target.hasType("Ghost")) {
|
||||
return 0;
|
||||
}
|
||||
if (source.volatiles["partialtrappinglock"] && target === source.volatiles["partialtrappinglock"].locked) {
|
||||
return source.volatiles["partialtrappinglock"].damage;
|
||||
}
|
||||
if (!move.category)
|
||||
move.category = "Physical";
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower) {
|
||||
return basePower === 0 ? void 0 : basePower;
|
||||
}
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let isCrit = move.willCrit || false;
|
||||
if (!isCrit) {
|
||||
let critChance = source.species.baseStats["spe"] + 76;
|
||||
critChance = critChance >> 2;
|
||||
if (source.volatiles["focusenergy"]) {
|
||||
critChance = critChance << 2;
|
||||
critChance += 160;
|
||||
} else {
|
||||
critChance = critChance << 1;
|
||||
}
|
||||
if (move.critRatio === 2) {
|
||||
critChance = critChance << 2;
|
||||
} else if (move.critRatio === 1) {
|
||||
critChance = critChance >> 1;
|
||||
}
|
||||
critChance = this.battle.clampIntRange(critChance, 1, 255);
|
||||
if (critChance > 0) {
|
||||
isCrit = this.battle.randomChance(critChance, 256);
|
||||
}
|
||||
}
|
||||
if (isCrit && this.battle.runEvent("CriticalHit", target, null, move)) {
|
||||
target.getMoveHitData(move).crit = true;
|
||||
}
|
||||
if (basePower) {
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower);
|
||||
if (basePower && move.basePowerModifier) {
|
||||
basePower *= move.basePowerModifier;
|
||||
}
|
||||
}
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let level = source.level;
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const atkType = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
|
||||
const defType = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
let attack = attacker.getStat(atkType);
|
||||
let defense = defender.getStat(defType);
|
||||
if (defType === "def" && defender.volatiles["reflect"] || defType === "spd" && defender.volatiles["lightscreen"]) {
|
||||
this.battle.debug("Screen doubling (Sp)Def");
|
||||
defense *= 2;
|
||||
defense = this.battle.clampIntRange(defense, 1, 1998);
|
||||
}
|
||||
if (isCrit) {
|
||||
move.ignoreOffensive = true;
|
||||
move.ignoreDefensive = true;
|
||||
level *= 2;
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
}
|
||||
if (move.ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
attack = attacker.getStat(atkType, true);
|
||||
}
|
||||
if (move.ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defense = target.getStat(defType, true);
|
||||
}
|
||||
if (attack >= 256 || defense >= 256) {
|
||||
attack = this.battle.clampIntRange(Math.floor(attack / 4) % 256, 1);
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 4) % 256, 1);
|
||||
}
|
||||
if (move.selfdestruct && defType === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
let damage = level * 2;
|
||||
damage = Math.floor(damage / 5);
|
||||
damage += 2;
|
||||
damage *= basePower;
|
||||
damage *= attack;
|
||||
damage = Math.floor(damage / defense);
|
||||
damage = this.battle.clampIntRange(Math.floor(damage / 50), 0, 997);
|
||||
damage += 2;
|
||||
if (type !== "???" && source.hasType(type)) {
|
||||
damage += Math.floor(damage / 2);
|
||||
}
|
||||
for (const targetType of target.types) {
|
||||
const typeMod = this.battle.dex.getEffectiveness(type, targetType);
|
||||
if (typeMod > 0) {
|
||||
damage *= 20;
|
||||
damage = Math.floor(damage / 10);
|
||||
}
|
||||
if (typeMod < 0) {
|
||||
damage *= 5;
|
||||
damage = Math.floor(damage / 10);
|
||||
}
|
||||
}
|
||||
const totalTypeMod = target.runEffectiveness(move);
|
||||
if (totalTypeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
}
|
||||
if (totalTypeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
}
|
||||
if (damage === 0)
|
||||
return damage;
|
||||
if (damage > 1) {
|
||||
damage *= this.battle.random(217, 256);
|
||||
damage = Math.floor(damage / 255);
|
||||
}
|
||||
return Math.floor(damage);
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen1stadium/scripts.ts"],
|
||||
"sourcesContent": ["/**\r\n * Stadium mechanics inherit from gen 1 mechanics, but fixes some stuff.\r\n */\r\n\r\nconst SKIP_LASTDAMAGE = new Set([\r\n\t'confuseray', 'conversion', 'counter', 'focusenergy', 'glare', 'haze', 'leechseed', 'lightscreen',\r\n\t'mimic', 'mist', 'poisongas', 'poisonpowder', 'recover', 'reflect', 'rest', 'softboiled',\r\n\t'splash', 'stunspore', 'substitute', 'supersonic', 'teleport', 'thunderwave', 'toxic', 'transform',\r\n]);\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen1',\r\n\tgen: 1,\r\n\t// BattlePokemon scripts. Stadium shares gen 1 code but it fixes some problems with it.\r\n\tpokemon: {\r\n\t\tinherit: true,\r\n\t\t// This is run on Stadium after boosts and status changes.\r\n\t\trecalculateStats() {\r\n\t\t\tlet statName: StatIDExceptHP;\r\n\t\t\tfor (statName in this.storedStats) {\r\n\t\t\t\tlet stat = this.species.baseStats[statName];\r\n\t\t\t\tstat = Math.floor(\r\n\t\t\t\t\tMath.floor(\r\n\t\t\t\t\t\t2 * stat + this.set.ivs[statName] + Math.floor(this.set.evs[statName] / 4)\r\n\t\t\t\t\t) * this.level / 100 + 5\r\n\t\t\t\t);\r\n\t\t\t\tthis.baseStoredStats[statName] = this.storedStats[statName] = Math.floor(stat);\r\n\t\t\t\tthis.modifiedStats![statName] = Math.floor(stat);\r\n\t\t\t\t// Re-apply drops, if necessary.\r\n\t\t\t\tif (this.status === 'par' && statName === 'spe') this.modifyStat!('spe', 0.25);\r\n\t\t\t\tif (this.status === 'brn' && statName === 'atk') this.modifyStat!('atk', 0.5);\r\n\t\t\t\tif (this.boosts[statName] !== 0) {\r\n\t\t\t\t\tif (this.boosts[statName] >= 0) {\r\n\t\t\t\t\t\tthis.modifyStat!(statName, [1, 1.5, 2, 2.5, 3, 3.5, 4][this.boosts[statName]]);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.modifyStat!(statName, [100, 66, 50, 40, 33, 28, 25][-this.boosts[statName]] / 100);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Stadium's fixed boosting function.\r\n\t\tboostBy(boost) {\r\n\t\t\tlet changed = false;\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in boost) {\r\n\t\t\t\tlet delta = boost[i];\r\n\t\t\t\tif (delta === undefined) continue;\r\n\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - 6;\r\n\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - (-6);\r\n\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t}\r\n\t\t\t\tif (delta) changed = true;\r\n\t\t\t}\r\n\t\t\tthis.recalculateStats!();\r\n\t\t\treturn changed;\r\n\t\t},\r\n\t\t// Remove stat recalculation logic from gen 1\r\n\t\tclearBoosts() {\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in this.boosts) {\r\n\t\t\t\tthis.boosts[i] = 0;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\tinherit: true,\r\n\t\trunMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {\r\n\t\t\tconst move = this.dex.getActiveMove(moveOrMoveName);\r\n\t\t\tconst target = this.battle.getTarget(pokemon, move, targetLoc);\r\n\t\t\tif (target?.subFainted) target.subFainted = null;\r\n\r\n\t\t\tthis.battle.setActiveMove(move, pokemon, target);\r\n\r\n\t\t\tif (pokemon.moveThisTurn || !this.battle.runEvent('BeforeMove', pokemon, target, move)) {\r\n\t\t\t\tthis.battle.debug('' + pokemon.fullname + ' move interrupted; movedThisTurn: ' + pokemon.moveThisTurn);\r\n\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t// This is only run for sleep\r\n\t\t\t\tthis.battle.runEvent('AfterMoveSelf', pokemon, target, move);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (move.beforeMoveCallback) {\r\n\t\t\t\tif (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {\r\n\t\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlet lockedMove = this.battle.runEvent('LockMove', pokemon);\r\n\t\t\tif (lockedMove === true) lockedMove = false;\r\n\t\t\tif (\r\n\t\t\t\t!lockedMove &&\r\n\t\t\t\t(!pokemon.volatiles['partialtrappinglock'] || pokemon.volatiles['partialtrappinglock'].locked !== target)\r\n\t\t\t) {\r\n\t\t\t\tpokemon.deductPP(move, null, target);\r\n\t\t\t} else {\r\n\t\t\t\tsourceEffect = move;\r\n\t\t\t}\r\n\t\t\tthis.battle.actions.useMove(move, pokemon, target, sourceEffect);\r\n\t\t},\r\n\t\t// This function deals with AfterMoveSelf events.\r\n\t\t// This leads with partial trapping moves shenanigans after the move has been used.\r\n\t\tuseMove(moveOrMoveName, pokemon, target, sourceEffect) {\r\n\t\t\tconst moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);\r\n\r\n\t\t\tif (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;\r\n\t\t\tconst baseMove = this.battle.dex.moves.get(moveOrMoveName);\r\n\t\t\tlet move = this.battle.dex.getActiveMove(baseMove);\r\n\t\t\tif (target === undefined) target = this.battle.getRandomTarget(pokemon, move);\r\n\t\t\tif (move.target === 'self') {\r\n\t\t\t\ttarget = pokemon;\r\n\t\t\t}\r\n\t\t\tif (sourceEffect) move.sourceEffect = sourceEffect.id;\r\n\r\n\t\t\tthis.battle.singleEvent('ModifyMove', move, null, pokemon, taLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,MAAM,kBAAkB,oBAAI,IAAI;AAAA,EAC/B;AAAA,EAAc;AAAA,EAAc;AAAA,EAAW;AAAA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AS,MAAM;AAE/C,WAAK,OAAO,YAAY,cAAc,MAAM,MAAM,SAAS,QAAQ,MAAM,IAAI;AAC7E,UAAI,SAAS,WAAW,KAAK,QAAQ;AAEpC,iBAAS,KAAK,OAAO,gBAAgB,SAAS,IAAI;AAAA,MACnD;AACA,aAAO,KAAK,OAAO,SAAS,cAAc,SAAS,QAAQ,MAAM,IAAI;AACrE,UAAI,SAAS,WAAW,KAAK,QAAQ;AAEpC,iBAAS,KAAK,OAAO,gBAAgB,SAAS,IAAI;AAClD,aAAK,OAAO,MAAM,sBAAsB;AAAA,MACzC;AACA,UAAI,CAAC;AAAM,eAAO;AAElB,UAAI,QAAQ;AACZ,UAAI,QAAQ,SAAS;AACpB,eAAO;AAAA,MACR;AAEA,UAAI;AAAc,iBAAS,YAAY,KAAK,OAAO,IAAI,WAAW,IAAI,YAAY;AAClF,WAAK,OAAO,QAAQ,QAAQ,SAAS,KAAK,MAAM,SAAS,KAAK;AAE9D,UAAI,CAAC,KAAK,OAAO,YAAY,OAAO,MAAM,MAAM,SAAS,QAAQ,IAAI,GAAG;AACvE,eAAO;AAAA,MACR;AACA,UAAI,CAAC,KAAK,OAAO,YAAY,WAAW,MAAM,MAAM,SAAS,QAAQ,IAAI,KACxE,CAAC,KAAK,OAAO,SAAS,WAAW,SAAS,QAAQ,IAAI,GAAG;AACzD,eAAO;AAAA,MACR;AAEA,UAAI,KAAK,mBAAmB,QALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "brn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
inherit: true,
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(1, 4)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.time = this.random(2, 8);
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
name: "frz",
|
||||
inherit: true,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (move.flags["defrost"])
|
||||
return;
|
||||
this.add("cant", pokemon, "frz");
|
||||
return false;
|
||||
},
|
||||
onModifyMove() {
|
||||
},
|
||||
onDamagingHit() {
|
||||
},
|
||||
onAfterMoveSecondary(target, source, move) {
|
||||
if (move.secondary && move.secondary.status === "brn" || move.statusRoll === "brn") {
|
||||
target.cureStatus();
|
||||
}
|
||||
},
|
||||
onAfterMoveSecondarySelf(pokemon, target, move) {
|
||||
if (move.flags["defrost"])
|
||||
pokemon.cureStatus();
|
||||
},
|
||||
onResidualOrder: 7,
|
||||
onResidual(pokemon) {
|
||||
if (this.randomChance(25, 256))
|
||||
pokemon.cureStatus();
|
||||
}
|
||||
},
|
||||
psn: {
|
||||
name: "psn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "psn");
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
}
|
||||
},
|
||||
tox: {
|
||||
name: "tox",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "tox");
|
||||
if (!target.volatiles["residualdmg"])
|
||||
target.addVolatile("residualdmg");
|
||||
target.volatiles["residualdmg"].counter = 0;
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
const damage = this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * pokemon.volatiles["residualdmg"].counter;
|
||||
this.damage(damage, pokemon, pokemon);
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.status = "psn";
|
||||
this.add("-status", pokemon, "psn", "[silent]");
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));
|
||||
}
|
||||
},
|
||||
confusion: {
|
||||
inherit: true,
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.id === "lockedmove") {
|
||||
this.add("-start", target, "confusion", "[silent]");
|
||||
} else {
|
||||
this.add("-start", target, "confusion");
|
||||
}
|
||||
if (sourceEffect && sourceEffect.id === "berserkgene") {
|
||||
this.effectState.time = 256;
|
||||
} else {
|
||||
this.effectState.time = this.random(2, 6);
|
||||
}
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.volatiles["confusion"].time--;
|
||||
if (!pokemon.volatiles["confusion"].time) {
|
||||
pokemon.removeVolatile("confusion");
|
||||
return;
|
||||
}
|
||||
this.add("-activate", pokemon, "confusion");
|
||||
if (this.randomChance(1, 2)) {
|
||||
return;
|
||||
}
|
||||
move = {
|
||||
basePower: 40,
|
||||
type: "???",
|
||||
baseMoveType: move.type,
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
isConfusionSelfHit: true,
|
||||
noDamageVariance: true,
|
||||
flags: {},
|
||||
selfdestruct: move.selfdestruct
|
||||
};
|
||||
const damage = this.actions.getDamage(pokemon, pokemon, move);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("Confusion damage not dealt");
|
||||
this.directDamage(damage);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
partiallytrapped: {
|
||||
inherit: true,
|
||||
durationCallback(target, source) {
|
||||
return this.random(3, 6);
|
||||
},
|
||||
onResidualOrder: 3,
|
||||
onResidualSubOrder: 1
|
||||
},
|
||||
lockedmove: {
|
||||
name: "lockedmove",
|
||||
// Outrage, Thrash, Petal Dance...
|
||||
durationCallback() {
|
||||
return this.random(2, 4);
|
||||
},
|
||||
onResidual(target) {
|
||||
if (target.lastMove && target.lastMove.id === "struggle" || target.status === "slp") {
|
||||
delete target.volatiles["lockedmove"];
|
||||
}
|
||||
},
|
||||
onStart(target, source, effect) {
|
||||
this.effectState.move = effect.id;
|
||||
},
|
||||
onEnd(target) {
|
||||
delete target.volatiles["confusion"];
|
||||
if (!target.side.getSideCondition("safeguard"))
|
||||
target.addVolatile("confusion");
|
||||
},
|
||||
onLockMove(pokemon) {
|
||||
return this.effectState.move;
|
||||
},
|
||||
onMoveAborted(pokemon) {
|
||||
delete pokemon.volatiles["lockedmove"];
|
||||
},
|
||||
onBeforeTurn(pokemon) {
|
||||
const move = this.dex.moves.get(this.effectState.move);
|
||||
if (move.id) {
|
||||
this.debug("Forcing into " + move.id);
|
||||
this.queue.changeAction(pokemon, { choice: "move", moveid: move.id });
|
||||
}
|
||||
}
|
||||
},
|
||||
futuremove: {
|
||||
inherit: true,
|
||||
onResidualOrder: 1
|
||||
},
|
||||
raindance: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2
|
||||
},
|
||||
sunnyday: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2
|
||||
},
|
||||
sandstorm: {
|
||||
inherit: true,
|
||||
onFieldResidualOrder: 2,
|
||||
onWeather(target) {
|
||||
this.damage(target.baseMaxhp / 8);
|
||||
}
|
||||
},
|
||||
stall: {
|
||||
name: "stall",
|
||||
duration: 2,
|
||||
onStart() {
|
||||
this.effectState.counter = 127;
|
||||
},
|
||||
onStallMove() {
|
||||
const counter = Math.floor(this.effectState.counter) || 127;
|
||||
this.debug("Success chance: " + Math.round(counter * 1e3 / 255) / 10 + "% (" + counter + "/255)");
|
||||
return this.randomChance(counter, 255);
|
||||
},
|
||||
onRestart() {
|
||||
this.effectState.counter /= 2;
|
||||
this.effectState.duration = 2;
|
||||
}
|
||||
},
|
||||
residualdmg: {
|
||||
name: "residualdmg",
|
||||
onStart(target) {
|
||||
target.volatiles["residualdmg"].counter = 0;
|
||||
},
|
||||
onAfterMoveSelfPriority: 100,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
}
|
||||
}
|
||||
};
|
||||
function residualdmg(battle, pokemon) {
|
||||
if (pokemon.volatiles["residualdmg"]) {
|
||||
const residualDmg = battle.clampIntRange(
|
||||
Math.floor(pokemon.maxhp / 16) * pokemon.volatiles["residualdmg"].counter,
|
||||
1
|
||||
);
|
||||
battle.damage(residualDmg, pokemon);
|
||||
battle.hint("In Gen 2, Toxic's counter is retained through Baton Pass/Heal Bell and applies to PSN/BRN.", true);
|
||||
} else {
|
||||
battle.damage(battle.clampIntRange(Math.floor(pokemon.maxhp / 8), 1), pokemon);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'brn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\tinherit: true,\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(1, 4)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-6 turns\r\n\t\t\tthis.effectState.time = this.random(2, 8);\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tname: 'frz',\r\n\t\tinherit: true,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (move.flags['defrost']) return;\r\n\t\t\tthis.add('cant', pokemon, 'frz');\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tonModifyMove() {},\r\n\t\tonDamagingHit() {},\r\n\t\tonAfterMoveSecondary(target, source, move) {\r\n\t\t\tif ((move.secondary && move.secondary.status === 'brn') || move.statusRoll === 'brn') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t\tonAfterMoveSecondarySelf(pokemon, target, move) {\r\n\t\t\tif (move.flags['defrost']) pokemon.cureStatus();\r\n\t\t},\r\n\t\tonResidualOrder: 7,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (this.randomChance(25, 256)) pokemon.cureStatus();\r\n\t\t},\r\n\t},\r\n\tpsn: {\r\n\t\tname: 'psn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'psn');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t},\r\n\ttox: {\r\n\t\tname: 'tox',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'tox');\r\n\t\t\tif (!target.volatiles['residualdmg']) target.addVolatile('residualdmg');\r\n\t\t\ttarget.volatiles['residualdmg'].counter = 0;\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tconst damage = this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * pokemon.volatiles['residualdmg'].counter;\r\n\t\t\tthis.damage(damage, pokemon, pokemon);\r\n\t\t},\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\t// Regular poison status and damage after a switchout -> switchin.\r\n\t\t\tpokemon.status = 'psn' as ID;\r\n\t\t\tthis.add('-status', pokemon, 'psn', '[silent]');\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tthis.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1));\r\n\t\t},\r\n\t},\r\n\tconfusion: {\r\n\t\tinherit: true,\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'lockedmove') {\r\n\t\t\t\tthis.add('-start', target, 'confusion', '[silent]');\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-start', target, 'confusion');\r\n\t\t\t}\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'berserkgene') {\r\n\t\t\t\tthis.effectState.time = 256;\r\n\t\t\t} else {\r\n\t\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.volatiles['confusion'].time--;\r\n\t\t\tif (!pokemon.volatiles['confusion'].time) {\r\n\t\t\t\tpokemon.removeVolatile('confusion');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-activate', pokemon, 'confusion');\r\n\t\t\tif (this.randomChance(1, 2)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tmove = {\r\n\t\t\t\tbasePower: 40,\r\n\t\t\t\ttype: '???',\r\n\t\t\t\tbaseMoveType: move.type,\r\n\t\t\t\tcategory: 'Physical',\r\n\t\t\t\twillCrit: false,\r\n\t\t\t\tisConfusionSelfHit: true,\r\n\t\t\t\tnoDamageVariance: true,\r\n\t\t\t\tflags: {},\r\n\t\t\t\tselfdestruct: move.selfdestruct,\r\n\t\t\t} as unknown as ActiveMove;\r\n\t\t\tconst damage = this.actions.getDamage(pokemon, pokemon, move);\r\n\t\t\tif (typeof damage !== 'number') throw new Error(\"Confusion damage not dealt\");\r\n\t\t\tthis.directDamage(damage);\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tpartLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ;AACf,WAAK,IAAI,WAAW,QAAQ,KAAK;AAAA,IAClC;AAAA,IACA,yBAAyB;AAAA,IACzB,gBAAgB,SAAS;AACxB,kBAAY,MAAM,OAAO;AAAA,IAC1B;AAAA,IACA,oBAAoB,SAAS;AAC5B,kBAAY,MAAM,OAAO;AAAA,IAC1B;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,sBAAsB;AAAA,IACtB,aAAa,SAAS;AACrB,UAAI,KAA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AI,KAAK,QAAQ,UAAU,OAAO;AACjG,aAAO,KAAK,aAAa,SAAS,GAAG;AAAA,IACtC;AAAA,IACA,YAAY;AACX,WAAK,YAAY,WAAW;AAC5B,WAAK,YAAY,WAAW;AAAA,IAC7B;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,MAAM;AAAA,IACN,QAAQ,QAAQ;AACf,aAAO,UAAU,aAAa,EAAE,UAAU;AAAA,IAC3C;AAAA,IACA,yBAAyB;AAAA,IACzB,gBAAgB,SAAS;AACxB,UAAI,CAAC,OAAO,OAAO,KAAK,EAAE,SAAS,QAAQ,MAAM;AAAG,gBAAQ,UAAU,aAAa,EAAE;AAAA,IACtF;AAAA,IACA,oBAAoB,SAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,779 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var formats_data_exports = {};
|
||||
__export(formats_data_exports, {
|
||||
FormatsData: () => FormatsData
|
||||
});
|
||||
module.exports = __toCommonJS(formats_data_exports);
|
||||
const FormatsData = {
|
||||
bulbasaur: {
|
||||
tier: "LC"
|
||||
},
|
||||
ivysaur: {
|
||||
tier: "NFE"
|
||||
},
|
||||
venusaur: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
charmander: {
|
||||
tier: "LC"
|
||||
},
|
||||
charmeleon: {
|
||||
tier: "NFE"
|
||||
},
|
||||
charizard: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
squirtle: {
|
||||
tier: "LC"
|
||||
},
|
||||
wartortle: {
|
||||
tier: "NFE"
|
||||
},
|
||||
blastoise: {
|
||||
tier: "UU"
|
||||
},
|
||||
caterpie: {
|
||||
tier: "LC"
|
||||
},
|
||||
metapod: {
|
||||
tier: "NFE"
|
||||
},
|
||||
butterfree: {
|
||||
tier: "NU"
|
||||
},
|
||||
weedle: {
|
||||
tier: "LC"
|
||||
},
|
||||
kakuna: {
|
||||
tier: "NFE"
|
||||
},
|
||||
beedrill: {
|
||||
tier: "NU"
|
||||
},
|
||||
pidgey: {
|
||||
tier: "LC"
|
||||
},
|
||||
pidgeotto: {
|
||||
tier: "NFE"
|
||||
},
|
||||
pidgeot: {
|
||||
tier: "NU"
|
||||
},
|
||||
rattata: {
|
||||
tier: "LC"
|
||||
},
|
||||
raticate: {
|
||||
tier: "NU"
|
||||
},
|
||||
spearow: {
|
||||
tier: "LC"
|
||||
},
|
||||
fearow: {
|
||||
tier: "NU"
|
||||
},
|
||||
ekans: {
|
||||
tier: "LC"
|
||||
},
|
||||
arbok: {
|
||||
tier: "NU"
|
||||
},
|
||||
pichu: {
|
||||
tier: "LC"
|
||||
},
|
||||
pikachu: {
|
||||
tier: "UU"
|
||||
},
|
||||
raichu: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
sandshrew: {
|
||||
tier: "LC"
|
||||
},
|
||||
sandslash: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranf: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorina: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoqueen: {
|
||||
tier: "UU"
|
||||
},
|
||||
nidoranm: {
|
||||
tier: "LC"
|
||||
},
|
||||
nidorino: {
|
||||
tier: "NFE"
|
||||
},
|
||||
nidoking: {
|
||||
tier: "OU"
|
||||
},
|
||||
cleffa: {
|
||||
tier: "LC"
|
||||
},
|
||||
clefairy: {
|
||||
tier: "NFE"
|
||||
},
|
||||
clefable: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
vulpix: {
|
||||
tier: "LC"
|
||||
},
|
||||
ninetales: {
|
||||
tier: "NU"
|
||||
},
|
||||
igglybuff: {
|
||||
tier: "LC"
|
||||
},
|
||||
jigglypuff: {
|
||||
tier: "NFE"
|
||||
},
|
||||
wigglytuff: {
|
||||
tier: "NU"
|
||||
},
|
||||
zubat: {
|
||||
tier: "LC"
|
||||
},
|
||||
golbat: {
|
||||
tier: "NFE"
|
||||
},
|
||||
crobat: {
|
||||
tier: "UU"
|
||||
},
|
||||
oddish: {
|
||||
tier: "LC"
|
||||
},
|
||||
gloom: {
|
||||
tier: "NU"
|
||||
},
|
||||
vileplume: {
|
||||
tier: "UU"
|
||||
},
|
||||
bellossom: {
|
||||
tier: "UU"
|
||||
},
|
||||
paras: {
|
||||
tier: "LC"
|
||||
},
|
||||
parasect: {
|
||||
tier: "NU"
|
||||
},
|
||||
venonat: {
|
||||
tier: "LC"
|
||||
},
|
||||
venomoth: {
|
||||
tier: "NU"
|
||||
},
|
||||
diglett: {
|
||||
tier: "LC"
|
||||
},
|
||||
dugtrio: {
|
||||
tier: "NU"
|
||||
},
|
||||
meowth: {
|
||||
tier: "LC"
|
||||
},
|
||||
persian: {
|
||||
tier: "NU"
|
||||
},
|
||||
psyduck: {
|
||||
tier: "LC"
|
||||
},
|
||||
golduck: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
mankey: {
|
||||
tier: "LC"
|
||||
},
|
||||
primeape: {
|
||||
tier: "NU"
|
||||
},
|
||||
growlithe: {
|
||||
tier: "LC"
|
||||
},
|
||||
arcanine: {
|
||||
tier: "UU"
|
||||
},
|
||||
poliwag: {
|
||||
tier: "LC"
|
||||
},
|
||||
poliwhirl: {
|
||||
tier: "NU"
|
||||
},
|
||||
poliwrath: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
politoed: {
|
||||
tier: "UU"
|
||||
},
|
||||
abra: {
|
||||
tier: "LC"
|
||||
},
|
||||
kadabra: {
|
||||
tier: "UU"
|
||||
},
|
||||
alakazam: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
machop: {
|
||||
tier: "LC"
|
||||
},
|
||||
machoke: {
|
||||
tier: "NU"
|
||||
},
|
||||
machamp: {
|
||||
tier: "OU"
|
||||
},
|
||||
bellsprout: {
|
||||
tier: "LC"
|
||||
},
|
||||
weepinbell: {
|
||||
tier: "NFE"
|
||||
},
|
||||
victreebel: {
|
||||
tier: "UU"
|
||||
},
|
||||
tentacool: {
|
||||
tier: "NU"
|
||||
},
|
||||
tentacruel: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
geodude: {
|
||||
tier: "LC"
|
||||
},
|
||||
graveler: {
|
||||
tier: "NU"
|
||||
},
|
||||
golem: {
|
||||
tier: "OU"
|
||||
},
|
||||
ponyta: {
|
||||
tier: "LC"
|
||||
},
|
||||
rapidash: {
|
||||
tier: "NU"
|
||||
},
|
||||
slowpoke: {
|
||||
tier: "NU"
|
||||
},
|
||||
slowbro: {
|
||||
tier: "UU"
|
||||
},
|
||||
slowking: {
|
||||
tier: "UU"
|
||||
},
|
||||
magnemite: {
|
||||
tier: "NU"
|
||||
},
|
||||
magneton: {
|
||||
tier: "UU"
|
||||
},
|
||||
farfetchd: {
|
||||
tier: "NU"
|
||||
},
|
||||
doduo: {
|
||||
tier: "LC"
|
||||
},
|
||||
dodrio: {
|
||||
tier: "UU"
|
||||
},
|
||||
seel: {
|
||||
tier: "LC"
|
||||
},
|
||||
dewgong: {
|
||||
tier: "NU"
|
||||
},
|
||||
grimer: {
|
||||
tier: "LC"
|
||||
},
|
||||
muk: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
shellder: {
|
||||
tier: "LC"
|
||||
},
|
||||
cloyster: {
|
||||
tier: "OU"
|
||||
},
|
||||
gastly: {
|
||||
tier: "NU"
|
||||
},
|
||||
haunter: {
|
||||
tier: "UU"
|
||||
},
|
||||
gengar: {
|
||||
tier: "OU"
|
||||
},
|
||||
onix: {
|
||||
tier: "LC"
|
||||
},
|
||||
steelix: {
|
||||
tier: "OU"
|
||||
},
|
||||
drowzee: {
|
||||
tier: "LC"
|
||||
},
|
||||
hypno: {
|
||||
tier: "UU"
|
||||
},
|
||||
krabby: {
|
||||
tier: "LC"
|
||||
},
|
||||
kingler: {
|
||||
tier: "NU"
|
||||
},
|
||||
voltorb: {
|
||||
tier: "NU"
|
||||
},
|
||||
electrode: {
|
||||
tier: "UU"
|
||||
},
|
||||
exeggcute: {
|
||||
tier: "NU"
|
||||
},
|
||||
exeggutor: {
|
||||
tier: "OU"
|
||||
},
|
||||
cubone: {
|
||||
tier: "NU"
|
||||
},
|
||||
marowak: {
|
||||
tier: "OU"
|
||||
},
|
||||
tyrogue: {
|
||||
tier: "LC"
|
||||
},
|
||||
hitmonlee: {
|
||||
tier: "NU"
|
||||
},
|
||||
hitmonchan: {
|
||||
tier: "NU"
|
||||
},
|
||||
hitmontop: {
|
||||
tier: "NU"
|
||||
},
|
||||
lickitung: {
|
||||
tier: "NU"
|
||||
},
|
||||
koffing: {
|
||||
tier: "LC"
|
||||
},
|
||||
weezing: {
|
||||
tier: "NU"
|
||||
},
|
||||
rhyhorn: {
|
||||
tier: "LC"
|
||||
},
|
||||
rhydon: {
|
||||
tier: "OU"
|
||||
},
|
||||
chansey: {
|
||||
tier: "UU"
|
||||
},
|
||||
blissey: {
|
||||
tier: "OU"
|
||||
},
|
||||
tangela: {
|
||||
tier: "NU"
|
||||
},
|
||||
kangaskhan: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
horsea: {
|
||||
tier: "LC"
|
||||
},
|
||||
seadra: {
|
||||
tier: "NU"
|
||||
},
|
||||
kingdra: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
goldeen: {
|
||||
tier: "LC"
|
||||
},
|
||||
seaking: {
|
||||
tier: "NU"
|
||||
},
|
||||
staryu: {
|
||||
tier: "LC"
|
||||
},
|
||||
starmie: {
|
||||
tier: "OU"
|
||||
},
|
||||
mrmime: {
|
||||
tier: "UU"
|
||||
},
|
||||
scyther: {
|
||||
tier: "UU"
|
||||
},
|
||||
scizor: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
smoochum: {
|
||||
tier: "LC"
|
||||
},
|
||||
jynx: {
|
||||
tier: "OU"
|
||||
},
|
||||
elekid: {
|
||||
tier: "NU"
|
||||
},
|
||||
electabuzz: {
|
||||
tier: "UU"
|
||||
},
|
||||
magby: {
|
||||
tier: "LC"
|
||||
},
|
||||
magmar: {
|
||||
tier: "NU"
|
||||
},
|
||||
pinsir: {
|
||||
tier: "UU"
|
||||
},
|
||||
tauros: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
magikarp: {
|
||||
tier: "LC"
|
||||
},
|
||||
gyarados: {
|
||||
tier: "UU"
|
||||
},
|
||||
lapras: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
ditto: {
|
||||
tier: "NU"
|
||||
},
|
||||
eevee: {
|
||||
tier: "LC"
|
||||
},
|
||||
vaporeon: {
|
||||
tier: "OU"
|
||||
},
|
||||
jolteon: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
flareon: {
|
||||
tier: "NU"
|
||||
},
|
||||
espeon: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
umbreon: {
|
||||
tier: "OU"
|
||||
},
|
||||
porygon: {
|
||||
tier: "NU"
|
||||
},
|
||||
porygon2: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
omanyte: {
|
||||
tier: "LC"
|
||||
},
|
||||
omastar: {
|
||||
tier: "UU"
|
||||
},
|
||||
kabuto: {
|
||||
tier: "LC"
|
||||
},
|
||||
kabutops: {
|
||||
tier: "UU"
|
||||
},
|
||||
aerodactyl: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
snorlax: {
|
||||
tier: "OU"
|
||||
},
|
||||
articuno: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
zapdos: {
|
||||
tier: "OU"
|
||||
},
|
||||
moltres: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
dratini: {
|
||||
tier: "LC"
|
||||
},
|
||||
dragonair: {
|
||||
tier: "NU"
|
||||
},
|
||||
dragonite: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
mewtwo: {
|
||||
tier: "Uber"
|
||||
},
|
||||
mew: {
|
||||
tier: "Uber"
|
||||
},
|
||||
chikorita: {
|
||||
tier: "LC"
|
||||
},
|
||||
bayleef: {
|
||||
tier: "NU"
|
||||
},
|
||||
meganium: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
cyndaquil: {
|
||||
tier: "LC"
|
||||
},
|
||||
quilava: {
|
||||
tier: "NFE"
|
||||
},
|
||||
typhlosion: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
totodile: {
|
||||
tier: "LC"
|
||||
},
|
||||
croconaw: {
|
||||
tier: "NFE"
|
||||
},
|
||||
feraligatr: {
|
||||
tier: "NUBL"
|
||||
},
|
||||
sentret: {
|
||||
tier: "LC"
|
||||
},
|
||||
furret: {
|
||||
tier: "NU"
|
||||
},
|
||||
hoothoot: {
|
||||
tier: "LC"
|
||||
},
|
||||
noctowl: {
|
||||
tier: "NU"
|
||||
},
|
||||
ledyba: {
|
||||
tier: "LC"
|
||||
},
|
||||
ledian: {
|
||||
tier: "NU"
|
||||
},
|
||||
spinarak: {
|
||||
tier: "LC"
|
||||
},
|
||||
ariados: {
|
||||
tier: "NU"
|
||||
},
|
||||
chinchou: {
|
||||
tier: "NU"
|
||||
},
|
||||
lanturn: {
|
||||
tier: "UU"
|
||||
},
|
||||
togepi: {
|
||||
tier: "LC"
|
||||
},
|
||||
togetic: {
|
||||
tier: "NU"
|
||||
},
|
||||
natu: {
|
||||
tier: "LC"
|
||||
},
|
||||
xatu: {
|
||||
tier: "NU"
|
||||
},
|
||||
mareep: {
|
||||
tier: "LC"
|
||||
},
|
||||
flaaffy: {
|
||||
tier: "NU"
|
||||
},
|
||||
ampharos: {
|
||||
tier: "UU"
|
||||
},
|
||||
marill: {
|
||||
tier: "LC"
|
||||
},
|
||||
azumarill: {
|
||||
tier: "NU"
|
||||
},
|
||||
sudowoodo: {
|
||||
tier: "NU"
|
||||
},
|
||||
hoppip: {
|
||||
tier: "LC"
|
||||
},
|
||||
skiploom: {
|
||||
tier: "NFE"
|
||||
},
|
||||
jumpluff: {
|
||||
tier: "UU"
|
||||
},
|
||||
aipom: {
|
||||
tier: "NU"
|
||||
},
|
||||
sunkern: {
|
||||
tier: "LC"
|
||||
},
|
||||
sunflora: {
|
||||
tier: "NU"
|
||||
},
|
||||
yanma: {
|
||||
tier: "NU"
|
||||
},
|
||||
wooper: {
|
||||
tier: "LC"
|
||||
},
|
||||
quagsire: {
|
||||
tier: "UU"
|
||||
},
|
||||
murkrow: {
|
||||
tier: "NU"
|
||||
},
|
||||
misdreavus: {
|
||||
tier: "OU"
|
||||
},
|
||||
unown: {
|
||||
tier: "NU"
|
||||
},
|
||||
wobbuffet: {
|
||||
tier: "NU"
|
||||
},
|
||||
girafarig: {
|
||||
tier: "UU"
|
||||
},
|
||||
pineco: {
|
||||
tier: "NU"
|
||||
},
|
||||
forretress: {
|
||||
tier: "OU"
|
||||
},
|
||||
dunsparce: {
|
||||
tier: "NU"
|
||||
},
|
||||
gligar: {
|
||||
tier: "UU"
|
||||
},
|
||||
snubbull: {
|
||||
tier: "LC"
|
||||
},
|
||||
granbull: {
|
||||
tier: "UU"
|
||||
},
|
||||
qwilfish: {
|
||||
tier: "UU"
|
||||
},
|
||||
shuckle: {
|
||||
tier: "NU"
|
||||
},
|
||||
heracross: {
|
||||
tier: "OU"
|
||||
},
|
||||
sneasel: {
|
||||
tier: "NU"
|
||||
},
|
||||
teddiursa: {
|
||||
tier: "LC"
|
||||
},
|
||||
ursaring: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
slugma: {
|
||||
tier: "LC"
|
||||
},
|
||||
magcargo: {
|
||||
tier: "NU"
|
||||
},
|
||||
swinub: {
|
||||
tier: "LC"
|
||||
},
|
||||
piloswine: {
|
||||
tier: "UU"
|
||||
},
|
||||
corsola: {
|
||||
tier: "NU"
|
||||
},
|
||||
remoraid: {
|
||||
tier: "LC"
|
||||
},
|
||||
octillery: {
|
||||
tier: "NU"
|
||||
},
|
||||
delibird: {
|
||||
tier: "NU"
|
||||
},
|
||||
mantine: {
|
||||
tier: "NU"
|
||||
},
|
||||
skarmory: {
|
||||
tier: "OU"
|
||||
},
|
||||
houndour: {
|
||||
tier: "NU"
|
||||
},
|
||||
houndoom: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
phanpy: {
|
||||
tier: "LC"
|
||||
},
|
||||
donphan: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
stantler: {
|
||||
tier: "NU"
|
||||
},
|
||||
smeargle: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
miltank: {
|
||||
tier: "OU"
|
||||
},
|
||||
raikou: {
|
||||
tier: "OU"
|
||||
},
|
||||
entei: {
|
||||
tier: "UUBL"
|
||||
},
|
||||
suicune: {
|
||||
tier: "OU"
|
||||
},
|
||||
larvitar: {
|
||||
tier: "LC"
|
||||
},
|
||||
pupitar: {
|
||||
tier: "NU"
|
||||
},
|
||||
tyranitar: {
|
||||
tier: "OU"
|
||||
},
|
||||
lugia: {
|
||||
tier: "Uber"
|
||||
},
|
||||
hooh: {
|
||||
tier: "Uber"
|
||||
},
|
||||
celebi: {
|
||||
tier: "Uber"
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=formats-data.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/formats-data.ts"],
|
||||
"sourcesContent": ["export const FormatsData: {[k: string]: ModdedSpeciesFormatsData} = {\r\n\tbulbasaur: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tivysaur: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvenusaur: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tcharmander: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcharmeleon: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcharizard: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tsquirtle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\twartortle: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tblastoise: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tcaterpie: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmetapod: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbutterfree: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tweedle: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkakuna: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tbeedrill: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpidgey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpidgeotto: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tpidgeot: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\trattata: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\traticate: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tspearow: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tfearow: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tekans: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarbok: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpichu: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpikachu: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\traichu: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tsandshrew: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsandslash: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranf: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorina: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoqueen: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tnidoranm: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tnidorino: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tnidoking: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tcleffa: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tclefairy: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tclefable: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tvulpix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tninetales: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tigglybuff: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tjigglypuff: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\twigglytuff: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tzubat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolbat: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tcrobat: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\toddish: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgloom: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvileplume: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tbellossom: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tparas: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tparasect: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvenonat: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tvenomoth: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdiglett: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdugtrio: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmeowth: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpersian: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpsyduck: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgolduck: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tmankey: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tprimeape: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgrowlithe: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tarcanine: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tpoliwag: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tpoliwhirl: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tpoliwrath: {\r\n\t\ttier: \"NUBL\",\r\n\t},\r\n\tpolitoed: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tabra: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkadabra: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\talakazam: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tmachop: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmachoke: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmachamp: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tbellsprout: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tweepinbell: {\r\n\t\ttier: \"NFE\",\r\n\t},\r\n\tvictreebel: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\ttentacool: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\ttentacruel: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tgeodude: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tgraveler: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgolem: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tponyta: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\trapidash: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tslowpoke: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tslowbro: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tslowking: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tmagnemite: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tmagneton: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tfarfetchd: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tdoduo: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdodrio: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tseel: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tdewgong: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tgrimer: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tmuk: {\r\n\t\ttier: \"UUBL\",\r\n\t},\r\n\tshellder: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tcloyster: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tgastly: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\thaunter: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tgengar: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tonix: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tsteelix: {\r\n\t\ttier: \"OU\",\r\n\t},\r\n\tdrowzee: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\thypno: {\r\n\t\ttier: \"UU\",\r\n\t},\r\n\tkrabby: {\r\n\t\ttier: \"LC\",\r\n\t},\r\n\tkingler: {\r\n\t\ttier: \"NU\",\r\n\t},\r\n\tvoltorb: {\r\n\t\ttLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,cAAuD;AAAA,EACnE,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,UAAU;AAAA,IACT,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,W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AAA,IACX,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,MAAM;AAAA,EACP;AAAALine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,456 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var items_exports = {};
|
||||
__export(items_exports, {
|
||||
Items: () => Items
|
||||
});
|
||||
module.exports = __toCommonJS(items_exports);
|
||||
const Items = {
|
||||
berryjuice: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
blackbelt: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Fighting") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
blackglasses: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Dark") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
brightpowder: {
|
||||
inherit: true,
|
||||
onModifyAccuracy(accuracy) {
|
||||
if (typeof accuracy !== "number")
|
||||
return;
|
||||
this.debug("brightpowder - decreasing accuracy");
|
||||
return accuracy - 20;
|
||||
}
|
||||
},
|
||||
charcoal: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Fire") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
dragonfang: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
}
|
||||
},
|
||||
dragonscale: {
|
||||
inherit: true,
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Dragon") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
fastball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
focusband: {
|
||||
inherit: true,
|
||||
onDamage(damage, target, source, effect) {
|
||||
if (this.randomChance(30, 256) && damage >= target.hp && effect && effect.effectType === "Move") {
|
||||
this.add("-activate", target, "item: Focus Band");
|
||||
return target.hp - 1;
|
||||
}
|
||||
}
|
||||
},
|
||||
hardstone: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Rock") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
heavyball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
kingsrock: {
|
||||
inherit: true,
|
||||
onModifyMove(move) {
|
||||
const affectedByKingsRock = [
|
||||
"absorb",
|
||||
"aeroblast",
|
||||
"barrage",
|
||||
"beatup",
|
||||
"bide",
|
||||
"bonerush",
|
||||
"bonemerang",
|
||||
"cometpunch",
|
||||
"counter",
|
||||
"crabhammer",
|
||||
"crosschop",
|
||||
"cut",
|
||||
"dig",
|
||||
"doublekick",
|
||||
"doubleslap",
|
||||
"doubleedge",
|
||||
"dragonrage",
|
||||
"drillpeck",
|
||||
"eggbomb",
|
||||
"explosion",
|
||||
"extremespeed",
|
||||
"falseswipe",
|
||||
"feintattack",
|
||||
"flail",
|
||||
"fly",
|
||||
"frustration",
|
||||
"furyattack",
|
||||
"furycutter",
|
||||
"furyswipes",
|
||||
"gigadrain",
|
||||
"hiddenpower",
|
||||
"highjumpkick",
|
||||
"hornattack",
|
||||
"hydropump",
|
||||
"jumpkick",
|
||||
"karatechop",
|
||||
"leechlife",
|
||||
"machpunch",
|
||||
"magnitude",
|
||||
"megadrain",
|
||||
"megakick",
|
||||
"megapunch",
|
||||
"megahorn",
|
||||
"mirrorcoat",
|
||||
"nightshade",
|
||||
"outrage",
|
||||
"payday",
|
||||
"peck",
|
||||
"petaldance",
|
||||
"pinmissile",
|
||||
"pound",
|
||||
"present",
|
||||
"pursuit",
|
||||
"psywave",
|
||||
"quickattack",
|
||||
"rage",
|
||||
"rapidspin",
|
||||
"razorleaf",
|
||||
"razorwind",
|
||||
"return",
|
||||
"reversal",
|
||||
"rockthrow",
|
||||
"rollout",
|
||||
"scratch",
|
||||
"seismictoss",
|
||||
"selfdestruct",
|
||||
"skullbash",
|
||||
"skyattack",
|
||||
"slam",
|
||||
"slash",
|
||||
"snore",
|
||||
"solarbeam",
|
||||
"sonicboom",
|
||||
"spikecannon",
|
||||
"strength",
|
||||
"struggle",
|
||||
"submission",
|
||||
"superfang",
|
||||
"surf",
|
||||
"swift",
|
||||
"tackle",
|
||||
"takedown",
|
||||
"thief",
|
||||
"thrash",
|
||||
"triplekick",
|
||||
"twineedle",
|
||||
"visegrip",
|
||||
"vinewhip",
|
||||
"vitalthrow",
|
||||
"watergun",
|
||||
"waterfall",
|
||||
"wingattack"
|
||||
];
|
||||
if (affectedByKingsRock.includes(move.id)) {
|
||||
if (!move.secondaries)
|
||||
move.secondaries = [];
|
||||
move.secondaries.push({
|
||||
chance: 12,
|
||||
volatileStatus: "flinch",
|
||||
kingsrock: true
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
leftovers: {
|
||||
inherit: true,
|
||||
onResidualOrder: 5,
|
||||
onResidualSubOrder: 1
|
||||
},
|
||||
levelball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
lightball: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifySpA() {
|
||||
}
|
||||
},
|
||||
loveball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
luckypunch: {
|
||||
inherit: true,
|
||||
onModifyCritRatioPriority: -1,
|
||||
onModifyCritRatio(critRatio, user) {
|
||||
if (user.species.name === "Chansey") {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
},
|
||||
lureball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
magnet: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Electric") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
metalcoat: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Steel") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
metalpowder: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifyDef() {
|
||||
},
|
||||
onModifySpD() {
|
||||
}
|
||||
},
|
||||
miracleseed: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Grass") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
moonball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mysticwater: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Water") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
nevermeltice: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ice") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
poisonbarb: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Poison") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
sharpbeak: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Flying") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
silverpowder: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Bug") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
softsand: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ground") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
spelltag: {
|
||||
inherit: true,
|
||||
onModifyAtk() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Ghost") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
sportball: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
stick: {
|
||||
inherit: true,
|
||||
onModifyCritRatioPriority: -1,
|
||||
onModifyCritRatio(critRatio, user) {
|
||||
if (user.species.id === "farfetchd") {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
},
|
||||
thickclub: {
|
||||
inherit: true,
|
||||
// In Gen 2 this happens in stat calculation directly.
|
||||
onModifyAtk() {
|
||||
}
|
||||
},
|
||||
twistedspoon: {
|
||||
inherit: true,
|
||||
onModifySpA() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Psychic") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
berserkgene: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
berry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
bitterberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
burntberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
goldberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
iceberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mintberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
miracleberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
mysteryberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
pinkbow: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Normal") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
},
|
||||
isNonstandard: null
|
||||
},
|
||||
polkadotbow: {
|
||||
inherit: true,
|
||||
onBasePower() {
|
||||
},
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Normal") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
},
|
||||
isNonstandard: null
|
||||
},
|
||||
przcureberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
},
|
||||
psncureberry: {
|
||||
inherit: true,
|
||||
isNonstandard: null
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=items.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/items.ts"],
|
||||
"sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\r\n\tberryjuice: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tblackbelt: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Fighting') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tblackglasses: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Dark') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tbrightpowder: {\r\n\t\tinherit: true,\r\n\t\tonModifyAccuracy(accuracy) {\r\n\t\t\tif (typeof accuracy !== 'number') return;\r\n\t\t\tthis.debug('brightpowder - decreasing accuracy');\r\n\t\t\treturn accuracy - 20;\r\n\t\t},\r\n\t},\r\n\tcharcoal: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Fire') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdragonfang: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t},\r\n\tdragonscale: {\r\n\t\tinherit: true,\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Dragon') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tfastball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tfocusband: {\r\n\t\tinherit: true,\r\n\t\tonDamage(damage, target, source, effect) {\r\n\t\t\tif (this.randomChance(30, 256) && damage >= target.hp && effect && effect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-activate', target, 'item: Focus Band');\r\n\t\t\t\treturn target.hp - 1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\thardstone: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Rock') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\theavyball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tkingsrock: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move) {\r\n\t\t\tconst affectedByKingsRock = [\r\n\t\t\t\t'absorb', 'aeroblast', 'barrage', 'beatup', 'bide', 'bonerush', 'bonemerang', 'cometpunch', 'counter', 'crabhammer', 'crosschop', 'cut', 'dig', 'doublekick', 'doubleslap', 'doubleedge', 'dragonrage', 'drillpeck', 'eggbomb', 'explosion', 'extremespeed', 'falseswipe', 'feintattack', 'flail', 'fly', 'frustration', 'furyattack', 'furycutter', 'furyswipes', 'gigadrain', 'hiddenpower', 'highjumpkick', 'hornattack', 'hydropump', 'jumpkick', 'karatechop', 'leechlife', 'machpunch', 'magnitude', 'megadrain', 'megakick', 'megapunch', 'megahorn', 'mirrorcoat', 'nightshade', 'outrage', 'payday', 'peck', 'petaldance', 'pinmissile', 'pound', 'present', 'pursuit', 'psywave', 'quickattack', 'rage', 'rapidspin', 'razorleaf', 'razorwind', 'return', 'reversal', 'rockthrow', 'rollout', 'scratch', 'seismictoss', 'selfdestruct', 'skullbash', 'skyattack', 'slam', 'slash', 'snore', 'solarbeam', 'sonicboom', 'spikecannon', 'strength', 'struggle', 'submission', 'superfang', 'surf', 'swift', 'tackle', 'takedown', 'thief', 'thrash', 'triplekick', 'twineedle', 'visegrip', 'vinewhip', 'vitalthrow', 'watergun', 'waterfall', 'wingattack',\r\n\t\t\t];\r\n\t\t\tif (affectedByKingsRock.includes(move.id)) {\r\n\t\t\t\tif (!move.secondaries) move.secondaries = [];\r\n\t\t\t\t// The kingsrock flag allows for differentiation from Snore,\r\n\t\t\t\t// which can flinch and is also affected by King's Rock\r\n\t\t\t\tmove.secondaries.push({\r\n\t\t\t\t\tchance: 12,\r\n\t\t\t\t\tvolatileStatus: 'flinch',\r\n\t\t\t\t\tkingsrock: true,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tleftovers: {\r\n\t\tinherit: true,\r\n\t\tonResidualOrder: 5,\r\n\t\tonResidualSubOrder: 1,\r\n\t},\r\n\tlevelball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tlightball: {\r\n\t\tinherit: true,\r\n\t\t// In Gen 2 this happens in stat calculation directly.\r\n\t\tonModifySpA() {},\r\n\t},\r\n\tloveball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tluckypunch: {\r\n\t\tinherit: true,\r\n\t\tonModifyCritRatioPriority: -1,\r\n\t\tonModifyCritRatio(critRatio, user) {\r\n\t\t\tif (user.species.name === 'Chansey') {\r\n\t\t\t\treturn 3;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tlureball: {\r\n\t\tinherit: true,\r\n\t\tisNonstandard: null,\r\n\t},\r\n\tmagnet: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Electric') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmetalcoat: {\r\n\t\tinherit: true,\r\n\t\tonModifyAtk() {},\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Steel') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmetalpowder: {\r\n\t\tinherit: true,\r\n\t\t// In Gen 2 this happens in stat calculation directly.\r\n\t\tonModifyDef() {},\r\n\t\tonModifySpD() {},\r\n\t},\r\n\tmiracleseed: {\r\Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,YAAY;AAC9B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,QAAQ;AAC1B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,iBAAiB,UAAU;AAC1B,UAAI,OAAO,aAAa;AAAU;AAClC,WAAK,MAAM,oCAAoC;AAC/C,aAAO,WAAW;AAAA,IACnB;AAAA,EACD;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,QAAQ;AAC1B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,EAChB;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,UAAU;AAC5B,eAAO,SAAS;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EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,UAAU;AAC5B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,UAAU;AAC5B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,cAAc;AAAA,IACb,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,OAAO;AACzB,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,UAAU;AAC5B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,IACT,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,IACf,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,SAAS;AAC3B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,eAAe;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,2BAALine truncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/learnsets.ts"],
|
||||
"sourcesContent": ["export const Learnsets: {[k: string]: ModdedLearnsetData} = {\r\n\tmissingno: {\r\n\t\tlearnset: {\r\n\t\t\tblizzard: [\"1M\"],\r\n\t\t\tbubblebeam: [\"1M\"],\r\n\t\t\tcut: [\"1M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tearthquake: [\"1M\"],\r\n\t\t\tfissure: [\"1M\"],\r\n\t\t\tfly: [\"1M\"],\r\n\t\t\ticebeam: [\"1M\"],\r\n\t\t\tmegakick: [\"1M\"],\r\n\t\t\tmegapunch: [\"1M\"],\r\n\t\t\tpsychic: [\"1M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorwind: [\"1M\"],\r\n\t\t\trest: [\"1M\"],\r\n\t\t\tseismictoss: [\"1M\"],\r\n\t\t\tskyattack: [\"1L1\"],\r\n\t\t\tsubmission: [\"1M\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\tteleport: [\"1M\"],\r\n\t\t\tthunder: [\"1M\"],\r\n\t\t\tthunderwave: [\"1M\"],\r\n\t\t\ttoxic: [\"1M\"],\r\n\t\t\ttriattack: [\"1M\"],\r\n\t\t\twatergun: [\"1M\", \"1L1\"],\r\n\t\t},\r\n\t},\r\n\tbulbasaur: {\r\n\t\tlearnset: {\r\n\t\t\tancientpower: [\"2S0\"],\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2S0\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L32\", \"1L34\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\tleechseed: [\"2L7\", \"1L7\"],\r\n\t\t\tlightscreen: [\"2E\"],\r\n\t\t\tmegadrain: [\"1M\"],\r\n\t\t\tmimic: [\"1M\"],\r\n\t\t\tmudslap: [\"2M\"],\r\n\t\t\tpetaldance: [\"2E\"],\r\n\t\t\tpoisonpowder: [\"2L15\", \"1L20\"],\r\n\t\t\tprotect: [\"2M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorleaf: [\"2L20\", \"1L27\"],\r\n\t\t\trazorwind: [\"2E\"],\r\n\t\t\treflect: [\"1M\"],\r\n\t\t\trest: [\"2M\", \"1M\"],\r\n\t\t\treturn: [\"2M\"],\r\n\t\t\tsafeguard: [\"2E\"],\r\n\t\t\tskullbash: [\"2E\"],\r\n\t\t\tsleeppowder: [\"2L15\", \"1L41\"],\r\n\t\t\tsleeptalk: [\"2M\"],\r\n\t\t\tsnore: [\"2M\"],\r\n\t\t\tsolarbeam: [\"2M\", \"2L46\", \"1M\", \"1L48\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tsunnyday: [\"2M\"],\r\n\t\t\tswagger: [\"2M\"],\r\n\t\t\tsweetscent: [\"2M\", \"2L25\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\tsynthesis: [\"2L39\"],\r\n\t\t\ttackle: [\"2L1\", \"2S0\", \"1L1\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\ttoxic: [\"2M\", \"1M\"],\r\n\t\t\tvinewhip: [\"2L10\", \"1L13\"],\r\n\t\t},\r\n\t\teventData: [\r\n\t\t\t{generation: 2, level: 5, shiny: 1, moves: [\"tackle\", \"growl\", \"ancientpower\"]},\r\n\t\t],\r\n\t\tencounters: [\r\n\t\t\t{generation: 1, level: 5},\r\n\t\t],\r\n\t},\r\n\tivysaur: {\r\n\t\tlearnset: {\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2L1\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L38\", \"1L38\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\tleechseed: [\"2L7\", \"2L1\", \"1L7\", \"1L1\"],\r\n\t\t\tmegadrain: [\"1M\"],\r\n\t\t\tmimic: [\"1M\"],\r\n\t\t\tmudslap: [\"2M\"],\r\n\t\t\tpoisonpowder: [\"2L15\", \"1L22\"],\r\n\t\t\tprotect: [\"2M\"],\r\n\t\t\trage: [\"1M\"],\r\n\t\t\trazorleaf: [\"2L22\", \"1L30\"],\r\n\t\t\treflect: [\"1M\"],\r\n\t\t\trest: [\"2M\", \"1M\"],\r\n\t\t\treturn: [\"2M\"],\r\n\t\t\tsleeppowder: [\"2L15\", \"1L46\"],\r\n\t\t\tsleeptalk: [\"2M\"],\r\n\t\t\tsnore: [\"2M\"],\r\n\t\t\tsolarbeam: [\"2M\", \"2L56\", \"1M\", \"1L54\"],\r\n\t\t\tsubstitute: [\"1M\"],\r\n\t\t\tsunnyday: [\"2M\"],\r\n\t\t\tswagger: [\"2M\"],\r\n\t\t\tsweetscent: [\"2M\", \"2L29\"],\r\n\t\t\tswordsdance: [\"1M\"],\r\n\t\t\tsynthesis: [\"2L47\"],\r\n\t\t\ttackle: [\"2L1\", \"1L1\"],\r\n\t\t\ttakedown: [\"1M\"],\r\n\t\t\ttoxic: [\"2M\", \"1M\"],\r\n\t\t\tvinewhip: [\"2L10\", \"1L13\"],\r\n\t\t},\r\n\t},\r\n\tvenusaur: {\r\n\t\tlearnset: {\r\n\t\t\tattract: [\"2M\"],\r\n\t\t\tbide: [\"1M\"],\r\n\t\t\tbodyslam: [\"1M\"],\r\n\t\t\tcurse: [\"2M\"],\r\n\t\t\tcut: [\"2M\", \"1M\"],\r\n\t\t\tdefensecurl: [\"2M\"],\r\n\t\t\tdoubleedge: [\"1M\"],\r\n\t\t\tdoubleteam: [\"2M\", \"1M\"],\r\n\t\t\tendure: [\"2M\"],\r\n\t\t\tflash: [\"2M\"],\r\n\t\t\tfrustration: [\"2M\"],\r\n\t\t\tfurycutter: [\"2M\"],\r\n\t\t\tgigadrain: [\"2M\"],\r\n\t\t\tgrowl: [\"2L4\", \"2L1\", \"1L1\"],\r\n\t\t\tgrowth: [\"2L41\", \"1L43\"],\r\n\t\t\theadbutt: [\"2M\"],\r\n\t\t\thiddenpower: [\"2M\"],\r\n\t\t\thyperbeam: [\"2M\", \"1M\"],\r\n\t\t\tleechseed: [\"2L7\", \"2L1\", \"1L7\", \"1L1\"],\r\n\t\t\tmegadrain: [\"1M\"],\r\n\t\t\tmimic: [\"1M\"],\r\n\t\t\tmudslap: [\"2M\"],\r\n\t\t\tpoisonpowder: [\"2L15\", \"2S0\", \"1L22\"],\r\n\t\t\tprotect: [\"2M\"]Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA+C;AAAA,EAC3D,WAAW;AAAA,IACV,UAAU;AAAA,MACT,UAAU,CAAC,IAAI;AAAA,MACf,YAAY,CAAC,IAAI;AAAA,MACjB,KAAK,CAAC,IAAI;AAAA,MACV,YAAY,CAAC,IAAI;AAAA,MACjB,YAAY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,CAAC,QAAQ,OAAO,MAAM;AAAA,MACnC,WAAW,CAAC,IAAI;AAAA,MAChB,OAAO,CAAC,IAAI;AAAA,MACZ,WAAW,CAAC,MAAM,QAAQ,MAAM,MAAM;AAAA,MACtC,YAAY,CAAC,IAAI;AAAA,MACjB,UAAU,CAAC,IAAI;AAAA,MACf,SAAS,CAAC,IAAI;AAAA,MACd,YAAY,CAAC,MAAM,QAAQ,KAAK;AAAA,MAChC,aAAa,CAAC,IAAI;AAAA,MAClB,WAAW,CAAC,MAAM;AAAA,MAClB,QAAQ,CAAC,OAAO,KAAK;AAAA,MACrB,UAAU,CAAC,IAAI;AAAA,MACf,OAAO,CAAC,MAAM,IAAI;AAAA,MAClB,UAAU,CAAC,QAAQ,OAAO,QAAQ,KAAK;AAAA,IACxC;AAAA,IACA,WAAW;AAAA,MACV,EAAC,YAAY,GAAG,OAAO,IAAI,OAAO,MAAM,OAAO,CAAC,gBAAgB,eAAe,aAAa,YAAY,EAAC;AAAA,IAC1G;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,UAAU;AAAA,MACTLine truncated
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/moves.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 2 moves\r\n */\r\n\r\nexport const Moves: {[k: string]: ModdedMoveData} = {\r\n\taeroblast: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tbeatup: {\r\n\t\tinherit: true,\r\n\t\tonModifyMove(move, pokemon) {\r\n\t\t\tmove.type = '???';\r\n\t\t\tmove.category = 'Special';\r\n\t\t\tmove.allies = pokemon.side.pokemon.filter(ally => !ally.fainted && !ally.status);\r\n\t\t\tmove.multihit = move.allies.length;\r\n\t\t},\r\n\t},\r\n\tbellydrum: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tif (target.boosts.atk >= 6) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (target.hp <= target.maxhp / 2) {\r\n\t\t\t\tthis.boost({atk: 2}, null, null, this.dex.conditions.get('bellydrum2'));\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.directDamage(target.maxhp / 2);\r\n\t\t\tconst originalStage = target.boosts.atk;\r\n\t\t\tlet currentStage = originalStage;\r\n\t\t\tlet boosts = 0;\r\n\t\t\tlet loopStage = 0;\r\n\t\t\twhile (currentStage < 6) {\r\n\t\t\t\tloopStage = currentStage;\r\n\t\t\t\tcurrentStage++;\r\n\t\t\t\tif (currentStage < 6) currentStage++;\r\n\t\t\t\ttarget.boosts.atk = loopStage;\r\n\t\t\t\tif (target.getStat('atk', false, true) < 999) {\r\n\t\t\t\t\ttarget.boosts.atk = currentStage;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\ttarget.boosts.atk = currentStage - 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tboosts = target.boosts.atk - originalStage;\r\n\t\t\ttarget.boosts.atk = originalStage;\r\n\t\t\tthis.boost({atk: boosts});\r\n\t\t},\r\n\t},\r\n\tbide: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tduration: 3,\r\n\t\t\tdurationCallback(target, source, effect) {\r\n\t\t\t\treturn this.random(3, 5);\r\n\t\t\t},\r\n\t\t\tonLockMove: 'bide',\r\n\t\t\tonStart(pokemon) {\r\n\t\t\t\tthis.effectState.totalDamage = 0;\r\n\t\t\t\tthis.add('-start', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonDamagePriority: -101,\r\n\t\t\tonDamage(damage, target, source, move) {\r\n\t\t\t\tif (!move || move.effectType !== 'Move' || !source) return;\r\n\t\t\t\tthis.effectState.totalDamage += damage;\r\n\t\t\t\tthis.effectState.lastDamageSource = source;\r\n\t\t\t},\r\n\t\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\t\tif (this.effectState.duration === 1) {\r\n\t\t\t\t\tthis.add('-end', pokemon, 'move: Bide');\r\n\t\t\t\t\tif (!this.effectState.totalDamage) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttarget = this.effectState.lastDamageSource;\r\n\t\t\t\t\tif (!target) {\r\n\t\t\t\t\t\tthis.add('-fail', pokemon);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!target.isActive) {\r\n\t\t\t\t\t\tconst possibleTarget = this.getRandomTarget(pokemon, this.dex.moves.get('pound'));\r\n\t\t\t\t\t\tif (!possibleTarget) {\r\n\t\t\t\t\t\t\tthis.add('-miss', pokemon);\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttarget = possibleTarget;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconst moveData = {\r\n\t\t\t\t\t\tid: 'bide',\r\n\t\t\t\t\t\tname: \"Bide\",\r\n\t\t\t\t\t\taccuracy: 100,\r\n\t\t\t\t\t\tdamage: this.effectState.totalDamage * 2,\r\n\t\t\t\t\t\tcategory: \"Physical\",\r\n\t\t\t\t\t\tpriority: 0,\r\n\t\t\t\t\t\tflags: {contact: 1, protect: 1},\r\n\t\t\t\t\t\teffectType: 'Move',\r\n\t\t\t\t\t\ttype: 'Normal',\r\n\t\t\t\t\t} as unknown as ActiveMove;\r\n\t\t\t\t\tthis.actions.tryMoveHit(target, pokemon, moveData);\r\n\t\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tthis.add('-activate', pokemon, 'move: Bide');\r\n\t\t\t},\r\n\t\t\tonMoveAborted(pokemon) {\r\n\t\t\t\tpokemon.removeVolatile('bide');\r\n\t\t\t},\r\n\t\t\tonEnd(pokemon) {\r\n\t\t\t\tthis.add('-end', pokemon, 'move: Bide', '[silent]');\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tcounter: {\r\n\t\tinherit: true,\r\n\t\tdamageCallback(pokemon, target) {\r\n\t\t\tconst lastAttackedBy = pokemon.getLastAttackedBy();\r\n\t\t\tif (!lastAttackedBy?.move || !lastAttackedBy.thisTurn) return false;\r\n\r\n\t\t\t// Hidden Power counts as physical\r\n\t\t\tif (this.getCategory(lastAttackedBy.move) === 'Physical' && target.lastMove?.id !== 'sleeptalk') {\r\n\t\t\t\treturn 2 * lastAttackedBy.damage;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\tbeforeTurnCallback() {},\r\n\t\tonTry() {},\r\n\t\tcondition: {},\r\n\t\tpriority: -1,\r\n\t},\r\n\tcrabhammer: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tcrosschop: {\r\n\t\tinherit: true,\r\n\t\tcritRatio: 3,\r\n\t},\r\n\tcurse: {\r\n\t\tinherit: true,\r\n\t\tcondition: {\r\n\t\t\tonStart(pokemon, source) {\r\n\t\t\t\tthis.add('-start', pokemon, 'Curse', '[of] ' + source);\r\n\t\t\t},\r\n\t\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\t\tthis.damage(pokemon.baseMaxhp / 4);\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tdetect: {\r\n\t\tinherit: true,\r\n\t\tpriority: 2,\r\n\t},\r\n\tdig: {\r\n\t\tinherit: true,\r\n\t\tonPrepareHit(target, source) {\r\n\t\t\treturn source.status !== 'slp';\r\n\t\t},\r\n\t\tcondition: {\r\n\t\t\tduration: 2,\r\n\t\t\tonImmunity(typeLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,QAAuC;AAAA,EACnD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,WAAW;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACP,SA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YAAI,CAAC,KAAK,YAAY,QAAQ,CAAC,QAAQ,QAAQ,KAAK,YAAY,IAAI,GAAG;AACtE;AAAA,QACD;AACA,mBAAW,YAAY,QAAQ,WAAW;AACzC,cAAI,SAAS,OAAO,KAAK,YAAY,MAAM;AAC1C,oBAAQ,YAAY,SAAS,EAAE;AAAA,UAChC;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,EACX;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,UAAU;AAAA,EACX;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,UAAU;AAAA,EACX;AAAA,EACA,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,aAAa,QAAQ,QAAQ;AAC5B,aAAO,OAAO,WAAW;AAAA,IAC1B;AAAA,IACA,WAAW;AAAA,MACV,UAAU;AAAA,MACV,kBAAkB,QAAQ,QAAQ,MAAM;AACvC,YAAI,KAAK,OAAO,UAAU,KAAK,OAAO,aAAa,KAAK,OAAO,aAAa,KAAK,OAAO,aAAa;AACpG;AAAA,QACDLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var pokedex_exports = {};
|
||||
__export(pokedex_exports, {
|
||||
Pokedex: () => Pokedex
|
||||
});
|
||||
module.exports = __toCommonJS(pokedex_exports);
|
||||
const Pokedex = {
|
||||
unown: {
|
||||
inherit: true,
|
||||
cosmeticFormes: ["Unown-B", "Unown-C", "Unown-D", "Unown-E", "Unown-F", "Unown-G", "Unown-H", "Unown-I", "Unown-J", "Unown-K", "Unown-L", "Unown-M", "Unown-N", "Unown-O", "Unown-P", "Unown-Q", "Unown-R", "Unown-S", "Unown-T", "Unown-U", "Unown-V", "Unown-W", "Unown-X", "Unown-Y", "Unown-Z"],
|
||||
formeOrder: ["Unown", "Unown-B", "Unown-C", "Unown-D", "Unown-E", "Unown-F", "Unown-G", "Unown-H", "Unown-I", "Unown-J", "Unown-K", "Unown-L", "Unown-M", "Unown-N", "Unown-O", "Unown-P", "Unown-Q", "Unown-R", "Unown-S", "Unown-T", "Unown-U", "Unown-V", "Unown-W", "Unown-X", "Unown-Y", "Unown-Z"]
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=pokedex.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/pokedex.ts"],
|
||||
"sourcesContent": ["export const Pokedex: {[k: string]: ModdedSpeciesData} = {\r\n\tunown: {\r\n\t\tinherit: true,\r\n\t\tcosmeticFormes: [\"Unown-B\", \"Unown-C\", \"Unown-D\", \"Unown-E\", \"Unown-F\", \"Unown-G\", \"Unown-H\", \"Unown-I\", \"Unown-J\", \"Unown-K\", \"Unown-L\", \"Unown-M\", \"Unown-N\", \"Unown-O\", \"Unown-P\", \"Unown-Q\", \"Unown-R\", \"Unown-S\", \"Unown-T\", \"Unown-U\", \"Unown-V\", \"Unown-W\", \"Unown-X\", \"Unown-Y\", \"Unown-Z\"],\r\n\t\tformeOrder: [\"Unown\", \"Unown-B\", \"Unown-C\", \"Unown-D\", \"Unown-E\", \"Unown-F\", \"Unown-G\", \"Unown-H\", \"Unown-I\", \"Unown-J\", \"Unown-K\", \"Unown-L\", \"Unown-M\", \"Unown-N\", \"Unown-O\", \"Unown-P\", \"Unown-Q\", \"Unown-R\", \"Unown-S\", \"Unown-T\", \"Unown-U\", \"Unown-V\", \"Unown-W\", \"Unown-X\", \"Unown-Y\", \"Unown-Z\"],\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,UAA4C;AAAA,EACxD,OAAO;AAAA,IACN,SAAS;AAAA,IACT,gBAAgB,CAAC,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,SAAS;AAAA,IAClS,YAAY,CAAC,SAAS,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,WAAW,SAAS;AAAA,EACxS;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
{
|
||||
"venusaur": {
|
||||
"moves": ["growth", "hiddenpowerfire", "hiddenpowerice", "leechseed", "razorleaf", "sleeppowder", "synthesis"]
|
||||
},
|
||||
"charizard": {
|
||||
"moves": ["bellydrum", "earthquake", "fireblast", "hyperbeam", "rockslide"]
|
||||
},
|
||||
"blastoise": {
|
||||
"moves": ["icebeam", "rapidspin", "rest", "sleeptalk", "surf", "toxic", "zapcannon"]
|
||||
},
|
||||
"butterfree": {
|
||||
"moves": ["nightmare", "psychic", "sleeppowder", "stunspore", "substitute"]
|
||||
},
|
||||
"beedrill": {
|
||||
"moves": ["agility", "hiddenpowerground", "sludgebomb", "substitute", "swordsdance"]
|
||||
},
|
||||
"pidgeot": {
|
||||
"moves": ["curse", "hiddenpowerground", "reflect", "rest", "return", "sleeptalk", "toxic", "whirlwind"]
|
||||
},
|
||||
"raticate": {
|
||||
"moves": ["irontail", "rest", "return", "sleeptalk", "superfang"]
|
||||
},
|
||||
"fearow": {
|
||||
"moves": ["doubleedge", "drillpeck", "hiddenpowerground", "rest", "sleeptalk", "substitute"]
|
||||
},
|
||||
"arbok": {
|
||||
"moves": ["curse", "earthquake", "glare", "haze", "rest", "sludgebomb"]
|
||||
},
|
||||
"pikachu": {
|
||||
"moves": ["encore", "hiddenpowerice", "substitute", "surf", "thunderbolt"]
|
||||
},
|
||||
"raichu": {
|
||||
"moves": ["encore", "hiddenpowerice", "rest", "sleeptalk", "surf", "thunder", "thunderbolt"]
|
||||
},
|
||||
"sandslash": {
|
||||
"moves": ["earthquake", "hiddenpowerbug", "rockslide", "substitute", "swordsdance"]
|
||||
},
|
||||
"nidoqueen": {
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "lovelykiss", "moonlight", "thunder"]
|
||||
},
|
||||
"nidoking": {
|
||||
"moves": ["earthquake", "fireblast", "icebeam", "lovelykiss", "morningsun", "thunder"]
|
||||
},
|
||||
"clefable": {
|
||||
"moves": ["bellydrum", "encore", "fireblast", "moonlight", "return", "shadowball"]
|
||||
},
|
||||
"ninetales": {
|
||||
"moves": ["confuseray", "fireblast", "hiddenpowergrass", "hypnosis", "sunnyday"]
|
||||
},
|
||||
"wigglytuff": {
|
||||
"moves": ["bodyslam", "charm", "curse", "doubleedge", "fireblast", "rest", "sleeptalk", "thunderwave"]
|
||||
},
|
||||
"vileplume": {
|
||||
"moves": ["hiddenpowergrass", "moonlight", "sleeppowder", "sludgebomb", "stunspore", "swordsdance"]
|
||||
},
|
||||
"parasect": {
|
||||
"moves": ["bodyslam", "gigadrain", "hiddenpowerbug", "spore", "swordsdance", "synthesis"]
|
||||
},
|
||||
"venomoth": {
|
||||
"moves": ["disable", "gigadrain", "psychic", "sleeppowder", "sludgebomb", "stunspore"]
|
||||
},
|
||||
"dugtrio": {
|
||||
"moves": ["earthquake", "rockslide", "sludgebomb", "substitute", "swagger"]
|
||||
},
|
||||
"persian": {
|
||||
"moves": ["bodyslam", "hypnosis", "irontail", "rest", "return", "thunder"]
|
||||
},
|
||||
"golduck": {
|
||||
"moves": ["crosschop", "hiddenpowerelectric", "hydropump", "hypnosis", "icebeam", "psychic", "surf"]
|
||||
},
|
||||
"primeape": {
|
||||
"moves": ["crosschop", "doubleedge", "hiddenpowerghost", "meditate", "rest", "rockslide", "substitute"]
|
||||
},
|
||||
"arcanine": {
|
||||
"moves": ["bodyslam", "crunch", "extremespeed", "fireblast", "hiddenpowergrass", "rest", "sleeptalk"]
|
||||
},
|
||||
"poliwrath": {
|
||||
"moves": ["bellydrum", "bodyslam", "earthquake", "lovelykiss"]
|
||||
},
|
||||
"alakazam": {
|
||||
"moves": ["encore", "firepunch", "icepunch", "psychic", "recover", "thunderpunch", "thunderwave"]
|
||||
},
|
||||
"machamp": {
|
||||
"moves": ["bodyslam", "crosschop", "curse", "earthquake", "hiddenpowerghost", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"victreebel": {
|
||||
"moves": ["hiddenpowerground", "razorleaf", "sleeppowder", "sludgebomb", "swordsdance", "synthesis"]
|
||||
},
|
||||
"tentacruel": {
|
||||
"moves": ["hydropump", "sludgebomb", "substitute", "swordsdance"]
|
||||
},
|
||||
"golem": {
|
||||
"moves": ["curse", "earthquake", "explosion", "fireblast", "rapidspin", "rockslide"]
|
||||
},
|
||||
"rapidash": {
|
||||
"moves": ["bodyslam", "fireblast", "hiddenpowergrass", "hypnosis", "sunnyday"]
|
||||
},
|
||||
"slowbro": {
|
||||
"moves": ["fireblast", "psychic", "rest", "sleeptalk", "surf", "thunderwave", "toxic"]
|
||||
},
|
||||
"magneton": {
|
||||
"moves": ["hiddenpowerice", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"farfetchd": {
|
||||
"moves": ["agility", "batonpass", "return", "swordsdance"]
|
||||
},
|
||||
"dodrio": {
|
||||
"moves": ["doubleedge", "drillpeck", "hiddenpowerground", "rest", "substitute"]
|
||||
},
|
||||
"dewgong": {
|
||||
"moves": ["bodyslam", "encore", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"muk": {
|
||||
"moves": ["curse", "explosion", "fireblast", "hiddenpowerground", "sludgebomb"]
|
||||
},
|
||||
"cloyster": {
|
||||
"moves": ["explosion", "icebeam", "spikes", "surf", "toxic"]
|
||||
},
|
||||
"gengar": {
|
||||
"moves": ["destinybond", "explosion", "firepunch", "hypnosis", "icepunch", "thunderbolt"]
|
||||
},
|
||||
"hypno": {
|
||||
"moves": ["hypnosis", "lightscreen", "psychic", "reflect", "seismictoss", "thunderwave"]
|
||||
},
|
||||
"kingler": {
|
||||
"moves": ["hiddenpowerground", "rest", "return", "surf", "swordsdance"]
|
||||
},
|
||||
"electrode": {
|
||||
"moves": ["explosion", "hiddenpowerice", "lightscreen", "reflect", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"exeggutor": {
|
||||
"moves": ["explosion", "gigadrain", "hiddenpowerfire", "psychic", "sleeppowder", "stunspore", "synthesis"]
|
||||
},
|
||||
"marowak": {
|
||||
"moves": ["earthquake", "hiddenpowerbug", "rockslide", "swordsdance"]
|
||||
},
|
||||
"hitmonlee": {
|
||||
"moves": ["bodyslam", "hiddenpowerghost", "highjumpkick", "meditate", "rest"]
|
||||
},
|
||||
"hitmonchan": {
|
||||
"moves": ["bodyslam", "counter", "curse", "hiddenpowerghost", "highjumpkick"]
|
||||
},
|
||||
"lickitung": {
|
||||
"moves": ["bodyslam", "earthquake", "fireblast", "rest", "sleeptalk", "swordsdance"]
|
||||
},
|
||||
"weezing": {
|
||||
"moves": ["explosion", "fireblast", "hiddenpowergrass", "painsplit", "sludgebomb", "thunder"]
|
||||
},
|
||||
"rhydon": {
|
||||
"moves": ["curse", "earthquake", "fireblast", "rest", "roar", "rockslide", "sleeptalk", "zapcannon"]
|
||||
},
|
||||
"tangela": {
|
||||
"moves": ["gigadrain", "growth", "hiddenpowerice", "sleeppowder", "synthesis"]
|
||||
},
|
||||
"kangaskhan": {
|
||||
"moves": ["bodyslam", "curse", "earthquake", "rest", "return", "roar", "sleeptalk"]
|
||||
},
|
||||
"seaking": {
|
||||
"moves": ["agility", "return", "substitute", "surf", "swordsdance"]
|
||||
},
|
||||
"starmie": {
|
||||
"moves": ["psychic", "rapidspin", "recover", "surf", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"mrmime": {
|
||||
"moves": ["encore", "firepunch", "hypnosis", "icepunch", "psychic", "thief", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"scyther": {
|
||||
"moves": ["batonpass", "hiddenpowerbug", "hiddenpowerground", "swordsdance", "wingattack"]
|
||||
},
|
||||
"jynx": {
|
||||
"moves": ["icebeam", "lovelykiss", "nightmare", "psychic", "substitute", "thief"]
|
||||
},
|
||||
"electabuzz": {
|
||||
"moves": ["crosschop", "icepunch", "psychic", "pursuit", "thunder", "thunderbolt"]
|
||||
},
|
||||
"magmar": {
|
||||
"moves": ["crosschop", "fireblast", "hiddenpowerground", "sunnyday", "thief", "thunderpunch"]
|
||||
},
|
||||
"pinsir": {
|
||||
"moves": ["bodyslam", "doubleedge", "hiddenpowerbug", "rest", "submission", "swordsdance"]
|
||||
},
|
||||
"tauros": {
|
||||
"moves": ["curse", "doubleedge", "earthquake", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"gyarados": {
|
||||
"moves": ["bodyslam", "doubleedge", "hiddenpowerflying", "hydropump", "rest", "sleeptalk", "thunder"]
|
||||
},
|
||||
"lapras": {
|
||||
"moves": ["icebeam", "rest", "sing", "sleeptalk", "surf", "thunder", "thunderbolt", "toxic"]
|
||||
},
|
||||
"ditto": {
|
||||
"level": 83,
|
||||
"moves": ["transform"]
|
||||
},
|
||||
"vaporeon": {
|
||||
"moves": ["growth", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"jolteon": {
|
||||
"moves": ["batonpass", "growth", "hiddenpowerice", "hiddenpowerwater", "substitute", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"flareon": {
|
||||
"moves": ["batonpass", "doubleedge", "fireblast", "growth", "hiddenpowergrass", "zapcannon"]
|
||||
},
|
||||
"omastar": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"kabutops": {
|
||||
"moves": ["ancientpower", "hiddenpowerground", "return", "submission", "surf", "swordsdance"]
|
||||
},
|
||||
"aerodactyl": {
|
||||
"moves": ["ancientpower", "curse", "earthquake", "hiddenpowerflying", "reflect", "whirlwind"]
|
||||
},
|
||||
"snorlax": {
|
||||
"moves": ["curse", "doubleedge", "earthquake", "fireblast", "lovelykiss", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"articuno": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "toxic"]
|
||||
},
|
||||
"zapdos": {
|
||||
"moves": ["hiddenpowerice", "rest", "sleeptalk", "thunder"]
|
||||
},
|
||||
"moltres": {
|
||||
"moves": ["fireblast", "hiddenpowergrass", "rest", "sleeptalk", "sunnyday"]
|
||||
},
|
||||
"dragonite": {
|
||||
"moves": ["haze", "hiddenpowerflying", "icebeam", "lightscreen", "reflect", "rest", "thunder"]
|
||||
},
|
||||
"mewtwo": {
|
||||
"moves": ["fireblast", "icebeam", "psychic", "recover", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"mew": {
|
||||
"moves": ["earthquake", "explosion", "psychic", "shadowball", "softboiled", "submission", "swordsdance"]
|
||||
},
|
||||
"meganium": {
|
||||
"moves": ["hiddenpowerfire", "leechseed", "lightscreen", "razorleaf", "reflect", "synthesis"]
|
||||
},
|
||||
"typhlosion": {
|
||||
"moves": ["earthquake", "fireblast", "rest", "sleeptalk", "thunderpunch"]
|
||||
},
|
||||
"feraligatr": {
|
||||
"moves": ["crunch", "earthquake", "icebeam", "rest", "rockslide", "sleeptalk", "surf"]
|
||||
},
|
||||
"furret": {
|
||||
"moves": ["curse", "doubleedge", "rest", "shadowball", "sleeptalk", "surf"]
|
||||
},
|
||||
"noctowl": {
|
||||
"moves": ["hypnosis", "nightshade", "reflect", "thief", "toxic", "whirlwind"]
|
||||
},
|
||||
"ledian": {
|
||||
"moves": ["agility", "barrier", "batonpass", "lightscreen"]
|
||||
},
|
||||
"ariados": {
|
||||
"moves": ["batonpass", "curse", "sludgebomb", "spiderweb"]
|
||||
},
|
||||
"crobat": {
|
||||
"moves": ["gigadrain", "haze", "hiddenpowerground", "rest", "whirlwind", "wingattack"]
|
||||
},
|
||||
"lanturn": {
|
||||
"moves": ["icebeam", "raindance", "rest", "sleeptalk", "surf", "thunder"]
|
||||
},
|
||||
"togetic": {
|
||||
"moves": ["fireblast", "solarbeam", "sunnyday", "zapcannon"]
|
||||
},
|
||||
"xatu": {
|
||||
"moves": ["drillpeck", "haze", "hiddenpowergrass", "hiddenpowerwater", "psychic", "rest", "sleeptalk", "thief"]
|
||||
},
|
||||
"ampharos": {
|
||||
"moves": ["firepunch", "hiddenpowerice", "lightscreen", "reflect", "rest", "sleeptalk", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"bellossom": {
|
||||
"moves": ["doubleedge", "hiddenpowerfire", "leechseed", "moonlight", "razorleaf", "sleeppowder", "stunspore"]
|
||||
},
|
||||
"azumarill": {
|
||||
"moves": ["perishsong", "rest", "surf", "whirlpool"]
|
||||
},
|
||||
"sudowoodo": {
|
||||
"moves": ["curse", "earthquake", "rest", "rockslide", "selfdestruct", "sleeptalk"]
|
||||
},
|
||||
"politoed": {
|
||||
"moves": ["growth", "hiddenpowerelectric", "icebeam", "lovelykiss", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"jumpluff": {
|
||||
"moves": ["gigadrain", "hiddenpowerice", "hiddenpowerwater", "leechseed", "sleeppowder", "stunspore"]
|
||||
},
|
||||
"aipom": {
|
||||
"moves": ["agility", "batonpass", "curse", "return", "shadowball"]
|
||||
},
|
||||
"sunflora": {
|
||||
"moves": ["growth", "hiddenpowerfire", "hiddenpowerwater", "razorleaf", "synthesis"]
|
||||
},
|
||||
"yanma": {
|
||||
"moves": ["gigadrain", "hiddenpowerbug", "hiddenpowerflying", "return", "screech", "thief"]
|
||||
},
|
||||
"quagsire": {
|
||||
"moves": ["bellydrum", "bodyslam", "earthquake", "rest", "surf"]
|
||||
},
|
||||
"espeon": {
|
||||
"moves": ["batonpass", "bite", "growth", "hiddenpowerfire", "morningsun", "psychic", "substitute"]
|
||||
},
|
||||
"umbreon": {
|
||||
"moves": ["batonpass", "growth", "hiddenpowerdark", "meanlook", "moonlight"]
|
||||
},
|
||||
"murkrow": {
|
||||
"moves": ["drillpeck", "haze", "hiddenpowerdark", "hiddenpowerfire", "pursuit", "thief", "toxic"]
|
||||
},
|
||||
"slowking": {
|
||||
"moves": ["fireblast", "psychic", "rest", "sleeptalk", "surf", "thunderwave", "toxic"]
|
||||
},
|
||||
"misdreavus": {
|
||||
"moves": ["meanlook", "painsplit", "perishsong", "psychic", "shadowball", "thief", "thunderbolt"]
|
||||
},
|
||||
"unown": {
|
||||
"level": 87,
|
||||
"moves": ["hiddenpowerpsychic"]
|
||||
},
|
||||
"wobbuffet": {
|
||||
"level": 83,
|
||||
"moves": ["counter", "mimic", "mirrorcoat", "safeguard"]
|
||||
},
|
||||
"girafarig": {
|
||||
"moves": ["crunch", "curse", "earthquake", "psychic", "rest", "return", "thunderbolt"]
|
||||
},
|
||||
"forretress": {
|
||||
"moves": ["doubleedge", "explosion", "hiddenpowerbug", "rapidspin", "reflect", "spikes", "toxic"]
|
||||
},
|
||||
"dunsparce": {
|
||||
"moves": ["curse", "flamethrower", "rest", "return", "sleeptalk", "thunder", "thunderbolt"]
|
||||
},
|
||||
"gligar": {
|
||||
"moves": ["counter", "earthquake", "hiddenpowerflying", "screech", "thief"]
|
||||
},
|
||||
"steelix": {
|
||||
"moves": ["curse", "earthquake", "explosion", "irontail", "rest", "roar", "sleeptalk", "toxic"]
|
||||
},
|
||||
"granbull": {
|
||||
"moves": ["curse", "healbell", "hiddenpowerground", "lovelykiss", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"qwilfish": {
|
||||
"moves": ["curse", "haze", "hydropump", "sludgebomb", "spikes"]
|
||||
},
|
||||
"scizor": {
|
||||
"moves": ["agility", "batonpass", "hiddenpowerbug", "return", "swordsdance"]
|
||||
},
|
||||
"shuckle": {
|
||||
"moves": ["defensecurl", "rest", "rollout", "toxic"]
|
||||
},
|
||||
"heracross": {
|
||||
"moves": ["curse", "earthquake", "megahorn", "rest", "seismictoss", "sleeptalk"]
|
||||
},
|
||||
"sneasel": {
|
||||
"moves": ["icebeam", "moonlight", "return", "screech", "shadowball", "thief"]
|
||||
},
|
||||
"ursaring": {
|
||||
"moves": ["curse", "earthquake", "rest", "return", "roar", "sleeptalk"]
|
||||
},
|
||||
"magcargo": {
|
||||
"moves": ["curse", "earthquake", "fireblast", "rest", "rockslide", "sleeptalk"]
|
||||
},
|
||||
"piloswine": {
|
||||
"moves": ["ancientpower", "bodyslam", "curse", "earthquake", "icebeam", "rest", "sleeptalk"]
|
||||
},
|
||||
"corsola": {
|
||||
"moves": ["curse", "recover", "rockslide", "surf", "toxic"]
|
||||
},
|
||||
"octillery": {
|
||||
"moves": ["flamethrower", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"delibird": {
|
||||
"moves": ["hiddenpowerflying", "icebeam", "rapidspin", "spikes", "thief"]
|
||||
},
|
||||
"mantine": {
|
||||
"moves": ["haze", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"skarmory": {
|
||||
"moves": ["curse", "drillpeck", "rest", "sleeptalk", "toxic"]
|
||||
},
|
||||
"houndoom": {
|
||||
"moves": ["crunch", "fireblast", "pursuit", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"kingdra": {
|
||||
"moves": ["dragonbreath", "hiddenpowerelectric", "icebeam", "rest", "sleeptalk", "surf"]
|
||||
},
|
||||
"donphan": {
|
||||
"moves": ["ancientpower", "curse", "earthquake", "hiddenpowerbug", "rapidspin", "rest", "roar", "sleeptalk"]
|
||||
},
|
||||
"porygon2": {
|
||||
"moves": ["curse", "doubleedge", "icebeam", "recover", "return", "thunderbolt", "thunderwave"]
|
||||
},
|
||||
"stantler": {
|
||||
"moves": ["confuseray", "curse", "earthquake", "rest", "return", "sleeptalk"]
|
||||
},
|
||||
"smeargle": {
|
||||
"moves": ["agility", "batonpass", "spikes", "spore"]
|
||||
},
|
||||
"hitmontop": {
|
||||
"moves": ["curse", "hiddenpowerghost", "highjumpkick", "rest", "sleeptalk"]
|
||||
},
|
||||
"miltank": {
|
||||
"moves": ["bodyslam", "curse", "earthquake", "healbell", "milkdrink"]
|
||||
},
|
||||
"blissey": {
|
||||
"moves": ["flamethrower", "healbell", "icebeam", "present", "sing", "softboiled", "toxic"]
|
||||
},
|
||||
"raikou": {
|
||||
"moves": ["crunch", "hiddenpowerice", "hiddenpowerwater", "reflect", "rest", "roar", "sleeptalk", "thunder", "thunderbolt"]
|
||||
},
|
||||
"entei": {
|
||||
"moves": ["fireblast", "hiddenpowerrock", "return", "solarbeam", "sunnyday"]
|
||||
},
|
||||
"suicune": {
|
||||
"moves": ["hiddenpowerelectric", "icebeam", "rest", "roar", "sleeptalk", "surf", "toxic"]
|
||||
},
|
||||
"tyranitar": {
|
||||
"moves": ["crunch", "curse", "earthquake", "fireblast", "pursuit", "rest", "roar", "rockslide", "surf"]
|
||||
},
|
||||
"lugia": {
|
||||
"moves": ["aeroblast", "curse", "earthquake", "icebeam", "recover", "whirlwind"]
|
||||
},
|
||||
"hooh": {
|
||||
"moves": ["curse", "earthquake", "hiddenpowerflying", "recover", "sacredfire", "thunder", "thunderbolt"]
|
||||
},
|
||||
"celebi": {
|
||||
"moves": ["hiddenpowergrass", "healbell", "leechseed", "psychic", "recover", "toxic"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,278 @@
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var random_teams_exports = {};
|
||||
__export(random_teams_exports, {
|
||||
RandomGen2Teams: () => RandomGen2Teams,
|
||||
default: () => random_teams_default
|
||||
});
|
||||
module.exports = __toCommonJS(random_teams_exports);
|
||||
var import_random_teams = __toESM(require("../gen3/random-teams"));
|
||||
class RandomGen2Teams extends import_random_teams.default {
|
||||
constructor(format, prng) {
|
||||
super(format, prng);
|
||||
this.randomData = require("./random-data.json");
|
||||
this.moveEnforcementCheckers = {
|
||||
Electric: (movePool, moves, abilities, types, counter) => !counter.get("Electric"),
|
||||
Fire: (movePool, moves, abilities, types, counter) => !counter.get("Fire"),
|
||||
Flying: (movePool, moves, abilities, types, counter) => !counter.get("Flying") && types.has("Ground"),
|
||||
Ground: (movePool, moves, abilities, types, counter) => !counter.get("Ground"),
|
||||
Ice: (movePool, moves, abilities, types, counter) => !counter.get("Ice"),
|
||||
Normal: (movePool, moves, abilities, types, counter) => !counter.get("Normal") && counter.setupType === "Physical",
|
||||
Psychic: (movePool, moves, abilities, types, counter) => !counter.get("Psychic") && types.has("Grass"),
|
||||
Rock: (movePool, moves, abilities, types, counter, species) => !counter.get("Rock") && species.baseStats.atk > 60,
|
||||
Water: (movePool, moves, abilities, types, counter) => !counter.get("Water")
|
||||
};
|
||||
}
|
||||
shouldCullMove(move, types, moves, abilities = {}, counter, movePool, teamDetails) {
|
||||
const restTalk = moves.has("rest") && moves.has("sleeptalk");
|
||||
switch (move.id) {
|
||||
case "bellydrum":
|
||||
case "curse":
|
||||
case "meditate":
|
||||
case "screech":
|
||||
case "swordsdance":
|
||||
return {
|
||||
cull: counter.setupType !== "Physical" || counter.get("physicalsetup") > 1 || (!counter.get("Physical") || counter.damagingMoves.size < 2 && !moves.has("batonpass") && !moves.has("sleeptalk")),
|
||||
isSetup: true
|
||||
};
|
||||
case "batonpass":
|
||||
return { cull: !counter.setupType && !counter.get("speedsetup") && !moves.has("meanlook") };
|
||||
case "meanlook":
|
||||
return { cull: movePool.includes("perishsong") };
|
||||
case "nightmare":
|
||||
return { cull: !moves.has("lovelykiss") && !moves.has("sleeppowder") };
|
||||
case "swagger":
|
||||
return { cull: !moves.has("substitute") };
|
||||
case "charm":
|
||||
case "counter":
|
||||
return { cull: !!counter.setupType };
|
||||
case "haze":
|
||||
return { cull: !!counter.setupType || restTalk };
|
||||
case "reflect":
|
||||
case "lightscreen":
|
||||
return { cull: !!counter.setupType || moves.has("rest") };
|
||||
case "doubleedge":
|
||||
return { cull: moves.has("bodyslam") || moves.has("return") };
|
||||
case "explosion":
|
||||
case "selfdestruct":
|
||||
return { cull: moves.has("softboiled") || restTalk };
|
||||
case "extremespeed":
|
||||
return { cull: moves.has("bodyslam") || restTalk };
|
||||
case "hyperbeam":
|
||||
return { cull: moves.has("rockslide") };
|
||||
case "rapidspin":
|
||||
return { cull: !!teamDetails.rapidSpin || !!counter.setupType || moves.has("sleeptalk") };
|
||||
case "return":
|
||||
return { cull: moves.has("bodyslam") };
|
||||
case "surf":
|
||||
return { cull: moves.has("hydropump") };
|
||||
case "thunder":
|
||||
return { cull: moves.has("thunderbolt") };
|
||||
case "razorleaf":
|
||||
return { cull: moves.has("swordsdance") && movePool.includes("sludgebomb") };
|
||||
case "icebeam":
|
||||
return { cull: moves.has("dragonbreath") };
|
||||
case "seismictoss":
|
||||
return { cull: moves.has("rest") || moves.has("sleeptalk") };
|
||||
case "destinybond":
|
||||
return { cull: moves.has("explosion") };
|
||||
case "pursuit":
|
||||
return { cull: moves.has("crunch") && moves.has("solarbeam") };
|
||||
case "thief":
|
||||
return { cull: moves.has("rest") || moves.has("substitute") };
|
||||
case "irontail":
|
||||
return { cull: types.has("Ground") && movePool.includes("earthquake") };
|
||||
case "confuseray":
|
||||
case "encore":
|
||||
case "roar":
|
||||
case "whirlwind":
|
||||
return { cull: restTalk };
|
||||
case "lovelykiss":
|
||||
return { cull: ["healbell", "moonlight", "morningsun", "sleeptalk"].some((m) => moves.has(m)) };
|
||||
case "sleeptalk":
|
||||
return { cull: moves.has("curse") && counter.get("stab") >= 2 };
|
||||
case "softboiled":
|
||||
return { cull: movePool.includes("swordsdance") };
|
||||
case "spikes":
|
||||
return { cull: !!teamDetails.spikes };
|
||||
case "substitute":
|
||||
return { cull: moves.has("agility") || moves.has("rest") };
|
||||
case "synthesis":
|
||||
return { cull: moves.has("explosion") };
|
||||
case "thunderwave":
|
||||
return { cull: moves.has("thunder") || moves.has("toxic") };
|
||||
}
|
||||
return { cull: false };
|
||||
}
|
||||
getItem(ability, types, moves, counter, species) {
|
||||
if (species.name === "Ditto")
|
||||
return "Metal Powder";
|
||||
if (species.name === "Farfetch\u2019d")
|
||||
return "Stick";
|
||||
if (species.name === "Marowak")
|
||||
return "Thick Club";
|
||||
if (species.name === "Pikachu")
|
||||
return "Light Ball";
|
||||
if (species.name === "Unown")
|
||||
return "Twisted Spoon";
|
||||
if (moves.has("thief"))
|
||||
return "";
|
||||
if (moves.has("rest") && !moves.has("sleeptalk"))
|
||||
return "Mint Berry";
|
||||
if ((moves.has("bellydrum") || moves.has("swordsdance")) && species.baseStats.spe >= 60 && !types.has("Ground") && !moves.has("sleeptalk") && !moves.has("substitute") && this.randomChance(1, 2)) {
|
||||
return "Miracle Berry";
|
||||
}
|
||||
return "Leftovers";
|
||||
}
|
||||
randomSet(species, teamDetails = {}) {
|
||||
species = this.dex.species.get(species);
|
||||
const data = this.randomData[species.id];
|
||||
const movePool = (data.moves || Object.keys(this.dex.species.getLearnset(species.id))).slice();
|
||||
const rejectedPool = [];
|
||||
const moves = /* @__PURE__ */ new Set();
|
||||
let ivs = { hp: 30, atk: 30, def: 30, spa: 30, spd: 30, spe: 30 };
|
||||
let availableHP = 0;
|
||||
for (const setMoveid of movePool) {
|
||||
if (setMoveid.startsWith("hiddenpower"))
|
||||
availableHP++;
|
||||
}
|
||||
const types = new Set(species.types);
|
||||
let counter;
|
||||
let hasHiddenPower = false;
|
||||
do {
|
||||
while (moves.size < this.maxMoveCount && movePool.length) {
|
||||
const moveid = this.sampleNoReplace(movePool);
|
||||
if (moveid.startsWith("hiddenpower")) {
|
||||
availableHP--;
|
||||
if (hasHiddenPower)
|
||||
continue;
|
||||
hasHiddenPower = true;
|
||||
}
|
||||
moves.add(moveid);
|
||||
}
|
||||
while (moves.size < this.maxMoveCount && rejectedPool.length) {
|
||||
const moveid = this.sampleNoReplace(rejectedPool);
|
||||
if (moveid.startsWith("hiddenpower")) {
|
||||
if (hasHiddenPower)
|
||||
continue;
|
||||
hasHiddenPower = true;
|
||||
}
|
||||
moves.add(moveid);
|
||||
}
|
||||
counter = this.queryMoves(moves, species.types, /* @__PURE__ */ new Set(), movePool);
|
||||
for (const moveid of moves) {
|
||||
const move = this.dex.moves.get(moveid);
|
||||
let { cull, isSetup } = this.shouldCullMove(move, types, moves, {}, counter, movePool, teamDetails);
|
||||
if (counter.setupType === "Physical" && move.category === "Special" && !counter.get("Physical")) {
|
||||
cull = true;
|
||||
}
|
||||
const moveIsRejectable = (move.category !== "Status" || !move.flags.heal) && // These moves cannot be rejected in favor of a forced move
|
||||
!["batonpass", "sleeptalk", "spikes", "sunnyday"].includes(move.id) && (move.category === "Status" || !types.has(move.type) || move.basePower && move.basePower < 40);
|
||||
if (!cull && !isSetup && moveIsRejectable && (counter.setupType || !move.stallingMove)) {
|
||||
if (!counter.get("stab") && !counter.get("damage") && !types.has("Ghost") && counter.get("physicalpool") + counter.get("specialpool") > 0 || (movePool.includes("megahorn") || movePool.includes("softboiled") && moves.has("present")) || (moves.has("rest") && movePool.includes("sleeptalk") || moves.has("sleeptalk") && movePool.includes("rest")) || (moves.has("sunnyday") && movePool.includes("solarbeam") || moves.has("solarbeam") && movePool.includes("sunnyday")) || ["milkdrink", "recover", "spore"].some((m) => movePool.includes(m))) {
|
||||
cull = true;
|
||||
} else {
|
||||
for (const type of types) {
|
||||
if (this.moveEnforcementCheckers[type]?.(movePool, moves, /* @__PURE__ */ new Set(), types, counter, species, teamDetails))
|
||||
cull = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cull && (movePool.length - availableHP || availableHP && (move.id === "hiddenpower" || !hasHiddenPower))) {
|
||||
if (move.category !== "Status" && !move.damage && (move.id !== "hiddenpower" || !availableHP)) {
|
||||
rejectedPool.push(moveid);
|
||||
}
|
||||
moves.delete(moveid);
|
||||
if (moveid.startsWith("hiddenpower"))
|
||||
hasHiddenPower = false;
|
||||
break;
|
||||
}
|
||||
if (cull && rejectedPool.length) {
|
||||
moves.delete(moveid);
|
||||
if (moveid.startsWith("hiddenpower"))
|
||||
hasHiddenPower = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (moves.size < this.maxMoveCount && (movePool.length || rejectedPool.length));
|
||||
for (const setMoveid of moves) {
|
||||
if (!setMoveid.startsWith("hiddenpower"))
|
||||
continue;
|
||||
const hpType = setMoveid.substr(11, setMoveid.length);
|
||||
const hpIVs = {
|
||||
dragon: { def: 28 },
|
||||
ice: { def: 26 },
|
||||
psychic: { def: 24 },
|
||||
electric: { atk: 28 },
|
||||
grass: { atk: 28, def: 28 },
|
||||
water: { atk: 28, def: 26 },
|
||||
fire: { atk: 28, def: 24 },
|
||||
steel: { atk: 26 },
|
||||
ghost: { atk: 26, def: 28 },
|
||||
bug: { atk: 26, def: 26 },
|
||||
rock: { atk: 26, def: 24 },
|
||||
ground: { atk: 24 },
|
||||
poison: { atk: 24, def: 28 },
|
||||
flying: { atk: 24, def: 26 },
|
||||
fighting: { atk: 24, def: 24 }
|
||||
};
|
||||
if (hpIVs[hpType]) {
|
||||
ivs = { ...ivs, ...hpIVs[hpType] };
|
||||
}
|
||||
if (ivs.atk === 28 || ivs.atk === 24)
|
||||
ivs.hp = 14;
|
||||
if (ivs.def === 28 || ivs.def === 24)
|
||||
ivs.hp -= 8;
|
||||
}
|
||||
const levelScale = {
|
||||
NU: 73,
|
||||
NUBL: 71,
|
||||
UU: 69,
|
||||
UUBL: 67,
|
||||
OU: 65,
|
||||
Uber: 61
|
||||
};
|
||||
const level = this.adjustLevel || data.level || levelScale[species.tier] || 80;
|
||||
return {
|
||||
name: species.name,
|
||||
species: species.name,
|
||||
moves: Array.from(moves),
|
||||
ability: "No Ability",
|
||||
evs: { hp: 255, atk: 255, def: 255, spa: 255, spd: 255, spe: 255 },
|
||||
ivs,
|
||||
item: this.getItem("None", types, moves, counter, species),
|
||||
level,
|
||||
// No shiny chance because Gen 2 shinies have bad IVs
|
||||
shiny: false,
|
||||
gender: species.gender ? species.gender : "M"
|
||||
};
|
||||
}
|
||||
}
|
||||
var random_teams_default = RandomGen2Teams;
|
||||
//# sourceMappingURL=random-teams.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/random-teams.ts"],
|
||||
"sourcesContent": ["import RandomGen3Teams from '../gen3/random-teams';\r\nimport {PRNG, PRNGSeed} from '../../../sim/prng';\r\nimport type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';\r\n\r\nexport class RandomGen2Teams extends RandomGen3Teams {\r\n\trandomData: {[species: string]: OldRandomBattleSpecies} = require('./random-data.json');\r\n\r\n\tconstructor(format: string | Format, prng: PRNG | PRNGSeed | null) {\r\n\t\tsuper(format, prng);\r\n\t\tthis.moveEnforcementCheckers = {\r\n\t\t\tElectric: (movePool, moves, abilities, types, counter) => !counter.get('Electric'),\r\n\t\t\tFire: (movePool, moves, abilities, types, counter) => !counter.get('Fire'),\r\n\t\t\tFlying: (movePool, moves, abilities, types, counter) => !counter.get('Flying') && types.has('Ground'),\r\n\t\t\tGround: (movePool, moves, abilities, types, counter) => !counter.get('Ground'),\r\n\t\t\tIce: (movePool, moves, abilities, types, counter) => !counter.get('Ice'),\r\n\t\t\tNormal: (movePool, moves, abilities, types, counter) => !counter.get('Normal') && counter.setupType === 'Physical',\r\n\t\t\tPsychic: (movePool, moves, abilities, types, counter) => !counter.get('Psychic') && types.has('Grass'),\r\n\t\t\tRock: (movePool, moves, abilities, types, counter, species) => !counter.get('Rock') && species.baseStats.atk > 60,\r\n\t\t\tWater: (movePool, moves, abilities, types, counter) => !counter.get('Water'),\r\n\t\t};\r\n\t}\r\n\r\n\tshouldCullMove(\r\n\t\tmove: Move,\r\n\t\ttypes: Set<string>,\r\n\t\tmoves: Set<string>,\r\n\t\tabilities = {},\r\n\t\tcounter: MoveCounter,\r\n\t\tmovePool: string[],\r\n\t\tteamDetails: RandomTeamsTypes.TeamDetails,\r\n\t): {cull: boolean, isSetup?: boolean} {\r\n\t\tconst restTalk = moves.has('rest') && moves.has('sleeptalk');\r\n\r\n\t\tswitch (move.id) {\r\n\t\t// Set up once and only if we have the moves for it\r\n\t\tcase 'bellydrum': case 'curse': case 'meditate': case 'screech': case 'swordsdance':\r\n\t\t\treturn {\r\n\t\t\t\tcull: (\r\n\t\t\t\t\t(counter.setupType !== 'Physical' || counter.get('physicalsetup') > 1) ||\r\n\t\t\t\t\t(!counter.get('Physical') || counter.damagingMoves.size < 2 && !moves.has('batonpass') && !moves.has('sleeptalk'))\r\n\t\t\t\t),\r\n\t\t\t\tisSetup: true,\r\n\t\t\t};\r\n\r\n\t\t// Not very useful without their supporting moves\r\n\t\tcase 'batonpass':\r\n\t\t\treturn {cull: !counter.setupType && !counter.get('speedsetup') && !moves.has('meanlook')};\r\n\t\tcase 'meanlook':\r\n\t\t\treturn {cull: movePool.includes('perishsong')};\r\n\t\tcase 'nightmare':\r\n\t\t\treturn {cull: !moves.has('lovelykiss') && !moves.has('sleeppowder')};\r\n\t\tcase 'swagger':\r\n\t\t\treturn {cull: !moves.has('substitute')};\r\n\r\n\t\t// Bad after setup\r\n\t\tcase 'charm': case 'counter':\r\n\t\t\treturn {cull: !!counter.setupType};\r\n\t\tcase 'haze':\r\n\t\t\treturn {cull: !!counter.setupType || restTalk};\r\n\t\tcase 'reflect': case 'lightscreen':\r\n\t\t\treturn {cull: !!counter.setupType || moves.has('rest')};\r\n\r\n\t\t// Ineffective to have both\r\n\t\tcase 'doubleedge':\r\n\t\t\treturn {cull: moves.has('bodyslam') || moves.has('return')};\r\n\t\tcase 'explosion': case 'selfdestruct':\r\n\t\t\treturn {cull: moves.has('softboiled') || restTalk};\r\n\t\tcase 'extremespeed':\r\n\t\t\treturn {cull: moves.has('bodyslam') || restTalk};\r\n\t\tcase 'hyperbeam':\r\n\t\t\treturn {cull: moves.has('rockslide')};\r\n\t\tcase 'rapidspin':\r\n\t\t\treturn {cull: !!teamDetails.rapidSpin || !!counter.setupType || moves.has('sleeptalk')};\r\n\t\tcase 'return':\r\n\t\t\treturn {cull: moves.has('bodyslam')};\r\n\t\tcase 'surf':\r\n\t\t\treturn {cull: moves.has('hydropump')};\r\n\t\tcase 'thunder':\r\n\t\t\treturn {cull: moves.has('thunderbolt')};\r\n\t\tcase 'razorleaf':\r\n\t\t\treturn {cull: moves.has('swordsdance') && movePool.includes('sludgebomb')};\r\n\t\tcase 'icebeam':\r\n\t\t\treturn {cull: moves.has('dragonbreath')};\r\n\t\tcase 'seismictoss':\r\n\t\t\treturn {cull: moves.has('rest') || moves.has('sleeptalk')};\r\n\t\tcase 'destinybond':\r\n\t\t\treturn {cull: moves.has('explosion')};\r\n\t\tcase 'pursuit':\r\n\t\t\treturn {cull: moves.has('crunch') && moves.has('solarbeam')};\r\n\t\tcase 'thief':\r\n\t\t\treturn {cull: moves.has('rest') || moves.has('substitute')};\r\n\t\tcase 'irontail':\r\n\t\t\treturn {cull: types.has('Ground') && movePool.includes('earthquake')};\r\n\r\n\t\t// Status and illegal move rejections\r\n\t\tcase 'confuseray': case 'encore': case 'roar': case 'whirlwind':\r\n\t\t\treturn {cull: restTalk};\r\n\t\tcase 'lovelykiss':\r\n\t\t\treturn {cull: ['healbell', 'moonlight', 'morningsun', 'sleeptalk'].some(m => moves.has(m))};\r\n\t\tcase 'sleeptalk':\r\n\t\t\treturn {cull: moves.has('curse') && counter.get('stab') >= 2};\r\n\t\tcase 'softboiled':\r\n\t\t\treturn {cull: movePool.includes('swordsdance')};\r\n\t\tcase 'spikes':\r\n\t\t\treturn {cull: !!teamDetails.spikes};\r\n\t\tcase 'substitute':\r\n\t\t\treturn {cull: moves.has('agility') || moves.haLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B;AAIrB,MAAM,wBAAwB,oBAAAA,QAAgB;AAAA,EAGpD,YAAY,QAAyB,MAA8B;AAClE,UAAM,QAAQ,IAAI;AAHnB,sBAA0D,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AAI,KAAK,IAAI,KAAK,GAAE;AAC9D,QAAI,cAAc;AAClB,eAAW,aAAa,UAAU;AACjC,UAAI,UAAU,WAAW,aAAa;AAAG;AAAA,IAC1C;AAEA,UAAM,QAAQ,IAAI,IAAI,QAAQ,KAAK;AAEnC,QAAI;AAGJ,QAAI,iBAAiB;AAErB,OAAG;AAEF,aAAO,MAAM,OAAO,KAAK,gBAAgB,SAAS,QAAQ;AACzD,cAAM,SAAS,KAAK,gBAAgB,QAAQ;AAC5C,YAAI,OAAO,WAAW,aAAa,GAAG;AACrC;AACA,cAAI;AAAgB;AACpB,2BAAiB;AAAA,QAClB;AACA,cAAM,IAAI,MAAM;AAAA,MACjB;AACA,aAAO,MAAM,OAAO,KAAK,gBAAgB,aAAa,QAAQ;AAC7D,cAAM,SAAS,KAAK,gBAAgB,YAAY;AAChD,YAAI,OAAO,WAAW,aAAa,GAAG;AACrC,cAAI;AAAgB;AACpB,2BAAiB;AAAA,QAClB;AACA,cAAM,IAAI,MAAM;AAAA,MACjB;AAEA,gBAAU,KAAK,WAAW,OAAO,QAAQ,OAAO,oBAAI,IAAI,GAAG,QAAQ;AAGnE,iBAAW,UAAU,OAAO;AAC3B,cAAM,OAAO,KAAK,IAAI,MAAM,IAAI,MAAM;AACtC,YAAI,EAAC,MAAM,QAAO,IAAI,KAAK,eAAe,MAAM,OAAO,OLine truncated
|
||||
"names": ["RandomGen3Teams"]
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
obtainablemoves: {
|
||||
inherit: true,
|
||||
banlist: [
|
||||
// https://www.smogon.com/forums/threads/implementing-all-old-gens-in-ps-testers-required.3483261/post-5420130
|
||||
// confirmed by Marty
|
||||
"Kakuna + Poison Sting + Harden",
|
||||
"Kakuna + String Shot + Harden",
|
||||
"Beedrill + Poison Sting + Harden",
|
||||
"Beedrill + String Shot + Harden",
|
||||
// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/
|
||||
"Nidoking + Fury Attack + Thrash",
|
||||
"Exeggutor + Poison Powder + Stomp",
|
||||
"Exeggutor + Sleep Powder + Stomp",
|
||||
"Exeggutor + Stun Spore + Stomp",
|
||||
"Eevee + Tackle + Growl",
|
||||
"Vaporeon + Tackle + Growl",
|
||||
"Jolteon + Tackle + Growl",
|
||||
"Jolteon + Focus Energy + Thunder Shock",
|
||||
"Flareon + Tackle + Growl",
|
||||
"Flareon + Focus Energy + Ember",
|
||||
// https://github.com/smogon/pokemon-showdown/pull/8869
|
||||
"Rapidash + Pay Day + Growl",
|
||||
"Rapidash + Pay Day + Tail Whip",
|
||||
"Fearow + Pay Day + Peck",
|
||||
"Fearow + Pay Day + Mirror Move",
|
||||
"Magikarp + Dragon Rage + Tackle"
|
||||
]
|
||||
},
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Sleep Clause Mod", "Freeze Clause Mod", "Species Clause", "OHKO Clause", "Evasion Items Clause", "Evasion Moves Clause", "Endless battle Clause", "HP Percentage Mod", "Cancel Mod"],
|
||||
banlist: [
|
||||
"Hypnosis + Mean Look",
|
||||
"Hypnosis + Spider Web",
|
||||
"Lovely Kiss + Mean Look",
|
||||
"Lovely Kiss + Spider Web",
|
||||
"Sing + Mean Look",
|
||||
"Sing + Spider Web",
|
||||
"Sleep Powder + Mean Look",
|
||||
"Sleep Powder + Spider Web",
|
||||
"Spore + Mean Look",
|
||||
"Spore + Spider Web"
|
||||
]
|
||||
},
|
||||
nintendocup2000movelegality: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Nintendo Cup 2000 Move Legality",
|
||||
desc: "Prevents Pok\xE9mon from having moves that would only be obtainable in Pok\xE9mon Crystal.",
|
||||
onValidateSet(set) {
|
||||
const illegalCombos = {
|
||||
arbok: { crunch: "E" },
|
||||
sandslash: { metalclaw: "E" },
|
||||
golduck: { crosschop: "E" },
|
||||
marowak: { swordsdance: "E" },
|
||||
electabuzz: { crosschop: "E" },
|
||||
magmar: { crosschop: "E" },
|
||||
jolteon: { batonpass: "L" },
|
||||
vaporeon: { batonpass: "L" },
|
||||
flareon: { batonpass: "L" },
|
||||
espeon: { batonpass: "L" },
|
||||
umbreon: { batonpass: "L" },
|
||||
dragonite: { extremespeed: "S" },
|
||||
meganium: { swordsdance: "E" },
|
||||
typhlosion: { submission: "E" },
|
||||
ariados: { agility: "L" },
|
||||
yanma: { wingattack: "L" },
|
||||
murkrow: { skyattack: "E" },
|
||||
qwilfish: { spikes: "L" },
|
||||
sneasel: { metalclaw: "L" },
|
||||
ursaring: { metalclaw: "E" },
|
||||
piloswine: { amnesia: "L" },
|
||||
skarmory: { skyattack: "E" },
|
||||
donphan: { watergun: "E" },
|
||||
suicune: { aurorabeam: "L" },
|
||||
dugtrio: { triattack: "L" },
|
||||
magneton: { triattack: "L" },
|
||||
cloyster: { spikes: "L" }
|
||||
};
|
||||
const notUsableAsTM = ["icebeam", "flamethrower", "thunderbolt"];
|
||||
const species = this.dex.species.get(set.species || set.name);
|
||||
const learnsetData = { ...this.dex.data.Learnsets[species.id]?.learnset || {} };
|
||||
const legalityList = illegalCombos[species.id];
|
||||
const problems = [];
|
||||
let prevo = species.prevo;
|
||||
while (prevo) {
|
||||
const prevoSpecies = this.dex.species.get(prevo);
|
||||
const prevoLsetData = this.dex.data.Learnsets[prevoSpecies.id]?.learnset || {};
|
||||
for (const moveid in prevoLsetData) {
|
||||
if (!(moveid in learnsetData)) {
|
||||
learnsetData[moveid] = prevoLsetData[moveid];
|
||||
} else {
|
||||
learnsetData[moveid].push(...prevoLsetData[moveid]);
|
||||
}
|
||||
}
|
||||
prevo = prevoSpecies.prevo;
|
||||
}
|
||||
for (const moveid of set.moves.map(this.toID)) {
|
||||
if (!learnsetData[moveid])
|
||||
continue;
|
||||
if (legalityList) {
|
||||
const list = learnsetData[moveid].filter((x) => !x.includes(legalityList[moveid]));
|
||||
if (!list.length) {
|
||||
switch (legalityList[moveid]) {
|
||||
case "L":
|
||||
const levels = new Set(learnsetData[moveid].filter((x) => x.includes(legalityList[moveid])).map((x) => x.slice(2)));
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It learns ${this.dex.moves.get(moveid).name} in Pok\xE9mon Crystal at the following levels: ${[...levels].join(", ")})`
|
||||
);
|
||||
break;
|
||||
case "S":
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It only learns ${this.dex.moves.get(moveid).name} in Pok\xE9mon Crystal via special in-game events.)`
|
||||
);
|
||||
break;
|
||||
case "E":
|
||||
problems.push(
|
||||
`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,
|
||||
`(It only learns ${this.dex.moves.get(moveid).name} as an egg move in Pok\xE9mon Crystal.)`
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const id of notUsableAsTM) {
|
||||
if (moveid === id && learnsetData[id] && !learnsetData[id].filter((x) => !x.includes("2T")).length) {
|
||||
problems.push(`${species.name} can't learn ${this.dex.moves.get(id).name}.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (problems.some((x) => notUsableAsTM.map((y) => this.dex.moves.get(y).name).some((z) => x.includes(z)))) {
|
||||
problems.push(
|
||||
`(${notUsableAsTM.map((y) => this.dex.moves.get(y).name).join(" / ")} aren't learnable outside of Pok\xE9mon Crystal.)`
|
||||
);
|
||||
}
|
||||
return problems;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tobtainablemoves: {\r\n\t\tinherit: true,\r\n\t\tbanlist: [\r\n\t\t\t// https://www.smogon.com/forums/threads/implementing-all-old-gens-in-ps-testers-required.3483261/post-5420130\r\n\t\t\t// confirmed by Marty\r\n\t\t\t'Kakuna + Poison Sting + Harden', 'Kakuna + String Shot + Harden',\r\n\t\t\t'Beedrill + Poison Sting + Harden', 'Beedrill + String Shot + Harden',\r\n\r\n\t\t\t// https://www.smogon.com/forums/threads/rby-and-gsc-illegal-movesets.78638/\r\n\t\t\t'Nidoking + Fury Attack + Thrash',\r\n\t\t\t'Exeggutor + Poison Powder + Stomp', 'Exeggutor + Sleep Powder + Stomp', 'Exeggutor + Stun Spore + Stomp',\r\n\t\t\t'Eevee + Tackle + Growl',\r\n\t\t\t'Vaporeon + Tackle + Growl',\r\n\t\t\t'Jolteon + Tackle + Growl', 'Jolteon + Focus Energy + Thunder Shock',\r\n\t\t\t'Flareon + Tackle + Growl', 'Flareon + Focus Energy + Ember',\r\n\r\n\t\t\t// https://github.com/smogon/pokemon-showdown/pull/8869\r\n\t\t\t'Rapidash + Pay Day + Growl',\r\n\t\t\t'Rapidash + Pay Day + Tail Whip',\r\n\t\t\t'Fearow + Pay Day + Peck',\r\n\t\t\t'Fearow + Pay Day + Mirror Move',\r\n\t\t\t'Magikarp + Dragon Rage + Tackle',\r\n\t\t],\r\n\t},\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Sleep Clause Mod', 'Freeze Clause Mod', 'Species Clause', 'OHKO Clause', 'Evasion Items Clause', 'Evasion Moves Clause', 'Endless battle Clause', 'HP Percentage Mod', 'Cancel Mod'],\r\n\t\tbanlist: [\r\n\t\t\t'Hypnosis + Mean Look',\r\n\t\t\t'Hypnosis + Spider Web',\r\n\t\t\t'Lovely Kiss + Mean Look',\r\n\t\t\t'Lovely Kiss + Spider Web',\r\n\t\t\t'Sing + Mean Look',\r\n\t\t\t'Sing + Spider Web',\r\n\t\t\t'Sleep Powder + Mean Look',\r\n\t\t\t'Sleep Powder + Spider Web',\r\n\t\t\t'Spore + Mean Look',\r\n\t\t\t'Spore + Spider Web',\r\n\t\t],\r\n\t},\r\n\tnintendocup2000movelegality: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Nintendo Cup 2000 Move Legality',\r\n\t\tdesc: \"Prevents Pok\\u00e9mon from having moves that would only be obtainable in Pok\\u00e9mon Crystal.\",\r\n\t\tonValidateSet(set) {\r\n\t\t\tconst illegalCombos: {[speciesid: string]: {[moveid: string]: 'E' | 'L' | 'S'}} = {\r\n\t\t\t\tarbok: {crunch: 'E'},\r\n\t\t\t\tsandslash: {metalclaw: 'E'},\r\n\t\t\t\tgolduck: {crosschop: 'E'},\r\n\t\t\t\tmarowak: {swordsdance: 'E'},\r\n\t\t\t\telectabuzz: {crosschop: 'E'},\r\n\t\t\t\tmagmar: {crosschop: 'E'},\r\n\t\t\t\tjolteon: {batonpass: 'L'},\r\n\t\t\t\tvaporeon: {batonpass: 'L'},\r\n\t\t\t\tflareon: {batonpass: 'L'},\r\n\t\t\t\tespeon: {batonpass: 'L'},\r\n\t\t\t\tumbreon: {batonpass: 'L'},\r\n\t\t\t\tdragonite: {extremespeed: 'S'},\r\n\t\t\t\tmeganium: {swordsdance: 'E'},\r\n\t\t\t\ttyphlosion: {submission: 'E'},\r\n\t\t\t\tariados: {agility: 'L'},\r\n\t\t\t\tyanma: {wingattack: 'L'},\r\n\t\t\t\tmurkrow: {skyattack: 'E'},\r\n\t\t\t\tqwilfish: {spikes: 'L'},\r\n\t\t\t\tsneasel: {metalclaw: 'L'},\r\n\t\t\t\tursaring: {metalclaw: 'E'},\r\n\t\t\t\tpiloswine: {amnesia: 'L'},\r\n\t\t\t\tskarmory: {skyattack: 'E'},\r\n\t\t\t\tdonphan: {watergun: 'E'},\r\n\t\t\t\tsuicune: {aurorabeam: 'L'},\r\n\t\t\t\tdugtrio: {triattack: 'L'},\r\n\t\t\t\tmagneton: {triattack: 'L'},\r\n\t\t\t\tcloyster: {spikes: 'L'},\r\n\t\t\t};\r\n\t\t\tconst notUsableAsTM = ['icebeam', 'flamethrower', 'thunderbolt'];\r\n\t\t\tconst species = this.dex.species.get(set.species || set.name);\r\n\t\t\tconst learnsetData = {...(this.dex.data.Learnsets[species.id]?.learnset || {})};\r\n\t\t\tconst legalityList = illegalCombos[species.id];\r\n\t\t\tconst problems = [];\r\n\t\t\tlet prevo = species.prevo;\r\n\t\t\twhile (prevo) {\r\n\t\t\t\tconst prevoSpecies = this.dex.species.get(prevo);\r\n\t\t\t\tconst prevoLsetData = this.dex.data.Learnsets[prevoSpecies.id]?.learnset || {};\r\n\t\t\t\tfor (const moveid in prevoLsetData) {\r\n\t\t\t\t\tif (!(moveid in learnsetData)) {\r\n\t\t\t\t\t\tlearnsetData[moveid] = prevoLsetData[moveid];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlearnsetData[moveid].push(...prevoLsetData[moveid]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tprevo = prevoSpecies.prevo;\r\n\t\t\t}\r\n\t\t\tfor (const moveid of set.moves.map(this.toID)) {\r\n\t\t\t\t// Diglett Magnemite Shellder\r\n\t\t\t\tif (!learnsetData[moveid]) continue;\r\n\t\t\t\tif (legalityList) {\r\n\t\t\t\t\tconst list = learnsetData[moveid].filter(x => !x.includes(legalityList[moveid]));\r\n\t\t\t\t\tif (!list.length) {\r\n\t\t\t\t\t\tswitch (legalityList[moveid]) {\r\n\t\t\t\t\t\tcase 'L':\r\n\t\t\t\t\t\t\t// Converted to a set to remove duplicate entries\r\n\t\t\t\t\t\t\tconst levels = new Set(learnsetData[moveid].filter(x => x.includes(legalityList[moveid])).map(x => x.slice(2)));\r\n\t\t\t\t\t\t\tproblems.push(\r\n\t\t\t\t\t\t\t\t`${species.name} can't learn ${this.dex.moves.get(moveid).name}.`,\r\n\t\t\t\t\t\t\t\t`(It learns ${this.dex.moves.get(moveid).name} in Pok\\u00e9mon Crystal at the following levels: ${[...levels].join(', ')})`\r\n\t\t\t\t\t\t\t)Line truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,iBAAiB;AAAA,IAChB,SAAS;AAAA,IACT,SAAS;AAAA;AAAA;AAAA,MAGR;AAAA,MAAkC;AAAA,MAClC;AAAA,MAAoC;AAAA;AAAA,MAGpC;AAAA,MACA;AAAA,MAAqC;AAAA,MAAoC;AAAA,MACzE;AAAA,MACA;AAAA,MACA;AAAA,MAA4B;AAAA,MAC5B;AAAA,MAA4B;AAAA;AAAA,MAG5B;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,oBAAoB,qBAAqB,kBAAkB,eAAe,wBAAwB,wBAAwB,yBAAyB,qBAAqB,YAAY;AAAA,IAC5M,SAAS;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA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;AACA;AAAA,cACD,KAAK;AACJ,yBAAS;AAAA,kBACR,GAAG,QAAQ,oBAAoB,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;AAAA,kBAC1D,mBAAmB,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;AAAA,gBAC/C;AACA;AAAA,cACD,KAAK;AACJ,yBAAS;AAAA,kBACR,GAAG,QAAQ,oBAAoB,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;AAAA,kBAC1D,mBAAmB,KAAK,IAAI,MAAM,IAAI,MAAM,EAAE;AAAA,gBAC/C;AACA;AAAA,YACD;AAAA,UACD;AAAA,QACD;AACA,mBAAW,MAAM,eAAe;AAC/B,cAAI,WAAW,MAAM,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,EAAE,OAAO,OAAK,CAAC,EAAE,SAAS,IAAI,CAAC,EAAE,QAAQ;AACjG,qBAAS,KAAK,GAAG,QAAQ,oBAAoB,KAAK,IAAI,MAAM,IAAI,EAAE,EAAE,OAAO;AAAA,UAC5E;AAAA,QACD;AAAA,MACD;AACA,UAAI,SAAS,KAAK,OAAK,cAAc,IAAI,OAAK,KAAK,IAAI,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,OAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG;AACpG,iBAAS;AAAA,UACR,IAAI,cAAc,IAAI,OAAK,KAAK,IAAI,MAAM,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,KAAK;AAAA,QAClE;AAAA,MACD;AACA,aAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,656 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
inherit: "gen3",
|
||||
gen: 2,
|
||||
pokemon: {
|
||||
inherit: true,
|
||||
getStat(statName, unboosted, unmodified, fastReturn) {
|
||||
if (statName === "hp")
|
||||
throw new Error("Please read `maxhp` directly");
|
||||
let stat = this.storedStats[statName];
|
||||
if (!unboosted) {
|
||||
let boost = this.boosts[statName];
|
||||
if (boost > 6)
|
||||
boost = 6;
|
||||
if (boost < -6)
|
||||
boost = -6;
|
||||
if (boost >= 0) {
|
||||
const boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];
|
||||
stat = Math.floor(stat * boostTable[boost]);
|
||||
} else {
|
||||
const numerators = [100, 66, 50, 40, 33, 28, 25];
|
||||
stat = Math.floor(stat * numerators[-boost] / 100);
|
||||
}
|
||||
}
|
||||
if (this.status === "par" && statName === "spe") {
|
||||
stat = Math.floor(stat / 4);
|
||||
}
|
||||
if (!unmodified) {
|
||||
if (this.status === "brn" && statName === "atk") {
|
||||
stat = Math.floor(stat / 2);
|
||||
}
|
||||
}
|
||||
stat = this.battle.clampIntRange(stat, 1, 999);
|
||||
if (fastReturn)
|
||||
return stat;
|
||||
if (!unboosted) {
|
||||
if (statName === "def" && this.side.sideConditions["reflect"] || statName === "spd" && this.side.sideConditions["lightscreen"]) {
|
||||
stat *= 2;
|
||||
}
|
||||
}
|
||||
if (["Cubone", "Marowak"].includes(this.baseSpecies.name) && this.item === "thickclub" && statName === "atk" || this.baseSpecies.name === "Pikachu" && this.item === "lightball" && statName === "spa") {
|
||||
stat *= 2;
|
||||
} else if (this.baseSpecies.name === "Ditto" && this.item === "metalpowder" && ["def", "spd"].includes(statName)) {
|
||||
stat = Math.floor(stat * 1.5);
|
||||
}
|
||||
return stat;
|
||||
},
|
||||
boostBy(boost) {
|
||||
let delta = 0;
|
||||
let i;
|
||||
for (i in boost) {
|
||||
delta = boost[i];
|
||||
if (delta > 0 && this.getStat(i, false, true) === 999) {
|
||||
delta = 0;
|
||||
continue;
|
||||
}
|
||||
this.boosts[i] += delta;
|
||||
if (this.boosts[i] > 6) {
|
||||
delta -= this.boosts[i] - 6;
|
||||
this.boosts[i] = 6;
|
||||
}
|
||||
if (this.boosts[i] < -6) {
|
||||
delta -= this.boosts[i] - -6;
|
||||
this.boosts[i] = -6;
|
||||
}
|
||||
}
|
||||
return delta;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
inherit: true,
|
||||
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
|
||||
let move = this.dex.getActiveMove(moveOrMoveName);
|
||||
let target = this.battle.getTarget(pokemon, move, targetLoc);
|
||||
if (!sourceEffect && move.id !== "struggle") {
|
||||
const changedMove = this.battle.runEvent("OverrideAction", pokemon, target, move);
|
||||
if (changedMove && changedMove !== true) {
|
||||
move = this.dex.getActiveMove(changedMove);
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
}
|
||||
}
|
||||
if (!target && target !== false)
|
||||
target = this.battle.getRandomTarget(pokemon, move);
|
||||
this.battle.setActiveMove(move, pokemon, target);
|
||||
if (pokemon.moveThisTurn) {
|
||||
this.battle.debug("" + pokemon.fullname + " INCONSISTENT STATE, ALREADY MOVED: " + pokemon.moveThisTurn);
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
if (!this.battle.runEvent("BeforeMove", pokemon, target, move)) {
|
||||
this.battle.runEvent("MoveAborted", pokemon, target, move);
|
||||
this.battle.clearActiveMove(true);
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
return;
|
||||
}
|
||||
if (move.beforeMoveCallback) {
|
||||
if (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
pokemon.lastDamage = 0;
|
||||
let lockedMove = this.battle.runEvent("LockMove", pokemon);
|
||||
if (lockedMove === true)
|
||||
lockedMove = false;
|
||||
if (!lockedMove) {
|
||||
if (!pokemon.deductPP(move, null, target) && move.id !== "struggle") {
|
||||
this.battle.add("cant", pokemon, "nopp", move);
|
||||
this.battle.clearActiveMove(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
pokemon.moveUsed(move);
|
||||
this.battle.actions.useMove(move, pokemon, target, sourceEffect);
|
||||
this.battle.singleEvent("AfterMove", move, null, pokemon, target, move);
|
||||
if (!move.selfSwitch && pokemon.side.foe.active[0].hp)
|
||||
this.battle.runEvent("AfterMoveSelf", pokemon, target, move);
|
||||
},
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
const positiveBoostTable = [1, 1.33, 1.66, 2, 2.33, 2.66, 3];
|
||||
const negativeBoostTable = [1, 0.75, 0.6, 0.5, 0.43, 0.36, 0.33];
|
||||
const doSelfDestruct = true;
|
||||
let damage = 0;
|
||||
if (move.selfdestruct && doSelfDestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
}
|
||||
let hitResult = this.battle.singleEvent("PrepareHit", move, {}, target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
this.battle.runEvent("PrepareHit", pokemon, target, move);
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return false;
|
||||
}
|
||||
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
|
||||
if (move.target === "all") {
|
||||
hitResult = this.battle.runEvent("TryHitField", target, pokemon, move);
|
||||
} else {
|
||||
hitResult = this.battle.runEvent("TryHitSide", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return this.moveHit(target, pokemon, move);
|
||||
}
|
||||
hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, {}, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
let accuracy = move.accuracy;
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true) {
|
||||
accuracy = Math.floor(accuracy * 255 / 100);
|
||||
if (move.ohko) {
|
||||
if (pokemon.level >= target.level) {
|
||||
accuracy += (pokemon.level - target.level) * 2;
|
||||
accuracy = Math.min(accuracy, 255);
|
||||
} else {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!move.ignoreAccuracy) {
|
||||
if (pokemon.boosts.accuracy > 0) {
|
||||
accuracy *= positiveBoostTable[pokemon.boosts.accuracy];
|
||||
} else {
|
||||
accuracy *= negativeBoostTable[-pokemon.boosts.accuracy];
|
||||
}
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
if (target.boosts.evasion > 0 && !move.ignorePositiveEvasion) {
|
||||
accuracy *= negativeBoostTable[target.boosts.evasion];
|
||||
} else if (target.boosts.evasion < 0) {
|
||||
accuracy *= positiveBoostTable[-target.boosts.evasion];
|
||||
}
|
||||
}
|
||||
accuracy = Math.min(Math.floor(accuracy), 255);
|
||||
accuracy = Math.max(accuracy, 1);
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
|
||||
if (accuracy !== true)
|
||||
accuracy = Math.max(accuracy, 0);
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true && accuracy !== 255 && !this.battle.randomChance(accuracy, 256)) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
damage = false;
|
||||
return damage;
|
||||
}
|
||||
move.totalDamage = 0;
|
||||
pokemon.lastDamage = 0;
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let nullDamage = true;
|
||||
let moveDamage;
|
||||
const isSleepUsable = move.sleepUsable || this.dex.moves.get(move.sourceEffect).sleepUsable;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
if (pokemon.status === "slp" && !isSleepUsable)
|
||||
break;
|
||||
move.hit = i + 1;
|
||||
if (move.hit === hits)
|
||||
move.lastHit = true;
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
if (nullDamage && (moveDamage || moveDamage === 0 || moveDamage === void 0))
|
||||
nullDamage = false;
|
||||
damage = moveDamage || 0;
|
||||
move.totalDamage += damage;
|
||||
this.battle.eachEvent("Update");
|
||||
}
|
||||
if (i === 0)
|
||||
return 1;
|
||||
if (nullDamage)
|
||||
damage = false;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
move.totalDamage = damage;
|
||||
}
|
||||
if (move.category !== "Status") {
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
}
|
||||
if (move.ohko)
|
||||
this.battle.add("-ohko");
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
if (move.recoil && move.totalDamage) {
|
||||
this.battle.damage(this.calcRecoilDamage(move.totalDamage, move), pokemon, target, "recoil");
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
moveHit(target, pokemon, move, moveData, isSecondary, isSelf) {
|
||||
let damage = void 0;
|
||||
move = this.dex.getActiveMove(move);
|
||||
if (!moveData)
|
||||
moveData = move;
|
||||
let hitResult = true;
|
||||
if (move.target === "all" && !isSelf) {
|
||||
hitResult = this.battle.singleEvent("TryHitField", moveData, {}, target, pokemon, move);
|
||||
} else if ((move.target === "foeSide" || move.target === "allySide") && !isSelf) {
|
||||
hitResult = this.battle.singleEvent("TryHitSide", moveData, {}, target ? target.side : null, pokemon, move);
|
||||
} else if (target) {
|
||||
hitResult = this.battle.singleEvent("TryHit", moveData, {}, target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
if (target && !isSecondary && !isSelf) {
|
||||
hitResult = this.battle.runEvent("TryPrimaryHit", target, pokemon, moveData);
|
||||
if (hitResult === 0) {
|
||||
hitResult = true;
|
||||
target = null;
|
||||
}
|
||||
}
|
||||
if (target && isSecondary && !moveData.self) {
|
||||
hitResult = true;
|
||||
}
|
||||
if (!hitResult) {
|
||||
return false;
|
||||
}
|
||||
if (target) {
|
||||
let didSomething = false;
|
||||
damage = this.getDamage(pokemon, target, moveData);
|
||||
if ((damage || damage === 0) && !target.fainted) {
|
||||
damage = this.battle.damage(damage, target, pokemon, move);
|
||||
if (!(damage || damage === 0)) {
|
||||
this.battle.debug("damage interrupted");
|
||||
return false;
|
||||
}
|
||||
didSomething = true;
|
||||
}
|
||||
if (damage === false || damage === null) {
|
||||
if (damage === false && !isSecondary && !isSelf) {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
this.battle.debug("damage calculation interrupted");
|
||||
return false;
|
||||
}
|
||||
if (moveData.boosts && !target.fainted) {
|
||||
if (pokemon.volatiles["lockon"] && target === pokemon.volatiles["lockon"].source && target.isSemiInvulnerable() && !isSelf) {
|
||||
if (!isSecondary)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.boost(moveData.boosts, target, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.heal && !target.fainted) {
|
||||
const d = target.heal(Math.round(target.maxhp * moveData.heal[0] / moveData.heal[1]));
|
||||
if (!d && d !== 0) {
|
||||
this.battle.add("-fail", target);
|
||||
this.battle.debug("heal interrupted");
|
||||
return false;
|
||||
}
|
||||
this.battle.add("-heal", target, target.getHealth);
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.status) {
|
||||
hitResult = target.trySetStatus(moveData.status, pokemon, move);
|
||||
if (!hitResult && move.status)
|
||||
return hitResult;
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.forceStatus) {
|
||||
hitResult = target.setStatus(moveData.forceStatus, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.volatileStatus) {
|
||||
hitResult = target.addVolatile(moveData.volatileStatus, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.sideCondition) {
|
||||
hitResult = target.side.addSideCondition(moveData.sideCondition, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.weather) {
|
||||
hitResult = this.battle.field.setWeather(moveData.weather, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.pseudoWeather) {
|
||||
hitResult = this.battle.field.addPseudoWeather(moveData.pseudoWeather, pokemon, move);
|
||||
didSomething = didSomething || hitResult;
|
||||
}
|
||||
if (moveData.forceSwitch) {
|
||||
if (this.battle.canSwitch(target.side))
|
||||
didSomething = true;
|
||||
}
|
||||
if (moveData.selfSwitch) {
|
||||
if (this.battle.canSwitch(pokemon.side))
|
||||
didSomething = true;
|
||||
}
|
||||
hitResult = null;
|
||||
if (move.target === "all" && !isSelf) {
|
||||
if (moveData.onHitField)
|
||||
hitResult = this.battle.singleEvent("HitField", moveData, {}, target, pokemon, move);
|
||||
} else if ((move.target === "foeSide" || move.target === "allySide") && !isSelf) {
|
||||
if (moveData.onHitSide)
|
||||
hitResult = this.battle.singleEvent("HitSide", moveData, {}, target.side, pokemon, move);
|
||||
} else {
|
||||
if (moveData.onHit)
|
||||
hitResult = this.battle.singleEvent("Hit", moveData, {}, target, pokemon, move);
|
||||
if (!isSelf && !isSecondary) {
|
||||
this.battle.runEvent("Hit", target, pokemon, move);
|
||||
}
|
||||
if (moveData.onAfterHit)
|
||||
hitResult = this.battle.singleEvent("AfterHit", moveData, {}, target, pokemon, move);
|
||||
}
|
||||
if (!hitResult && !didSomething && !moveData.self && !moveData.selfdestruct) {
|
||||
if (!isSelf && !isSecondary) {
|
||||
if (hitResult === false || didSomething === false)
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
this.battle.debug("move failed because it did nothing");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (moveData.self) {
|
||||
if (!isSecondary && moveData.self.boosts)
|
||||
this.battle.random(100);
|
||||
this.moveHit(pokemon, pokemon, move, moveData.self, isSecondary, true);
|
||||
}
|
||||
if (target?.hp && moveData.secondaries && this.battle.runEvent("TrySecondaryHit", target, pokemon, moveData)) {
|
||||
for (const secondary of moveData.secondaries) {
|
||||
if (secondary.status && ["brn", "frz"].includes(secondary.status) && target.hasType(move.type)) {
|
||||
this.battle.debug("Target immune to [" + secondary.status + "]");
|
||||
continue;
|
||||
}
|
||||
if (secondary.volatileStatus === "flinch" && ["slp", "frz"].includes(target.status) && !secondary.kingsrock) {
|
||||
this.battle.debug("Cannot flinch a sleeping or frozen target");
|
||||
continue;
|
||||
}
|
||||
if (!move.multihit || move.lastHit) {
|
||||
const effectChance = Math.floor((secondary.chance || 100) * 255 / 100);
|
||||
if (typeof secondary.chance === "undefined" || this.battle.randomChance(effectChance, 256)) {
|
||||
this.moveHit(target, pokemon, move, secondary, true, isSelf);
|
||||
} else if (effectChance === 255) {
|
||||
this.battle.hint("In Gen 2, moves with a 100% secondary effect chance will not trigger in 1/256 uses.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (target && target.hp > 0 && pokemon.hp > 0 && moveData.forceSwitch && this.battle.canSwitch(target.side)) {
|
||||
hitResult = this.battle.runEvent("DragOut", target, pokemon, move);
|
||||
if (hitResult) {
|
||||
this.dragIn(target.side, target.position);
|
||||
} else if (hitResult === false) {
|
||||
this.battle.add("-fail", target);
|
||||
}
|
||||
}
|
||||
if (move.selfSwitch && pokemon.hp) {
|
||||
pokemon.switchFlag = move.id;
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string") {
|
||||
move = this.dex.getActiveMove(move);
|
||||
} else if (typeof move === "number") {
|
||||
move = {
|
||||
basePower: move,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
flags: {}
|
||||
};
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
return target.maxhp;
|
||||
}
|
||||
if (move.damageCallback) {
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
}
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
}
|
||||
if (move.damage) {
|
||||
return move.damage;
|
||||
}
|
||||
move.category = this.battle.getCategory(move);
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower) {
|
||||
if (basePower === 0)
|
||||
return;
|
||||
return basePower;
|
||||
}
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let critRatio = this.battle.runEvent("ModifyCritRatio", source, target, move, move.critRatio || 0);
|
||||
critRatio = this.battle.clampIntRange(critRatio, 0, 5);
|
||||
const critMult = [0, 16, 8, 4, 3, 2];
|
||||
let isCrit = move.willCrit || false;
|
||||
if (typeof move.willCrit === "undefined") {
|
||||
if (critRatio) {
|
||||
isCrit = this.battle.randomChance(1, critMult[critRatio]);
|
||||
}
|
||||
}
|
||||
if (isCrit && this.battle.runEvent("CriticalHit", target, null, move)) {
|
||||
target.getMoveHitData(move).crit = true;
|
||||
}
|
||||
if (basePower) {
|
||||
if (move.isConfusionSelfHit) {
|
||||
move.type = move.baseMoveType;
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
move.type = "???";
|
||||
} else {
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
}
|
||||
if (basePower && move.basePowerModifier) {
|
||||
basePower *= move.basePowerModifier;
|
||||
}
|
||||
}
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let level = source.level;
|
||||
if (move.allies) {
|
||||
this.battle.add("-activate", source, "move: Beat Up", "[of] " + move.allies[0].name);
|
||||
level = move.allies[0].level;
|
||||
}
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const atkType = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
|
||||
const defType = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
let unboosted = false;
|
||||
let noburndrop = false;
|
||||
if (isCrit) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
if (attacker.boosts[atkType] <= defender.boosts[defType]) {
|
||||
unboosted = true;
|
||||
noburndrop = true;
|
||||
}
|
||||
}
|
||||
let attack = attacker.getStat(atkType, unboosted, noburndrop);
|
||||
let defense = defender.getStat(defType, unboosted);
|
||||
if (move.allies) {
|
||||
attack = move.allies[0].species.baseStats.atk;
|
||||
move.allies.shift();
|
||||
defense = defender.species.baseStats.def;
|
||||
}
|
||||
if (move.ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
attack = attacker.getStat(atkType, true, true);
|
||||
}
|
||||
if (move.ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defense = target.getStat(defType, true, true);
|
||||
}
|
||||
if (move.id === "present") {
|
||||
const typeIndexes = {
|
||||
Normal: 0,
|
||||
Fighting: 1,
|
||||
Flying: 2,
|
||||
Poison: 3,
|
||||
Ground: 4,
|
||||
Rock: 5,
|
||||
Bug: 7,
|
||||
Ghost: 8,
|
||||
Steel: 9,
|
||||
Fire: 20,
|
||||
Water: 21,
|
||||
Grass: 22,
|
||||
Electric: 23,
|
||||
Psychic: 24,
|
||||
Ice: 25,
|
||||
Dragon: 26,
|
||||
Dark: 27
|
||||
};
|
||||
attack = 10;
|
||||
const attackerLastType = attacker.getTypes().slice(-1)[0];
|
||||
const defenderLastType = defender.getTypes().slice(-1)[0];
|
||||
defense = typeIndexes[attackerLastType] || 1;
|
||||
level = typeIndexes[defenderLastType] || 1;
|
||||
this.battle.hint("Gen 2 Present has a glitched damage calculation using the secondary types of the Pokemon for the Attacker's Level and Defender's Defense.", true);
|
||||
}
|
||||
if (attack >= 256 || defense >= 256) {
|
||||
if (attack >= 1024 || defense >= 1024) {
|
||||
this.battle.hint("In Gen 2, a stat will roll over to a small number if it is larger than 1024.");
|
||||
}
|
||||
attack = this.battle.clampIntRange(Math.floor(attack / 4) % 256, 1);
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 4) % 256, 1);
|
||||
}
|
||||
if (move.selfdestruct && defType === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
let damage = level * 2;
|
||||
damage = Math.floor(damage / 5);
|
||||
damage += 2;
|
||||
damage *= basePower;
|
||||
damage *= attack;
|
||||
damage = Math.floor(damage / defense);
|
||||
damage = Math.floor(damage / 50);
|
||||
if (isCrit)
|
||||
damage *= 2;
|
||||
damage = Math.floor(this.battle.runEvent("ModifyDamage", attacker, defender, move, damage));
|
||||
damage = this.battle.clampIntRange(damage, 1, 997);
|
||||
damage += 2;
|
||||
if (type === "Water" && this.battle.field.isWeather("raindance") || type === "Fire" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage * 1.5);
|
||||
} else if ((type === "Fire" || move.id === "solarbeam") && this.battle.field.isWeather("raindance") || type === "Water" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
if (type !== "???" && source.hasType(type)) {
|
||||
damage += Math.floor(damage / 2);
|
||||
}
|
||||
const totalTypeMod = target.runEffectiveness(move);
|
||||
if (totalTypeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
damage *= 2;
|
||||
if (totalTypeMod >= 2) {
|
||||
damage *= 2;
|
||||
}
|
||||
}
|
||||
if (totalTypeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
damage = Math.floor(damage / 2);
|
||||
if (totalTypeMod <= -2) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
}
|
||||
if (!move.noDamageVariance && damage > 1) {
|
||||
damage *= this.battle.random(217, 256);
|
||||
damage = Math.floor(damage / 255);
|
||||
}
|
||||
if (basePower && !Math.floor(damage)) {
|
||||
return 1;
|
||||
}
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/scripts.ts"],
|
||||
"sourcesContent": ["/**\r\n * Gen 2 scripts.\r\n */\r\n\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen3',\r\n\tgen: 2,\r\n\tpokemon: {\r\n\t\tinherit: true,\r\n\t\tgetStat(statName, unboosted, unmodified, fastReturn) {\r\n\t\t\t// @ts-ignore - type checking prevents 'hp' from being passed, but we're paranoid\r\n\t\t\tif (statName === 'hp') throw new Error(\"Please read `maxhp` directly\");\r\n\r\n\t\t\t// base stat\r\n\t\t\tlet stat = this.storedStats[statName];\r\n\r\n\t\t\t// Stat boosts.\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tlet boost = this.boosts[statName];\r\n\t\t\t\tif (boost > 6) boost = 6;\r\n\t\t\t\tif (boost < -6) boost = -6;\r\n\t\t\t\tif (boost >= 0) {\r\n\t\t\t\t\tconst boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];\r\n\t\t\t\t\tstat = Math.floor(stat * boostTable[boost]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst numerators = [100, 66, 50, 40, 33, 28, 25];\r\n\t\t\t\t\tstat = Math.floor(stat * numerators[-boost] / 100);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (this.status === 'par' && statName === 'spe') {\r\n\t\t\t\tstat = Math.floor(stat / 4);\r\n\t\t\t}\r\n\r\n\t\t\tif (!unmodified) {\r\n\t\t\t\t// Burn attack drop is checked when you get the attack stat upon switch in and used until switch out.\r\n\t\t\t\tif (this.status === 'brn' && statName === 'atk') {\r\n\t\t\t\t\tstat = Math.floor(stat / 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Gen 2 caps stats at 999 and min is 1.\r\n\t\t\tstat = this.battle.clampIntRange(stat, 1, 999);\r\n\t\t\tif (fastReturn) return stat;\r\n\r\n\t\t\t// Screens\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tif (\r\n\t\t\t\t\t(statName === 'def' && this.side.sideConditions['reflect']) ||\r\n\t\t\t\t\t(statName === 'spd' && this.side.sideConditions['lightscreen'])\r\n\t\t\t\t) {\r\n\t\t\t\t\tstat *= 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Handle boosting items\r\n\t\t\tif (\r\n\t\t\t\t(['Cubone', 'Marowak'].includes(this.baseSpecies.name) && this.item === 'thickclub' && statName === 'atk') ||\r\n\t\t\t\t(this.baseSpecies.name === 'Pikachu' && this.item === 'lightball' && statName === 'spa')\r\n\t\t\t) {\r\n\t\t\t\tstat *= 2;\r\n\t\t\t} else if (this.baseSpecies.name === 'Ditto' && this.item === 'metalpowder' && ['def', 'spd'].includes(statName)) {\r\n\t\t\t\tstat = Math.floor(stat * 1.5);\r\n\t\t\t}\r\n\r\n\t\t\treturn stat;\r\n\t\t},\r\n\t\tboostBy(boost) {\r\n\t\t\tlet delta = 0;\r\n\t\t\tlet i: BoostID;\r\n\t\t\tfor (i in boost) {\r\n\t\t\t\tdelta = boost[i]!;\r\n\t\t\t\tif (delta > 0 && this.getStat(i as StatIDExceptHP, false, true) === 999) {\r\n\t\t\t\t\tdelta = 0;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tthis.boosts[i] += delta;\r\n\t\t\t\tif (this.boosts[i] > 6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - 6;\r\n\t\t\t\t\tthis.boosts[i] = 6;\r\n\t\t\t\t}\r\n\t\t\t\tif (this.boosts[i] < -6) {\r\n\t\t\t\t\tdelta -= this.boosts[i] - (-6);\r\n\t\t\t\t\tthis.boosts[i] = -6;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn delta;\r\n\t\t},\r\n\t},\r\n\tactions: {\r\n\t\tinherit: true,\r\n\t\trunMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {\r\n\t\t\tlet move = this.dex.getActiveMove(moveOrMoveName);\r\n\t\t\tlet target = this.battle.getTarget(pokemon, move, targetLoc);\r\n\t\t\tif (!sourceEffect && move.id !== 'struggle') {\r\n\t\t\t\tconst changedMove = this.battle.runEvent('OverrideAction', pokemon, target, move);\r\n\t\t\t\tif (changedMove && changedMove !== true) {\r\n\t\t\t\t\tmove = this.dex.getActiveMove(changedMove);\r\n\t\t\t\t\ttarget = this.battle.getRandomTarget(pokemon, move);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!target && target !== false) target = this.battle.getRandomTarget(pokemon, move);\r\n\r\n\t\t\tthis.battle.setActiveMove(move, pokemon, target);\r\n\r\n\t\t\tif (pokemon.moveThisTurn) {\r\n\t\t\t\t// THIS IS PURELY A SANITY CHECK\r\n\t\t\t\t// DO NOT TAKE ADVANTAGE OF THIS TO PREVENT A POKEMON FROM MOVING;\r\n\t\t\t\t// USE this.battle.queue.cancelMove INSTEAD\r\n\t\t\t\tthis.battle.debug('' + pokemon.fullname + ' INCONSISTENT STATE, ALREADY MOVED: ' + pokemon.moveThisTurn);\r\n\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!this.battle.runEvent('BeforeMove', pokemon, target, move)) {\r\n\t\t\t\tthis.battle.runEvent('MoveAborted', pokemon, target, move);\r\n\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t// This is only run for sleep and fully paralysed.\r\n\t\t\t\tthis.battle.runEvent('AfterMoveSelf', pokemon, target, move);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (move.beforeMoveCallback) {\r\n\t\t\t\tif (move.beforeMoveCallback.call(this.battle, pokemon, target, move)) {\r\n\t\t\t\t\tthis.battle.clearActiveMove(true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpokemon.lastDamage = 0;\r\n\t\t\tlet lockedMove = this.battle.runEvent('LockMove', pokemon);\r\n\t\t\tif (lockedMove === true) lockedMove = false;\r\n\t\t\tif (!lockedMove) {\r\n\t\t\t\tif (!pokemon.deductPP(move, null, target) && (move.id !== 'struggle')) {\r\n\t\t\t\t\tthis.battle.add('cant', pokemon, 'nLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,SAAS;AAAA,IACR,SAAS;AAAA,IACT,QAAQ,UAAU,WAAW,YAAY,YAAY;AAEpD,UAAI,aAAa;AAAM,cAAM,IAAI,MAAM,8BAA8B;AAGrE,UAAI,OAAO,KAAK,YAAY,QAAQ;AAGpC,UAAI,CAAC,WAAW;AACf,YAAI,QAAQ,KAAK,OAAO,QAAQ;AAChC,YAAI,QAAQ;AAAG,kBAAQ;AACvB,YAAI,QAAQ;AAAI,kBAAQ;AACxB,YAAI,SAAS,GAAG;AACf,gBAAM,aAAa,CAAC,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAC7C,iBAAO,KAAK,MAAM,OAAO,WAAW,KAAK,CAAC;AAAA,QAC3C,OAAO;AACN,gBAAM,aAAa,CAA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UAAI,KAAK,WAAW;AACnB,mBAAW;AAAA,MACZ,OAAO;AACN,mBAAW,KAAK,OAAO,SAAS,YAAY,QAAQ,SAAS,MAAM,QAAQ;AAAA,MAC5E;AAEA,UAAI,aAAa,MAAM;AACtB,mBAAW,KAAK,MAAM,WAAW,MAAM,GAAG;AAC1C,YAAI,KAAK,MAAM;AACd,cAAI,QAAQ,SAAS,OAAO,OAAO;AAClC,yBAAa,QAAQ,QAAQ,OAAO,SAAS;AAC7C,uBAAW,KAAK,IAAI,UAAU,GAAG;AAAA,UAClC,OAAO;AACN,iBAAK,OAAO,IAAI,WAAW,QAAQ,QAAQLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var typechart_exports = {};
|
||||
__export(typechart_exports, {
|
||||
TypeChart: () => TypeChart
|
||||
});
|
||||
module.exports = __toCommonJS(typechart_exports);
|
||||
const TypeChart = {
|
||||
fire: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
Bug: 2,
|
||||
Dark: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 0,
|
||||
Fire: 2,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 2,
|
||||
Ground: 1,
|
||||
Ice: 2,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Steel: 2,
|
||||
Water: 1
|
||||
}
|
||||
},
|
||||
ice: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
Bug: 0,
|
||||
Dark: 0,
|
||||
Dragon: 0,
|
||||
Electric: 0,
|
||||
Fighting: 1,
|
||||
Fire: 1,
|
||||
Flying: 0,
|
||||
Ghost: 0,
|
||||
Grass: 0,
|
||||
Ground: 0,
|
||||
Ice: 2,
|
||||
Normal: 0,
|
||||
Poison: 0,
|
||||
Psychic: 0,
|
||||
Rock: 1,
|
||||
Steel: 1,
|
||||
Water: 0
|
||||
}
|
||||
},
|
||||
steel: {
|
||||
inherit: true,
|
||||
damageTaken: {
|
||||
sandstorm: 3,
|
||||
Bug: 2,
|
||||
Dark: 2,
|
||||
Dragon: 2,
|
||||
Electric: 0,
|
||||
Fairy: 2,
|
||||
Fighting: 1,
|
||||
Fire: 1,
|
||||
Flying: 2,
|
||||
Ghost: 2,
|
||||
Grass: 2,
|
||||
Ground: 1,
|
||||
Ice: 2,
|
||||
Normal: 2,
|
||||
Poison: 3,
|
||||
Psychic: 2,
|
||||
Rock: 2,
|
||||
Steel: 2,
|
||||
Water: 0
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=typechart.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2/typechart.ts"],
|
||||
"sourcesContent": ["export const TypeChart: {[k: string]: ModdedTypeData} = {\r\n\tfire: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 2,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 0,\r\n\t\t\tFire: 2,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tSteel: 2,\r\n\t\t\tWater: 1,\r\n\t\t},\r\n\t},\r\n\tice: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tBug: 0,\r\n\t\t\tDark: 0,\r\n\t\t\tDragon: 0,\r\n\t\t\tElectric: 0,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 0,\r\n\t\t\tGhost: 0,\r\n\t\t\tGrass: 0,\r\n\t\t\tGround: 0,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 0,\r\n\t\t\tPoison: 0,\r\n\t\t\tPsychic: 0,\r\n\t\t\tRock: 1,\r\n\t\t\tSteel: 1,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n\tsteel: {\r\n\t\tinherit: true,\r\n\t\tdamageTaken: {\r\n\t\t\tsandstorm: 3,\r\n\t\t\tBug: 2,\r\n\t\t\tDark: 2,\r\n\t\t\tDragon: 2,\r\n\t\t\tElectric: 0,\r\n\t\t\tFairy: 2,\r\n\t\t\tFighting: 1,\r\n\t\t\tFire: 1,\r\n\t\t\tFlying: 2,\r\n\t\t\tGhost: 2,\r\n\t\t\tGrass: 2,\r\n\t\t\tGround: 1,\r\n\t\t\tIce: 2,\r\n\t\t\tNormal: 2,\r\n\t\t\tPoison: 3,\r\n\t\t\tPsychic: 2,\r\n\t\t\tRock: 2,\r\n\t\t\tSteel: 2,\r\n\t\t\tWater: 0,\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA2C;AAAA,EACvD,MAAM;AAAA,IACL,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,OAAO;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,MACZ,WAAW;AAAA,MACX,KAAK;AAAA,MACL,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,OAAO;AAAA,MACP,UAAU;AAAA,MACV,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,MAAM;AAAA,MACN,OAAO;AAAA,MACP,OAAO;AAAA,IACR;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
brn: {
|
||||
name: "brn",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "brn");
|
||||
target.addVolatile("brnattackdrop");
|
||||
},
|
||||
onAfterMoveSelfPriority: 3,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.addVolatile("brnattackdrop");
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
residualdmg(this, pokemon);
|
||||
}
|
||||
},
|
||||
par: {
|
||||
name: "par",
|
||||
effectType: "Status",
|
||||
onStart(target) {
|
||||
this.add("-status", target, "par");
|
||||
target.addVolatile("parspeeddrop");
|
||||
},
|
||||
onBeforeMovePriority: 2,
|
||||
onBeforeMove(pokemon) {
|
||||
if (this.randomChance(1, 4)) {
|
||||
this.add("cant", pokemon, "par");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.addVolatile("parspeeddrop");
|
||||
}
|
||||
},
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.time = this.random(2, 5);
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
confusion: {
|
||||
inherit: true,
|
||||
// Stadium 2 fixed Berserk Gene afflicting Confusion for 255 turns.
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.id === "lockedmove") {
|
||||
this.add("-start", target, "confusion", "[silent]");
|
||||
} else {
|
||||
this.add("-start", target, "confusion");
|
||||
}
|
||||
this.effectState.time = this.random(2, 6);
|
||||
},
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
pokemon.volatiles["confusion"].time--;
|
||||
if (!pokemon.volatiles["confusion"].time) {
|
||||
pokemon.removeVolatile("confusion");
|
||||
return;
|
||||
}
|
||||
this.add("-activate", pokemon, "confusion");
|
||||
if (this.randomChance(1, 2)) {
|
||||
return;
|
||||
}
|
||||
move = {
|
||||
basePower: 40,
|
||||
type: "???",
|
||||
baseMoveType: move.type,
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
isConfusionSelfHit: true,
|
||||
noDamageVariance: true,
|
||||
flags: {},
|
||||
selfdestruct: move.selfdestruct
|
||||
};
|
||||
const damage = this.actions.getDamage(pokemon, pokemon, move);
|
||||
if (typeof damage !== "number")
|
||||
throw new Error("Confusion damage not dealt");
|
||||
this.directDamage(damage);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
residualdmg: {
|
||||
name: "residualdmg",
|
||||
onStart(target) {
|
||||
target.volatiles["residualdmg"].counter = 0;
|
||||
},
|
||||
onAfterMoveSelfPriority: 100,
|
||||
onAfterMoveSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
},
|
||||
onAfterSwitchInSelf(pokemon) {
|
||||
if (["brn", "psn", "tox"].includes(pokemon.status))
|
||||
pokemon.volatiles["residualdmg"].counter++;
|
||||
}
|
||||
}
|
||||
};
|
||||
function residualdmg(battle, pokemon) {
|
||||
if (pokemon.volatiles["residualdmg"]) {
|
||||
const residualDmg = battle.clampIntRange(
|
||||
Math.floor(pokemon.maxhp / 16) * pokemon.volatiles["residualdmg"].counter,
|
||||
1
|
||||
);
|
||||
battle.damage(residualDmg, pokemon);
|
||||
battle.hint("In Gen 2, Toxic's counter is retained through Baton Pass/Heal Bell and applies to PSN/BRN.", true);
|
||||
} else {
|
||||
battle.damage(battle.clampIntRange(Math.floor(pokemon.maxhp / 8), 1), pokemon);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2stadium2/conditions.ts"],
|
||||
"sourcesContent": ["/**\r\n * Since Stadium 2 ignores stat drops while recalculating stats due to boosting moves, haze,\r\n * or stat-lowering moves. The status conditions which affect a targets stats (brn and par) have\r\n * a volatile along with them to keep track of if their respective stat changes should be factored\r\n * in during stat calculations or not.\r\n */\r\nexport const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tbrn: {\r\n\t\tname: 'brn',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'brn');\r\n\t\t\ttarget.addVolatile('brnattackdrop');\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 3,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\tpokemon.addVolatile('brnattackdrop');\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tresidualdmg(this, pokemon);\r\n\t\t},\r\n\t},\r\n\tpar: {\r\n\t\tname: 'par',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target) {\r\n\t\t\tthis.add('-status', target, 'par');\r\n\t\t\ttarget.addVolatile('parspeeddrop');\r\n\t\t},\r\n\t\tonBeforeMovePriority: 2,\r\n\t\tonBeforeMove(pokemon) {\r\n\t\t\tif (this.randomChance(1, 4)) {\r\n\t\t\t\tthis.add('cant', pokemon, 'par');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonSwitchIn(pokemon) {\r\n\t\t\tpokemon.addVolatile('parspeeddrop');\r\n\t\t},\r\n\t},\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-4 turns, guaranteed 1 turn of sleep.\r\n\t\t\tthis.effectState.time = this.random(2, 5);\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tconfusion: {\r\n\t\tinherit: true,\r\n\t\t// Stadium 2 fixed Berserk Gene afflicting Confusion for 255 turns.\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.id === 'lockedmove') {\r\n\t\t\t\tthis.add('-start', target, 'confusion', '[silent]');\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-start', target, 'confusion');\r\n\t\t\t}\r\n\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t},\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tpokemon.volatiles['confusion'].time--;\r\n\t\t\tif (!pokemon.volatiles['confusion'].time) {\r\n\t\t\t\tpokemon.removeVolatile('confusion');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-activate', pokemon, 'confusion');\r\n\t\t\tif (this.randomChance(1, 2)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tmove = {\r\n\t\t\t\tbasePower: 40,\r\n\t\t\t\ttype: '???',\r\n\t\t\t\tbaseMoveType: move.type,\r\n\t\t\t\tcategory: 'Physical',\r\n\t\t\t\twillCrit: false,\r\n\t\t\t\tisConfusionSelfHit: true,\r\n\t\t\t\tnoDamageVariance: true,\r\n\t\t\t\tflags: {},\r\n\t\t\t\tselfdestruct: move.selfdestruct,\r\n\t\t\t} as unknown as ActiveMove;\r\n\t\t\tconst damage = this.actions.getDamage(pokemon, pokemon, move);\r\n\t\t\tif (typeof damage !== 'number') throw new Error(\"Confusion damage not dealt\");\r\n\t\t\tthis.directDamage(damage);\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tresidualdmg: {\r\n\t\tname: 'residualdmg',\r\n\t\tonStart(target) {\r\n\t\t\ttarget.volatiles['residualdmg'].counter = 0;\r\n\t\t},\r\n\t\tonAfterMoveSelfPriority: 100,\r\n\t\tonAfterMoveSelf(pokemon) {\r\n\t\t\tif (['brn', 'psn', 'tox'].includes(pokemon.status)) pokemon.volatiles['residualdmg'].counter++;\r\n\t\t},\r\n\t\tonAfterSwitchInSelf(pokemon) {\r\n\t\t\tif (['brn', 'psn', 'tox'].includes(pokemon.status)) pokemon.volatiles['residualdmg'].counter++;\r\n\t\t},\r\n\t},\r\n};\r\n\r\nfunction residualdmg(battle: Battle, pokemon: Pokemon) {\r\n\tif (pokemon.volatiles['residualdmg']) {\r\n\t\tconst residualDmg = battle.clampIntRange(\r\n\t\t\tMath.floor(pokemon.maxhp / 16) * pokemon.volatiles['residualdmg'].counter, 1\r\n\t\t);\r\n\t\tbattle.damage(residualDmg, pokemon);\r\n\t\tbattle.hint(\"In Gen 2, Toxic's counter is retained through Baton Pass/Heal Bell and applies to PSN/BRN.\", true);\r\n\t} else {\r\n\t\tbattle.damage(battle.clampIntRange(Math.floor(pokemon.maxhp / 8), 1), pokemon);\r\n\t}\r\n}\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,aAAiD;AAAA,EAC7D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ;AACf,WAAK,IAAI,WAAW,QAAQ,KAAK;AACjC,aAAO,YAAY,eAAe;AAAA,IACnC;AAAA,IACA,yBAAyB;AAAA,IACzB,gBAAgB,SAAS;AACxB,kBAAY,MAAM,OAAO;AAAA,IAC1B;AAAA,IACA,WAAW,SAAS;AACnB,cAAQ,YAAY,eAAe;AAAA,IACpC;AAAA,IACA,oBAAoB,SAAS;AAC5B,kBAAY,MAAM,OAAO;AAAA,IAC1B;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ;AACf,WAAK,IAAI,WAAW,QAAQ,KAAK;AACjC,aAAO,YAAY,cAAc;AAAA,IAClC;AAAA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8F,IAAI;AAAA,EAC/G,OAAO;AACN,WAAO,OAAO,OAAO,cAAc,KAAK,MAAM,QAAQ,QAAQ,CAAC,GAAG,CAAC,GAAG,OAAO;AAAA,EAC9E;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var items_exports = {};
|
||||
__export(items_exports, {
|
||||
Items: () => Items
|
||||
});
|
||||
module.exports = __toCommonJS(items_exports);
|
||||
const Items = {
|
||||
dragonfang: {
|
||||
inherit: true,
|
||||
onModifyDamage(damage, source, target, move) {
|
||||
if (move?.type === "Dragon") {
|
||||
return damage * 1.1;
|
||||
}
|
||||
}
|
||||
},
|
||||
dragonscale: {
|
||||
inherit: true,
|
||||
onModifyDamage() {
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=items.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2stadium2/items.ts"],
|
||||
"sourcesContent": ["// Gen 2 Stadium fixes Dragon Fang and Dragon Scale having the wrong effects.\r\nexport const Items: {[k: string]: ModdedItemData} = {\r\n\tdragonfang: {\r\n\t\tinherit: true,\r\n\t\tonModifyDamage(damage, source, target, move) {\r\n\t\t\tif (move?.type === 'Dragon') {\r\n\t\t\t\treturn damage * 1.1;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tdragonscale: {\r\n\t\tinherit: true,\r\n\t\tonModifyDamage() {},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,MAAM,QAAuC;AAAA,EACnD,YAAY;AAAA,IACX,SAAS;AAAA,IACT,eAAe,QAAQ,QAAQ,QAAQ,MAAM;AAC5C,UAAI,MAAM,SAAS,UAAU;AAC5B,eAAO,SAAS;AAAA,MACjB;AAAA,IACD;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,iBAAiB;AAAA,IAAC;AAAA,EACnB;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var moves_exports = {};
|
||||
__export(moves_exports, {
|
||||
Moves: () => Moves
|
||||
});
|
||||
module.exports = __toCommonJS(moves_exports);
|
||||
const Moves = {
|
||||
// Belly Drum no longer boosts attack by 2 stages if under 50% health.
|
||||
bellydrum: {
|
||||
inherit: true,
|
||||
onHit(target) {
|
||||
if (target.boosts.atk >= 6 || target.hp <= target.maxhp / 2) {
|
||||
return false;
|
||||
}
|
||||
this.directDamage(target.maxhp / 2);
|
||||
const originalStage = target.boosts.atk;
|
||||
let currentStage = originalStage;
|
||||
let boosts = 0;
|
||||
let loopStage = 0;
|
||||
while (currentStage < 6) {
|
||||
loopStage = currentStage;
|
||||
currentStage++;
|
||||
if (currentStage < 6)
|
||||
currentStage++;
|
||||
target.boosts.atk = loopStage;
|
||||
if (target.getStat("atk", false, true) < 999) {
|
||||
target.boosts.atk = currentStage;
|
||||
continue;
|
||||
}
|
||||
target.boosts.atk = currentStage - 1;
|
||||
break;
|
||||
}
|
||||
boosts = target.boosts.atk - originalStage;
|
||||
target.boosts.atk = originalStage;
|
||||
this.boost({ atk: boosts });
|
||||
}
|
||||
},
|
||||
destinybond: {
|
||||
inherit: true,
|
||||
onPrepareHit(pokemon) {
|
||||
if (pokemon.side.pokemonLeft === 1) {
|
||||
this.hint("In Pokemon Stadium 2, Destiny Bond fails if it is being used by your last Pokemon.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* In Stadium 2, moves which affect the stat stages of a Pokemon, such as moves which boost ones own stats,
|
||||
* lower the targets stats, or Haze, causes the afflicted stat to be re-calculated without factoring in
|
||||
* status aliments, thus if a Pokemon is burned or paralyzed and either active Pokemon uses Haze, then their
|
||||
* attack and speed are re-calculated while ignoring their status ailments, so their attack would go from 50% to normal
|
||||
*/
|
||||
haze: {
|
||||
inherit: true,
|
||||
onHitField() {
|
||||
this.add("-clearallboost");
|
||||
for (const pokemon of this.getAllActive()) {
|
||||
pokemon.clearBoosts();
|
||||
pokemon.removeVolatile("brnattackdrop");
|
||||
pokemon.removeVolatile("parspeeddrop");
|
||||
}
|
||||
}
|
||||
},
|
||||
perishsong: {
|
||||
inherit: true,
|
||||
onPrepareHit(pokemon) {
|
||||
if (pokemon.side.pokemonLeft === 1) {
|
||||
this.hint("In Pokemon Stadium 2, Perish Song fails if it is being used by your last Pokemon.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=moves.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2stadium2/moves.ts"],
|
||||
"sourcesContent": ["export const Moves: {[k: string]: ModdedMoveData} = {\r\n\t// Belly Drum no longer boosts attack by 2 stages if under 50% health.\r\n\tbellydrum: {\r\n\t\tinherit: true,\r\n\t\tonHit(target) {\r\n\t\t\tif (target.boosts.atk >= 6 || target.hp <= target.maxhp / 2) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.directDamage(target.maxhp / 2);\r\n\t\t\tconst originalStage = target.boosts.atk;\r\n\t\t\tlet currentStage = originalStage;\r\n\t\t\tlet boosts = 0;\r\n\t\t\tlet loopStage = 0;\r\n\t\t\twhile (currentStage < 6) {\r\n\t\t\t\tloopStage = currentStage;\r\n\t\t\t\tcurrentStage++;\r\n\t\t\t\tif (currentStage < 6) currentStage++;\r\n\t\t\t\ttarget.boosts.atk = loopStage;\r\n\t\t\t\tif (target.getStat('atk', false, true) < 999) {\r\n\t\t\t\t\ttarget.boosts.atk = currentStage;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\ttarget.boosts.atk = currentStage - 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tboosts = target.boosts.atk - originalStage;\r\n\t\t\ttarget.boosts.atk = originalStage;\r\n\t\t\tthis.boost({atk: boosts});\r\n\t\t},\r\n\t},\r\n\tdestinybond: {\r\n\t\tinherit: true,\r\n\t\tonPrepareHit(pokemon) {\r\n\t\t\tif (pokemon.side.pokemonLeft === 1) {\r\n\t\t\t\tthis.hint(\"In Pokemon Stadium 2, Destiny Bond fails if it is being used by your last Pokemon.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\t/**\r\n\t * In Stadium 2, moves which affect the stat stages of a Pokemon, such as moves which boost ones own stats,\r\n\t * lower the targets stats, or Haze, causes the afflicted stat to be re-calculated without factoring in\r\n\t * status aliments, thus if a Pokemon is burned or paralyzed and either active Pokemon uses Haze, then their\r\n\t * attack and speed are re-calculated while ignoring their status ailments, so their attack would go from 50% to normal\r\n\t */\r\n\thaze: {\r\n\t\tinherit: true,\r\n\t\tonHitField() {\r\n\t\t\tthis.add('-clearallboost');\r\n\t\t\tfor (const pokemon of this.getAllActive()) {\r\n\t\t\t\tpokemon.clearBoosts();\r\n\t\t\t\tpokemon.removeVolatile('brnattackdrop');\r\n\t\t\t\tpokemon.removeVolatile('parspeeddrop');\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tperishsong: {\r\n\t\tinherit: true,\r\n\t\tonPrepareHit(pokemon) {\r\n\t\t\tif (pokemon.side.pokemonLeft === 1) {\r\n\t\t\t\tthis.hint(\"In Pokemon Stadium 2, Perish Song fails if it is being used by your last Pokemon.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA;AAAA,EAEnD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,MAAM,QAAQ;AACb,UAAI,OAAO,OAAO,OAAO,KAAK,OAAO,MAAM,OAAO,QAAQ,GAAG;AAC5D,eAAO;AAAA,MACR;AACA,WAAK,aAAa,OAAO,QAAQ,CAAC;AAClC,YAAM,gBAAgB,OAAO,OAAO;AACpC,UAAI,eAAe;AACnB,UAAI,SAAS;AACb,UAAI,YAAY;AAChB,aAAO,eAAe,GAAG;AACxB,oBAAY;AACZ;AACA,YAAI,eAAe;AAAG;AACtB,eAAO,OAAO,MAAM;AACpB,YAAI,OAAO,QAAQ,OAAO,OAAO,IAAI,IAAI,KAAK;AAC7C,iBAAO,OAAO,MAAM;AACpB;AAAA,QACD;AACA,eAAO,OAAO,MAAM,eAAe;AACnC;AAAA,MACD;AACA,eAAS,OAAO,OAAO,MAAM;AAC7B,aAAO,OAAO,MAAM;AACpB,WAAK,MAAM,EAAC,KAAK,OAAM,CAAC;AAAA,IACzB;AAAA,EACD;AAAA,EACA,aAAa;AAAA,IACZ,SAAS;AAAA,IACT,aAAa,SAAS;AACrB,UAAI,QAAQ,KAAK,gBAAgB,GAAG;AACnC,aAAK,KAAK,oFAAoF;AAC9F,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM;AAAA,IACL,SAAS;AAAA,IACT,aAAa;AACZ,WAAK,IAAI,gBAAgB;AACzB,iBAAW,WAAW,KAAK,aAAa,GAAG;AAC1C,gBAAQ,YAAY;AACpB,gBAAQ,eAAe,eAAe;AACtC,gBAAQ,eAAe,cAAc;AAAA,MACtC;AAAA,IACD;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,aAAa,SAAS;AACrB,UAAI,QAAQ,KAAK,gBAAgB,GAAG;AACnC,aAAK,KAAK,mFAAmF;AAC7F,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var rulesets_exports = {};
|
||||
__export(rulesets_exports, {
|
||||
Rulesets: () => Rulesets
|
||||
});
|
||||
module.exports = __toCommonJS(rulesets_exports);
|
||||
const Rulesets = {
|
||||
standard: {
|
||||
effectType: "ValidatorRule",
|
||||
name: "Standard",
|
||||
ruleset: ["Obtainable", "Team Preview", "Stadium Sleep Clause", "Freeze Clause Mod", "Self-KO Clause", "Species Clause", "OHKO Clause", "Evasion Moves Clause", "Exact HP Mod", "Cancel Mod", "Stadium Items Clause"]
|
||||
},
|
||||
selfkoclause: {
|
||||
effectType: "Rule",
|
||||
name: "Self-KO Clause",
|
||||
desc: "If a player's last Pokemon uses Self-Destruct or Explosion, they automatically lose the battle.",
|
||||
onBegin() {
|
||||
this.add("rule", "Self-KO Clause: If a player's last Pokemon uses Self-Destruct/Explosion, they automatically lose");
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=rulesets.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2stadium2/rulesets.ts"],
|
||||
"sourcesContent": ["export const Rulesets: {[k: string]: ModdedFormatData} = {\r\n\tstandard: {\r\n\t\teffectType: 'ValidatorRule',\r\n\t\tname: 'Standard',\r\n\t\truleset: ['Obtainable', 'Team Preview', 'Stadium Sleep Clause', 'Freeze Clause Mod', 'Self-KO Clause', 'Species Clause', 'OHKO Clause', 'Evasion Moves Clause', 'Exact HP Mod', 'Cancel Mod', 'Stadium Items Clause'],\r\n\t},\r\n\tselfkoclause: {\r\n\t\teffectType: 'Rule',\r\n\t\tname: 'Self-KO Clause',\r\n\t\tdesc: \"If a player's last Pokemon uses Self-Destruct or Explosion, they automatically lose the battle.\",\r\n\t\tonBegin() {\r\n\t\t\tthis.add('rule', 'Self-KO Clause: If a player\\'s last Pokemon uses Self-Destruct/Explosion, they automatically lose');\r\n\t\t},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,WAA4C;AAAA,EACxD,UAAU;AAAA,IACT,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS,CAAC,cAAc,gBAAgB,wBAAwB,qBAAqB,kBAAkB,kBAAkB,eAAe,wBAAwB,gBAAgB,cAAc,sBAAsB;AAAA,EACrN;AAAA,EACA,cAAc;AAAA,IACb,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AACT,WAAK,IAAI,QAAQ,kGAAmG;AAAA,IACrH;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,522 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var scripts_exports = {};
|
||||
__export(scripts_exports, {
|
||||
Scripts: () => Scripts
|
||||
});
|
||||
module.exports = __toCommonJS(scripts_exports);
|
||||
const Scripts = {
|
||||
inherit: "gen2",
|
||||
gen: 2,
|
||||
pokemon: {
|
||||
inherit: true,
|
||||
getStat(statName, unboosted, unmodified, fastReturn) {
|
||||
if (statName === "hp")
|
||||
throw new Error("Please read `maxhp` directly");
|
||||
let stat = this.storedStats[statName];
|
||||
if (!unboosted) {
|
||||
let boost = this.boosts[statName];
|
||||
if (boost > 6)
|
||||
boost = 6;
|
||||
if (boost < -6)
|
||||
boost = -6;
|
||||
if (boost >= 0) {
|
||||
const boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];
|
||||
stat = Math.floor(stat * boostTable[boost]);
|
||||
} else {
|
||||
const numerators = [100, 66, 50, 40, 33, 28, 25];
|
||||
stat = Math.floor(stat * numerators[-boost] / 100);
|
||||
}
|
||||
}
|
||||
if (this.status === "par" && statName === "spe" && this.volatiles["parspeeddrop"]) {
|
||||
stat = Math.floor(stat / 4);
|
||||
}
|
||||
if (!unmodified) {
|
||||
if (this.status === "brn" && statName === "atk" && this.volatiles["brnattackdrop"]) {
|
||||
stat = Math.floor(stat / 2);
|
||||
}
|
||||
}
|
||||
stat = this.battle.clampIntRange(stat, 1, 999);
|
||||
if (fastReturn)
|
||||
return stat;
|
||||
if (!unboosted) {
|
||||
if (statName === "def" && this.side.sideConditions["reflect"] || statName === "spd" && this.side.sideConditions["lightscreen"]) {
|
||||
stat *= 2;
|
||||
}
|
||||
}
|
||||
if (["Cubone", "Marowak"].includes(this.species.name) && this.item === "thickclub" && statName === "atk" || this.species.name === "Pikachu" && this.item === "lightball" && statName === "spa") {
|
||||
stat *= 2;
|
||||
} else if (this.species.name === "Ditto" && this.item === "metalpowder" && ["def", "spd"].includes(statName)) {
|
||||
stat = Math.floor(stat * 1.5);
|
||||
}
|
||||
return stat;
|
||||
}
|
||||
},
|
||||
// Stadium 2 shares gen 2 code but it fixes some problems with it.
|
||||
actions: {
|
||||
inherit: true,
|
||||
tryMoveHit(target, pokemon, move) {
|
||||
const positiveBoostTable = [1, 1.33, 1.66, 2, 2.33, 2.66, 3];
|
||||
const negativeBoostTable = [1, 0.75, 0.6, 0.5, 0.43, 0.36, 0.33];
|
||||
const doSelfDestruct = true;
|
||||
let damage = 0;
|
||||
if (move.selfdestruct && doSelfDestruct) {
|
||||
this.battle.faint(pokemon, pokemon, move);
|
||||
target.side.lastMove = null;
|
||||
pokemon.side.lastMove = move;
|
||||
}
|
||||
let hitResult = this.battle.singleEvent("PrepareHit", move, {}, target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
this.battle.runEvent("PrepareHit", pokemon, target, move);
|
||||
if (!this.battle.singleEvent("Try", move, null, pokemon, target, move)) {
|
||||
return false;
|
||||
}
|
||||
if (move.target === "all" || move.target === "foeSide" || move.target === "allySide" || move.target === "allyTeam") {
|
||||
if (move.target === "all") {
|
||||
hitResult = this.battle.runEvent("TryHitField", target, pokemon, move);
|
||||
} else {
|
||||
hitResult = this.battle.runEvent("TryHitSide", target, pokemon, move);
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-fail", pokemon);
|
||||
this.battle.attrLastMove("[still]");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return this.moveHit(target, pokemon, move);
|
||||
}
|
||||
hitResult = this.battle.runEvent("Invulnerability", target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
return false;
|
||||
}
|
||||
if (move.ignoreImmunity === void 0) {
|
||||
move.ignoreImmunity = move.category === "Status";
|
||||
}
|
||||
if ((!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) && !target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.singleEvent("TryImmunity", move, {}, target, pokemon, move);
|
||||
if (hitResult === false) {
|
||||
this.battle.add("-immune", target);
|
||||
return false;
|
||||
}
|
||||
hitResult = this.battle.runEvent("TryHit", target, pokemon, move);
|
||||
if (!hitResult) {
|
||||
if (hitResult === false)
|
||||
this.battle.add("-fail", target);
|
||||
return false;
|
||||
}
|
||||
let accuracy = move.accuracy;
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true) {
|
||||
accuracy = Math.floor(accuracy * 255 / 100);
|
||||
if (move.ohko) {
|
||||
if (pokemon.level >= target.level) {
|
||||
accuracy += (pokemon.level - target.level) * 2;
|
||||
accuracy = Math.min(accuracy, 255);
|
||||
} else {
|
||||
this.battle.add("-immune", target, "[ohko]");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!move.ignoreAccuracy) {
|
||||
if (pokemon.boosts.accuracy > 0) {
|
||||
accuracy *= positiveBoostTable[pokemon.boosts.accuracy];
|
||||
} else {
|
||||
accuracy *= negativeBoostTable[-pokemon.boosts.accuracy];
|
||||
}
|
||||
}
|
||||
if (!move.ignoreEvasion) {
|
||||
if (target.boosts.evasion > 0 && !move.ignorePositiveEvasion) {
|
||||
accuracy *= negativeBoostTable[target.boosts.evasion];
|
||||
} else if (target.boosts.evasion < 0) {
|
||||
accuracy *= positiveBoostTable[-target.boosts.evasion];
|
||||
}
|
||||
}
|
||||
accuracy = Math.min(Math.floor(accuracy), 255);
|
||||
accuracy = Math.max(accuracy, 1);
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
accuracy = this.battle.runEvent("ModifyAccuracy", target, pokemon, move, accuracy);
|
||||
if (accuracy !== true)
|
||||
accuracy = Math.max(accuracy, 0);
|
||||
if (move.alwaysHit) {
|
||||
accuracy = true;
|
||||
} else {
|
||||
accuracy = this.battle.runEvent("Accuracy", target, pokemon, move, accuracy);
|
||||
}
|
||||
if (accuracy !== true && accuracy !== 255 && !this.battle.randomChance(accuracy, 256)) {
|
||||
this.battle.attrLastMove("[miss]");
|
||||
this.battle.add("-miss", pokemon);
|
||||
damage = false;
|
||||
return damage;
|
||||
}
|
||||
move.totalDamage = 0;
|
||||
pokemon.lastDamage = 0;
|
||||
if (move.multihit) {
|
||||
let hits = move.multihit;
|
||||
if (Array.isArray(hits)) {
|
||||
if (hits[0] === 2 && hits[1] === 5) {
|
||||
hits = this.battle.sample([2, 2, 2, 3, 3, 3, 4, 5]);
|
||||
} else {
|
||||
hits = this.battle.random(hits[0], hits[1] + 1);
|
||||
}
|
||||
}
|
||||
hits = Math.floor(hits);
|
||||
let nullDamage = true;
|
||||
let moveDamage;
|
||||
const isSleepUsable = move.sleepUsable || this.dex.moves.get(move.sourceEffect).sleepUsable;
|
||||
let i;
|
||||
for (i = 0; i < hits && target.hp && pokemon.hp; i++) {
|
||||
if (pokemon.status === "slp" && !isSleepUsable)
|
||||
break;
|
||||
move.hit = i + 1;
|
||||
if (move.hit === hits)
|
||||
move.lastHit = true;
|
||||
moveDamage = this.moveHit(target, pokemon, move);
|
||||
if (moveDamage === false)
|
||||
break;
|
||||
if (nullDamage && (moveDamage || moveDamage === 0 || moveDamage === void 0))
|
||||
nullDamage = false;
|
||||
damage = moveDamage || 0;
|
||||
move.totalDamage += damage;
|
||||
this.battle.eachEvent("Update");
|
||||
}
|
||||
if (i === 0)
|
||||
return 1;
|
||||
if (nullDamage)
|
||||
damage = false;
|
||||
this.battle.add("-hitcount", target, i);
|
||||
} else {
|
||||
damage = this.moveHit(target, pokemon, move);
|
||||
move.totalDamage = damage;
|
||||
}
|
||||
if (move.category !== "Status") {
|
||||
target.gotAttacked(move, damage, pokemon);
|
||||
}
|
||||
if (move.ohko)
|
||||
this.battle.add("-ohko");
|
||||
if (!move.negateSecondary) {
|
||||
this.battle.singleEvent("AfterMoveSecondary", move, null, target, pokemon, move);
|
||||
this.battle.runEvent("AfterMoveSecondary", target, pokemon, move);
|
||||
}
|
||||
if (move.recoil && move.totalDamage && (pokemon.side.pokemonLeft > 1 || target.side.pokemonLeft > 1 || target.hp)) {
|
||||
this.battle.damage(this.calcRecoilDamage(move.totalDamage, move), pokemon, target, "recoil");
|
||||
}
|
||||
return damage;
|
||||
},
|
||||
getDamage(source, target, move, suppressMessages) {
|
||||
if (typeof move === "string") {
|
||||
move = this.dex.getActiveMove(move);
|
||||
} else if (typeof move === "number") {
|
||||
move = {
|
||||
basePower: move,
|
||||
type: "???",
|
||||
category: "Physical",
|
||||
willCrit: false,
|
||||
flags: {}
|
||||
};
|
||||
}
|
||||
if (!move.ignoreImmunity || move.ignoreImmunity !== true && !move.ignoreImmunity[move.type]) {
|
||||
if (!target.runImmunity(move.type, true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (move.ohko) {
|
||||
return target.maxhp;
|
||||
}
|
||||
if (move.damageCallback) {
|
||||
return move.damageCallback.call(this.battle, source, target);
|
||||
}
|
||||
if (move.damage === "level") {
|
||||
return source.level;
|
||||
}
|
||||
if (move.damage) {
|
||||
return move.damage;
|
||||
}
|
||||
move.category = this.battle.getCategory(move);
|
||||
if (!move.type)
|
||||
move.type = "???";
|
||||
const type = move.type;
|
||||
let basePower = move.basePower;
|
||||
if (move.basePowerCallback) {
|
||||
basePower = move.basePowerCallback.call(this.battle, source, target, move);
|
||||
}
|
||||
if (!basePower) {
|
||||
if (basePower === 0)
|
||||
return;
|
||||
return basePower;
|
||||
}
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let critRatio = this.battle.runEvent("ModifyCritRatio", source, target, move, move.critRatio || 0);
|
||||
critRatio = this.battle.clampIntRange(critRatio, 0, 5);
|
||||
const critMult = [0, 16, 8, 4, 3, 2];
|
||||
let isCrit = move.willCrit || false;
|
||||
if (typeof move.willCrit === "undefined") {
|
||||
if (critRatio) {
|
||||
isCrit = this.battle.randomChance(1, critMult[critRatio]);
|
||||
}
|
||||
}
|
||||
if (isCrit && this.battle.runEvent("CriticalHit", target, null, move)) {
|
||||
target.getMoveHitData(move).crit = true;
|
||||
}
|
||||
if (basePower) {
|
||||
if (move.isConfusionSelfHit) {
|
||||
move.type = move.baseMoveType;
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
move.type = "???";
|
||||
} else {
|
||||
basePower = this.battle.runEvent("BasePower", source, target, move, basePower, true);
|
||||
}
|
||||
if (basePower && move.basePowerModifier) {
|
||||
basePower *= move.basePowerModifier;
|
||||
}
|
||||
}
|
||||
if (!basePower)
|
||||
return 0;
|
||||
basePower = this.battle.clampIntRange(basePower, 1);
|
||||
let level = source.level;
|
||||
if (move.allies) {
|
||||
this.battle.add("-activate", source, "move: Beat Up", "[of] " + move.allies[0].name);
|
||||
level = move.allies[0].level;
|
||||
}
|
||||
const attacker = move.overrideOffensivePokemon === "target" ? target : source;
|
||||
const defender = move.overrideDefensivePokemon === "source" ? source : target;
|
||||
const isPhysical = move.category === "Physical";
|
||||
const atkType = move.overrideOffensiveStat || (isPhysical ? "atk" : "spa");
|
||||
const defType = move.overrideDefensiveStat || (isPhysical ? "def" : "spd");
|
||||
let unboosted = false;
|
||||
let noburndrop = false;
|
||||
if (isCrit) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-crit", target);
|
||||
if (attacker.boosts[atkType] <= defender.boosts[defType]) {
|
||||
unboosted = true;
|
||||
noburndrop = true;
|
||||
}
|
||||
}
|
||||
let attack = attacker.getStat(atkType, unboosted, noburndrop);
|
||||
let defense = defender.getStat(defType, unboosted);
|
||||
if (move.allies) {
|
||||
attack = move.allies[0].species.baseStats.atk;
|
||||
move.allies.shift();
|
||||
defense = defender.species.baseStats.def;
|
||||
}
|
||||
if (move.ignoreOffensive) {
|
||||
this.battle.debug("Negating (sp)atk boost/penalty.");
|
||||
attack = attacker.getStat(atkType, true, true);
|
||||
}
|
||||
if (move.ignoreDefensive) {
|
||||
this.battle.debug("Negating (sp)def boost/penalty.");
|
||||
defense = target.getStat(defType, true, true);
|
||||
}
|
||||
if (attack >= 256 || defense >= 256) {
|
||||
attack = this.battle.clampIntRange(Math.floor(this.battle.clampIntRange(attack, 1, 999) / 4), 1);
|
||||
defense = this.battle.clampIntRange(Math.floor(this.battle.clampIntRange(defense, 1, 999) / 4), 1);
|
||||
}
|
||||
if (move.selfdestruct && defType === "def") {
|
||||
defense = this.battle.clampIntRange(Math.floor(defense / 2), 1);
|
||||
}
|
||||
let damage = level * 2;
|
||||
damage = Math.floor(damage / 5);
|
||||
damage += 2;
|
||||
damage *= basePower;
|
||||
damage *= attack;
|
||||
damage = Math.floor(damage / defense);
|
||||
damage = Math.floor(damage / 50);
|
||||
if (isCrit)
|
||||
damage *= 2;
|
||||
damage = Math.floor(this.battle.runEvent("ModifyDamage", attacker, defender, move, damage));
|
||||
damage = this.battle.clampIntRange(damage, 1, 997);
|
||||
damage += 2;
|
||||
if (type === "Water" && this.battle.field.isWeather("raindance") || type === "Fire" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage * 1.5);
|
||||
} else if ((type === "Fire" || move.id === "solarbeam") && this.battle.field.isWeather("raindance") || type === "Water" && this.battle.field.isWeather("sunnyday")) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
if (type !== "???" && source.hasType(type)) {
|
||||
damage += Math.floor(damage / 2);
|
||||
}
|
||||
const totalTypeMod = target.runEffectiveness(move);
|
||||
if (totalTypeMod > 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-supereffective", target);
|
||||
damage *= 2;
|
||||
if (totalTypeMod >= 2) {
|
||||
damage *= 2;
|
||||
}
|
||||
}
|
||||
if (totalTypeMod < 0) {
|
||||
if (!suppressMessages)
|
||||
this.battle.add("-resisted", target);
|
||||
damage = Math.floor(damage / 2);
|
||||
if (totalTypeMod <= -2) {
|
||||
damage = Math.floor(damage / 2);
|
||||
}
|
||||
}
|
||||
if (!move.noDamageVariance && damage > 1) {
|
||||
damage *= this.battle.random(217, 256);
|
||||
damage = Math.floor(damage / 255);
|
||||
}
|
||||
if (basePower && !Math.floor(damage)) {
|
||||
return 1;
|
||||
}
|
||||
return damage;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Stadium 2 ignores stat drops due to status ailments upon boosting the dropped stat.
|
||||
* For example: if a burned Snorlax uses Curse then it will ignore the attack drop from
|
||||
* burn when it is recalculating its attack stat. This is why volatiles are added to status
|
||||
* conditions, so that we can keep track of whether or not to apply the stat drop from
|
||||
* statuses.
|
||||
*/
|
||||
boost(boost, target, source = null, effect = null) {
|
||||
if (this.event) {
|
||||
if (!target)
|
||||
target = this.event.target;
|
||||
if (!source)
|
||||
source = this.event.source;
|
||||
if (!effect)
|
||||
effect = this.effect;
|
||||
}
|
||||
if (typeof effect === "string")
|
||||
effect = this.dex.conditions.get(effect);
|
||||
if (!target?.hp)
|
||||
return 0;
|
||||
let success = null;
|
||||
boost = this.runEvent("TryBoost", target, source, effect, { ...boost });
|
||||
let i;
|
||||
for (i in boost) {
|
||||
const currentBoost = {};
|
||||
currentBoost[i] = boost[i];
|
||||
let boostBy = target.boostBy(currentBoost);
|
||||
let msg = "-boost";
|
||||
if (boost[i] < 0) {
|
||||
msg = "-unboost";
|
||||
boostBy = -boostBy;
|
||||
}
|
||||
if (boostBy) {
|
||||
success = true;
|
||||
if (i === "atk" && target.status === "brn" && target.volatiles["brnattackdrop"]) {
|
||||
target.removeVolatile("brnattackdrop");
|
||||
}
|
||||
if (i === "spe" && target.status === "par" && target.volatiles["parspeeddrop"]) {
|
||||
target.removeVolatile("parspeeddrop");
|
||||
}
|
||||
if (!effect || effect.effectType === "Move") {
|
||||
this.add(msg, target, i, boostBy);
|
||||
} else {
|
||||
this.add(msg, target, i, boostBy, "[from] " + effect.fullname);
|
||||
}
|
||||
this.runEvent("AfterEachBoost", target, source, effect, currentBoost);
|
||||
}
|
||||
}
|
||||
this.runEvent("AfterBoost", target, source, effect, boost);
|
||||
return success;
|
||||
},
|
||||
/**
|
||||
* Implementing Self-KO Clause by having it check what the last move used by the players were
|
||||
* in the case both Pokemon faint. Since the only way this can happen in Stadium 2 is if a player
|
||||
* uses self-destruct or explosion, I can use this to determine who should win.
|
||||
*/
|
||||
faintMessages(lastFirst) {
|
||||
if (this.ended)
|
||||
return;
|
||||
const length = this.faintQueue.length;
|
||||
if (!length)
|
||||
return false;
|
||||
if (lastFirst) {
|
||||
this.faintQueue.unshift(this.faintQueue[this.faintQueue.length - 1]);
|
||||
this.faintQueue.pop();
|
||||
}
|
||||
let faintData;
|
||||
while (this.faintQueue.length) {
|
||||
faintData = this.faintQueue.shift();
|
||||
const pokemon = faintData.target;
|
||||
if (!pokemon.fainted && this.runEvent("BeforeFaint", pokemon, faintData.source, faintData.effect)) {
|
||||
this.add("faint", pokemon);
|
||||
pokemon.side.pokemonLeft--;
|
||||
if (pokemon.side.totalFainted < 100)
|
||||
pokemon.side.totalFainted++;
|
||||
this.runEvent("Faint", pokemon, faintData.source, faintData.effect);
|
||||
this.singleEvent("End", pokemon.getAbility(), pokemon.abilityState, pokemon);
|
||||
pokemon.clearVolatile(false);
|
||||
pokemon.fainted = true;
|
||||
pokemon.isActive = false;
|
||||
pokemon.isStarted = false;
|
||||
pokemon.side.faintedThisTurn = pokemon;
|
||||
}
|
||||
}
|
||||
if (this.gen <= 1) {
|
||||
this.queue.clear();
|
||||
for (const pokemon of this.getAllActive()) {
|
||||
if (pokemon.volatiles["bide"] && pokemon.volatiles["bide"].damage) {
|
||||
pokemon.volatiles["bide"].damage = 0;
|
||||
this.hint("Desync Clause Mod activated!");
|
||||
this.hint("In Gen 1, Bide's accumulated damage is reset to 0 when a Pokemon faints.");
|
||||
}
|
||||
}
|
||||
} else if (this.gen <= 3 && this.gameType === "singles") {
|
||||
for (const pokemon of this.getAllActive()) {
|
||||
if (this.gen <= 2) {
|
||||
this.queue.cancelMove(pokemon);
|
||||
} else {
|
||||
this.queue.cancelAction(pokemon);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.p1.pokemonLeft && !this.p2.pokemonLeft) {
|
||||
if (this.p1.lastMove !== null && this.p2.lastMove === null) {
|
||||
this.win(this.p2);
|
||||
return true;
|
||||
} else if (this.p2.lastMove !== null && this.p1.lastMove === null) {
|
||||
this.win(this.p1);
|
||||
return true;
|
||||
}
|
||||
this.win(faintData ? faintData.target.side.foe : null);
|
||||
return true;
|
||||
}
|
||||
if (!this.p1.pokemonLeft) {
|
||||
this.win(this.p2);
|
||||
return true;
|
||||
}
|
||||
if (!this.p2.pokemonLeft) {
|
||||
this.win(this.p1);
|
||||
return true;
|
||||
}
|
||||
if (faintData) {
|
||||
this.runEvent("AfterFaint", faintData.target, faintData.source, faintData.effect, length);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=scripts.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen2stadium2/scripts.ts"],
|
||||
"sourcesContent": ["/**\r\n * Stadium 2 mechanics inherit from gen 2 mechanics, but fixes some bugs.\r\n */\r\nexport const Scripts: ModdedBattleScriptsData = {\r\n\tinherit: 'gen2',\r\n\tgen: 2,\r\n\tpokemon: {\r\n\t\tinherit: true,\r\n\t\tgetStat(statName, unboosted, unmodified, fastReturn) {\r\n\t\t\t// @ts-ignore - type checking prevents 'hp' from being passed, but we're paranoid\r\n\t\t\tif (statName === 'hp') throw new Error(\"Please read `maxhp` directly\");\r\n\r\n\t\t\t// base stat\r\n\t\t\tlet stat = this.storedStats[statName];\r\n\r\n\t\t\t// Stat boosts.\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tlet boost = this.boosts[statName];\r\n\t\t\t\tif (boost > 6) boost = 6;\r\n\t\t\t\tif (boost < -6) boost = -6;\r\n\t\t\t\tif (boost >= 0) {\r\n\t\t\t\t\tconst boostTable = [1, 1.5, 2, 2.5, 3, 3.5, 4];\r\n\t\t\t\t\tstat = Math.floor(stat * boostTable[boost]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst numerators = [100, 66, 50, 40, 33, 28, 25];\r\n\t\t\t\t\tstat = Math.floor(stat * numerators[-boost] / 100);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (this.status === 'par' && statName === 'spe' && this.volatiles['parspeeddrop']) {\r\n\t\t\t\tstat = Math.floor(stat / 4);\r\n\t\t\t}\r\n\t\t\tif (!unmodified) {\r\n\t\t\t\tif (this.status === 'brn' && statName === 'atk' && this.volatiles['brnattackdrop']) {\r\n\t\t\t\t\tstat = Math.floor(stat / 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Gen 2 caps stats at 999 and min is 1.\r\n\t\t\tstat = this.battle.clampIntRange(stat, 1, 999);\r\n\t\t\tif (fastReturn) return stat;\r\n\r\n\t\t\t// Screens\r\n\t\t\tif (!unboosted) {\r\n\t\t\t\tif (\r\n\t\t\t\t\t(statName === 'def' && this.side.sideConditions['reflect']) ||\r\n\t\t\t\t\t(statName === 'spd' && this.side.sideConditions['lightscreen'])\r\n\t\t\t\t) {\r\n\t\t\t\t\tstat *= 2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Handle boosting items\r\n\t\t\tif (\r\n\t\t\t\t(['Cubone', 'Marowak'].includes(this.species.name) && this.item === 'thickclub' && statName === 'atk') ||\r\n\t\t\t\t(this.species.name === 'Pikachu' && this.item === 'lightball' && statName === 'spa')\r\n\t\t\t) {\r\n\t\t\t\tstat *= 2;\r\n\t\t\t} else if (this.species.name === 'Ditto' && this.item === 'metalpowder' && ['def', 'spd'].includes(statName)) {\r\n\t\t\t\tstat = Math.floor(stat * 1.5);\r\n\t\t\t}\r\n\r\n\t\t\treturn stat;\r\n\t\t},\r\n\t},\r\n\t// Stadium 2 shares gen 2 code but it fixes some problems with it.\r\n\tactions: {\r\n\t\tinherit: true,\r\n\t\ttryMoveHit(target, pokemon, move) {\r\n\t\t\tconst positiveBoostTable = [1, 1.33, 1.66, 2, 2.33, 2.66, 3];\r\n\t\t\tconst negativeBoostTable = [1, 0.75, 0.6, 0.5, 0.43, 0.36, 0.33];\r\n\t\t\tconst doSelfDestruct = true;\r\n\t\t\tlet damage: number | false | undefined = 0;\r\n\r\n\t\t\tif (move.selfdestruct && doSelfDestruct) {\r\n\t\t\t\tthis.battle.faint(pokemon, pokemon, move);\r\n\t\t\t\t/**\r\n\t\t\t\t * Keeping track of the last move used for self-ko clause,\r\n\t\t\t\t * making sure to clear the opponents last move so that self-destruct and explosion\r\n\t\t\t\t * does not persist between Pokemon, preventing problems caused by situations,\r\n\t\t\t\t * such as a player from blowing up both they and their opponents second last Pokemon\r\n\t\t\t\t * and their opponent blowing up their last Pokemon. If we did not clear here, there would be a problem.\r\n\t\t\t\t */\r\n\t\t\t\ttarget.side.lastMove = null;\r\n\t\t\t\tpokemon.side.lastMove = move;\r\n\t\t\t}\r\n\r\n\t\t\tlet hitResult = this.battle.singleEvent('PrepareHit', move, {}, target, pokemon, move);\r\n\t\t\tif (!hitResult) {\r\n\t\t\t\tif (hitResult === false) this.battle.add('-fail', target);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tthis.battle.runEvent('PrepareHit', pokemon, target, move);\r\n\r\n\t\t\tif (!this.battle.singleEvent('Try', move, null, pokemon, target, move)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (move.target === 'all' || move.target === 'foeSide' || move.target === 'allySide' || move.target === 'allyTeam') {\r\n\t\t\t\tif (move.target === 'all') {\r\n\t\t\t\t\thitResult = this.battle.runEvent('TryHitField', target, pokemon, move);\r\n\t\t\t\t} else {\r\n\t\t\t\t\thitResult = this.battle.runEvent('TryHitSide', target, pokemon, move);\r\n\t\t\t\t}\r\n\t\t\t\tif (!hitResult) {\r\n\t\t\t\t\tif (hitResult === false) {\r\n\t\t\t\t\t\tthis.battle.add('-fail', pokemon);\r\n\t\t\t\t\t\tthis.battle.attrLastMove('[still]');\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn this.moveHit(target, pokemon, move);\r\n\t\t\t}\r\n\r\n\t\t\thitResult = this.battle.runEvent('Invulnerability', target, pokemon, move);\r\n\t\t\tif (hitResult === false) {\r\n\t\t\t\tthis.battle.attrLastMove('[miss]');\r\n\t\t\t\tthis.battle.add('-miss', pokemon);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (move.ignoreImmunity === undefined) {\r\n\t\t\t\tmove.ignoreImmunity = (move.category === 'Status');\r\n\t\t\t}\r\n\r\n\t\t\tif (\r\n\t\t\t\t(!move.ignoreImmunity || (move.ignoreImmunity !== true && !move.ignoreImmunityLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAmC;AAAA,EAC/C,SAAS;AAAA,EACT,KAAK;AAAA,EACL,SAAS;AAAA,IACR,SAAS;AAAA,IACT,QAAQ,UAAU,WAAW,YAAY,YAAY;AAEpD,UAAI,aAAa;AAAM,cAAM,IAAI,MAAM,8BAA8B;AAGrE,UAAI,OAAO,KAAK,YAAY,QAAQ;AAGpC,UAAI,CAAC,WAAW;AACf,YAAI,QAAQ,KAAK,OAAO,QAAQ;AAChC,YAAI,QAAQ;AAAG,kBAAQ;AACvB,YAAI,QAAQ;AAAI,kBAAQ;AACxB,YAAI,SAAS,GAAG;AACf,gBAAM,aAAa,CAAC,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAC7C,iBAAO,KAAK,MAAM,OAAO,WAAW,KAAK,CAAC;AAAA,QAC3C,OAAO;AACN,gBAAM,aAAa,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;AAC/C,iBAAO,KAAK,MAAM,OAAO,WAAW,CAAC,KAAK,IAAI,GAAG;AAAA,QAClD;AAAA,MACD;AACA,UAAI,KAAK,WAAW,SAAS,aAAa,SAAS,KAAK,UAAU,cAAc,GAAG;AAClF,eAAO,KAAK,MAAM,OAAO,CAAC;AAAA,MAC3B;AACA,UAAI,CAAC,YAAY;AAChB,YAAI,KAAK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Ac,eAAe,KAAK,eAAe;AAAY,yBAAa;AAC7F,mBAAU,cAAc;AACxB,eAAK,eAAe;AACpB,eAAK,OAAO,UAAU,QAAQ;AAAA,QLine truncated
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,234 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var abilities_exports = {};
|
||||
__export(abilities_exports, {
|
||||
Abilities: () => Abilities
|
||||
});
|
||||
module.exports = __toCommonJS(abilities_exports);
|
||||
const Abilities = {
|
||||
cutecharm: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.addVolatile("attract", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
effectspore: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"] && !source.status) {
|
||||
const r = this.random(300);
|
||||
if (r < 10) {
|
||||
source.setStatus("slp", target);
|
||||
} else if (r < 20) {
|
||||
source.setStatus("par", target);
|
||||
} else if (r < 30) {
|
||||
source.setStatus("psn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
flamebody: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("brn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
flashfire: {
|
||||
inherit: true,
|
||||
onTryHit(target, source, move) {
|
||||
if (target !== source && move.type === "Fire") {
|
||||
if (move.id === "willowisp" && (target.hasType("Fire") || target.status || target.volatiles["substitute"])) {
|
||||
return;
|
||||
}
|
||||
if (target.status === "frz") {
|
||||
return;
|
||||
}
|
||||
if (!target.addVolatile("flashfire")) {
|
||||
this.add("-immune", target, "[from] ability: Flash Fire");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
},
|
||||
intimidate: {
|
||||
inherit: true,
|
||||
onStart(pokemon) {
|
||||
let activated = false;
|
||||
for (const target of pokemon.adjacentFoes()) {
|
||||
if (!target.volatiles["substitute"]) {
|
||||
activated = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!activated) {
|
||||
this.hint("In Gen 3, Intimidate does not activate if every target has a Substitute.", false, pokemon.side);
|
||||
return;
|
||||
}
|
||||
this.add("-ability", pokemon, "Intimidate", "boost");
|
||||
for (const target of pokemon.adjacentFoes()) {
|
||||
if (target.volatiles["substitute"]) {
|
||||
this.add("-immune", target);
|
||||
} else {
|
||||
this.boost({ atk: -1 }, target, pokemon, null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
lightningrod: {
|
||||
onFoeRedirectTarget(target, source, source2, move) {
|
||||
if (move.type !== "Electric")
|
||||
return;
|
||||
if (this.validTarget(this.effectState.target, source, move.target)) {
|
||||
return this.effectState.target;
|
||||
}
|
||||
},
|
||||
isBreakable: true,
|
||||
name: "Lightning Rod",
|
||||
rating: 0,
|
||||
num: 32
|
||||
},
|
||||
minus: {
|
||||
inherit: true,
|
||||
onModifySpA(spa, pokemon) {
|
||||
for (const active of this.getAllActive()) {
|
||||
if (!active.fainted && active.hasAbility("plus")) {
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
plus: {
|
||||
inherit: true,
|
||||
onModifySpA(spa, pokemon) {
|
||||
for (const active of this.getAllActive()) {
|
||||
if (!active.fainted && active.hasAbility("minus")) {
|
||||
return this.chainModify(1.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
poisonpoint: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("psn", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
pressure: {
|
||||
inherit: true,
|
||||
onStart(pokemon) {
|
||||
this.addSplit(pokemon.side.id, ["-ability", pokemon, "Pressure", "[silent]"]);
|
||||
}
|
||||
},
|
||||
raindish: {
|
||||
inherit: true,
|
||||
onWeather() {
|
||||
},
|
||||
onResidualOrder: 10,
|
||||
onResidualSubOrder: 3,
|
||||
onResidual(pokemon) {
|
||||
if (["raindance", "primordialsea"].includes(pokemon.effectiveWeather())) {
|
||||
this.heal(pokemon.baseMaxhp / 16);
|
||||
}
|
||||
}
|
||||
},
|
||||
roughskin: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
this.damage(source.baseMaxhp / 16, source, target);
|
||||
}
|
||||
}
|
||||
},
|
||||
shadowtag: {
|
||||
inherit: true,
|
||||
onFoeTrapPokemon(pokemon) {
|
||||
pokemon.trapped = true;
|
||||
}
|
||||
},
|
||||
static: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (damage && move.flags["contact"]) {
|
||||
if (this.randomChance(1, 3)) {
|
||||
source.trySetStatus("par", target);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
trace: {
|
||||
inherit: true,
|
||||
onUpdate(pokemon) {
|
||||
if (!pokemon.isStarted)
|
||||
return;
|
||||
const target = pokemon.side.randomFoe();
|
||||
if (!target || target.fainted)
|
||||
return;
|
||||
const ability = target.getAbility();
|
||||
const bannedAbilities = ["forecast", "multitype", "trace"];
|
||||
if (bannedAbilities.includes(target.ability)) {
|
||||
return;
|
||||
}
|
||||
if (pokemon.setAbility(ability)) {
|
||||
this.add("-ability", pokemon, ability, "[from] ability: Trace", "[of] " + target);
|
||||
}
|
||||
}
|
||||
},
|
||||
truant: {
|
||||
inherit: true,
|
||||
onStart() {
|
||||
},
|
||||
onSwitchIn(pokemon) {
|
||||
pokemon.truantTurn = this.turn !== 0;
|
||||
},
|
||||
onBeforeMove(pokemon) {
|
||||
if (pokemon.truantTurn) {
|
||||
this.add("cant", pokemon, "ability: Truant");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
onResidualOrder: 27,
|
||||
onResidual(pokemon) {
|
||||
pokemon.truantTurn = !pokemon.truantTurn;
|
||||
}
|
||||
},
|
||||
voltabsorb: {
|
||||
inherit: true,
|
||||
onTryHit(target, source, move) {
|
||||
if (target !== source && move.type === "Electric" && move.id !== "thunderwave") {
|
||||
if (!this.heal(target.baseMaxhp / 4)) {
|
||||
this.add("-immune", target, "[from] ability: Volt Absorb");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=abilities.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/abilities.ts"],
|
||||
"sourcesContent": ["export const Abilities: {[k: string]: ModdedAbilityData} = {\r\n\tcutecharm: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.addVolatile('attract', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\teffectspore: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact'] && !source.status) {\r\n\t\t\t\tconst r = this.random(300);\r\n\t\t\t\tif (r < 10) {\r\n\t\t\t\t\tsource.setStatus('slp', target);\r\n\t\t\t\t} else if (r < 20) {\r\n\t\t\t\t\tsource.setStatus('par', target);\r\n\t\t\t\t} else if (r < 30) {\r\n\t\t\t\t\tsource.setStatus('psn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tflamebody: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('brn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tflashfire: {\r\n\t\tinherit: true,\r\n\t\tonTryHit(target, source, move) {\r\n\t\t\tif (target !== source && move.type === 'Fire') {\r\n\t\t\t\tif (move.id === 'willowisp' && (target.hasType('Fire') || target.status || target.volatiles['substitute'])) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (target.status === 'frz') {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!target.addVolatile('flashfire')) {\r\n\t\t\t\t\tthis.add('-immune', target, '[from] ability: Flash Fire');\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tintimidate: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tlet activated = false;\r\n\t\t\tfor (const target of pokemon.adjacentFoes()) {\r\n\t\t\t\tif (!target.volatiles['substitute']) {\r\n\t\t\t\t\tactivated = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!activated) {\r\n\t\t\t\tthis.hint(\"In Gen 3, Intimidate does not activate if every target has a Substitute.\", false, pokemon.side);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('-ability', pokemon, 'Intimidate', 'boost');\r\n\r\n\t\t\tfor (const target of pokemon.adjacentFoes()) {\r\n\t\t\t\tif (target.volatiles['substitute']) {\r\n\t\t\t\t\tthis.add('-immune', target);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.boost({atk: -1}, target, pokemon, null, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tlightningrod: {\r\n\t\tonFoeRedirectTarget(target, source, source2, move) {\r\n\t\t\tif (move.type !== 'Electric') return;\r\n\t\t\tif (this.validTarget(this.effectState.target, source, move.target)) {\r\n\t\t\t\treturn this.effectState.target;\r\n\t\t\t}\r\n\t\t},\r\n\t\tisBreakable: true,\r\n\t\tname: \"Lightning Rod\",\r\n\t\trating: 0,\r\n\t\tnum: 32,\r\n\t},\r\n\tminus: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA(spa, pokemon) {\r\n\t\t\tfor (const active of this.getAllActive()) {\r\n\t\t\t\tif (!active.fainted && active.hasAbility('plus')) {\r\n\t\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tplus: {\r\n\t\tinherit: true,\r\n\t\tonModifySpA(spa, pokemon) {\r\n\t\t\tfor (const active of this.getAllActive()) {\r\n\t\t\t\tif (!active.fainted && active.hasAbility('minus')) {\r\n\t\t\t\t\treturn this.chainModify(1.5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpoisonpoint: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('psn', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tpressure: {\r\n\t\tinherit: true,\r\n\t\tonStart(pokemon) {\r\n\t\t\tthis.addSplit(pokemon.side.id, ['-ability', pokemon, 'Pressure', '[silent]']);\r\n\t\t},\r\n\t},\r\n\traindish: {\r\n\t\tinherit: true,\r\n\t\tonWeather() {},\r\n\t\tonResidualOrder: 10,\r\n\t\tonResidualSubOrder: 3,\r\n\t\tonResidual(pokemon) {\r\n\t\t\tif (['raindance', 'primordialsea'].includes(pokemon.effectiveWeather())) {\r\n\t\t\t\tthis.heal(pokemon.baseMaxhp / 16);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\troughskin: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tthis.damage(source.baseMaxhp / 16, source, target);\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tshadowtag: {\r\n\t\tinherit: true,\r\n\t\tonFoeTrapPokemon(pokemon) {\r\n\t\t\tpokemon.trapped = true;\r\n\t\t},\r\n\t},\r\n\tstatic: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\tif (damage && move.flags['contact']) {\r\n\t\t\t\tif (this.randomChance(1, 3)) {\r\n\t\t\t\t\tsource.trySetStatus('par', target);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\ttrace: {\r\n\t\tinherit: true,\r\n\t\tonUpdate(pokemon) {\r\n\t\t\tif (!pokemon.isStarted) return;\r\n\t\t\tconst target = pokemon.side.randomFoe();\r\n\t\t\tif (!target || target.fainted) return;\r\n\t\t\tconst ability = target.gLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAA8C;AAAA,EAC1D,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc,QAAQ,QAAQ,QAAQ,MAAM;AAC3C,UAAI,UAAU,KAAK,MAAM,SAAS,GAAG;AACpC,YAAI,KAAK,aAAa,GAAG,CAAC,GAA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A,IACT,SAAS,SAAS;AACjB,UAAI,CAAC,QAAQ;AAAW;AACxB,YAAM,SAAS,QAAQ,KAAK,UAAU;AACtC,UAAI,CAAC,UAAU,OAAO;AAAS;AAC/B,YAAM,UAAU,OAAO,WAAW;AAClC,YAAM,kBAAkB,CAAC,YAAY,aAAa,OAAO;AACzD,UAAI,gBAAgB,SAAS,OAAO,OAAO,GAAG;AAC7C;AAAA,MACD;AACA,UAAI,QAAQ,WAAW,OAAO,GAAG;AAChC,aAAK,IAAI,YAAY,SAAS,SAAS,yBAAyB,UAAU,MAAM;AAAA,MACjF;AAAA,IACD;AAAA,EACD;AAAA,EACA,QAAQ;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,IAAC;AAAA,IACX,WAAW,SAAS;AACnB,cAAQ,aAAa,KAAK,SAAS;AAAA,IACpC;AAAA,IACA,aAAa,SAAS;AACrB,UAAI,QAAQ,YAAY;AACvB,aAAK,IAAI,QAAQ,SAAS,iBAAiB;AAC3C,eAAO;AAAA,MACR;AAAA,IACD;AAAA,IACA,iBAAiB;AAAA,IACjB,WAAW,SAAS;AACnB,cAAQ,aAAa,CAAC,QAAQ;AAAA,IAC/B;AAAA,EACD;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,SAAS,QAAQ,QAAQ,MAAM;AAC9B,UAAI,WAAW,UAAU,KAAK,SAAS,cAAc,KAAK,OAAO,eAAe;AAC/E,YAAI,CAAC,KAAK,KAAK,OAAO,YAAY,CAAC,GAAG;AACrC,eAAK,IAAI,WAAW,QAAQ,6BAA6B;AAAA,QAC1D;AACA,eAAO;AAAA,MACR;AAAA,IACD;AAAA,EACD;AACD;",
|
||||
"names": []
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var conditions_exports = {};
|
||||
__export(conditions_exports, {
|
||||
Conditions: () => Conditions
|
||||
});
|
||||
module.exports = __toCommonJS(conditions_exports);
|
||||
const Conditions = {
|
||||
slp: {
|
||||
name: "slp",
|
||||
effectType: "Status",
|
||||
onStart(target, source, sourceEffect) {
|
||||
if (sourceEffect && sourceEffect.effectType === "Move") {
|
||||
this.add("-status", target, "slp", "[from] move: " + sourceEffect.name);
|
||||
} else {
|
||||
this.add("-status", target, "slp");
|
||||
}
|
||||
this.effectState.time = this.random(2, 6);
|
||||
this.effectState.skippedTime = 0;
|
||||
if (target.removeVolatile("nightmare")) {
|
||||
this.add("-end", target, "Nightmare", "[silent]");
|
||||
}
|
||||
},
|
||||
onSwitchIn(target) {
|
||||
this.effectState.time += this.effectState.skippedTime;
|
||||
this.effectState.skippedTime = 0;
|
||||
},
|
||||
onBeforeMovePriority: 10,
|
||||
onBeforeMove(pokemon, target, move) {
|
||||
if (pokemon.hasAbility("earlybird")) {
|
||||
pokemon.statusState.time--;
|
||||
}
|
||||
pokemon.statusState.time--;
|
||||
if (pokemon.statusState.time <= 0) {
|
||||
pokemon.cureStatus();
|
||||
return;
|
||||
}
|
||||
this.add("cant", pokemon, "slp");
|
||||
if (move.sleepUsable) {
|
||||
this.effectState.skippedTime++;
|
||||
return;
|
||||
}
|
||||
this.effectState.skippedTime = 0;
|
||||
return false;
|
||||
}
|
||||
},
|
||||
frz: {
|
||||
inherit: true,
|
||||
onDamagingHit(damage, target, source, move) {
|
||||
if (this.dex.moves.get(move.id).type === "Fire" && move.category !== "Status") {
|
||||
target.cureStatus();
|
||||
}
|
||||
}
|
||||
},
|
||||
sandstorm: {
|
||||
inherit: true,
|
||||
onModifySpD() {
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=conditions.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../data/mods/gen3/conditions.ts"],
|
||||
"sourcesContent": ["export const Conditions: {[k: string]: ModdedConditionData} = {\r\n\tslp: {\r\n\t\tname: 'slp',\r\n\t\teffectType: 'Status',\r\n\t\tonStart(target, source, sourceEffect) {\r\n\t\t\tif (sourceEffect && sourceEffect.effectType === 'Move') {\r\n\t\t\t\tthis.add('-status', target, 'slp', '[from] move: ' + sourceEffect.name);\r\n\t\t\t} else {\r\n\t\t\t\tthis.add('-status', target, 'slp');\r\n\t\t\t}\r\n\t\t\t// 1-4 turns\r\n\t\t\tthis.effectState.time = this.random(2, 6);\r\n\t\t\t// Turns spent using Sleep Talk/Snore immediately before switching out while asleep\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\r\n\t\t\tif (target.removeVolatile('nightmare')) {\r\n\t\t\t\tthis.add('-end', target, 'Nightmare', '[silent]');\r\n\t\t\t}\r\n\t\t},\r\n\t\tonSwitchIn(target) {\r\n\t\t\tthis.effectState.time += this.effectState.skippedTime;\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\t\t},\r\n\t\tonBeforeMovePriority: 10,\r\n\t\tonBeforeMove(pokemon, target, move) {\r\n\t\t\tif (pokemon.hasAbility('earlybird')) {\r\n\t\t\t\tpokemon.statusState.time--;\r\n\t\t\t}\r\n\t\t\tpokemon.statusState.time--;\r\n\t\t\tif (pokemon.statusState.time <= 0) {\r\n\t\t\t\tpokemon.cureStatus();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.add('cant', pokemon, 'slp');\r\n\t\t\tif (move.sleepUsable) {\r\n\t\t\t\tthis.effectState.skippedTime++;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tthis.effectState.skippedTime = 0;\r\n\t\t\treturn false;\r\n\t\t},\r\n\t},\r\n\tfrz: {\r\n\t\tinherit: true,\r\n\t\tonDamagingHit(damage, target, source, move) {\r\n\t\t\t// don't count Hidden Power or Weather Ball as Fire-type\r\n\t\t\tif (this.dex.moves.get(move.id).type === 'Fire' && move.category !== 'Status') {\r\n\t\t\t\ttarget.cureStatus();\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tsandstorm: {\r\n\t\tinherit: true,\r\n\t\tonModifySpD() {},\r\n\t},\r\n};\r\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAiD;AAAA,EAC7D,KAAK;AAAA,IACJ,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,QAAQ,QAAQ,QAAQ,cAAc;AACrC,UAAI,gBAAgB,aAAa,eAAe,QAAQ;AACvD,aAAK,IAAI,WAAW,QAAQ,OAAO,kBAAkB,aAAa,IAAI;AAAA,MACvE,OAAO;AACN,aAAK,IAAI,WAAW,QAAQ,KAAK;AAAA,MAClC;AAEA,WAAK,YAAY,OAAO,KAAK,OAAO,GAAG,CAAC;AAExC,WAAK,YAAY,cAAc;AAE/B,UAAI,OAAO,eAAe,WAAW,GAAG;AACvC,aAAK,IAAI,QAAQ,QAAQ,aAAa,UAAU;AAAA,MACjD;AAAA,IACD;AAAA,IACA,WAAW,QAAQ;AAClB,WAAK,YAAY,QAAQ,KAAK,YAAY;AAC1C,WAAK,YAAY,cAAc;AAAA,IAChC;AAAA,IACA,sBAAsB;AAAA,IACtB,aAAa,SAAS,QAAQ,MAAM;AACnC,UAAI,QAAQ,WAAW,WAAW,GAAG;AACpC,gBAAQ,YAAY;AAAA,MACrB;AACA,cAAQ,YAAY;AACpB,UAAI,QAAQ,YAAY,QAAQ,GAAG;AAClC,gBAAQ,WAAW;AACnB;AAAA,MACD;AACA,WAAK,IAAI,QAAQ,SAAS,KAAK;AAC/B,UAAI,KAAK,aAAa;AACrB,aAAK,YAAY;AACjB;AAAA,MACD;AACA,WAAK,YAAY,cAAc;AAC/B,aAAO;AAAA,IACR;AAAA,EACD;AAAA,EACA,KAAK;AAAA,IACJ,SAAS;AAAA,IACT,cAAc,QAAQ,QAAQ,QAAQ,MAAM;AAE3C,UAAI,KAAK,IAAI,MAAM,IAAI,KAAK,EAAE,EAAE,SAAS,UAAU,KAAK,aAAa,UAAU;AAC9E,eAAO,WAAW;AAAA,MACnB;AAAA,IACD;AAAA,EACD;AAAA,EACA,WAAW;AAAA,IACV,SAAS;AAAA,IACT,cAAc;AAAA,IAAC;AAAA,EAChB;AACD;",
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
Loaded 100 of 1429 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user