try even harder to find a matching item, by searching for damagevalue 0
This commit is contained in:
parent
20223cae8e
commit
07245b867a
3
items.py
3
items.py
@ -325,6 +325,9 @@ class Items (object):
|
|||||||
item = self.itemtypes.get((id, None))
|
item = self.itemtypes.get((id, None))
|
||||||
if item: return item
|
if item: return item
|
||||||
|
|
||||||
|
item = self.itemtypes.get((id, 0))
|
||||||
|
if item: return item
|
||||||
|
|
||||||
raise ItemNotFound, "Item {0}:{1} not found".format(id, damage)
|
raise ItemNotFound, "Item {0}:{1} not found".format(id, damage)
|
||||||
|
|
||||||
class ItemNotFound(KeyError): pass
|
class ItemNotFound(KeyError): pass
|
||||||
|
Reference in New Issue
Block a user