Specify basis for inheritance of mods needing it

Create scripts.js file for gen5bw in order to do so.
This commit is contained in:
Slayer95 2013-11-03 16:39:06 -05:00
parent 34361e25f6
commit 9cd05b80a3
7 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,7 @@
* using this.
*/
exports.BattleScripts = {
inherit: 'gen5',
gen: 1,
init: function () {
for (var i in this.data.Learnsets) {

View File

@ -2,6 +2,7 @@
* Gen 2 scripts.
*/
exports.BattleScripts = {
inherit: 'gen5',
gen: 2,
getCategory: function(move) {
move = this.getMove(move);

View File

@ -1,4 +1,5 @@
exports.BattleScripts = {
inherit: 'gen5',
gen: 3,
init: function() {
for (var i in this.data.Learnsets) {

View File

@ -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
View File

@ -0,0 +1,3 @@
exports.BattleScripts = {
inherit: 'gen5'
};

View File

@ -1,4 +1,5 @@
exports.BattleScripts = {
inherit: 'gen5',
gen: 5,
init: function() {
this.modData('Pokedex', 'cherrimsunshine').types = ['Grass', 'Fire'];

View File

@ -1,4 +1,5 @@
exports.BattleScripts = {
inherit: 'gen5',
gen: 5,
init: function() {
for (var i in this.data.Pokedex) {