Added Pokemon stuff to statistics.js

It's not everything, but it's a start.
This commit is contained in:
Josh Goldberg
2015-02-08 00:40:40 -05:00
parent 6fd732b980
commit ee1a858023
2 changed files with 37 additions and 4 deletions
+2 -3
View File
@@ -374,7 +374,8 @@ function StatsHoldr(settings) {
* Retrieves a Value's value from localStorage, making sure not to try to
* JSON.parse an undefined or null value.
*
*
* @this {Value}
* @return {Mixed}
*/
Value.prototype.retrieveLocalStorage = function () {
var value = localStorage.getItem(prefix + this.key);
@@ -449,8 +450,6 @@ function StatsHoldr(settings) {
* Toggles whether a value is 1 or 0.
*
* @param {String} key The key of the Value.
* @remarks Toggling requires the type to be a Boolean, since true becomes
* "true" becomes NaN.
*/
self.toggle = function (key) {
checkExistence(key);
+35 -1
View File
@@ -1,3 +1,37 @@
FullScreenPokemon.prototype.settings.statistics = {
"prefix": "FullScreenPokemon"
"prefix": "FullScreenPokemon",
"defaults": {
"storeLocally": true
},
"values": {
"badges": {
"valueDefault": {
"Brock": false,
"Misty": false,
"LtSurge": false,
"Erika": false,
"Koga": false,
"Sabrina": false,
"Blaine": false,
"Giovanni": false
}
},
"items": {
"valueDefault": []
},
"money": {
"valueDefault": 0,
"minimum": 0
},
"name": {},
"Pokedex": {
"valueDefault": []
},
"PokemonInParty": {
"valueDefault": []
},
"PokemonInPC": {
"valueDefault": []
}
}
};