Collect and equip armor supplies
This commit is contained in:
1 parent
c97e836380
commit
9c0db4e4b0
4 files changed
+111
-6
No files matched your search
+19
-1
@@ -50,6 +50,24 @@ SWORD_IDS = {
|
||||
item['protocol_id'] for name, item in ITEMS.items()
|
||||
if name.endswith('_sword')
|
||||
}
|
||||
ARMOR_SLOT_CATEGORIES = {
|
||||
5: 'head_armor',
|
||||
6: 'chest_armor',
|
||||
7: 'leg_armor',
|
||||
8: 'foot_armor',
|
||||
}
|
||||
ARMOR_SLOT_IDS = {
|
||||
slot: {
|
||||
item['protocol_id'] for item in ITEMS.values()
|
||||
if category in item.get('enchantCategories', ())
|
||||
}
|
||||
for slot, category in ARMOR_SLOT_CATEGORIES.items()
|
||||
}
|
||||
ARMOR_SLOT_BY_ITEM = {
|
||||
item_id: slot for slot, item_ids in ARMOR_SLOT_IDS.items()
|
||||
for item_id in item_ids
|
||||
}
|
||||
ARMOR_IDS = set(ARMOR_SLOT_BY_ITEM)
|
||||
SAPLING_IDS = get_set(SAPLINGS)
|
||||
LOG_IDS = get_set(LOGS)
|
||||
_LOG_FAMILY_ITEM_IDS = {}
|
||||
@@ -124,7 +142,7 @@ def storage_item_ids_for_label(label):
|
||||
return set(_LABEL_ITEM_IDS.get(normalized, ()))
|
||||
|
||||
|
||||
INIT_NEEDED_ITEMS = BED_IDS | FOOD_IDS
|
||||
INIT_NEEDED_ITEMS = BED_IDS | FOOD_IDS | SWORD_IDS | ARMOR_IDS
|
||||
INIT_NEEDED_ITEMS.add(CHEST_ID)
|
||||
NEEDED_ITEMS = INIT_NEEDED_ITEMS
|
||||
INIT_WANTED_ITEMS = set()
|
||||
|
||||
Reference in new issue
Block a user