-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrades.py
More file actions
123 lines (118 loc) · 2.48 KB
/
Copy pathtrades.py
File metadata and controls
123 lines (118 loc) · 2.48 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# https://stackoverflow.com/a/41852266
# what the emigrant "wants" (take from player)
wants_choices = [
{
"item": "nobody",
},
{
"qty": 1,
"item": "ox",
"inventory_name": "oxen"
},
{
"qty": 1,
"item": "set of clothing",
"inventory_name": "clothing"
},
{
"qty": 1,
"item": "wagon axle",
"inventory_name": "axles"
},
{
"qty": 1,
"item": "wagon tongue",
"inventory_name": "tongues"
},
{
"qty": 1,
"item": "wagon wheel",
"inventory_name": "wheels"
},
{
"qty": 100,
"item": "pounds of food",
"inventory_name": "food"
},
{
"qty": 100,
"item": "bullets",
"inventory_name": "bullets"
},
{
"qty": 2,
"item": "wagon tongues",
"inventory_name": "tongues"
},
{
"qty": 2,
"item": "wagon wheels",
"inventory_name": "wheels"
},
{
"qty": 3,
"item": "sets of clothing",
"inventory_name": "clothing"
},
{
"qty": 3,
"item": "wagon wheels",
"inventory_name": "wheels"
},
{
"qty": 4,
"item": "sets of clothing",
"inventory_name": "clothing"
},
{
"qty": 4,
"item": "wagon tongues",
"inventory_name": "tongues"
},
{
"qty": 4,
"item": "wagon wheels",
"inventory_name": "wheels"
},
]
# ratios/weights of the items above
want_weights = [0.2, 0.1, 0.08, 0.03, 0.16, 0.1, 0.03, 0.07, 0.03, 0.05, 0.02, 0.02, 0.01, 0.01, 0.02] # noqa
# gender of the emigrant
gender_choices = ["He", "She"]
# ratio/weights of the emigrant gender
gender_weights = [0.75, 0.25]
# what the emigrant will "trade" in return (give to player)
gives_choices = [
{
"qty": 1,
"item": "ox",
"inventory_name": "oxen"
},
{
"qty": 1,
"item": "set of clothing",
"inventory_name": "clothing"
},
{
"qty": 1,
"item": "wagon axle",
"inventory_name": "axles"
},
{
"qty": 1,
"item": "wagon wheel",
"inventory_name": "wheels"
},
{
"qty": 1,
"item": "bullets",
"inventory_name": "bullets"
},
{
"qty": 1,
"item": "pounds of food",
"inventory_name": "food"
}
]
# ratios/weights of the items above
gives_weights = [0.12, 0.17, 0.03, 0.01, 0.17, 0.16]