Support Greater Potion (#290)
This commit is contained in:
BIN
assets/items/misc_greater_healing_potion.png
Normal file
BIN
assets/items/misc_greater_healing_potion.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/items/misc_greater_mana_potion.png
Normal file
BIN
assets/items/misc_greater_mana_potion.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
BIN
assets/templates/greater_healing_potion.png
Normal file
BIN
assets/templates/greater_healing_potion.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/templates/greater_mana_potion.png
Normal file
BIN
assets/templates/greater_mana_potion.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
@@ -13,6 +13,8 @@ misc_rejuvenation_potion=0
|
||||
misc_full_rejuvenation_potion=1
|
||||
misc_super_healing_potion=1
|
||||
misc_super_mana_potion=1
|
||||
misc_greater_healing_potion=0
|
||||
misc_greater_mana_potion=0
|
||||
|
||||
;other
|
||||
misc_tp_scroll=0
|
||||
|
||||
@@ -24,7 +24,9 @@ class BeltManager:
|
||||
"misc_rejuvenation_potion": "rejuv",
|
||||
"misc_full_rejuvenation_potion": "rejuv",
|
||||
"misc_super_healing_potion": "health",
|
||||
"misc_super_mana_potion": "mana"
|
||||
"misc_greater_healing_potion": "health",
|
||||
"misc_super_mana_potion": "mana",
|
||||
"misc_greater_mana_potion": "mana"
|
||||
}
|
||||
|
||||
def get_pot_needs(self):
|
||||
@@ -160,7 +162,7 @@ class BeltManager:
|
||||
pot_positions = []
|
||||
for column, row in itertools.product(range(num_loot_columns), range(4)):
|
||||
center_pos, slot_img = UiManager.get_slot_pos_and_img(self._config, img, column, row)
|
||||
found = self._template_finder.search(["SUPER_HEALING_POTION", "SUPER_MANA_POTION", "FULL_REJUV_POTION", "REJUV_POTION"], slot_img, threshold=0.9).valid
|
||||
found = self._template_finder.search(["GREATER_HEALING_POTION", "GREATER_MANA_POTION", "SUPER_HEALING_POTION", "SUPER_MANA_POTION", "FULL_REJUV_POTION", "REJUV_POTION"], slot_img, threshold=0.9).valid
|
||||
if found:
|
||||
pot_positions.append(center_pos)
|
||||
keyboard.press("shift")
|
||||
|
||||
Reference in New Issue
Block a user