coyotte508/rpg-scripts — pull request #10 by CrystalMoogle (2012-12-07 10:15:24+00:00)
Title: #7 Generate option, #1 base happiness and some other things

Added Pokemon.prototype.generate(id, level), which generates a pokemon with id at level.
Example a level 100 Mismagius output: {"num":200,"nick":"Misdreavus","gender":1,"ability":26,"item":0,"level":100,"ivs":{"hp":27,"att":18,"def":29,"spAtt":27,"spDef":13,"speed":27},"evs":{"hp":0,"att":0,"def":0,"spAtt":0,"spDef":0,"speed":0},"moves":["288","195","247","371"],"nature":9,"shiny":false,"happiness":"35"}

Also added the base happiness data since that was needed for generate (though it wasn't that important, but I decided it's better than a base 70).

Fixed the commands message not being sent on login by using the new defaultChan param (originally I just made it send to all channels if this.channel was undefined, but I think that would be a one time thing and I don't think it's worth the extra lines)

Oh and I finally made pokeinfo part of the main scripts :x