From: Kimmo R. <ki...@us...> - 2011-11-20 19:56:01
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/map In directory vz-cvs-4.sog:/tmp/cvs-serv1515/src/games/stendhal/client/gui/map Modified Files: InformationPanel.java Log Message: Add 3 to player, instead of 1, when calculating the number of skulls to show to keep the skull row a bit shorter for newbies Index: InformationPanel.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/map/InformationPanel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** InformationPanel.java 17 Nov 2011 23:28:55 -0000 1.4 --- InformationPanel.java 20 Nov 2011 19:55:58 -0000 1.5 *************** *** 28,31 **** --- 28,38 ---- private static final int MAX_SKULLS = 5; /** + * Value to added to the player level when calculating the amount of skulls + * to show. <b>Must be at least 1.</b>. Higher values mean that low level + * players require higher danger level at a zone for a certain amount of + * skulls. + */ + private static final int SKULLS_LEVEL_ADD = 3; + /** * Textual description of the danger level. There should be MAX_SKULLS + 1 * of these. *************** *** 88,92 **** */ void setDangerLevel(double dangerLevel) { ! int skulls = (int) Math.min(5, Math.round(2 * dangerLevel / (User.getPlayerLevel() + 1))); if (this.dangerLevel != skulls) { this.dangerLevel = skulls; --- 95,99 ---- */ void setDangerLevel(double dangerLevel) { ! int skulls = (int) Math.min(5, Math.round(2 * dangerLevel / (User.getPlayerLevel() + SKULLS_LEVEL_ADD))); if (this.dangerLevel != skulls) { this.dangerLevel = skulls; |