You've already forked FullScreenPokemon
mirror of
https://github.com/FullScreenShenanigans/FullScreenPokemon.git
synced 2026-04-28 12:58:40 -07:00
Added Pokemon stuff to statistics.js
It's not everything, but it's a start.
This commit is contained in:
@@ -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
@@ -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": []
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user