mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Specify basis for inheritance of mods needing it
Create scripts.js file for gen5bw in order to do so.
This commit is contained in:
parent
34361e25f6
commit
9cd05b80a3
|
|
@ -3,6 +3,7 @@
|
|||
* using this.
|
||||
*/
|
||||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 1,
|
||||
init: function () {
|
||||
for (var i in this.data.Learnsets) {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
* Gen 2 scripts.
|
||||
*/
|
||||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 2,
|
||||
getCategory: function(move) {
|
||||
move = this.getMove(move);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 3,
|
||||
init: function() {
|
||||
for (var i in this.data.Learnsets) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 4,
|
||||
init: function() {
|
||||
for (var i in this.data.Learnsets) {
|
||||
|
|
|
|||
3
mods/gen5bw/scripts.js
Normal file
3
mods/gen5bw/scripts.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
exports.BattleScripts = {
|
||||
inherit: 'gen5'
|
||||
};
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 5,
|
||||
init: function() {
|
||||
this.modData('Pokedex', 'cherrimsunshine').types = ['Grass', 'Fire'];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
exports.BattleScripts = {
|
||||
inherit: 'gen5',
|
||||
gen: 5,
|
||||
init: function() {
|
||||
for (var i in this.data.Pokedex) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user