From: Astrid S. <ast...@us...> - 2008-03-06 11:03:54
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv27185/src/games/stendhal/server/entity/creature Modified Files: Sheep.java Log Message: reduced warn level so log does not explode Index: Sheep.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/Sheep.java,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** Sheep.java 5 Mar 2008 23:37:35 -0000 1.92 --- Sheep.java 6 Mar 2008 11:03:56 -0000 1.93 *************** *** 40,44 **** /** * @author Daniel Herding ! * */ public class Sheep extends DomesticAnimal { --- 40,44 ---- /** * @author Daniel Herding ! * */ public class Sheep extends DomesticAnimal { *************** *** 101,105 **** /** * Creates a new Sheep that is owned by a player. ! * @param owner */ public Sheep(Player owner) { --- 101,105 ---- /** * Creates a new Sheep that is owned by a player. ! * @param owner */ public Sheep(Player owner) { *************** *** 123,127 **** update(); ! logger.warn("Created Sheep: " + this); } --- 123,127 ---- update(); ! logger.debug("Created Sheep: " + this); } *************** *** 129,133 **** * Creates a Sheep based on an existing sheep RPObject, and assigns it to a * player. ! * * @param object * @param owner --- 129,133 ---- * Creates a Sheep based on an existing sheep RPObject, and assigns it to a * player. ! * * @param object * @param owner *************** *** 150,159 **** update(); ! logger.warn("Created Sheep: " + this); } /** * Is called when the sheep dies. Removes the dead sheep from the owner. ! * * @param killername * The entity who caused the death --- 150,159 ---- update(); ! logger.debug("Created Sheep: " + this); } /** * Is called when the sheep dies. Removes the dead sheep from the owner. ! * * @param killername * The entity who caused the death *************** *** 178,182 **** owner.removeSheep(this); } else { ! logger.warn("INCOHERENCE: Sheep " + this + " isn't owned by " + owner); } } --- 178,182 ---- owner.removeSheep(this); } else { ! logger.debug("INCOHERENCE: Sheep " + this + " isn't owned by " + owner); } } *************** *** 185,191 **** /** * Returns a list of SheepFood in the given range ordered by distance. ! * * The first in list is the nearest. ! * * @param range * The maximum distance to a SheepFood --- 185,191 ---- /** * Returns a list of SheepFood in the given range ordered by distance. ! * * The first in list is the nearest. ! * * @param range * The maximum distance to a SheepFood *************** *** 215,219 **** /** * Called when the sheep is hungry. ! * * @return <code>true</code> if the sheep is hunting for food. */ --- 215,219 ---- /** * Called when the sheep is hungry. ! * * @return <code>true</code> if the sheep is hunting for food. */ *************** *** 246,250 **** for (SheepFood food : list) { if (food.nextTo(this)) { ! logger.warn("Sheep eats"); setIdea("eat"); eat(food); --- 246,250 ---- for (SheepFood food : list) { if (food.nextTo(this)) { ! logger.debug("Sheep eats"); setIdea("eat"); eat(food); *************** *** 257,261 **** if (path.size() != 0) { ! logger.warn("Sheep moves to food"); setIdea("food"); --- 257,261 ---- if (path.size() != 0) { ! logger.debug("Sheep moves to food"); setIdea("food"); *************** *** 282,289 **** */ if (((turn % 15) == 0) && isEnemyNear(20)) { ! logger.warn("Sheep (ownerless) moves randomly"); moveRandomly(); } else { ! logger.warn("Sheep sleeping"); setIdea(null); } --- 282,289 ---- */ if (((turn % 15) == 0) && isEnemyNear(20)) { ! logger.debug("Sheep (ownerless) moves randomly"); moveRandomly(); } else { ! logger.debug("Sheep sleeping"); setIdea(null); } *************** *** 299,307 **** } else { if ((turn % 100) == 0) { ! logger.warn("Sheep is bored"); setRandomPathFrom(owner.getX(), owner.getY(), 10); setSpeed(getBaseSpeed()); } else { ! logger.warn("Sheep has nothing to do"); setIdea(null); } --- 299,307 ---- } else { if ((turn % 100) == 0) { ! logger.debug("Sheep is bored"); setRandomPathFrom(owner.getX(), owner.getY(), 10); setSpeed(getBaseSpeed()); } else { ! logger.debug("Sheep has nothing to do"); setIdea(null); } *************** *** 318,322 **** damage(1, "starvation"); } ! hunger /= 2; } --- 318,322 ---- damage(1, "starvation"); } ! logger.warn("Sheep starve" + getZone().getName() + getX() + ":" + getY()); hunger /= 2; } *************** *** 324,328 **** /** * Let the sheep eat some food. ! * * @param food * The food to eat. --- 324,328 ---- /** * Let the sheep eat some food. ! * * @param food * The food to eat. |