Bug - Fixed Using ingot of seal-iron with Tenderizing Hammer decrements Mafia's count

As per title, if you have mafia use an "ingot of seal-iron" without a tenderizing hammer:

Code:
Using 1 ingot of seal-iron...
Using 1 ingot of seal-iron doesn't make anything interesting.

And mafia decrements the inventory count by one incorrectly.

Relevant text on failed usage:

Code:
<blockquote>You can't work seal-iron without a hammer.</blockquote>
 

lostcalpolydude

Developer
Staff member
I went to add some code to UseItemRequest specifically for ingot of seal-iron, discovered it's already there. Then I discovered it wouldn't matter anyway, because there's generic code for single-use items to catch it before that.

But the item is actually removed in SingleUseRequest, which has
Code:
// Is there a general way to detect a failure?
The checks in UseItemRequest seem like they could be moved over (or duplicated, maybe). I'll have to think about that (if no one beats me to changing something).
 
Top