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.attacks
pokete_data.items
pokete_data.map_data
-
This file contains a dict with all Strings that will be added to the maps
pokete_data.maps
pokete_data.mapstations
pokete_data.natures
-
Contains data about the different natures
pokete_data.npcs
pokete_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.trainers
pokete_data.types
pokete_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