-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathskill_types.py
More file actions
56 lines (39 loc) · 1.09 KB
/
skill_types.py
File metadata and controls
56 lines (39 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## Types for skill_data.
#- Generates descriptions.
#- Categorization.
## There are two ways to specify descs:
#- Functions for each type.
#- Description format strings.
#- E.g.:
#- "Deals $pc1x Atk $E2 damage to all enemies."
#- Means:
#- pc1: skp1, as a percent.
#- E2: skp2, as an element, capitalized.
## Decisions:
#- Separate class for each type.
#-
## Leader skills:
#- Needs:
#- Desc.
#- Max multiplier.
#- Max multiplier for an attr/type sets pair.
skill_types = {}
def sktp(i, categories=()):
"""...
"""
#! Some descs work for more than one type.
#! Registrar for active and leader must be separate.
def registrar(f):
skill_types[i] = f
return f
return registrar
@sktp(0)
def damage(args):
...
## Description formats.
#= Maps skilltype to a function that takes params.
#- Types:
#- Function. (Called on list of skill params.)
#? Should it be `f(skp)` or `f(*skp)`?
desc_maker = {
}