From: Astrid S. <ast...@us...> - 2008-03-28 23:23:27
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv7675/src/games/stendhal/server/entity/creature Modified Files: Creature.java Log Message: moved healself into healer Index: Creature.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/Creature.java,v retrieving revision 1.172 retrieving revision 1.173 diff -C2 -d -r1.172 -r1.173 *** Creature.java 28 Mar 2008 23:16:38 -0000 1.172 --- Creature.java 28 Mar 2008 23:23:31 -0000 1.173 *************** *** 538,558 **** } - /** - * This method should be called every turn if the animal is supposed to heal - * itself on its own. If it is used, an injured animal will heal itself by - * up to <i>amount</i> hitpoints every <i>frequency</i> turns. - * - * @param amount - * The number of hitpoints that can be restored at a time - * @param frequency - * The number of turns between healings - */ - public void healSelf(int amount, int frequency) { - if ((SingletonRepository.getRuleProcessor().getTurn() % frequency == 0) - && (getHP() > 0)) { - heal(amount); - } - } - public void equip(List<EquipItem> items) { for (EquipItem equippedItem : items) { --- 538,541 ---- |