-
Notifications
You must be signed in to change notification settings - Fork 369
/
config.py
80 lines (75 loc) · 2.74 KB
/
config.py
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This file MUST be configured in order for the code to run properly
# Make sure you put all your input images into an 'assets' folder.
# Each layer (or category) of images must be put in a folder of its own.
# CONFIG is an array of objects where each object represents a layer
# THESE LAYERS MUST BE ORDERED.
# Each layer needs to specify the following
# 1. id: A number representing a particular layer
# 2. name: The name of the layer. Does not necessarily have to be the same as the directory name containing the layer images.
# 3. directory: The folder inside assets that contain traits for the particular layer
# 4. required: If the particular layer is required (True) or optional (False). The first layer must always be set to true.
# 5. rarity_weights: Denotes the rarity distribution of traits. It can take on three types of values.
# - None: This makes all the traits defined in the layer equally rare (or common)
# - "random": Assigns rarity weights at random.
# - array: An array of numbers where each number represents a weight.
# If required is True, this array must be equal to the number of images in the layer directory. The first number is the weight of the first image (in alphabetical order) and so on...
# If required is False, this array must be equal to one plus the number of images in the layer directory. The first number is the weight of having no image at all for this layer. The second number is the weight of the first image and so on...
# Be sure to check out the tutorial in the README for more details.
CONFIG = [
{
'id': 1,
'name': 'background',
'directory': 'Background',
'required': True,
'rarity_weights': None,
},
{
'id': 2,
'name': 'body',
'directory': 'Body',
'required': True,
'rarity_weights': None,
},
{
'id': 3,
'name': 'eyes',
'directory': 'Expressions',
'required': True,
'rarity_weights': None,
},
{
'id': 4,
'name': 'head_gear',
'directory': 'Head Gear',
'required': False,
'rarity_weights': None,
},
{
'id': 5,
'name': 'clothes',
'directory': 'Shirt',
'required': False,
'rarity_weights': None,
},
{
'id': 6,
'name': 'held_item',
'directory': 'Misc',
'required': True,
'rarity_weights': None,
},
{
'id': 7,
'name': 'hands',
'directory': 'Hands',
'required': True,
'rarity_weights': None,
},
{
'id': 8,
'name': 'wristband',
'directory': 'Wristband',
'required': False,
'rarity_weights': None,
},
]