From: MadMetzger <mad...@us...> - 2011-06-23 05:29:26
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item In directory vz-cvs-4.sog:/tmp/cvs-serv32319/src/games/stendhal/server/entity/item Modified Files: Item.java Log Message: introduce method to repair an item Index: Item.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item/Item.java,v retrieving revision 1.141 retrieving revision 1.142 diff -C2 -d -r1.141 -r1.142 *** Item.java 22 Jun 2011 19:18:42 -0000 1.141 --- Item.java 23 Jun 2011 05:29:23 -0000 1.142 *************** *** 306,309 **** --- 306,318 ---- } } + + /** + * repair this item + */ + public void repair() { + if(has("deterioration")) { + put("deterioration", DEFAULT_DETERIORATION); + } + } /** |