Package pokete_data
This provides p_data. Never ever import this except for in pokete.py since p_data can be manipulated by mods and therefore should be injected and not imported
I know all this is very awfull…
Sub-modules
pokete_data.achievements-
Contains raw achievement data
pokete_data.attackspokete_data.itemspokete_data.map_data-
This file contains a dict with all Strings that will be added to the maps
pokete_data.mapspokete_data.mapstationspokete_data.natures-
Contains data about the different natures
pokete_data.npcspokete_data.poketes-
Here starts to definition of all the Poketes If you want to contribute Poketes, you have to keep in mind, that "ico" can be max 11x4 chars big and …
pokete_data.trainerspokete_data.typespokete_data.weather
Functions
def one_validate(ob, validator, name)-
Validates one dict entry
Args
ob- Dict entry
validator- key for validators
name- Name for error
def single_validate(dict, validator, name='')-
Validates a single dict
Args
dict- Dict to validate
validator- key for validators
name- Optional name
def validate()-
Validates all modules
Classes
class ValidationError (value, name, validator)-
Error thrown when validation fails
Args
value- The missing values name
name- The dicts name
validator- The dicts type
Expand source code
class ValidationError(Exception): """Error thrown when validation fails ARGS: value: The missing values name name: The dicts name validator: The dicts type""" def __init__(self, value, name, validator): super().__init__(f"Value '{value}' is not in '{name}' ({validator})")Ancestors
- builtins.Exception
- builtins.BaseException