From: Hendrik <nh...@us...> - 2008-07-06 16:39:30
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv30092/src/games/stendhal/server/entity/player Modified Files: PlayerDieer.java Log Message: fixed comment: (Rand.rand(50) + 25) / 100.0; returns 25% as the lower bound. Index: PlayerDieer.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/player/PlayerDieer.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PlayerDieer.java 23 Jun 2008 10:47:24 -0000 1.9 --- PlayerDieer.java 6 Jul 2008 16:39:36 -0000 1.10 *************** *** 136,140 **** // We won't drop the full quantity, but only a // percentage. ! // Get a random percentage between 26 % and 75 % to drop double percentage = (Rand.rand(50) + 25) / 100.0; int quantityToDrop = (int) Math.round(item.getQuantity() --- 136,140 ---- // We won't drop the full quantity, but only a // percentage. ! // Get a random percentage between 25 % and 75 % to drop double percentage = (Rand.rand(50) + 25) / 100.0; int quantityToDrop = (int) Math.round(item.getQuantity() |