-
Notifications
You must be signed in to change notification settings - Fork 49
/
itemdata.py
180 lines (169 loc) · 6 KB
/
itemdata.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
import os, json
item_dict = {
"Upgrade Materials": {
"Ancient Dragon Stone": [156, 39],
"Somber Ancient Dragon Stone": [184, 39],
"Smithing Stone [1]": [116, 39],
"Smithing Stone [2]": [117, 39],
"Smithing Stone [3]": [118, 39],
"Smithing Stone [4]": [119, 39],
"Smithing Stone [5]": [120, 39],
"Smithing Stone [6]": [121, 39],
"Smithing Stone [7]": [122, 39],
"Smithing Stone [8]": [123, 39],
"Smithing Stone [9]": [124, 39],
"Somber Stone [1]": [176, 39],
"Somber Stone [2]": [177, 39],
"Somber Stone [3]": [178, 39],
"Somber Stone [4]": [179, 39],
"Somber Stone [5]": [180, 39],
"Somber Stone [6]": [181, 39],
"Somber Stone [7]": [182, 39],
"Somber Stone [8]": [183, 39],
"Somber Stone [9]": [216, 39]
},
"Crafting Materials": {
"Arteria Leaf": [211,80],
"Flight Pinion": [212,58],
"Gold Fireflies": [75,81],
"Root Resin": [39,81],
"Old Fang": [192,58],
"Great Dragonfly Head":[6, 59],
"Golden Centipede":[84, 81],
},
"Runes": {
"Lords Rune": [103, 11],
"Hero's Rune [1]":[98, 11],
"Hero's Rune [4]":[101, 11],
"Golden Rune [1]": [84, 11],
"Golden Rune [2]": [85, 11],
"Golden Rune [3]": [86, 11],
"Golden Rune [4]": [87, 11],
"Golden Rune [5]": [88, 11],
"Golden Rune [6]": [89, 11],
"Golden Rune [7]": [90, 11],
"Golden Rune [8]": [91, 11],
"Golden Rune [9]": [92, 11],
"Golden Rune [10]": [93, 11],
"Golden Rune [11]": [94,11],
"Golden Rune [12]": [95,11],
},
"Key Items": {
"Larval Tear": [249, 31],
"Sacred Tear": [36,39],
"Golden Seed": [26,39],
"Swordstone Key": [64,31],
'Imbued Sword Key':[250, 31],
'Cracked Pot':[28, 37],
'Ritual Pot':[29, 37],
'Perfume Bottle':[38, 37],
'Memory Stone':[46, 39],
'Talisman Pouch':[56, 39],
'Dragon Heart':[76, 39],
'Celestial Dew':[82, 8],
'Deathroot':[42, 8],
'Lost Ashes of War':[86, 39],
},
"Gloveworts": {
"Grave Glovewort [1]": [148, 42],
"Grave Glovewort [2]": [149, 42],
"Grave Glovewort [3]": [150, 42],
"Grave Glovewort [4]": [151, 42],
"Grave Glovewort [5]": [152, 42],
"Grave Glovewort [6]": [153, 42],
"Grave Glovewort [7]": [154, 42],
"Grave Glovewort [8]": [155, 42],
"Grave Glovewort [9]": [156, 42],
"Great Grave Glovewort": [157, 42],
"Ghost Glovewort [1]": [158, 42],
"Ghost Glovewort [2]": [159, 42],
"Ghost Glovewort [3]": [160, 42],
"Ghost Glovewort [4]": [161, 42],
"Ghost Glovewort [5]": [162, 42],
"Ghost Glovewort [6]": [163, 42],
"Ghost Glovewort [7]": [164, 42],
"Ghost Glovewort [8]": [165, 42],
"Ghost Glovewort [9]": [166, 42],
"Great Ghost Glovewort": [167, 42],
},
"Consumables": {
'Baldachin\'s Blessing': [32, 13],
'Bloodboil Aromatic': [222, 13],
'Bewitching Branches': [22, 13],
'Clarifying Boluses': [192, 3],
'Clarifying White Cured Meat': [50, 5],
'Dappled White Cured Meat': [60, 5],
'Exalted Flesh': [186, 4],
'Fireproof Dried Liver': [136, 4],
'Glowstone': [238, 7],
'Gold Pickled Foot': [176, 4],
'Holyproof Dried Liver': [156, 4],
'Immunizing White Cured Meat': [30, 5],
'Invigorating White Cured Meat': [40, 5],
'Lightningproof Dried Liver': [146, 4],
'Neutralizing Boluses': [132, 3],
'Preserving Boluses': [172, 3],
'Radiant Baldachin\'s Blessing': [33, 13],
'Rainbow Stone': [228, 7],
'Rejuvenating Boluses': [182, 3],
'Rune Arc': [190, 0],
'Silver Pickled Foot': [166, 4],
'Soft Cotton': [52, 8],
'Spellproof Dried Liver': [126, 4],
'Stanching Boluses': [142, 3],
'Starlight Shards': [10, 5],
'Stimulating Boluses': [162, 3],
'Thawfrost Boluses': [152, 3],
},
"Grease": {
'Blood Grease': [160, 5],
'Blood Grease': [4, 6],
'Drawstring Blood Grease': [4, 6],
'Drawstring Fire Grease': [220, 5],
'Drawstring Freezing Grease': [34, 6],
'Drawstring Holy Grease': [250, 5],
'Drawstring Lightning Grease': [230, 5],
'Drawstring Magic Grease': [240, 5],
'Drawstring Poison Grease': [24, 6],
'Drawstring Rot Grease': [54, 6],
'Drawstring Soporific Grease': [14, 6],
'Dragonwound Grease': [200, 5],
'Fire Grease': [120, 5],
'Freezing Grease': [190, 5],
'Holy Grease': [150, 5],
'Holy Water Grease': [228, 12],
'Lightning Grease': [130, 5],
'Magic Grease': [140, 5],
'Poison Grease': [180, 5],
'Rot Grease': [210, 5],
'Shield Grease': [154, 6],
'Soporific Grease': [170, 5],
},
"Remembrance": {
'R - Black Blade': [140, 11],
'R- Blasphemous': [137, 11],
'R- Blood Lord': [139, 11],
'R- DragonLord': [142, 11],
'R- Elden': [147, 11],
'R- Fire Giant': [145, 11],
'R- Full Moon Queen': [143, 11],
'R- Hoarah Loux': [141, 11],
'R- Lich Dragon': [144, 11],
'R- Naturalborn': [148, 11],
'R - Omen King': [136, 11],
'R- Regal Ancestor': [146, 11],
'R- Rot Goddess': [138, 11],
'R- Starsourge': [135, 11],
'R- The Grafted': [134, 11],
},
}
class Items:
def __init__(self):
self.db = item_dict
if os.path.exists("./data/config.json"):
with open("./data/config.json", "r") as f:
js = json.load(f)
self.db["Custom Items"] = js["custom_ids"] # ADDS custom IDS from config to itemdb merging with hard coded items
self.categories = list(self.db.keys()) # Populate 1st dropdown menu
def get_item_ls(self, cat):
return list(self.db[cat]) # populate 2nd dropdown menu