From: Kimmo R. <ki...@us...> - 2008-09-02 21:16:41
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/common In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31558/src/games/stendhal/common Modified Files: Rand.java Log Message: new formula for damage calculation. makes heavy weapons useful again and includes level in the attack part too. the constants are chosen for working PvP, so the values wont work well with monsters. monsters should be adjusted once people are happy with how the PvP works Index: Rand.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/common/Rand.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Rand.java 13 Aug 2008 19:16:08 -0000 1.20 --- Rand.java 2 Sep 2008 21:16:43 -0000 1.21 *************** *** 95,98 **** --- 95,107 ---- return rand.nextInt(n); } + + /** + * Generates an equally distributed double precision random number. + * the upper boundary + * @return A random number between 0 and 1, equally distributed. + */ + public static double rand() { + return rand.nextDouble(); + } /** |