A couple of Mafia users posted stories in the What idiotic thing/s have you done today? thread of the KoL GD forum. In both cases, the same user error came up: asking for Mafia to create as many of an item as was possible, in order to blow up a chef/bartender. Of course, Mafia diligently proceeds to buy enough ingredients and spends all of the user's meat, leaving him with NPC items to autosell worth half the original value.
There are of course many ways for the user to prevent such a thing from happening, but maybe it would help in most cases to simply change the default value of the "creating multiple..." input box to 1.
Those users generally think "Mafia will stop buying things when the servant explodes, so it's not a problem if I ask for 4m schnapps". Or they just click without thinking, and do not abort in time to prevent Mafia from buying ingredients. If 1 was the default and they had to type in an amount, they would probably put in a much lower one and loose less meat, and of course they would only blame themselves instead of cursing Mafia.
I don't know if this has been discussed before, and it probably was since this seems to be the n°1 way people choose to use Mafia to loose a lot of meat. Here is a (simple) solution at least: change line 121 of CreateItemPanel.java, and use the 3 parameter form of getQuantity() to specify 1 as the default:
to
I didn't try it, but I don't think anything else needs to be changed.
EDIT: post updated to use Lost's fix
There are of course many ways for the user to prevent such a thing from happening, but maybe it would help in most cases to simply change the default value of the "creating multiple..." input box to 1.
Those users generally think "Mafia will stop buying things when the servant explodes, so it's not a problem if I ask for 4m schnapps". Or they just click without thinking, and do not abort in time to prevent Mafia from buying ingredients. If 1 was the default and they had to type in an amount, they would probably put in a much lower one and loose less meat, and of course they would only blame themselves instead of cursing Mafia.
I don't know if this has been discussed before, and it probably was since this seems to be the n°1 way people choose to use Mafia to loose a lot of meat. Here is a (simple) solution at least: change line 121 of CreateItemPanel.java, and use the 3 parameter form of getQuantity() to specify 1 as the default:
PHP:
"Creating multiple " + selection.getName() + "...", selection.getQuantityPossible() + selection.getQuantityPullable() );
PHP:
"Creating multiple " + selection.getName() + "...", selection.getQuantityPossible() + selection.getQuantityPullable(), 1 );
EDIT: post updated to use Lost's fix
Last edited: