-
Notifications
You must be signed in to change notification settings - Fork 33
/
crds.py
96 lines (82 loc) · 1.66 KB
/
crds.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# This file stores the coordinates of the buttons and the path to images
def map_dict(f, a):
return dict(zip(a, map(f, a.values())))
# shifts: 10, 10
SERVANT_SKILLS = [
# Servatn 1
(100, 850),
(250, 850),
(380, 850),
# Servant 2
(580, 850),
(730, 850),
(860, 850),
# Servant 3
(1060, 850),
(1200, 850),
(1340, 850)
]
# shifts: 40, 40
MASTER = (1780, 470)
# shifts: 10, 10
MASTER_SKILLS = [
(1360, 470),
(1490, 470),
(1630, 470)
]
# shifts: 100, 100
ATTACK = (1700, 900)
# shifts: 50, 100
CARDS = [
# Normal
(190, 760),
(560, 760),
(960, 760),
(1340, 760),
(1740, 760),
# NP
(620, 320),
(970, 320),
(1310, 320)
]
# shifts: 90, 90
SERVANTS = [
(200, 530),
(520, 530),
(820, 530),
(1110, 530),
(1400, 530),
(1710, 530)
]
# shifts: 150, 150
TARGETS = [
(500, 680),
(960, 680),
(1440, 680)
]
# path to images
# change the path if you're play FGO other than the CN version
# JP version: "assets/jp/"
IMAGE_BASE = "assets/cn/"
IMAGE = map_dict(lambda x: IMAGE_BASE + x, {
"attack": "attack.png",
"select": "select.png",
"order_change": "order_change.png",
"no_ap": "noap.png",
"update_support": "update.png",
"confirm_update": "uplist.png",
"finish": "finish.png",
"item": "item.png",
"close": "close.png",
"decide": "decide.png",
"start": "start.png"
})
# JP version: "assets/jp/extra/"
CARD_IMAGE_BASE = "assets/cn/extra/"
CARD_IMAGE = map_dict(lambda x: CARD_IMAGE_BASE + x, {
"resist": "resist.png",
"weak": "weak.png",
"quick": "quick.png",
"arts": "arts.png",
"buster": "buster.png"
})