Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.BattleScripts = {
- init: function () {
- var specialTypes = {Fire:1, Water:1, Grass:1, Ice:1, Electric:1, Dark:1, Psychic:1, Dragon:1, Fairy:1};
- var newCategory = '';
- for (var i in this.data.Movedex) {
- if (this.data.Movedex[i].category === 'Status') continue;
- newCategory = specialTypes[this.data.Movedex[i].type] ? 'Special' : 'Physical';
- if (newCategory !== this.data.Movedex[i].category) {
- this.modData('Movedex', i).category = newCategory;
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement