v0.3.0: modified some basic wand properties (now max at 10 charges, and IDs much quicker)

This commit is contained in:
Evan Debenham 2015-04-05 16:42:22 -04:00
parent 673f024c17
commit 9c0391f39e

View File

@ -46,7 +46,7 @@ import com.watabou.utils.Random;
public abstract class Wand extends KindOfWeapon { public abstract class Wand extends KindOfWeapon {
private static final int USAGES_TO_KNOW = 40; private static final int USAGES_TO_KNOW = 10;
public static final String AC_ZAP = "ZAP"; public static final String AC_ZAP = "ZAP";
@ -245,7 +245,7 @@ public abstract class Wand extends KindOfWeapon {
} }
public void updateLevel() { public void updateLevel() {
maxCharges = Math.min( initialCharges() + level, 9 ); maxCharges = Math.min( initialCharges() + level, 10 );
curCharges = Math.min( curCharges, maxCharges ); curCharges = Math.min( curCharges, maxCharges );
calculateDamage(); calculateDamage();