From: Hendrik B. <nh...@us...> - 2011-11-20 20:36:42
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/map In directory vz-cvs-4.sog:/tmp/cvs-serv5629/src/games/stendhal/client/gui/map Modified Files: Tag: VERSION_00_RELEASE_98 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 (by kiheru) Index: InformationPanel.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/map/InformationPanel.java,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -C2 -d -r1.3.2.1 -r1.3.2.2 *** InformationPanel.java 18 Nov 2011 18:27:13 -0000 1.3.2.1 --- InformationPanel.java 20 Nov 2011 20:36:40 -0000 1.3.2.2 *************** *** 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; |