frontierbrain3 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- frontierbrain3/__init__.py +61 -0
- frontierbrain3/damagecalc.py +818 -0
- frontierbrain3/data/abilities.json +79 -0
- frontierbrain3/data/bf_pokemon.json +23197 -0
- frontierbrain3/data/bf_trainers.json +15952 -0
- frontierbrain3/data/items.json +311 -0
- frontierbrain3/data/moves.json +3188 -0
- frontierbrain3/data/pokemon.json +7632 -0
- frontierbrain3/facilities/arena.py +7 -0
- frontierbrain3/facilities/dome.py +106 -0
- frontierbrain3/facilities/factory.py +316 -0
- frontierbrain3/facilities/palace.py +536 -0
- frontierbrain3/facilities/pike.py +344 -0
- frontierbrain3/facilities/pyramid.py +486 -0
- frontierbrain3/facilities/tower.py +163 -0
- frontierbrain3/frontier_db.py +567 -0
- frontierbrain3/frontierutils.py +310 -0
- frontierbrain3-0.1.0.dist-info/METADATA +4593 -0
- frontierbrain3-0.1.0.dist-info/RECORD +21 -0
- frontierbrain3-0.1.0.dist-info/WHEEL +5 -0
- frontierbrain3-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
frontierbrain3 -- Data analysis tools for Pokemon Emerald's Battle Frontier.
|
|
3
|
+
|
|
4
|
+
Quick start:
|
|
5
|
+
from frontierbrain3 import Database, CustomSet, calc_matchup
|
|
6
|
+
|
|
7
|
+
Core:
|
|
8
|
+
Database - query/filter frontier sets and trainers
|
|
9
|
+
CustomSet - define your own Pokemon set
|
|
10
|
+
calc_stats - compute stats from a set dict
|
|
11
|
+
from_paste - import teams from Pokepaste format
|
|
12
|
+
|
|
13
|
+
Damage calculator:
|
|
14
|
+
damage_rolls - per-hit damage values
|
|
15
|
+
calc_matchup - full matchup summary with KO chances
|
|
16
|
+
format_result - pretty-print a matchup result
|
|
17
|
+
Field - field conditions (weather, screens, doubles)
|
|
18
|
+
|
|
19
|
+
Facilities:
|
|
20
|
+
frontierbrain3.facilities.tower - TowerDatabase
|
|
21
|
+
frontierbrain3.facilities.factory - FactoryDatabase
|
|
22
|
+
frontierbrain3.facilities.dome - calc_seed
|
|
23
|
+
frontierbrain3.facilities.palace - move selection probabilities
|
|
24
|
+
frontierbrain3.facilities.pike - events, status, wild encounters
|
|
25
|
+
frontierbrain3.facilities.pyramid - encounter & item tables
|
|
26
|
+
frontierbrain3.facilities.arena - (placeholder)
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
from .frontierutils import (
|
|
30
|
+
CustomSet,
|
|
31
|
+
calc_stats,
|
|
32
|
+
apply_stage,
|
|
33
|
+
move_category,
|
|
34
|
+
type_effectiveness,
|
|
35
|
+
from_paste,
|
|
36
|
+
STAT_KEYS,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
from .frontier_db import Database, SetCollection, TrainerCollection
|
|
40
|
+
|
|
41
|
+
from .damagecalc import (
|
|
42
|
+
damage_rolls,
|
|
43
|
+
ko_chance,
|
|
44
|
+
calc_matchup,
|
|
45
|
+
format_result,
|
|
46
|
+
get_move,
|
|
47
|
+
get_hit_info,
|
|
48
|
+
Field,
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
__version__ = "0.1.0"
|
|
52
|
+
|
|
53
|
+
__all__ = [
|
|
54
|
+
# Core
|
|
55
|
+
"Database", "SetCollection", "TrainerCollection",
|
|
56
|
+
"CustomSet", "calc_stats", "apply_stage", "move_category",
|
|
57
|
+
"type_effectiveness", "from_paste", "STAT_KEYS",
|
|
58
|
+
# Damage calc
|
|
59
|
+
"damage_rolls", "ko_chance", "calc_matchup", "format_result",
|
|
60
|
+
"get_move", "get_hit_info", "Field",
|
|
61
|
+
]
|