From: Astrid S. <ast...@us...> - 2007-08-16 01:20:38
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv7536/src/games/stendhal/server/entity/creature Modified Files: Creature.java Log Message: code beautify Index: Creature.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/creature/Creature.java,v retrieving revision 1.144 retrieving revision 1.145 diff -C2 -d -r1.144 -r1.145 *** Creature.java 15 Aug 2007 10:06:32 -0000 1.144 --- Creature.java 16 Aug 2007 01:20:38 -0000 1.145 *************** *** 43,48 **** import java.util.Map; - import javax.management.AttributeNotFoundException; - import marauroa.common.Log4J; import marauroa.common.Logger; --- 43,46 ---- *************** *** 572,578 **** for (DropItem dropped : dropsItems) { ! double probability = Rand.rand(1000000)/10000.0; ! if (probability <= (dropped.probability/SERVER_DROP_GENEROSITY)) { Item item = manager.getItem(dropped.name); if (item == null) { --- 570,576 ---- for (DropItem dropped : dropsItems) { ! double probability = Rand.rand(1000000) / 10000.0; ! if (probability <= (dropped.probability / SERVER_DROP_GENEROSITY)) { Item item = manager.getItem(dropped.name); if (item == null) { |