From: Hendrik B. <nh...@us...> - 2010-07-14 18:58:52
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/sign In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv13367/src/games/stendhal/server/entity/mapstuff/sign Modified Files: ShopSign.java Log Message: reduced size of player full perception from about 2300 bytes to 1200 bytes Index: ShopSign.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/mapstuff/sign/ShopSign.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ShopSign.java 1 Apr 2010 20:13:36 -0000 1.5 --- ShopSign.java 14 Jul 2010 18:58:44 -0000 1.6 *************** *** 19,22 **** --- 19,23 ---- import games.stendhal.server.entity.RPEntity; import games.stendhal.server.entity.item.Item; + import games.stendhal.server.entity.item.ItemInformation; import games.stendhal.server.entity.npc.ShopList; import games.stendhal.server.events.ShowItemListEvent; *************** *** 101,105 **** */ private Item prepareItem(String name, int price) { ! Item item = SingletonRepository.getEntityManager().getItem(name); if (seller) { item.put("price", -price); --- 102,107 ---- */ private Item prepareItem(String name, int price) { ! Item prototype = SingletonRepository.getEntityManager().getItem(name); ! Item item = new ItemInformation(prototype); if (seller) { item.put("price", -price); *************** *** 107,110 **** --- 109,114 ---- item.put("price", price); } + item.put("description_info", item.describe()); + // compatibility with 0.85 clients item.put("description", item.describe()); return item; |