* @param price price of item (negative is for cases in which the player has to pay money)
* @return Item
*/
private Item prepareItem(String name, int price) {
Item prototype = SingletonRepository.getEntityManager().getItem(name);
Item item = new ItemInformation(prototype);
if (seller) {
item.put("price", -price);
} else {
item.put("price", price);
}
item.put("description_info", item.describe());
// compatibility with 0.85 clients
item.put("description", item.describe());
return item;
}