Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /mods/godsamongus/scripts.js
- Code:
- 'use strict';
- exports.BattleScripts = {
- init: function () {
- for (let i in this.data.Pokedex) {
- let tier = null;
- let adjust = false;
- if (this.data.FormatsData[i]) tier = this.data.FormatsData[i].tier;
- if (!tier && this.data.Pokedex[i].baseSpecies) tier = this.data.FormatsData[toId(this.data.Pokedex[i].species)].tier;
- switch (tier) {
- case 'Uber':
- adjust = true;
- break;
- }
- if (adjust) {
- for (let j in this.data.Pokedex[i].baseStats) {
- if (this.data.Pokedex[i].baseStats["hp"] === j && this.data.Pokedex[i].formeLetter === 'M') {
- pass;
- } else {
- this.modData('Pokedex', i).baseStats[j] = this.clampIntRange(this.data.Pokedex[i].baseStats[j] / 2 + 40, 1, 255);
- }
- }
- }
- }
- }
- };
- config/formats.js
- Code:
- {
- name: "Gods Among Us",
- desc: ["• <a href=\"http://www.smogon.com/forums/threads/3549611/\">Gods Among Us</a>"],
- section: "Other Metagames",
- mod: 'godsamongus',
- ruleset: ['Pokemon', 'Standard', 'Baton Pass Clause', 'Swagger Clause', 'Same Type Clause', 'Team Preview', 'Mega Rayquaza Clause'],
- banlist: ['Soul Dew'],
- onValidateTeam: (team, format) [
- let megasnum = 0;
- for (let i = 0; i < team.length; i++) {
- let item = Tools.getItem(team[i].item);
- if (item.megaStone || item.id === "redorb" || item.id === "blueorb") megasnum++;
- }
- if (megasnum.length > 1) return ["Primal Clause limits you to a maximum one Mega Evolution or Primal Devolution per team."];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement