From: Markus <mad...@us...> - 2014-02-21 06:36:44
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc/behaviour/impl/prices In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25606/src/games/stendhal/server/entity/npc/behaviour/impl/prices Modified Files: RepairingPriceCalculationStrategy.java Log Message: fix compiler error Index: RepairingPriceCalculationStrategy.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc/behaviour/impl/prices/RepairingPriceCalculationStrategy.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RepairingPriceCalculationStrategy.java 25 Apr 2013 20:26:05 -0000 1.7 --- RepairingPriceCalculationStrategy.java 21 Feb 2014 06:36:40 -0000 1.8 *************** *** 9,13 **** * Special calculation strategy for calculating repair prices * ! * Repairing price is based on value determined by the StendhalEconomy, player * level (min level has an effect similar to affecting def or rate) * and player's PK status --- 9,13 ---- * Special calculation strategy for calculating repair prices * ! * Repairing price is based on value determined by the player * level (min level has an effect similar to affecting def or rate) * and player's PK status *************** *** 21,25 **** private static final double PLAYER_KILLER_MALUS = 2d; ! private Set<String> items; private Item itemToRepair; --- 21,25 ---- private static final double PLAYER_KILLER_MALUS = 2d; ! private final Set<String> items; private Item itemToRepair; *************** *** 42,46 **** @Override public int calculatePrice(String item, Player p) { ! double itemvalue = SingletonRepository.getEconomy().getValue(item); double adjustedFactor = adjustFactorBasedOnMinLevel(item); double repairPrice = itemvalue * adjustedFactor; --- 42,46 ---- @Override public int calculatePrice(String item, Player p) { ! double itemvalue = 0d; double adjustedFactor = adjustFactorBasedOnMinLevel(item); double repairPrice = itemvalue * adjustedFactor; |