From: MadMetzger <mad...@us...> - 2009-02-28 23:08:49
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6825/src/games/stendhal/server/entity Modified Files: RPEntity.java Log Message: extracted def_multipliers of item classes to constants Index: RPEntity.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/RPEntity.java,v retrieving revision 1.300 retrieving revision 1.301 diff -C2 -d -r1.300 -r1.301 *** RPEntity.java 27 Feb 2009 20:03:36 -0000 1.300 --- RPEntity.java 28 Feb 2009 23:08:40 -0000 1.301 *************** *** 51,54 **** --- 51,69 ---- public abstract class RPEntity extends GuidedEntity implements Constants { + + private static final float WEAPON_DEF_MULTIPLIER = 4.0f; + + private static final float BOOTS_DEF_MULTIPLIER = 1.0f; + + private static final float LEG_DEF_MULTIPLIER = 1.0f; + [...1072 lines suppressed...] --- 2126,2130 ---- + defender.getID() + ": Damage: " + 0); } ! } else { // Missed logger.debug("attack from " + this.getID() + " to " *************** *** 2132,2136 **** if (attacker instanceof Creature) { sumAll = 1; ! final String value = ((Creature) attacker).getAIProfile("lifesteal"); if (value == null) { // The creature doesn't steal life. --- 2165,2170 ---- if (attacker instanceof Creature) { sumAll = 1; ! final String value = ((Creature) attacker) ! .getAIProfile("lifesteal"); if (value == null) { // The creature doesn't steal life. |