Feature - Implemented Report NPC price for Speakeasy Drinks

Bale

Minion
Currently, the npc_price() for Speakeasy Drinks is always 0 because mafia does not recognize the Speakeasy as an NPC.

For a bonus feature, it would be extra helpful if the price was 0 if the drink is unavailable in the current clan.

Currently mafia is aware of Speakeasy drink availability, but there is no way for a scripter to access that information. A value of 0 for npc_price($item[lucky lindy]) would let me know that it is unavailable for my counterScript to drink one of those instead of a fortune cookie.

Thank you very much!
 
Revision 15321 looks up speakeasy drinks on the list of those currently available to you, and returns the price (if there) or 0 (if not).

Since we are not currently detecting clan switching (without a session refresh), this will not be accurate if you've switched clans. I guess that'll be my next bug to look at...
 
Back
Top