Feature Item counter doesn't update after trading them

itsu

New member
Hello!

I'd like to report the following bug: Mafia doesn't keep proper track of inventory quantities after trading said item, or receiving it from a message.

Code:
> acquire 200 imp ale

Removing items from closet...
You acquire Imp Ale (198)
You need 2 more Imp Ale to continue.
ashamalee has responded to a trade offer from you.

> inventory imp ale

Imp Ale (198)

> closet put 198 imp ale

Placing items into closet...
Transfer failed for Imp Ale (198)

I've used build r16410 to reproduce this bug.

Thank you for your time =)
 

lostcalpolydude

Developer
Staff member
Changed from Bug to Feature.

It used to be prohibitive to update inventory for a state change like this, so the lack of support was a thing that was never going to change. Now we could recognize the system message for a kmail/trade response and send a single api.php request. Plenty of kmails don't have items attached (the portion of those will change a lot from one person to another), but most trade offers will change item inventory (though they could just change meat total, which will likely be parsed quickly enough from charpane/api anyway).

So now I'm uncertain about whether this should be supported.
 
Top